/* 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 HostPortRequest */ export interface HostPortRequest { /** * Port the service listens on inside the Boat. * @type {number} * @memberof HostPortRequest */ port: number; /** * Return an ungated URL instead of one that requires the `_token` query parameter. * @type {boolean} * @memberof HostPortRequest */ _public?: boolean; /** * Display title for the hosted port. * @type {string} * @memberof HostPortRequest */ title?: string; } /** * Check if a given object implements the HostPortRequest interface. */ export function instanceOfHostPortRequest(value: object): value is HostPortRequest { if (!('port' in value) || value['port'] === undefined) return false; return true; } export function HostPortRequestFromJSON(json: any): HostPortRequest { return HostPortRequestFromJSONTyped(json, false); } export function HostPortRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostPortRequest { if (json == null) { return json; } return { 'port': json['port'], '_public': json['public'] == null ? undefined : json['public'], 'title': json['title'] == null ? undefined : json['title'], }; } export function HostPortRequestToJSON(json: any): HostPortRequest { return HostPortRequestToJSONTyped(json, false); } export function HostPortRequestToJSONTyped(value?: HostPortRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'port': value['port'], 'public': value['_public'], 'title': value['title'], }; }