/* 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 AddEnvironmentRepoRequest */ export interface AddEnvironmentRepoRequest { /** * The repository `databaseId` from `GET /repos`. * @type {string} * @memberof AddEnvironmentRepoRequest */ repositoryId: string; /** * * @type {string} * @memberof AddEnvironmentRepoRequest */ baseBranch?: string; } /** * Check if a given object implements the AddEnvironmentRepoRequest interface. */ export function instanceOfAddEnvironmentRepoRequest(value: object): value is AddEnvironmentRepoRequest { if (!('repositoryId' in value) || value['repositoryId'] === undefined) return false; return true; } export function AddEnvironmentRepoRequestFromJSON(json: any): AddEnvironmentRepoRequest { return AddEnvironmentRepoRequestFromJSONTyped(json, false); } export function AddEnvironmentRepoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddEnvironmentRepoRequest { if (json == null) { return json; } return { 'repositoryId': json['repositoryId'], 'baseBranch': json['baseBranch'] == null ? undefined : json['baseBranch'], }; } export function AddEnvironmentRepoRequestToJSON(json: any): AddEnvironmentRepoRequest { return AddEnvironmentRepoRequestToJSONTyped(json, false); } export function AddEnvironmentRepoRequestToJSONTyped(value?: AddEnvironmentRepoRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'repositoryId': value['repositoryId'], 'baseBranch': value['baseBranch'], }; }