/* 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'; import type { SecretFile } from './SecretFile'; import { SecretFileFromJSON, SecretFileFromJSONTyped, SecretFileToJSON, SecretFileToJSONTyped, } from './SecretFile'; /** * Full replacement for the Boat secret setup. Omitted `envContents` or `secretFiles` are treated as empty values, and successful updates are pushed to active Boxes. * @export * @interface SecretsUpdateRequest */ export interface SecretsUpdateRequest { /** * Full .env-style content to sync into Boxes. Send the complete desired file contents, not a patch. * @type {string} * @memberof SecretsUpdateRequest */ envContents?: string; /** * Full list of secret files to keep configured. Send existing files again if they should remain. * @type {Array} * @memberof SecretsUpdateRequest */ secretFiles?: Array; } /** * Check if a given object implements the SecretsUpdateRequest interface. */ export function instanceOfSecretsUpdateRequest(value: object): value is SecretsUpdateRequest { return true; } export function SecretsUpdateRequestFromJSON(json: any): SecretsUpdateRequest { return SecretsUpdateRequestFromJSONTyped(json, false); } export function SecretsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretsUpdateRequest { if (json == null) { return json; } return { 'envContents': json['envContents'] == null ? undefined : json['envContents'], 'secretFiles': json['secretFiles'] == null ? undefined : ((json['secretFiles'] as Array).map(SecretFileFromJSON)), }; } export function SecretsUpdateRequestToJSON(json: any): SecretsUpdateRequest { return SecretsUpdateRequestToJSONTyped(json, false); } export function SecretsUpdateRequestToJSONTyped(value?: SecretsUpdateRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'envContents': value['envContents'], 'secretFiles': value['secretFiles'] == null ? undefined : ((value['secretFiles'] as Array).map(SecretFileToJSON)), }; }