/* 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'; import type { ApiKeyScopeResource } from './ApiKeyScopeResource'; import { ApiKeyScopeResourceFromJSON, ApiKeyScopeResourceFromJSONTyped, ApiKeyScopeResourceToJSON, ApiKeyScopeResourceToJSONTyped, } from './ApiKeyScopeResource'; /** * Session-only selector resources. Omitted when the caller authenticates with an API key. * @export * @interface ApiKeyCatalogScopeResources */ export interface ApiKeyCatalogScopeResources { /** * * @type {Array} * @memberof ApiKeyCatalogScopeResources */ boxes: Array; /** * * @type {Array} * @memberof ApiKeyCatalogScopeResources */ environments: Array; } /** * Check if a given object implements the ApiKeyCatalogScopeResources interface. */ export function instanceOfApiKeyCatalogScopeResources(value: object): value is ApiKeyCatalogScopeResources { if (!('boxes' in value) || value['boxes'] === undefined) return false; if (!('environments' in value) || value['environments'] === undefined) return false; return true; } export function ApiKeyCatalogScopeResourcesFromJSON(json: any): ApiKeyCatalogScopeResources { return ApiKeyCatalogScopeResourcesFromJSONTyped(json, false); } export function ApiKeyCatalogScopeResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyCatalogScopeResources { if (json == null) { return json; } return { 'boxes': ((json['boxes'] as Array).map(ApiKeyScopeResourceFromJSON)), 'environments': ((json['environments'] as Array).map(ApiKeyScopeResourceFromJSON)), }; } export function ApiKeyCatalogScopeResourcesToJSON(json: any): ApiKeyCatalogScopeResources { return ApiKeyCatalogScopeResourcesToJSONTyped(json, false); } export function ApiKeyCatalogScopeResourcesToJSONTyped(value?: ApiKeyCatalogScopeResources | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'boxes': ((value['boxes'] as Array).map(ApiKeyScopeResourceToJSON)), 'environments': ((value['environments'] as Array).map(ApiKeyScopeResourceToJSON)), }; }