@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
91 lines (80 loc) • 2.43 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';
/**
* Authentication configuration for Milvus
* @export
* @interface MILVUSAuthConfig
*/
export interface MILVUSAuthConfig {
/**
* Public Endpoint. Example: Enter your public endpoint for your Milvus cluster
* @type {string}
* @memberof MILVUSAuthConfig
*/
url: string;
/**
* Token. Example: Enter your cluster token or Username/Password
* @type {string}
* @memberof MILVUSAuthConfig
*/
token?: string;
/**
* Username. Example: Enter your cluster Username
* @type {string}
* @memberof MILVUSAuthConfig
*/
username?: string;
/**
* Password. Example: Enter your cluster Password
* @type {string}
* @memberof MILVUSAuthConfig
*/
password?: string;
}
/**
* Check if a given object implements the MILVUSAuthConfig interface.
*/
export function instanceOfMILVUSAuthConfig(value: object): value is MILVUSAuthConfig {
if (!('url' in value) || value['url'] === undefined) return false;
return true;
}
export function MILVUSAuthConfigFromJSON(json: any): MILVUSAuthConfig {
return MILVUSAuthConfigFromJSONTyped(json, false);
}
export function MILVUSAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): MILVUSAuthConfig {
if (json == null) {
return json;
}
return {
'url': json['url'],
'token': json['token'] == null ? undefined : json['token'],
'username': json['username'] == null ? undefined : json['username'],
'password': json['password'] == null ? undefined : json['password'],
};
}
export function MILVUSAuthConfigToJSON(json: any): MILVUSAuthConfig {
return MILVUSAuthConfigToJSONTyped(json, false);
}
export function MILVUSAuthConfigToJSONTyped(value?: MILVUSAuthConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'url': value['url'],
'token': value['token'],
'username': value['username'],
'password': value['password'],
};
}