/* 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 ApplicableContext */ export interface ApplicableContext { /** * * @type {Array} * @memberof ApplicableContext */ children?: Array; /** * * @type {string} * @memberof ApplicableContext */ id?: string; /** * * @type {string} * @memberof ApplicableContext */ name?: string; /** * * @type {string} * @memberof ApplicableContext */ type?: ApplicableContextTypeEnum; } /** * @export */ export const ApplicableContextTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository', HostedRepositoryComponent: 'hosted_repository_component', Global: 'global' } as const; export type ApplicableContextTypeEnum = typeof ApplicableContextTypeEnum[keyof typeof ApplicableContextTypeEnum]; /** * Check if a given object implements the ApplicableContext interface. */ export function instanceOfApplicableContext(value: object): value is ApplicableContext { return true; } export function ApplicableContextFromJSON(json: any): ApplicableContext { return ApplicableContextFromJSONTyped(json, false); } export function ApplicableContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicableContext { if (json == null) { return json; } return { 'children': json['children'] == null ? undefined : ((json['children'] as Array).map(ApplicableContextFromJSON)), 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'type': json['type'] == null ? undefined : json['type'], }; } export function ApplicableContextToJSON(json: any): ApplicableContext { return ApplicableContextToJSONTyped(json, false); } export function ApplicableContextToJSONTyped(value?: ApplicableContext | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'children': value['children'] == null ? undefined : ((value['children'] as Array).map(ApplicableContextToJSON)), 'id': value['id'], 'name': value['name'], 'type': value['type'], }; }