/* 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 ApiKeyResourceTotals */ export interface ApiKeyResourceTotals { /** * * @type {number} * @memberof ApiKeyResourceTotals */ total: number; /** * * @type {number} * @memberof ApiKeyResourceTotals */ boxes: number; /** * * @type {number} * @memberof ApiKeyResourceTotals */ agents: number; } /** * Check if a given object implements the ApiKeyResourceTotals interface. */ export function instanceOfApiKeyResourceTotals(value: object): value is ApiKeyResourceTotals { if (!('total' in value) || value['total'] === undefined) return false; if (!('boxes' in value) || value['boxes'] === undefined) return false; if (!('agents' in value) || value['agents'] === undefined) return false; return true; } export function ApiKeyResourceTotalsFromJSON(json: any): ApiKeyResourceTotals { return ApiKeyResourceTotalsFromJSONTyped(json, false); } export function ApiKeyResourceTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyResourceTotals { if (json == null) { return json; } return { 'total': json['total'], 'boxes': json['boxes'], 'agents': json['agents'], }; } export function ApiKeyResourceTotalsToJSON(json: any): ApiKeyResourceTotals { return ApiKeyResourceTotalsToJSONTyped(json, false); } export function ApiKeyResourceTotalsToJSONTyped(value?: ApiKeyResourceTotals | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'total': value['total'], 'boxes': value['boxes'], 'agents': value['agents'], }; }