/* 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 { ApiRepositoryComponentPath } from './ApiRepositoryComponentPath'; import { ApiRepositoryComponentPathFromJSON, ApiRepositoryComponentPathFromJSONTyped, ApiRepositoryComponentPathToJSON, ApiRepositoryComponentPathToJSONTyped, } from './ApiRepositoryComponentPath'; /** * * @export * @interface ApiRepositoryPathVersions */ export interface ApiRepositoryPathVersions { /** * * @type {Array} * @memberof ApiRepositoryPathVersions */ repositoryComponentPaths?: Array; /** * * @type {number} * @memberof ApiRepositoryPathVersions */ requestIndex?: number; } /** * Check if a given object implements the ApiRepositoryPathVersions interface. */ export function instanceOfApiRepositoryPathVersions(value: object): value is ApiRepositoryPathVersions { return true; } export function ApiRepositoryPathVersionsFromJSON(json: any): ApiRepositoryPathVersions { return ApiRepositoryPathVersionsFromJSONTyped(json, false); } export function ApiRepositoryPathVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRepositoryPathVersions { if (json == null) { return json; } return { 'repositoryComponentPaths': json['repositoryComponentPaths'] == null ? undefined : ((json['repositoryComponentPaths'] as Array).map(ApiRepositoryComponentPathFromJSON)), 'requestIndex': json['requestIndex'] == null ? undefined : json['requestIndex'], }; } export function ApiRepositoryPathVersionsToJSON(json: any): ApiRepositoryPathVersions { return ApiRepositoryPathVersionsToJSONTyped(json, false); } export function ApiRepositoryPathVersionsToJSONTyped(value?: ApiRepositoryPathVersions | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'repositoryComponentPaths': value['repositoryComponentPaths'] == null ? undefined : ((value['repositoryComponentPaths'] as Array).map(ApiRepositoryComponentPathToJSON)), 'requestIndex': value['requestIndex'], }; }