@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
103 lines (88 loc) • 2.54 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';
import type { SINGLESTOREAuthConfig } from './SINGLESTOREAuthConfig';
import {
SINGLESTOREAuthConfigFromJSON,
SINGLESTOREAuthConfigFromJSONTyped,
SINGLESTOREAuthConfigToJSON,
SINGLESTOREAuthConfigToJSONTyped,
} from './SINGLESTOREAuthConfig';
/**
*
* @export
* @interface Singlestore
*/
export interface Singlestore {
/**
* Name of the connector
* @type {string}
* @memberof Singlestore
*/
name: string;
/**
* Connector type (must be "SINGLESTORE")
* @type {string}
* @memberof Singlestore
*/
type: SinglestoreTypeEnum;
/**
*
* @type {SINGLESTOREAuthConfig}
* @memberof Singlestore
*/
config: SINGLESTOREAuthConfig;
}
/**
* @export
*/
export const SinglestoreTypeEnum = {
Singlestore: 'SINGLESTORE'
} as const;
export type SinglestoreTypeEnum = typeof SinglestoreTypeEnum[keyof typeof SinglestoreTypeEnum];
/**
* Check if a given object implements the Singlestore interface.
*/
export function instanceOfSinglestore(value: object): value is Singlestore {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('type' in value) || value['type'] === undefined) return false;
if (!('config' in value) || value['config'] === undefined) return false;
return true;
}
export function SinglestoreFromJSON(json: any): Singlestore {
return SinglestoreFromJSONTyped(json, false);
}
export function SinglestoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Singlestore {
if (json == null) {
return json;
}
return {
'name': json['name'],
'type': json['type'],
'config': SINGLESTOREAuthConfigFromJSON(json['config']),
};
}
export function SinglestoreToJSON(json: any): Singlestore {
return SinglestoreToJSONTyped(json, false);
}
export function SinglestoreToJSONTyped(value?: Singlestore | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'type': value['type'],
'config': SINGLESTOREAuthConfigToJSON(value['config']),
};
}