UNPKG

@vectorize-io/vectorize-client

Version:
204 lines (193 loc) 5.82 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 type { Azureaisearch1 } from './Azureaisearch1'; import { instanceOfAzureaisearch1, Azureaisearch1FromJSON, Azureaisearch1FromJSONTyped, Azureaisearch1ToJSON, } from './Azureaisearch1'; import type { Capella1 } from './Capella1'; import { instanceOfCapella1, Capella1FromJSON, Capella1FromJSONTyped, Capella1ToJSON, } from './Capella1'; import type { Datastax1 } from './Datastax1'; import { instanceOfDatastax1, Datastax1FromJSON, Datastax1FromJSONTyped, Datastax1ToJSON, } from './Datastax1'; import type { Elastic1 } from './Elastic1'; import { instanceOfElastic1, Elastic1FromJSON, Elastic1FromJSONTyped, Elastic1ToJSON, } from './Elastic1'; import type { Milvus1 } from './Milvus1'; import { instanceOfMilvus1, Milvus1FromJSON, Milvus1FromJSONTyped, Milvus1ToJSON, } from './Milvus1'; import type { Pinecone1 } from './Pinecone1'; import { instanceOfPinecone1, Pinecone1FromJSON, Pinecone1FromJSONTyped, Pinecone1ToJSON, } from './Pinecone1'; import type { Postgresql1 } from './Postgresql1'; import { instanceOfPostgresql1, Postgresql1FromJSON, Postgresql1FromJSONTyped, Postgresql1ToJSON, } from './Postgresql1'; import type { Qdrant1 } from './Qdrant1'; import { instanceOfQdrant1, Qdrant1FromJSON, Qdrant1FromJSONTyped, Qdrant1ToJSON, } from './Qdrant1'; import type { Singlestore1 } from './Singlestore1'; import { instanceOfSinglestore1, Singlestore1FromJSON, Singlestore1FromJSONTyped, Singlestore1ToJSON, } from './Singlestore1'; import type { Supabase1 } from './Supabase1'; import { instanceOfSupabase1, Supabase1FromJSON, Supabase1FromJSONTyped, Supabase1ToJSON, } from './Supabase1'; import type { Turbopuffer1 } from './Turbopuffer1'; import { instanceOfTurbopuffer1, Turbopuffer1FromJSON, Turbopuffer1FromJSONTyped, Turbopuffer1ToJSON, } from './Turbopuffer1'; import type { Weaviate1 } from './Weaviate1'; import { instanceOfWeaviate1, Weaviate1FromJSON, Weaviate1FromJSONTyped, Weaviate1ToJSON, } from './Weaviate1'; /** * @type UpdateDestinationConnectorRequest * * @export */ export type UpdateDestinationConnectorRequest = Azureaisearch1 | Capella1 | Datastax1 | Elastic1 | Milvus1 | Pinecone1 | Postgresql1 | Qdrant1 | Singlestore1 | Supabase1 | Turbopuffer1 | Weaviate1; export function UpdateDestinationConnectorRequestFromJSON(json: any): UpdateDestinationConnectorRequest { return UpdateDestinationConnectorRequestFromJSONTyped(json, false); } export function UpdateDestinationConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationConnectorRequest { if (json == null) { return json; } if (instanceOfAzureaisearch1(json)) { return Azureaisearch1FromJSONTyped(json, true); } if (instanceOfCapella1(json)) { return Capella1FromJSONTyped(json, true); } if (instanceOfDatastax1(json)) { return Datastax1FromJSONTyped(json, true); } if (instanceOfElastic1(json)) { return Elastic1FromJSONTyped(json, true); } if (instanceOfMilvus1(json)) { return Milvus1FromJSONTyped(json, true); } if (instanceOfPinecone1(json)) { return Pinecone1FromJSONTyped(json, true); } if (instanceOfPostgresql1(json)) { return Postgresql1FromJSONTyped(json, true); } if (instanceOfQdrant1(json)) { return Qdrant1FromJSONTyped(json, true); } if (instanceOfSinglestore1(json)) { return Singlestore1FromJSONTyped(json, true); } if (instanceOfSupabase1(json)) { return Supabase1FromJSONTyped(json, true); } if (instanceOfTurbopuffer1(json)) { return Turbopuffer1FromJSONTyped(json, true); } if (instanceOfWeaviate1(json)) { return Weaviate1FromJSONTyped(json, true); } return {} as any; } export function UpdateDestinationConnectorRequestToJSON(json: any): any { return UpdateDestinationConnectorRequestToJSONTyped(json, false); } export function UpdateDestinationConnectorRequestToJSONTyped(value?: UpdateDestinationConnectorRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (instanceOfAzureaisearch1(value)) { return Azureaisearch1ToJSON(value as Azureaisearch1); } if (instanceOfCapella1(value)) { return Capella1ToJSON(value as Capella1); } if (instanceOfDatastax1(value)) { return Datastax1ToJSON(value as Datastax1); } if (instanceOfElastic1(value)) { return Elastic1ToJSON(value as Elastic1); } if (instanceOfMilvus1(value)) { return Milvus1ToJSON(value as Milvus1); } if (instanceOfPinecone1(value)) { return Pinecone1ToJSON(value as Pinecone1); } if (instanceOfPostgresql1(value)) { return Postgresql1ToJSON(value as Postgresql1); } if (instanceOfQdrant1(value)) { return Qdrant1ToJSON(value as Qdrant1); } if (instanceOfSinglestore1(value)) { return Singlestore1ToJSON(value as Singlestore1); } if (instanceOfSupabase1(value)) { return Supabase1ToJSON(value as Supabase1); } if (instanceOfTurbopuffer1(value)) { return Turbopuffer1ToJSON(value as Turbopuffer1); } if (instanceOfWeaviate1(value)) { return Weaviate1ToJSON(value as Weaviate1); } return {}; }