/* 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 RotateApiKey409Response */ export interface RotateApiKey409Response { /** * * @type {RotateApiKey409ResponseErrorEnum} * @memberof RotateApiKey409Response */ error: RotateApiKey409ResponseErrorEnum; /** * * @type {string} * @memberof RotateApiKey409Response */ message: string; } /** * @export */ export const RotateApiKey409ResponseErrorEnum = { ApiKeyExpired: 'api_key_expired' } as const; export type RotateApiKey409ResponseErrorEnum = typeof RotateApiKey409ResponseErrorEnum[keyof typeof RotateApiKey409ResponseErrorEnum]; /** * Check if a given object implements the RotateApiKey409Response interface. */ export function instanceOfRotateApiKey409Response(value: object): value is RotateApiKey409Response { if (!('error' in value) || value['error'] === undefined) return false; if (!('message' in value) || value['message'] === undefined) return false; return true; } export function RotateApiKey409ResponseFromJSON(json: any): RotateApiKey409Response { return RotateApiKey409ResponseFromJSONTyped(json, false); } export function RotateApiKey409ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RotateApiKey409Response { if (json == null) { return json; } return { 'error': json['error'], 'message': json['message'], }; } export function RotateApiKey409ResponseToJSON(json: any): RotateApiKey409Response { return RotateApiKey409ResponseToJSONTyped(json, false); } export function RotateApiKey409ResponseToJSONTyped(value?: RotateApiKey409Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'error': value['error'], 'message': value['message'], }; }