UNPKG

@vectorize-io/vectorize-client

Version:
76 lines (65 loc) 1.95 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'; /** * Authentication configuration for Weaviate * @export * @interface WEAVIATEAuthConfig */ export interface WEAVIATEAuthConfig { /** * Endpoint. Example: Enter your Weaviate Cluster REST Endpoint * @type {string} * @memberof WEAVIATEAuthConfig */ host: string; /** * API Key. Example: Enter your API key * @type {string} * @memberof WEAVIATEAuthConfig */ apiKey: string; } /** * Check if a given object implements the WEAVIATEAuthConfig interface. */ export function instanceOfWEAVIATEAuthConfig(value: object): value is WEAVIATEAuthConfig { if (!('host' in value) || value['host'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } export function WEAVIATEAuthConfigFromJSON(json: any): WEAVIATEAuthConfig { return WEAVIATEAuthConfigFromJSONTyped(json, false); } export function WEAVIATEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WEAVIATEAuthConfig { if (json == null) { return json; } return { 'host': json['host'], 'apiKey': json['api-key'], }; } export function WEAVIATEAuthConfigToJSON(json: any): WEAVIATEAuthConfig { return WEAVIATEAuthConfigToJSONTyped(json, false); } export function WEAVIATEAuthConfigToJSONTyped(value?: WEAVIATEAuthConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'host': value['host'], 'api-key': value['apiKey'], }; }