/* 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 CreateScopedApiKey503Response */ export interface CreateScopedApiKey503Response { /** * * @type {CreateScopedApiKey503ResponseErrorEnum} * @memberof CreateScopedApiKey503Response */ error: CreateScopedApiKey503ResponseErrorEnum; /** * * @type {string} * @memberof CreateScopedApiKey503Response */ message: string; /** * * @type {CreateScopedApiKey503ResponseScopedCreationEnabledEnum} * @memberof CreateScopedApiKey503Response */ scopedCreationEnabled: CreateScopedApiKey503ResponseScopedCreationEnabledEnum; } /** * @export */ export const CreateScopedApiKey503ResponseErrorEnum = { ScopedApiKeyCreationDisabled: 'scoped_api_key_creation_disabled' } as const; export type CreateScopedApiKey503ResponseErrorEnum = typeof CreateScopedApiKey503ResponseErrorEnum[keyof typeof CreateScopedApiKey503ResponseErrorEnum]; /** * @export */ export const CreateScopedApiKey503ResponseScopedCreationEnabledEnum = { False: false } as const; export type CreateScopedApiKey503ResponseScopedCreationEnabledEnum = typeof CreateScopedApiKey503ResponseScopedCreationEnabledEnum[keyof typeof CreateScopedApiKey503ResponseScopedCreationEnabledEnum]; /** * Check if a given object implements the CreateScopedApiKey503Response interface. */ export function instanceOfCreateScopedApiKey503Response(value: object): value is CreateScopedApiKey503Response { if (!('error' in value) || value['error'] === undefined) return false; if (!('message' in value) || value['message'] === undefined) return false; if (!('scopedCreationEnabled' in value) || value['scopedCreationEnabled'] === undefined) return false; return true; } export function CreateScopedApiKey503ResponseFromJSON(json: any): CreateScopedApiKey503Response { return CreateScopedApiKey503ResponseFromJSONTyped(json, false); } export function CreateScopedApiKey503ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateScopedApiKey503Response { if (json == null) { return json; } return { 'error': json['error'], 'message': json['message'], 'scopedCreationEnabled': json['scopedCreationEnabled'], }; } export function CreateScopedApiKey503ResponseToJSON(json: any): CreateScopedApiKey503Response { return CreateScopedApiKey503ResponseToJSONTyped(json, false); } export function CreateScopedApiKey503ResponseToJSONTyped(value?: CreateScopedApiKey503Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'error': value['error'], 'message': value['message'], 'scopedCreationEnabled': value['scopedCreationEnabled'], }; }