UNPKG

@vectorize-io/vectorize-client

Version:
84 lines (72 loc) 2.46 kB
/* tslint:disable */ /* eslint-disable */ /** * Vectorize API (Beta) * API for Vectorize services * * The version of the OpenAPI document: 0.0.1 * * * 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 { CreatedSourceConnector } from './CreatedSourceConnector'; import { CreatedSourceConnectorFromJSON, CreatedSourceConnectorFromJSONTyped, CreatedSourceConnectorToJSON, CreatedSourceConnectorToJSONTyped, } from './CreatedSourceConnector'; /** * * @export * @interface CreateSourceConnectorResponse */ export interface CreateSourceConnectorResponse { /** * * @type {string} * @memberof CreateSourceConnectorResponse */ message: string; /** * * @type {Array<CreatedSourceConnector>} * @memberof CreateSourceConnectorResponse */ connectors: Array<CreatedSourceConnector>; } /** * Check if a given object implements the CreateSourceConnectorResponse interface. */ export function instanceOfCreateSourceConnectorResponse(value: object): value is CreateSourceConnectorResponse { if (!('message' in value) || value['message'] === undefined) return false; if (!('connectors' in value) || value['connectors'] === undefined) return false; return true; } export function CreateSourceConnectorResponseFromJSON(json: any): CreateSourceConnectorResponse { return CreateSourceConnectorResponseFromJSONTyped(json, false); } export function CreateSourceConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSourceConnectorResponse { if (json == null) { return json; } return { 'message': json['message'], 'connectors': ((json['connectors'] as Array<any>).map(CreatedSourceConnectorFromJSON)), }; } export function CreateSourceConnectorResponseToJSON(json: any): CreateSourceConnectorResponse { return CreateSourceConnectorResponseToJSONTyped(json, false); } export function CreateSourceConnectorResponseToJSONTyped(value?: CreateSourceConnectorResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'connectors': ((value['connectors'] as Array<any>).map(CreatedSourceConnectorToJSON)), }; }