/* 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 UpgradeBoxEnvironmentResponse */ export interface UpgradeBoxEnvironmentResponse { /** * * @type {boolean} * @memberof UpgradeBoxEnvironmentResponse */ success: boolean; /** * * @type {number} * @memberof UpgradeBoxEnvironmentResponse */ upgraded: number; /** * * @type {number} * @memberof UpgradeBoxEnvironmentResponse */ failed: number; } /** * Check if a given object implements the UpgradeBoxEnvironmentResponse interface. */ export function instanceOfUpgradeBoxEnvironmentResponse(value: object): value is UpgradeBoxEnvironmentResponse { if (!('success' in value) || value['success'] === undefined) return false; if (!('upgraded' in value) || value['upgraded'] === undefined) return false; if (!('failed' in value) || value['failed'] === undefined) return false; return true; } export function UpgradeBoxEnvironmentResponseFromJSON(json: any): UpgradeBoxEnvironmentResponse { return UpgradeBoxEnvironmentResponseFromJSONTyped(json, false); } export function UpgradeBoxEnvironmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpgradeBoxEnvironmentResponse { if (json == null) { return json; } return { 'success': json['success'], 'upgraded': json['upgraded'], 'failed': json['failed'], }; } export function UpgradeBoxEnvironmentResponseToJSON(json: any): UpgradeBoxEnvironmentResponse { return UpgradeBoxEnvironmentResponseToJSONTyped(json, false); } export function UpgradeBoxEnvironmentResponseToJSONTyped(value?: UpgradeBoxEnvironmentResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'success': value['success'], 'upgraded': value['upgraded'], 'failed': value['failed'], }; }