UNPKG

@vectorize-io/vectorize-client

Version:
102 lines (88 loc) 3.05 kB
/* 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 { AIPlatformTypeForPipeline } from './AIPlatformTypeForPipeline'; import { AIPlatformTypeForPipelineFromJSON, AIPlatformTypeForPipelineFromJSONTyped, AIPlatformTypeForPipelineToJSON, AIPlatformTypeForPipelineToJSONTyped, } from './AIPlatformTypeForPipeline'; import type { AIPlatformConfigSchema } from './AIPlatformConfigSchema'; import { AIPlatformConfigSchemaFromJSON, AIPlatformConfigSchemaFromJSONTyped, AIPlatformConfigSchemaToJSON, AIPlatformConfigSchemaToJSONTyped, } from './AIPlatformConfigSchema'; /** * * @export * @interface PipelineAIPlatformConnectorSchema */ export interface PipelineAIPlatformConnectorSchema { /** * * @type {string} * @memberof PipelineAIPlatformConnectorSchema */ id: string; /** * * @type {AIPlatformTypeForPipeline} * @memberof PipelineAIPlatformConnectorSchema */ type: AIPlatformTypeForPipeline; /** * * @type {AIPlatformConfigSchema} * @memberof PipelineAIPlatformConnectorSchema */ config: AIPlatformConfigSchema; } /** * Check if a given object implements the PipelineAIPlatformConnectorSchema interface. */ export function instanceOfPipelineAIPlatformConnectorSchema(value: object): value is PipelineAIPlatformConnectorSchema { if (!('id' in value) || value['id'] === 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 PipelineAIPlatformConnectorSchemaFromJSON(json: any): PipelineAIPlatformConnectorSchema { return PipelineAIPlatformConnectorSchemaFromJSONTyped(json, false); } export function PipelineAIPlatformConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineAIPlatformConnectorSchema { if (json == null) { return json; } return { 'id': json['id'], 'type': AIPlatformTypeForPipelineFromJSON(json['type']), 'config': AIPlatformConfigSchemaFromJSON(json['config']), }; } export function PipelineAIPlatformConnectorSchemaToJSON(json: any): PipelineAIPlatformConnectorSchema { return PipelineAIPlatformConnectorSchemaToJSONTyped(json, false); } export function PipelineAIPlatformConnectorSchemaToJSONTyped(value?: PipelineAIPlatformConnectorSchema | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': AIPlatformTypeForPipelineToJSON(value['type']), 'config': AIPlatformConfigSchemaToJSON(value['config']), }; }