/* 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 { DeletionOperation } from './DeletionOperation'; import { DeletionOperationFromJSON, DeletionOperationFromJSONTyped, DeletionOperationToJSON, DeletionOperationToJSONTyped, } from './DeletionOperation'; /** * * @export * @interface DeletionOperationResponse */ export interface DeletionOperationResponse { /** * * @type {boolean} * @memberof DeletionOperationResponse */ ok: boolean; /** * * @type {DeletionOperationResponseTypeEnum} * @memberof DeletionOperationResponse */ type: DeletionOperationResponseTypeEnum; /** * * @type {DeletionOperation} * @memberof DeletionOperationResponse */ operation: DeletionOperation; } /** * @export */ export const DeletionOperationResponseTypeEnum = { DeletionOperation: 'deletion.operation', BoxDeleting: 'box.deleting', SnapshotDeleting: 'snapshot.deleting' } as const; export type DeletionOperationResponseTypeEnum = typeof DeletionOperationResponseTypeEnum[keyof typeof DeletionOperationResponseTypeEnum]; /** * Check if a given object implements the DeletionOperationResponse interface. */ export function instanceOfDeletionOperationResponse(value: object): value is DeletionOperationResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('operation' in value) || value['operation'] === undefined) return false; return true; } export function DeletionOperationResponseFromJSON(json: any): DeletionOperationResponse { return DeletionOperationResponseFromJSONTyped(json, false); } export function DeletionOperationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionOperationResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'operation': DeletionOperationFromJSON(json['operation']), }; } export function DeletionOperationResponseToJSON(json: any): DeletionOperationResponse { return DeletionOperationResponseToJSONTyped(json, false); } export function DeletionOperationResponseToJSONTyped(value?: DeletionOperationResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'operation': DeletionOperationToJSON(value['operation']), }; }