/* 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'; import type { Box } from './Box'; import { BoxFromJSON, BoxFromJSONTyped, BoxToJSON, BoxToJSONTyped, } from './Box'; /** * * @export * @interface CreateBoxResponse */ export interface CreateBoxResponse { /** * * @type {boolean} * @memberof CreateBoxResponse */ ok: boolean; /** * * @type {CreateBoxResponseTypeEnum} * @memberof CreateBoxResponse */ type: CreateBoxResponseTypeEnum; /** * * @type {CreateBoxResponseStatusEnum} * @memberof CreateBoxResponse */ status: CreateBoxResponseStatusEnum; /** * * @type {number} * @memberof CreateBoxResponse */ ttlSeconds: number | null; /** * * @type {Box} * @memberof CreateBoxResponse */ box: Box; } /** * @export */ export const CreateBoxResponseTypeEnum = { BoxCreated: 'box.created' } as const; export type CreateBoxResponseTypeEnum = typeof CreateBoxResponseTypeEnum[keyof typeof CreateBoxResponseTypeEnum]; /** * @export */ export const CreateBoxResponseStatusEnum = { Provisioning: 'provisioning' } as const; export type CreateBoxResponseStatusEnum = typeof CreateBoxResponseStatusEnum[keyof typeof CreateBoxResponseStatusEnum]; /** * Check if a given object implements the CreateBoxResponse interface. */ export function instanceOfCreateBoxResponse(value: object): value is CreateBoxResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('ttlSeconds' in value) || value['ttlSeconds'] === undefined) return false; if (!('box' in value) || value['box'] === undefined) return false; return true; } export function CreateBoxResponseFromJSON(json: any): CreateBoxResponse { return CreateBoxResponseFromJSONTyped(json, false); } export function CreateBoxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBoxResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'status': json['status'], 'ttlSeconds': json['ttlSeconds'], 'box': BoxFromJSON(json['box']), }; } export function CreateBoxResponseToJSON(json: any): CreateBoxResponse { return CreateBoxResponseToJSONTyped(json, false); } export function CreateBoxResponseToJSONTyped(value?: CreateBoxResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'status': value['status'], 'ttlSeconds': value['ttlSeconds'], 'box': BoxToJSON(value['box']), }; }