UNPKG

@vectorize-io/vectorize-client

Version:
67 lines (56 loc) 1.66 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 Azure AI Search connector * @export * @interface AZUREAISEARCHConfig */ export interface AZUREAISEARCHConfig { /** * Index Name. Example: Enter index name * @type {string} * @memberof AZUREAISEARCHConfig */ index: string; } /** * Check if a given object implements the AZUREAISEARCHConfig interface. */ export function instanceOfAZUREAISEARCHConfig(value: object): value is AZUREAISEARCHConfig { if (!('index' in value) || value['index'] === undefined) return false; return true; } export function AZUREAISEARCHConfigFromJSON(json: any): AZUREAISEARCHConfig { return AZUREAISEARCHConfigFromJSONTyped(json, false); } export function AZUREAISEARCHConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AZUREAISEARCHConfig { if (json == null) { return json; } return { 'index': json['index'], }; } export function AZUREAISEARCHConfigToJSON(json: any): AZUREAISEARCHConfig { return AZUREAISEARCHConfigToJSONTyped(json, false); } export function AZUREAISEARCHConfigToJSONTyped(value?: AZUREAISEARCHConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'index': value['index'], }; }