UNPKG

@vectorize-io/vectorize-client

Version:
84 lines (72 loc) 2.29 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 { CreatePipelineResponseData } from './CreatePipelineResponseData'; import { CreatePipelineResponseDataFromJSON, CreatePipelineResponseDataFromJSONTyped, CreatePipelineResponseDataToJSON, CreatePipelineResponseDataToJSONTyped, } from './CreatePipelineResponseData'; /** * * @export * @interface CreatePipelineResponse */ export interface CreatePipelineResponse { /** * * @type {string} * @memberof CreatePipelineResponse */ message: string; /** * * @type {CreatePipelineResponseData} * @memberof CreatePipelineResponse */ data: CreatePipelineResponseData; } /** * Check if a given object implements the CreatePipelineResponse interface. */ export function instanceOfCreatePipelineResponse(value: object): value is CreatePipelineResponse { if (!('message' in value) || value['message'] === undefined) return false; if (!('data' in value) || value['data'] === undefined) return false; return true; } export function CreatePipelineResponseFromJSON(json: any): CreatePipelineResponse { return CreatePipelineResponseFromJSONTyped(json, false); } export function CreatePipelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePipelineResponse { if (json == null) { return json; } return { 'message': json['message'], 'data': CreatePipelineResponseDataFromJSON(json['data']), }; } export function CreatePipelineResponseToJSON(json: any): CreatePipelineResponse { return CreatePipelineResponseToJSONTyped(json, false); } export function CreatePipelineResponseToJSONTyped(value?: CreatePipelineResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'data': CreatePipelineResponseDataToJSON(value['data']), }; }