/* 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 NamedSnapshotSaveRequest */ export interface NamedSnapshotSaveRequest { /** * The box whose current state to freeze. * @type {string} * @memberof NamedSnapshotSaveRequest */ boxId: string; /** * Name to save under. 1-63 lowercase letters, digits, or dashes, starting with a letter or digit. Reusing one of your existing names replaces that snapshot's artifact. `latest`, `tree`, `pull`, `rm`, `save`, `current`, `self`, and `new` are reserved. * @type {string} * @memberof NamedSnapshotSaveRequest */ name: string; } /** * Check if a given object implements the NamedSnapshotSaveRequest interface. */ export function instanceOfNamedSnapshotSaveRequest(value: object): value is NamedSnapshotSaveRequest { if (!('boxId' in value) || value['boxId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function NamedSnapshotSaveRequestFromJSON(json: any): NamedSnapshotSaveRequest { return NamedSnapshotSaveRequestFromJSONTyped(json, false); } export function NamedSnapshotSaveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotSaveRequest { if (json == null) { return json; } return { 'boxId': json['boxId'], 'name': json['name'], }; } export function NamedSnapshotSaveRequestToJSON(json: any): NamedSnapshotSaveRequest { return NamedSnapshotSaveRequestToJSONTyped(json, false); } export function NamedSnapshotSaveRequestToJSONTyped(value?: NamedSnapshotSaveRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'boxId': value['boxId'], 'name': value['name'], }; }