@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
67 lines (56 loc) • 1.59 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 Milvus connector
* @export
* @interface MILVUSConfig
*/
export interface MILVUSConfig {
/**
* Collection Name. Example: Enter collection name
* @type {string}
* @memberof MILVUSConfig
*/
collection: string;
}
/**
* Check if a given object implements the MILVUSConfig interface.
*/
export function instanceOfMILVUSConfig(value: object): value is MILVUSConfig {
if (!('collection' in value) || value['collection'] === undefined) return false;
return true;
}
export function MILVUSConfigFromJSON(json: any): MILVUSConfig {
return MILVUSConfigFromJSONTyped(json, false);
}
export function MILVUSConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): MILVUSConfig {
if (json == null) {
return json;
}
return {
'collection': json['collection'],
};
}
export function MILVUSConfigToJSON(json: any): MILVUSConfig {
return MILVUSConfigToJSONTyped(json, false);
}
export function MILVUSConfigToJSONTyped(value?: MILVUSConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'collection': value['collection'],
};
}