@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
103 lines (88 loc) • 2.39 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 { CAPELLAAuthConfig } from './CAPELLAAuthConfig';
import {
CAPELLAAuthConfigFromJSON,
CAPELLAAuthConfigFromJSONTyped,
CAPELLAAuthConfigToJSON,
CAPELLAAuthConfigToJSONTyped,
} from './CAPELLAAuthConfig';
/**
*
* @export
* @interface Capella
*/
export interface Capella {
/**
* Name of the connector
* @type {string}
* @memberof Capella
*/
name: string;
/**
* Connector type (must be "CAPELLA")
* @type {string}
* @memberof Capella
*/
type: CapellaTypeEnum;
/**
*
* @type {CAPELLAAuthConfig}
* @memberof Capella
*/
config: CAPELLAAuthConfig;
}
/**
* @export
*/
export const CapellaTypeEnum = {
Capella: 'CAPELLA'
} as const;
export type CapellaTypeEnum = typeof CapellaTypeEnum[keyof typeof CapellaTypeEnum];
/**
* Check if a given object implements the Capella interface.
*/
export function instanceOfCapella(value: object): value is Capella {
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 CapellaFromJSON(json: any): Capella {
return CapellaFromJSONTyped(json, false);
}
export function CapellaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capella {
if (json == null) {
return json;
}
return {
'name': json['name'],
'type': json['type'],
'config': CAPELLAAuthConfigFromJSON(json['config']),
};
}
export function CapellaToJSON(json: any): Capella {
return CapellaToJSONTyped(json, false);
}
export function CapellaToJSONTyped(value?: Capella | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'type': value['type'],
'config': CAPELLAAuthConfigToJSON(value['config']),
};
}