/* 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 NamedSnapshotInfoResponse */ export interface NamedSnapshotInfoResponse { /** * * @type {boolean} * @memberof NamedSnapshotInfoResponse */ ok: boolean; /** * * @type {NamedSnapshotInfoResponseTypeEnum} * @memberof NamedSnapshotInfoResponse */ type: NamedSnapshotInfoResponseTypeEnum; /** * * @type {NamedSnapshot} * @memberof NamedSnapshotInfoResponse */ snapshot: NamedSnapshot; } /** * @export */ export const NamedSnapshotInfoResponseTypeEnum = { SnapshotNamedInfo: 'snapshot.named.info' } as const; export type NamedSnapshotInfoResponseTypeEnum = typeof NamedSnapshotInfoResponseTypeEnum[keyof typeof NamedSnapshotInfoResponseTypeEnum]; /** * Check if a given object implements the NamedSnapshotInfoResponse interface. */ export function instanceOfNamedSnapshotInfoResponse(value: object): value is NamedSnapshotInfoResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('snapshot' in value) || value['snapshot'] === undefined) return false; return true; } export function NamedSnapshotInfoResponseFromJSON(json: any): NamedSnapshotInfoResponse { return NamedSnapshotInfoResponseFromJSONTyped(json, false); } export function NamedSnapshotInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotInfoResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'snapshot': NamedSnapshotFromJSON(json['snapshot']), }; } export function NamedSnapshotInfoResponseToJSON(json: any): NamedSnapshotInfoResponse { return NamedSnapshotInfoResponseToJSONTyped(json, false); } export function NamedSnapshotInfoResponseToJSONTyped(value?: NamedSnapshotInfoResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'snapshot': NamedSnapshotToJSON(value['snapshot']), }; }