UNPKG

@vectorize-io/vectorize-client

Version:
103 lines (88 loc) 2.37 kB
/* tslint:disable */ /* eslint-disable */ /** * Vectorize API * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.1.2 * * * 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 { BEDROCKAuthConfig } from './BEDROCKAuthConfig'; import { BEDROCKAuthConfigFromJSON, BEDROCKAuthConfigFromJSONTyped, BEDROCKAuthConfigToJSON, BEDROCKAuthConfigToJSONTyped, } from './BEDROCKAuthConfig'; /** * * @export * @interface Bedrock */ export interface Bedrock { /** * Name of the connector * @type {string} * @memberof Bedrock */ name: string; /** * Must be "BEDROCK" * @type {string} * @memberof Bedrock */ type: BedrockTypeEnum; /** * * @type {BEDROCKAuthConfig} * @memberof Bedrock */ config: BEDROCKAuthConfig; } /** * @export */ export const BedrockTypeEnum = { Bedrock: 'BEDROCK' } as const; export type BedrockTypeEnum = typeof BedrockTypeEnum[keyof typeof BedrockTypeEnum]; /** * Check if a given object implements the Bedrock interface. */ export function instanceOfBedrock(value: object): value is Bedrock { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('config' in value) || value['config'] === undefined) return false; return true; } export function BedrockFromJSON(json: any): Bedrock { return BedrockFromJSONTyped(json, false); } export function BedrockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bedrock { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': BEDROCKAuthConfigFromJSON(json['config']), }; } export function BedrockToJSON(json: any): Bedrock { return BedrockToJSONTyped(json, false); } export function BedrockToJSONTyped(value?: Bedrock | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': BEDROCKAuthConfigToJSON(value['config']), }; }