@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
67 lines (56 loc) • 1.66 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 Turbopuffer connector
* @export
* @interface TURBOPUFFERConfig
*/
export interface TURBOPUFFERConfig {
/**
* Namespace. Example: Enter namespace name
* @type {string}
* @memberof TURBOPUFFERConfig
*/
namespace: string;
}
/**
* Check if a given object implements the TURBOPUFFERConfig interface.
*/
export function instanceOfTURBOPUFFERConfig(value: object): value is TURBOPUFFERConfig {
if (!('namespace' in value) || value['namespace'] === undefined) return false;
return true;
}
export function TURBOPUFFERConfigFromJSON(json: any): TURBOPUFFERConfig {
return TURBOPUFFERConfigFromJSONTyped(json, false);
}
export function TURBOPUFFERConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): TURBOPUFFERConfig {
if (json == null) {
return json;
}
return {
'namespace': json['namespace'],
};
}
export function TURBOPUFFERConfigToJSON(json: any): TURBOPUFFERConfig {
return TURBOPUFFERConfigToJSONTyped(json, false);
}
export function TURBOPUFFERConfigToJSONTyped(value?: TURBOPUFFERConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'namespace': value['namespace'],
};
}