/* 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 DesktopResponse */ export interface DesktopResponse { /** * * @type {boolean} * @memberof DesktopResponse */ ok: boolean; /** * * @type {string} * @memberof DesktopResponse */ type: string; /** * * @type {boolean} * @memberof DesktopResponse */ success?: boolean; /** * Secret-bearing desktop or noVNC URL. Redact from logs. * @type {string} * @memberof DesktopResponse */ desktopUrl?: string | null; /** * * @type {string} * @memberof DesktopResponse */ ip?: string | null; /** * * @type {string} * @memberof DesktopResponse */ mode?: string; /** * For `?vnc=1`, true means VNC is still being prepared; poll again. * @type {boolean} * @memberof DesktopResponse */ provisioning?: boolean; /** * * @type {string} * @memberof DesktopResponse */ message?: string; } /** * Check if a given object implements the DesktopResponse interface. */ export function instanceOfDesktopResponse(value: object): value is DesktopResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function DesktopResponseFromJSON(json: any): DesktopResponse { return DesktopResponseFromJSONTyped(json, false); } export function DesktopResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DesktopResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'success': json['success'] == null ? undefined : json['success'], 'desktopUrl': json['desktopUrl'] == null ? undefined : json['desktopUrl'], 'ip': json['ip'] == null ? undefined : json['ip'], 'mode': json['mode'] == null ? undefined : json['mode'], 'provisioning': json['provisioning'] == null ? undefined : json['provisioning'], 'message': json['message'] == null ? undefined : json['message'], }; } export function DesktopResponseToJSON(json: any): DesktopResponse { return DesktopResponseToJSONTyped(json, false); } export function DesktopResponseToJSONTyped(value?: DesktopResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'success': value['success'], 'desktopUrl': value['desktopUrl'], 'ip': value['ip'], 'mode': value['mode'], 'provisioning': value['provisioning'], 'message': value['message'], }; }