/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.0.0 * * * 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 LimitsFieldsCurrentLimits */ export interface LimitsFieldsCurrentLimits { [key: string]: any | any; /** * * @type {number} * @memberof LimitsFieldsCurrentLimits */ activeBoxes?: number; /** * * @type {number} * @memberof LimitsFieldsCurrentLimits */ creationRatePerMinute?: number; /** * * @type {number} * @memberof LimitsFieldsCurrentLimits */ creationRequestsPerDay?: number | null; } /** * Check if a given object implements the LimitsFieldsCurrentLimits interface. */ export function instanceOfLimitsFieldsCurrentLimits(value: object): value is LimitsFieldsCurrentLimits { return true; } export function LimitsFieldsCurrentLimitsFromJSON(json: any): LimitsFieldsCurrentLimits { return LimitsFieldsCurrentLimitsFromJSONTyped(json, false); } export function LimitsFieldsCurrentLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LimitsFieldsCurrentLimits { if (json == null) { return json; } return { ...json, 'activeBoxes': json['activeBoxes'] == null ? undefined : json['activeBoxes'], 'creationRatePerMinute': json['creationRatePerMinute'] == null ? undefined : json['creationRatePerMinute'], 'creationRequestsPerDay': json['creationRequestsPerDay'] == null ? undefined : json['creationRequestsPerDay'], }; } export function LimitsFieldsCurrentLimitsToJSON(json: any): LimitsFieldsCurrentLimits { return LimitsFieldsCurrentLimitsToJSONTyped(json, false); } export function LimitsFieldsCurrentLimitsToJSONTyped(value?: LimitsFieldsCurrentLimits | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { ...value, 'activeBoxes': value['activeBoxes'], 'creationRatePerMinute': value['creationRatePerMinute'], 'creationRequestsPerDay': value['creationRequestsPerDay'], }; }