UNPKG

@vectorize-io/vectorize-client

Version:
84 lines (72 loc) 2.51 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 { CreatedAIPlatformConnector } from './CreatedAIPlatformConnector'; import { CreatedAIPlatformConnectorFromJSON, CreatedAIPlatformConnectorFromJSONTyped, CreatedAIPlatformConnectorToJSON, CreatedAIPlatformConnectorToJSONTyped, } from './CreatedAIPlatformConnector'; /** * * @export * @interface CreateAIPlatformConnectorResponse */ export interface CreateAIPlatformConnectorResponse { /** * * @type {string} * @memberof CreateAIPlatformConnectorResponse */ message: string; /** * * @type {CreatedAIPlatformConnector} * @memberof CreateAIPlatformConnectorResponse */ connector: CreatedAIPlatformConnector; } /** * Check if a given object implements the CreateAIPlatformConnectorResponse interface. */ export function instanceOfCreateAIPlatformConnectorResponse(value: object): value is CreateAIPlatformConnectorResponse { if (!('message' in value) || value['message'] === undefined) return false; if (!('connector' in value) || value['connector'] === undefined) return false; return true; } export function CreateAIPlatformConnectorResponseFromJSON(json: any): CreateAIPlatformConnectorResponse { return CreateAIPlatformConnectorResponseFromJSONTyped(json, false); } export function CreateAIPlatformConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAIPlatformConnectorResponse { if (json == null) { return json; } return { 'message': json['message'], 'connector': CreatedAIPlatformConnectorFromJSON(json['connector']), }; } export function CreateAIPlatformConnectorResponseToJSON(json: any): CreateAIPlatformConnectorResponse { return CreateAIPlatformConnectorResponseToJSONTyped(json, false); } export function CreateAIPlatformConnectorResponseToJSONTyped(value?: CreateAIPlatformConnectorResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'connector': CreatedAIPlatformConnectorToJSON(value['connector']), }; }