/* 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'; /** * Idempotently selects a repository for future Boxes. If the repository is already selected, the API updates its base branch instead of returning a conflict. * @export * @interface RepoSelectionRequest */ export interface RepoSelectionRequest { /** * Internal repository `databaseId` returned by `GET /repos`. * @type {string} * @memberof RepoSelectionRequest */ repositoryId: string; /** * * @type {string} * @memberof RepoSelectionRequest */ baseBranch?: string; } /** * Check if a given object implements the RepoSelectionRequest interface. */ export function instanceOfRepoSelectionRequest(value: object): value is RepoSelectionRequest { if (!('repositoryId' in value) || value['repositoryId'] === undefined) return false; return true; } export function RepoSelectionRequestFromJSON(json: any): RepoSelectionRequest { return RepoSelectionRequestFromJSONTyped(json, false); } export function RepoSelectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepoSelectionRequest { if (json == null) { return json; } return { 'repositoryId': json['repositoryId'], 'baseBranch': json['baseBranch'] == null ? undefined : json['baseBranch'], }; } export function RepoSelectionRequestToJSON(json: any): RepoSelectionRequest { return RepoSelectionRequestToJSONTyped(json, false); } export function RepoSelectionRequestToJSONTyped(value?: RepoSelectionRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'repositoryId': value['repositoryId'], 'baseBranch': value['baseBranch'], }; }