UNPKG

@vectorize-io/vectorize-client

Version:
76 lines (65 loc) 1.88 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 Qdrant * @export * @interface QDRANTAuthConfig */ export interface QDRANTAuthConfig { /** * Host. Example: Enter your host * @type {string} * @memberof QDRANTAuthConfig */ host: string; /** * API Key. Example: Enter your API key * @type {string} * @memberof QDRANTAuthConfig */ apiKey: string; } /** * Check if a given object implements the QDRANTAuthConfig interface. */ export function instanceOfQDRANTAuthConfig(value: object): value is QDRANTAuthConfig { if (!('host' in value) || value['host'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } export function QDRANTAuthConfigFromJSON(json: any): QDRANTAuthConfig { return QDRANTAuthConfigFromJSONTyped(json, false); } export function QDRANTAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): QDRANTAuthConfig { if (json == null) { return json; } return { 'host': json['host'], 'apiKey': json['api-key'], }; } export function QDRANTAuthConfigToJSON(json: any): QDRANTAuthConfig { return QDRANTAuthConfigToJSONTyped(json, false); } export function QDRANTAuthConfigToJSONTyped(value?: QDRANTAuthConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'host': value['host'], 'api-key': value['apiKey'], }; }