UNPKG

@vectorize-io/vectorize-client

Version:
126 lines (115 loc) 3.33 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 { Anthropic1 } from './Anthropic1'; import { instanceOfAnthropic1, Anthropic1FromJSON, Anthropic1FromJSONTyped, Anthropic1ToJSON, } from './Anthropic1'; import type { Bedrock1 } from './Bedrock1'; import { instanceOfBedrock1, Bedrock1FromJSON, Bedrock1FromJSONTyped, Bedrock1ToJSON, } from './Bedrock1'; import type { Groq1 } from './Groq1'; import { instanceOfGroq1, Groq1FromJSON, Groq1FromJSONTyped, Groq1ToJSON, } from './Groq1'; import type { Openai1 } from './Openai1'; import { instanceOfOpenai1, Openai1FromJSON, Openai1FromJSONTyped, Openai1ToJSON, } from './Openai1'; import type { Vertex1 } from './Vertex1'; import { instanceOfVertex1, Vertex1FromJSON, Vertex1FromJSONTyped, Vertex1ToJSON, } from './Vertex1'; import type { Voyage1 } from './Voyage1'; import { instanceOfVoyage1, Voyage1FromJSON, Voyage1FromJSONTyped, Voyage1ToJSON, } from './Voyage1'; /** * @type UpdateAIPlatformConnectorRequest * * @export */ export type UpdateAIPlatformConnectorRequest = Anthropic1 | Bedrock1 | Groq1 | Openai1 | Vertex1 | Voyage1; export function UpdateAIPlatformConnectorRequestFromJSON(json: any): UpdateAIPlatformConnectorRequest { return UpdateAIPlatformConnectorRequestFromJSONTyped(json, false); } export function UpdateAIPlatformConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAIPlatformConnectorRequest { if (json == null) { return json; } if (instanceOfAnthropic1(json)) { return Anthropic1FromJSONTyped(json, true); } if (instanceOfBedrock1(json)) { return Bedrock1FromJSONTyped(json, true); } if (instanceOfGroq1(json)) { return Groq1FromJSONTyped(json, true); } if (instanceOfOpenai1(json)) { return Openai1FromJSONTyped(json, true); } if (instanceOfVertex1(json)) { return Vertex1FromJSONTyped(json, true); } if (instanceOfVoyage1(json)) { return Voyage1FromJSONTyped(json, true); } return {} as any; } export function UpdateAIPlatformConnectorRequestToJSON(json: any): any { return UpdateAIPlatformConnectorRequestToJSONTyped(json, false); } export function UpdateAIPlatformConnectorRequestToJSONTyped(value?: UpdateAIPlatformConnectorRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (instanceOfAnthropic1(value)) { return Anthropic1ToJSON(value as Anthropic1); } if (instanceOfBedrock1(value)) { return Bedrock1ToJSON(value as Bedrock1); } if (instanceOfGroq1(value)) { return Groq1ToJSON(value as Groq1); } if (instanceOfOpenai1(value)) { return Openai1ToJSON(value as Openai1); } if (instanceOfVertex1(value)) { return Vertex1ToJSON(value as Vertex1); } if (instanceOfVoyage1(value)) { return Voyage1ToJSON(value as Voyage1); } return {}; }