/* 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 { ApiMetricsReportingAggregationDTOV2 } from './ApiMetricsReportingAggregationDTOV2'; import { ApiMetricsReportingAggregationDTOV2FromJSON, ApiMetricsReportingAggregationDTOV2FromJSONTyped, ApiMetricsReportingAggregationDTOV2ToJSON, ApiMetricsReportingAggregationDTOV2ToJSONTyped, } from './ApiMetricsReportingAggregationDTOV2'; /** * * @export * @interface ApiMetricsReportingDTOV2 */ export interface ApiMetricsReportingDTOV2 { /** * * @type {Array} * @memberof ApiMetricsReportingDTOV2 */ aggregations?: Array; /** * * @type {string} * @memberof ApiMetricsReportingDTOV2 */ applicationId?: string; /** * * @type {string} * @memberof ApiMetricsReportingDTOV2 */ applicationName?: string; /** * * @type {string} * @memberof ApiMetricsReportingDTOV2 */ applicationPublicId?: string; /** * * @type {string} * @memberof ApiMetricsReportingDTOV2 */ organizationId?: string; /** * * @type {string} * @memberof ApiMetricsReportingDTOV2 */ organizationName?: string; } /** * Check if a given object implements the ApiMetricsReportingDTOV2 interface. */ export function instanceOfApiMetricsReportingDTOV2(value: object): value is ApiMetricsReportingDTOV2 { return true; } export function ApiMetricsReportingDTOV2FromJSON(json: any): ApiMetricsReportingDTOV2 { return ApiMetricsReportingDTOV2FromJSONTyped(json, false); } export function ApiMetricsReportingDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiMetricsReportingDTOV2 { if (json == null) { return json; } return { 'aggregations': json['aggregations'] == null ? undefined : ((json['aggregations'] as Array).map(ApiMetricsReportingAggregationDTOV2FromJSON)), 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'applicationName': json['applicationName'] == null ? undefined : json['applicationName'], 'applicationPublicId': json['applicationPublicId'] == null ? undefined : json['applicationPublicId'], 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'], 'organizationName': json['organizationName'] == null ? undefined : json['organizationName'], }; } export function ApiMetricsReportingDTOV2ToJSON(json: any): ApiMetricsReportingDTOV2 { return ApiMetricsReportingDTOV2ToJSONTyped(json, false); } export function ApiMetricsReportingDTOV2ToJSONTyped(value?: ApiMetricsReportingDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'aggregations': value['aggregations'] == null ? undefined : ((value['aggregations'] as Array).map(ApiMetricsReportingAggregationDTOV2ToJSON)), 'applicationId': value['applicationId'], 'applicationName': value['applicationName'], 'applicationPublicId': value['applicationPublicId'], 'organizationId': value['organizationId'], 'organizationName': value['organizationName'], }; }