/* 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 NamedSnapshotDeletedResponse */ export interface NamedSnapshotDeletedResponse { /** * * @type {boolean} * @memberof NamedSnapshotDeletedResponse */ ok: boolean; /** * * @type {NamedSnapshotDeletedResponseTypeEnum} * @memberof NamedSnapshotDeletedResponse */ type: NamedSnapshotDeletedResponseTypeEnum; /** * * @type {string} * @memberof NamedSnapshotDeletedResponse */ name: string; /** * * @type {NamedSnapshotDeletedResponseStatusEnum} * @memberof NamedSnapshotDeletedResponse */ status: NamedSnapshotDeletedResponseStatusEnum; } /** * @export */ export const NamedSnapshotDeletedResponseTypeEnum = { SnapshotNamedDeleted: 'snapshot.named.deleted' } as const; export type NamedSnapshotDeletedResponseTypeEnum = typeof NamedSnapshotDeletedResponseTypeEnum[keyof typeof NamedSnapshotDeletedResponseTypeEnum]; /** * @export */ export const NamedSnapshotDeletedResponseStatusEnum = { Deleted: 'deleted' } as const; export type NamedSnapshotDeletedResponseStatusEnum = typeof NamedSnapshotDeletedResponseStatusEnum[keyof typeof NamedSnapshotDeletedResponseStatusEnum]; /** * Check if a given object implements the NamedSnapshotDeletedResponse interface. */ export function instanceOfNamedSnapshotDeletedResponse(value: object): value is NamedSnapshotDeletedResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } export function NamedSnapshotDeletedResponseFromJSON(json: any): NamedSnapshotDeletedResponse { return NamedSnapshotDeletedResponseFromJSONTyped(json, false); } export function NamedSnapshotDeletedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotDeletedResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'name': json['name'], 'status': json['status'], }; } export function NamedSnapshotDeletedResponseToJSON(json: any): NamedSnapshotDeletedResponse { return NamedSnapshotDeletedResponseToJSONTyped(json, false); } export function NamedSnapshotDeletedResponseToJSONTyped(value?: NamedSnapshotDeletedResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'name': value['name'], 'status': value['status'], }; }