@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
94 lines (83 loc) • 2.46 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 Couchbase Capella connector
* @export
* @interface CAPELLAConfig
*/
export interface CAPELLAConfig {
/**
* Bucket Name. Example: Enter bucket name
* @type {string}
* @memberof CAPELLAConfig
*/
bucket: string;
/**
* Scope Name. Example: Enter scope name
* @type {string}
* @memberof CAPELLAConfig
*/
scope: string;
/**
* Collection Name. Example: Enter collection name
* @type {string}
* @memberof CAPELLAConfig
*/
collection: string;
/**
* Search Index Name. Example: Enter search index name
* @type {string}
* @memberof CAPELLAConfig
*/
index: string;
}
/**
* Check if a given object implements the CAPELLAConfig interface.
*/
export function instanceOfCAPELLAConfig(value: object): value is CAPELLAConfig {
if (!('bucket' in value) || value['bucket'] === undefined) return false;
if (!('scope' in value) || value['scope'] === undefined) return false;
if (!('collection' in value) || value['collection'] === undefined) return false;
if (!('index' in value) || value['index'] === undefined) return false;
return true;
}
export function CAPELLAConfigFromJSON(json: any): CAPELLAConfig {
return CAPELLAConfigFromJSONTyped(json, false);
}
export function CAPELLAConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CAPELLAConfig {
if (json == null) {
return json;
}
return {
'bucket': json['bucket'],
'scope': json['scope'],
'collection': json['collection'],
'index': json['index'],
};
}
export function CAPELLAConfigToJSON(json: any): CAPELLAConfig {
return CAPELLAConfigToJSONTyped(json, false);
}
export function CAPELLAConfigToJSONTyped(value?: CAPELLAConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'bucket': value['bucket'],
'scope': value['scope'],
'collection': value['collection'],
'index': value['index'],
};
}