/* 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 { ApiComponentChangeActionDTO } from './ApiComponentChangeActionDTO'; import { ApiComponentChangeActionDTOFromJSON, ApiComponentChangeActionDTOFromJSONTyped, ApiComponentChangeActionDTOToJSON, ApiComponentChangeActionDTOToJSONTyped, } from './ApiComponentChangeActionDTO'; /** * * @export * @interface ApiVersionChangeOptionDTO */ export interface ApiVersionChangeOptionDTO { /** * * @type {ApiComponentChangeActionDTO} * @memberof ApiVersionChangeOptionDTO */ data?: ApiComponentChangeActionDTO; /** * * @type {boolean} * @memberof ApiVersionChangeOptionDTO */ directDependency?: boolean; /** * * @type {Array} * @memberof ApiVersionChangeOptionDTO */ directDependencyData?: Array; /** * * @type {string} * @memberof ApiVersionChangeOptionDTO */ type?: ApiVersionChangeOptionDTOTypeEnum; } /** * @export */ export const ApiVersionChangeOptionDTOTypeEnum = { NextNoViolations: 'next-no-violations', NextNonFailing: 'next-non-failing', NextNoViolationsWithDependencies: 'next-no-violations-with-dependencies', NextNonFailingWithDependencies: 'next-non-failing-with-dependencies', InnerSourceLatestNonBreaking: 'inner-source-latest-non-breaking', InnerSourceLatest: 'inner-source-latest', RecommendedNonBreaking: 'recommended-non-breaking', RecommendedNonBreakingWithDependencies: 'recommended-non-breaking-with-dependencies' } as const; export type ApiVersionChangeOptionDTOTypeEnum = typeof ApiVersionChangeOptionDTOTypeEnum[keyof typeof ApiVersionChangeOptionDTOTypeEnum]; /** * Check if a given object implements the ApiVersionChangeOptionDTO interface. */ export function instanceOfApiVersionChangeOptionDTO(value: object): value is ApiVersionChangeOptionDTO { return true; } export function ApiVersionChangeOptionDTOFromJSON(json: any): ApiVersionChangeOptionDTO { return ApiVersionChangeOptionDTOFromJSONTyped(json, false); } export function ApiVersionChangeOptionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiVersionChangeOptionDTO { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : ApiComponentChangeActionDTOFromJSON(json['data']), 'directDependency': json['directDependency'] == null ? undefined : json['directDependency'], 'directDependencyData': json['directDependencyData'] == null ? undefined : ((json['directDependencyData'] as Array).map(ApiComponentChangeActionDTOFromJSON)), 'type': json['type'] == null ? undefined : json['type'], }; } export function ApiVersionChangeOptionDTOToJSON(json: any): ApiVersionChangeOptionDTO { return ApiVersionChangeOptionDTOToJSONTyped(json, false); } export function ApiVersionChangeOptionDTOToJSONTyped(value?: ApiVersionChangeOptionDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ApiComponentChangeActionDTOToJSON(value['data']), 'directDependency': value['directDependency'], 'directDependencyData': value['directDependencyData'] == null ? undefined : ((value['directDependencyData'] as Array).map(ApiComponentChangeActionDTOToJSON)), 'type': value['type'], }; }