/* 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 { ContainerImageInQuarantineData } from './ContainerImageInQuarantineData'; import { ContainerImageInQuarantineDataFromJSON, ContainerImageInQuarantineDataFromJSONTyped, ContainerImageInQuarantineDataToJSON, ContainerImageInQuarantineDataToJSONTyped, } from './ContainerImageInQuarantineData'; /** * * @export * @interface ContainerImageInQuarantineDataResult */ export interface ContainerImageInQuarantineDataResult { /** * Current page number * @type {number} * @memberof ContainerImageInQuarantineDataResult */ page?: number; /** * Total number of pages * @type {number} * @memberof ContainerImageInQuarantineDataResult */ pageCount?: number; /** * Number of items per page * @type {number} * @memberof ContainerImageInQuarantineDataResult */ pageSize?: number; /** * List of items for the current page * @type {Array} * @memberof ContainerImageInQuarantineDataResult */ results?: Array; /** * Total number of items * @type {number} * @memberof ContainerImageInQuarantineDataResult */ total?: number; } /** * Check if a given object implements the ContainerImageInQuarantineDataResult interface. */ export function instanceOfContainerImageInQuarantineDataResult(value: object): value is ContainerImageInQuarantineDataResult { return true; } export function ContainerImageInQuarantineDataResultFromJSON(json: any): ContainerImageInQuarantineDataResult { return ContainerImageInQuarantineDataResultFromJSONTyped(json, false); } export function ContainerImageInQuarantineDataResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerImageInQuarantineDataResult { if (json == null) { return json; } return { 'page': json['page'] == null ? undefined : json['page'], 'pageCount': json['pageCount'] == null ? undefined : json['pageCount'], 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'], 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(ContainerImageInQuarantineDataFromJSON)), 'total': json['total'] == null ? undefined : json['total'], }; } export function ContainerImageInQuarantineDataResultToJSON(json: any): ContainerImageInQuarantineDataResult { return ContainerImageInQuarantineDataResultToJSONTyped(json, false); } export function ContainerImageInQuarantineDataResultToJSONTyped(value?: ContainerImageInQuarantineDataResult | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'page': value['page'], 'pageCount': value['pageCount'], 'pageSize': value['pageSize'], 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(ContainerImageInQuarantineDataToJSON)), 'total': value['total'], }; }