@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
75 lines (64 loc) • 1.83 kB
text/typescript
/* 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 Pinecone connector
* @export
* @interface PINECONEConfig
*/
export interface PINECONEConfig {
/**
* Index Name. Example: Enter index name
* @type {string}
* @memberof PINECONEConfig
*/
index: string;
/**
* Namespace. Example: Enter namespace
* @type {string}
* @memberof PINECONEConfig
*/
namespace?: string;
}
/**
* Check if a given object implements the PINECONEConfig interface.
*/
export function instanceOfPINECONEConfig(value: object): value is PINECONEConfig {
if (!('index' in value) || value['index'] === undefined) return false;
return true;
}
export function PINECONEConfigFromJSON(json: any): PINECONEConfig {
return PINECONEConfigFromJSONTyped(json, false);
}
export function PINECONEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PINECONEConfig {
if (json == null) {
return json;
}
return {
'index': json['index'],
'namespace': json['namespace'] == null ? undefined : json['namespace'],
};
}
export function PINECONEConfigToJSON(json: any): PINECONEConfig {
return PINECONEConfigToJSONTyped(json, false);
}
export function PINECONEConfigToJSONTyped(value?: PINECONEConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'index': value['index'],
'namespace': value['namespace'],
};
}