/* 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'; /** * Options for stopping a Boat. * @export * @interface StopRequest */ export interface StopRequest { /** * Stop the box even if its disk cannot be snapshotted. Everything written since the last successful snapshot is permanently LOST. Without this, a box whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused. * @type {boolean} * @memberof StopRequest */ force?: boolean; } /** * Check if a given object implements the StopRequest interface. */ export function instanceOfStopRequest(value: object): value is StopRequest { return true; } export function StopRequestFromJSON(json: any): StopRequest { return StopRequestFromJSONTyped(json, false); } export function StopRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopRequest { if (json == null) { return json; } return { 'force': json['force'] == null ? undefined : json['force'], }; } export function StopRequestToJSON(json: any): StopRequest { return StopRequestToJSONTyped(json, false); } export function StopRequestToJSONTyped(value?: StopRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'force': value['force'], }; }