/* 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 SshKeyRequest */ export interface SshKeyRequest { /** * Public SSH key in OpenSSH format. Private keys are rejected. * @type {string} * @memberof SshKeyRequest */ key: string; } /** * Check if a given object implements the SshKeyRequest interface. */ export function instanceOfSshKeyRequest(value: object): value is SshKeyRequest { if (!('key' in value) || value['key'] === undefined) return false; return true; } export function SshKeyRequestFromJSON(json: any): SshKeyRequest { return SshKeyRequestFromJSONTyped(json, false); } export function SshKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SshKeyRequest { if (json == null) { return json; } return { 'key': json['key'], }; } export function SshKeyRequestToJSON(json: any): SshKeyRequest { return SshKeyRequestToJSONTyped(json, false); } export function SshKeyRequestToJSONTyped(value?: SshKeyRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'key': value['key'], }; }