/* 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 SshKeyResponse */ export interface SshKeyResponse { /** * * @type {boolean} * @memberof SshKeyResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof SshKeyResponse */ type: string; /** * * @type {boolean} * @memberof SshKeyResponse */ success?: boolean; /** * * @type {string} * @memberof SshKeyResponse */ machineIp?: string | null; /** * * @type {string} * @memberof SshKeyResponse */ sshUser?: string; } /** * Check if a given object implements the SshKeyResponse interface. */ export function instanceOfSshKeyResponse(value: object): value is SshKeyResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function SshKeyResponseFromJSON(json: any): SshKeyResponse { return SshKeyResponseFromJSONTyped(json, false); } export function SshKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SshKeyResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'success': json['success'] == null ? undefined : json['success'], 'machineIp': json['machineIp'] == null ? undefined : json['machineIp'], 'sshUser': json['sshUser'] == null ? undefined : json['sshUser'], }; } export function SshKeyResponseToJSON(json: any): SshKeyResponse { return SshKeyResponseToJSONTyped(json, false); } export function SshKeyResponseToJSONTyped(value?: SshKeyResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'success': value['success'], 'machineIp': value['machineIp'], 'sshUser': value['sshUser'], }; }