/* 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 { NamedSnapshot } from './NamedSnapshot'; import { NamedSnapshotFromJSON, NamedSnapshotFromJSONTyped, NamedSnapshotToJSON, NamedSnapshotToJSONTyped, } from './NamedSnapshot'; /** * * @export * @interface NamedSnapshotListResponse */ export interface NamedSnapshotListResponse { /** * * @type {boolean} * @memberof NamedSnapshotListResponse */ ok: boolean; /** * * @type {NamedSnapshotListResponseTypeEnum} * @memberof NamedSnapshotListResponse */ type: NamedSnapshotListResponseTypeEnum; /** * * @type {Array} * @memberof NamedSnapshotListResponse */ snapshots: Array; } /** * @export */ export const NamedSnapshotListResponseTypeEnum = { SnapshotNamedList: 'snapshot.named.list' } as const; export type NamedSnapshotListResponseTypeEnum = typeof NamedSnapshotListResponseTypeEnum[keyof typeof NamedSnapshotListResponseTypeEnum]; /** * Check if a given object implements the NamedSnapshotListResponse interface. */ export function instanceOfNamedSnapshotListResponse(value: object): value is NamedSnapshotListResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('snapshots' in value) || value['snapshots'] === undefined) return false; return true; } export function NamedSnapshotListResponseFromJSON(json: any): NamedSnapshotListResponse { return NamedSnapshotListResponseFromJSONTyped(json, false); } export function NamedSnapshotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotListResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'snapshots': ((json['snapshots'] as Array).map(NamedSnapshotFromJSON)), }; } export function NamedSnapshotListResponseToJSON(json: any): NamedSnapshotListResponse { return NamedSnapshotListResponseToJSONTyped(json, false); } export function NamedSnapshotListResponseToJSONTyped(value?: NamedSnapshotListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'snapshots': ((value['snapshots'] as Array).map(NamedSnapshotToJSON)), }; }