/* 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 HostPortResponse */ export interface HostPortResponse { /** * * @type {boolean} * @memberof HostPortResponse */ ok: boolean; /** * * @type {string} * @memberof HostPortResponse */ type: string; /** * * @type {boolean} * @memberof HostPortResponse */ success?: boolean; /** * * @type {number} * @memberof HostPortResponse */ port?: number; /** * Public HTTPS URL. Carries the `_token` query parameter unless the port is public; redact from logs. * @type {string} * @memberof HostPortResponse */ url?: string; /** * * @type {boolean} * @memberof HostPortResponse */ isProtected?: boolean; /** * * @type {HostPortResponseAccessEnum} * @memberof HostPortResponse */ access?: HostPortResponseAccessEnum; } /** * @export */ export const HostPortResponseAccessEnum = { Private: 'private', Public: 'public' } as const; export type HostPortResponseAccessEnum = typeof HostPortResponseAccessEnum[keyof typeof HostPortResponseAccessEnum]; /** * Check if a given object implements the HostPortResponse interface. */ export function instanceOfHostPortResponse(value: object): value is HostPortResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function HostPortResponseFromJSON(json: any): HostPortResponse { return HostPortResponseFromJSONTyped(json, false); } export function HostPortResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostPortResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'success': json['success'] == null ? undefined : json['success'], 'port': json['port'] == null ? undefined : json['port'], 'url': json['url'] == null ? undefined : json['url'], 'isProtected': json['isProtected'] == null ? undefined : json['isProtected'], 'access': json['access'] == null ? undefined : json['access'], }; } export function HostPortResponseToJSON(json: any): HostPortResponse { return HostPortResponseToJSONTyped(json, false); } export function HostPortResponseToJSONTyped(value?: HostPortResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'success': value['success'], 'port': value['port'], 'url': value['url'], 'isProtected': value['isProtected'], 'access': value['access'], }; }