/* 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 ApiKeyCreatedResource */ export interface ApiKeyCreatedResource { /** * * @type {ApiKeyCreatedResourceKindEnum} * @memberof ApiKeyCreatedResource */ kind: ApiKeyCreatedResourceKindEnum; /** * * @type {string} * @memberof ApiKeyCreatedResource */ id: string; /** * * @type {string} * @memberof ApiKeyCreatedResource */ name: string; /** * * @type {string} * @memberof ApiKeyCreatedResource */ state: string; /** * * @type {Date} * @memberof ApiKeyCreatedResource */ createdAt: Date | null; } /** * @export */ export const ApiKeyCreatedResourceKindEnum = { Box: 'box', Agent: 'agent' } as const; export type ApiKeyCreatedResourceKindEnum = typeof ApiKeyCreatedResourceKindEnum[keyof typeof ApiKeyCreatedResourceKindEnum]; /** * Check if a given object implements the ApiKeyCreatedResource interface. */ export function instanceOfApiKeyCreatedResource(value: object): value is ApiKeyCreatedResource { if (!('kind' in value) || value['kind'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('state' in value) || value['state'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; return true; } export function ApiKeyCreatedResourceFromJSON(json: any): ApiKeyCreatedResource { return ApiKeyCreatedResourceFromJSONTyped(json, false); } export function ApiKeyCreatedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyCreatedResource { if (json == null) { return json; } return { 'kind': json['kind'], 'id': json['id'], 'name': json['name'], 'state': json['state'], 'createdAt': (json['createdAt'] == null ? null : new Date(json['createdAt'])), }; } export function ApiKeyCreatedResourceToJSON(json: any): ApiKeyCreatedResource { return ApiKeyCreatedResourceToJSONTyped(json, false); } export function ApiKeyCreatedResourceToJSONTyped(value?: ApiKeyCreatedResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'kind': value['kind'], 'id': value['id'], 'name': value['name'], 'state': value['state'], 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(), }; }