/* 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 type { Azureaisearch } from './Azureaisearch'; import { instanceOfAzureaisearch, AzureaisearchFromJSON, AzureaisearchFromJSONTyped, AzureaisearchToJSON, } from './Azureaisearch'; import type { Capella } from './Capella'; import { instanceOfCapella, CapellaFromJSON, CapellaFromJSONTyped, CapellaToJSON, } from './Capella'; import type { Datastax } from './Datastax'; import { instanceOfDatastax, DatastaxFromJSON, DatastaxFromJSONTyped, DatastaxToJSON, } from './Datastax'; import type { Elastic } from './Elastic'; import { instanceOfElastic, ElasticFromJSON, ElasticFromJSONTyped, ElasticToJSON, } from './Elastic'; import type { Milvus } from './Milvus'; import { instanceOfMilvus, MilvusFromJSON, MilvusFromJSONTyped, MilvusToJSON, } from './Milvus'; import type { Pinecone } from './Pinecone'; import { instanceOfPinecone, PineconeFromJSON, PineconeFromJSONTyped, PineconeToJSON, } from './Pinecone'; import type { Postgresql } from './Postgresql'; import { instanceOfPostgresql, PostgresqlFromJSON, PostgresqlFromJSONTyped, PostgresqlToJSON, } from './Postgresql'; import type { Qdrant } from './Qdrant'; import { instanceOfQdrant, QdrantFromJSON, QdrantFromJSONTyped, QdrantToJSON, } from './Qdrant'; import type { Singlestore } from './Singlestore'; import { instanceOfSinglestore, SinglestoreFromJSON, SinglestoreFromJSONTyped, SinglestoreToJSON, } from './Singlestore'; import type { Supabase } from './Supabase'; import { instanceOfSupabase, SupabaseFromJSON, SupabaseFromJSONTyped, SupabaseToJSON, } from './Supabase'; import type { Turbopuffer } from './Turbopuffer'; import { instanceOfTurbopuffer, TurbopufferFromJSON, TurbopufferFromJSONTyped, TurbopufferToJSON, } from './Turbopuffer'; import type { Weaviate } from './Weaviate'; import { instanceOfWeaviate, WeaviateFromJSON, WeaviateFromJSONTyped, WeaviateToJSON, } from './Weaviate'; /** * @type CreateDestinationConnectorRequest * * @export */ export type CreateDestinationConnectorRequest = Azureaisearch | Capella | Datastax | Elastic | Milvus | Pinecone | Postgresql | Qdrant | Singlestore | Supabase | Turbopuffer | Weaviate; export function CreateDestinationConnectorRequestFromJSON(json: any): CreateDestinationConnectorRequest { return CreateDestinationConnectorRequestFromJSONTyped(json, false); } export function CreateDestinationConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationConnectorRequest { if (json == null) { return json; } switch (json['type']) { default: throw new Error(`No variant of CreateDestinationConnectorRequest exists with 'type=${json['type']}'`); } } export function CreateDestinationConnectorRequestToJSON(json: any): any { return CreateDestinationConnectorRequestToJSONTyped(json, false); } export function CreateDestinationConnectorRequestToJSONTyped(value?: CreateDestinationConnectorRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } switch (value['type']) { default: throw new Error(`No variant of CreateDestinationConnectorRequest exists with 'type=${value['type']}'`); } }