/* 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'; /** * Optional desktop/VNC setup options used by the Boat dashboard and CLI. Most callers send an empty body. * @export * @interface DesktopRequest */ export interface DesktopRequest { [key: string]: any | any; /** * For `?vnc=1`, return a noVNC URL that does not require an access token. * @type {boolean} * @memberof DesktopRequest */ publicAccess?: boolean; } /** * Check if a given object implements the DesktopRequest interface. */ export function instanceOfDesktopRequest(value: object): value is DesktopRequest { return true; } export function DesktopRequestFromJSON(json: any): DesktopRequest { return DesktopRequestFromJSONTyped(json, false); } export function DesktopRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DesktopRequest { if (json == null) { return json; } return { ...json, 'publicAccess': json['publicAccess'] == null ? undefined : json['publicAccess'], }; } export function DesktopRequestToJSON(json: any): DesktopRequest { return DesktopRequestToJSONTyped(json, false); } export function DesktopRequestToJSONTyped(value?: DesktopRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { ...value, 'publicAccess': value['publicAccess'], }; }