/* 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'; /** * Repoint active boxes to the environment's latest version, scrubbing any owner secrets the new version drops and hot-pushing the new config. * @export * @interface UpgradeBoxEnvironmentRequest */ export interface UpgradeBoxEnvironmentRequest { /** * Restrict the upgrade to these box (agent) ids. Omit to upgrade all of the caller's active boxes that are on an older version of this environment. * @type {Array} * @memberof UpgradeBoxEnvironmentRequest */ agentIds?: Array; } /** * Check if a given object implements the UpgradeBoxEnvironmentRequest interface. */ export function instanceOfUpgradeBoxEnvironmentRequest(value: object): value is UpgradeBoxEnvironmentRequest { return true; } export function UpgradeBoxEnvironmentRequestFromJSON(json: any): UpgradeBoxEnvironmentRequest { return UpgradeBoxEnvironmentRequestFromJSONTyped(json, false); } export function UpgradeBoxEnvironmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpgradeBoxEnvironmentRequest { if (json == null) { return json; } return { 'agentIds': json['agentIds'] == null ? undefined : json['agentIds'], }; } export function UpgradeBoxEnvironmentRequestToJSON(json: any): UpgradeBoxEnvironmentRequest { return UpgradeBoxEnvironmentRequestToJSONTyped(json, false); } export function UpgradeBoxEnvironmentRequestToJSONTyped(value?: UpgradeBoxEnvironmentRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'agentIds': value['agentIds'], }; }