/* 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 { PipelineSummary } from './PipelineSummary';
import {
    PipelineSummaryFromJSON,
    PipelineSummaryFromJSONTyped,
    PipelineSummaryToJSON,
    PipelineSummaryToJSONTyped,
} from './PipelineSummary';

/**
 * 
 * @export
 * @interface GetPipelineResponse
 */
export interface GetPipelineResponse {
    /**
     * 
     * @type {string}
     * @memberof GetPipelineResponse
     */
    message: string;
    /**
     * 
     * @type {PipelineSummary}
     * @memberof GetPipelineResponse
     */
    data: PipelineSummary;
}

/**
 * Check if a given object implements the GetPipelineResponse interface.
 */
export function instanceOfGetPipelineResponse(value: object): value is GetPipelineResponse {
    if (!('message' in value) || value['message'] === undefined) return false;
    if (!('data' in value) || value['data'] === undefined) return false;
    return true;
}

export function GetPipelineResponseFromJSON(json: any): GetPipelineResponse {
    return GetPipelineResponseFromJSONTyped(json, false);
}

export function GetPipelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPipelineResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'message': json['message'],
        'data': PipelineSummaryFromJSON(json['data']),
    };
}

export function GetPipelineResponseToJSON(json: any): GetPipelineResponse {
    return GetPipelineResponseToJSONTyped(json, false);
}

export function GetPipelineResponseToJSONTyped(value?: GetPipelineResponse | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'message': value['message'],
        'data': PipelineSummaryToJSON(value['data']),
    };
}

