/* 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 SecretFile */ export interface SecretFile { /** * * @type {string} * @memberof SecretFile */ path: string; /** * Secret file contents. Treat as sensitive. * @type {string} * @memberof SecretFile */ contents: string; } /** * Check if a given object implements the SecretFile interface. */ export function instanceOfSecretFile(value: object): value is SecretFile { if (!('path' in value) || value['path'] === undefined) return false; if (!('contents' in value) || value['contents'] === undefined) return false; return true; } export function SecretFileFromJSON(json: any): SecretFile { return SecretFileFromJSONTyped(json, false); } export function SecretFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretFile { if (json == null) { return json; } return { 'path': json['path'], 'contents': json['contents'], }; } export function SecretFileToJSON(json: any): SecretFile { return SecretFileToJSONTyped(json, false); } export function SecretFileToJSONTyped(value?: SecretFile | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'path': value['path'], 'contents': value['contents'], }; }