/* 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 ApiKeyScopeResource */ export interface ApiKeyScopeResource { /** * * @type {string} * @memberof ApiKeyScopeResource */ id: string; /** * * @type {string} * @memberof ApiKeyScopeResource */ name: string; /** * * @type {string} * @memberof ApiKeyScopeResource */ organizationId: string; /** * * @type {string} * @memberof ApiKeyScopeResource */ organizationName: string; } /** * Check if a given object implements the ApiKeyScopeResource interface. */ export function instanceOfApiKeyScopeResource(value: object): value is ApiKeyScopeResource { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('organizationId' in value) || value['organizationId'] === undefined) return false; if (!('organizationName' in value) || value['organizationName'] === undefined) return false; return true; } export function ApiKeyScopeResourceFromJSON(json: any): ApiKeyScopeResource { return ApiKeyScopeResourceFromJSONTyped(json, false); } export function ApiKeyScopeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyScopeResource { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'organizationId': json['organizationId'], 'organizationName': json['organizationName'], }; } export function ApiKeyScopeResourceToJSON(json: any): ApiKeyScopeResource { return ApiKeyScopeResourceToJSONTyped(json, false); } export function ApiKeyScopeResourceToJSONTyped(value?: ApiKeyScopeResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'organizationId': value['organizationId'], 'organizationName': value['organizationName'], }; }