UNPKG

@vectorize-io/vectorize-client

Version:
67 lines (56 loc) 1.56 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'; /** * Configuration for Elasticsearch connector * @export * @interface ELASTICConfig */ export interface ELASTICConfig { /** * Index Name. Example: Enter index name * @type {string} * @memberof ELASTICConfig */ index: string; } /** * Check if a given object implements the ELASTICConfig interface. */ export function instanceOfELASTICConfig(value: object): value is ELASTICConfig { if (!('index' in value) || value['index'] === undefined) return false; return true; } export function ELASTICConfigFromJSON(json: any): ELASTICConfig { return ELASTICConfigFromJSONTyped(json, false); } export function ELASTICConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ELASTICConfig { if (json == null) { return json; } return { 'index': json['index'], }; } export function ELASTICConfigToJSON(json: any): ELASTICConfig { return ELASTICConfigToJSONTyped(json, false); } export function ELASTICConfigToJSONTyped(value?: ELASTICConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'index': value['index'], }; }