/* 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'; /** * One rolling start window. Null when the account is unlimited. * @export * @interface StartWindowUsage */ export interface StartWindowUsage { /** * * @type {number} * @memberof StartWindowUsage */ limit?: number; /** * * @type {number} * @memberof StartWindowUsage */ used?: number; /** * * @type {number} * @memberof StartWindowUsage */ remaining?: number; } /** * Check if a given object implements the StartWindowUsage interface. */ export function instanceOfStartWindowUsage(value: object): value is StartWindowUsage { return true; } export function StartWindowUsageFromJSON(json: any): StartWindowUsage { return StartWindowUsageFromJSONTyped(json, false); } export function StartWindowUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartWindowUsage { if (json == null) { return json; } return { 'limit': json['limit'] == null ? undefined : json['limit'], 'used': json['used'] == null ? undefined : json['used'], 'remaining': json['remaining'] == null ? undefined : json['remaining'], }; } export function StartWindowUsageToJSON(json: any): StartWindowUsage { return StartWindowUsageToJSONTyped(json, false); } export function StartWindowUsageToJSONTyped(value?: StartWindowUsage | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'limit': value['limit'], 'used': value['used'], 'remaining': value['remaining'], }; }