/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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 OssiMonthlyUsage */ export interface OssiMonthlyUsage { /** * * @type {number} * @memberof OssiMonthlyUsage */ estimatedCredits?: number; /** * * @type {string} * @memberof OssiMonthlyUsage */ month?: string; /** * * @type {number} * @memberof OssiMonthlyUsage */ totalComponents?: number; } /** * Check if a given object implements the OssiMonthlyUsage interface. */ export function instanceOfOssiMonthlyUsage(value: object): value is OssiMonthlyUsage { return true; } export function OssiMonthlyUsageFromJSON(json: any): OssiMonthlyUsage { return OssiMonthlyUsageFromJSONTyped(json, false); } export function OssiMonthlyUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): OssiMonthlyUsage { if (json == null) { return json; } return { 'estimatedCredits': json['estimatedCredits'] == null ? undefined : json['estimatedCredits'], 'month': json['month'] == null ? undefined : json['month'], 'totalComponents': json['totalComponents'] == null ? undefined : json['totalComponents'], }; } export function OssiMonthlyUsageToJSON(json: any): OssiMonthlyUsage { return OssiMonthlyUsageToJSONTyped(json, false); } export function OssiMonthlyUsageToJSONTyped(value?: OssiMonthlyUsage | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'estimatedCredits': value['estimatedCredits'], 'month': value['month'], 'totalComponents': value['totalComponents'], }; }