UNPKG

@vectorize-io/vectorize-client

Version:
103 lines (88 loc) 2.35 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 { QDRANTAuthConfig } from './QDRANTAuthConfig'; import { QDRANTAuthConfigFromJSON, QDRANTAuthConfigFromJSONTyped, QDRANTAuthConfigToJSON, QDRANTAuthConfigToJSONTyped, } from './QDRANTAuthConfig'; /** * * @export * @interface Qdrant */ export interface Qdrant { /** * Name of the connector * @type {string} * @memberof Qdrant */ name: string; /** * Connector type (must be "QDRANT") * @type {string} * @memberof Qdrant */ type: QdrantTypeEnum; /** * * @type {QDRANTAuthConfig} * @memberof Qdrant */ config: QDRANTAuthConfig; } /** * @export */ export const QdrantTypeEnum = { Qdrant: 'QDRANT' } as const; export type QdrantTypeEnum = typeof QdrantTypeEnum[keyof typeof QdrantTypeEnum]; /** * Check if a given object implements the Qdrant interface. */ export function instanceOfQdrant(value: object): value is Qdrant { 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 QdrantFromJSON(json: any): Qdrant { return QdrantFromJSONTyped(json, false); } export function QdrantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Qdrant { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': QDRANTAuthConfigFromJSON(json['config']), }; } export function QdrantToJSON(json: any): Qdrant { return QdrantToJSONTyped(json, false); } export function QdrantToJSONTyped(value?: Qdrant | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': QDRANTAuthConfigToJSON(value['config']), }; }