/**
 * backend/api/pipeline.proto
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: version not set
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */ import * as url from 'url' ; import * as portableFetch from 'portable-fetch' ; import { Configuration } from './configuration' ; const BASE_PATH = 'http://localhost' . replace ( /\/+$/ , '' ) ; export export const COLLECTION_FORMATS = { csv : ',' , ssv : ' ' , tsv : '\t' , pipes : '|' , } ; export interface export interface FetchAPI { ( url , init ? ) : Promise < Response > ; } export interface export interface FetchArgs { url : string ; options : any ; } export class export class BaseAPI { protected configuration : Configuration ; constructor ( configuration ? , protected basePath = BASE_PATH , protected fetch = portableFetch ) { if ( configuration ) { this . configuration = configuration ; this . basePath = configuration . basePath || this . basePath ; } } } export class extends Error export class RequiredError extends Error { name : 'RequiredError' ; constructor ( public field , msg ? ) { super ( msg ) ; } } export interface export interface ApiGetTemplateResponse { type { string } memberof template ? : string ; } export interface export interface ApiListPipelineVersionsResponse { type { Array < ApiPipelineVersion > } memberof versions ? : Array < ApiPipelineVersion > ; type { string } memberof next_page_token ? : string ; type { number } memberof total_size ? : number ; } export interface export interface ApiListPipelinesResponse { type { Array < ApiPipeline > } memberof pipelines ? : Array < ApiPipeline > ; type { number } memberof total_size ? : number ; type { string } memberof next_page_token ? : string ; } export interface export interface ApiParameter { type { string } memberof name ? : string ; type { string } memberof value ? : string ; } export interface export interface ApiPipeline { type { string } memberof id ? : string ; type { Date } memberof created_at ? : Date ; type { string } memberof name ? : string ; type { string } memberof description ? : string ; type { Array < ApiParameter > } memberof parameters ? : Array < ApiParameter > ; type { ApiUrl } memberof url ? : ApiUrl ; type { string } memberof error ? : string ; type { ApiPipelineVersion } memberof default_version ? : ApiPipelineVersion ; type { Array < ApiResourceReference > } memberof resource_references ? : Array < ApiResourceReference > ; } export interface export interface ApiPipelineVersion { type { string } memberof id ? : string ; type { string } memberof name ? : string ; type { Date } memberof created_at ? : Date ; type { Array < ApiParameter > } memberof parameters ? : Array < ApiParameter > ; type { string } memberof code_source_url ? : string ; type { ApiUrl } memberof package_url ? : ApiUrl ; type { Array < ApiResourceReference > } memberof resource_references ? : Array < ApiResourceReference > ; type { string } memberof description ? : string ; } export enum { string } export enum ApiRelationship { UNKNOWNRELATIONSHIP = < any > 'UNKNOWN_RELATIONSHIP' , OWNER = < any > 'OWNER' , CREATOR = < any > 'CREATOR' } export interface export interface ApiResourceKey { type { ApiResourceType } memberof type ? : ApiResourceType ; type { string } memberof id ? : string ; } export interface export interface ApiResourceReference { type { ApiResourceKey } memberof key ? : ApiResourceKey ; type { string } memberof name ? : string ; type { ApiRelationship } memberof relationship ? : ApiRelationship ; } export enum { string } export enum ApiResourceType { UNKNOWNRESOURCETYPE = < any > 'UNKNOWN_RESOURCE_TYPE' , EXPERIMENT = < any > 'EXPERIMENT' , JOB = < any > 'JOB' , PIPELINE = < any > 'PIPELINE' , PIPELINEVERSION = < any > 'PIPELINE_VERSION' , NAMESPACE = < any > 'NAMESPACE' } export interface export interface ApiStatus { type { string } memberof error ? : string ; type { number } memberof code ? : number ; type { Array < ProtobufAny > } memberof details ? : Array < ProtobufAny > ; } export interface export interface ApiUrl { type { string } memberof pipeline_url ? : string ; } export interface export interface ProtobufAny { type { string } memberof type_url ? : string ; type { string } memberof value ? : string ; } export export const PipelineServiceApiFetchParamCreator = function ( configuration ? ) { return { summary param { ApiPipeline } body param { * } options throws createPipeline ( body , options = { } ) { if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling createPipeline.' ) ; } const localVarPath = `/apis/v1beta1/pipelines` ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'POST' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; const needsSerialization = < any > 'ApiPipeline' !== 'string' || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ; localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : body || '' ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { ApiPipelineVersion } body param { * } options throws createPipelineVersion ( body , options = { } ) { if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling createPipelineVersion.' ) ; } const localVarPath = `/apis/v1beta1/pipeline_versions` ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'POST' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; const needsSerialization = < any > 'ApiPipelineVersion' !== 'string' || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ; localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : body || '' ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } id param { * } options throws deletePipeline ( id , options = { } ) { if ( id === null || id === undefined ) { throw new RequiredError ( 'id' , 'Required parameter id was null or undefined when calling deletePipeline.' ) ; } const localVarPath = `/apis/v1beta1/pipelines/{id}` . replace ( `{${ 'id' }}` , encodeURIComponent ( String ( id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'DELETE' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } version_id param { * } options throws deletePipelineVersion ( version_id , options = { } ) { if ( version_id === null || version_id === undefined ) { throw new RequiredError ( 'version_id' , 'Required parameter version_id was null or undefined when calling deletePipelineVersion.' ) ; } const localVarPath = `/apis/v1beta1/pipeline_versions/{version_id}` . replace ( `{${ 'version_id' }}` , encodeURIComponent ( String ( version_id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'DELETE' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } id param { * } options throws getPipeline ( id , options = { } ) { if ( id === null || id === undefined ) { throw new RequiredError ( 'id' , 'Required parameter id was null or undefined when calling getPipeline.' ) ; } const localVarPath = `/apis/v1beta1/pipelines/{id}` . replace ( `{${ 'id' }}` , encodeURIComponent ( String ( id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'GET' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } version_id param { * } options throws getPipelineVersion ( version_id , options = { } ) { if ( version_id === null || version_id === undefined ) { throw new RequiredError ( 'version_id' , 'Required parameter version_id was null or undefined when calling getPipelineVersion.' ) ; } const localVarPath = `/apis/v1beta1/pipeline_versions/{version_id}` . replace ( `{${ 'version_id' }}` , encodeURIComponent ( String ( version_id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'GET' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } version_id param { * } options throws getPipelineVersionTemplate ( version_id , options = { } ) { if ( version_id === null || version_id === undefined ) { throw new RequiredError ( 'version_id' , 'Required parameter version_id was null or undefined when calling getPipelineVersionTemplate.' ) ; } const localVarPath = `/apis/v1beta1/pipeline_versions/{version_id}/templates` . replace ( `{${ 'version_id' }}` , encodeURIComponent ( String ( version_id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'GET' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } id param { * } options throws getTemplate ( id , options = { } ) { if ( id === null || id === undefined ) { throw new RequiredError ( 'id' , 'Required parameter id was null or undefined when calling getTemplate.' ) ; } const localVarPath = `/apis/v1beta1/pipelines/{id}/templates` . replace ( `{${ 'id' }}` , encodeURIComponent ( String ( id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'GET' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_key_type param { string } resource_key_id param { number } page_size param { string } page_token param { string } sort_by param { string } filter param { * } options throws listPipelineVersions ( resource_key_type ? , resource_key_id ? , page_size ? , page_token ? , sort_by ? , filter ? , options = { } ) { const localVarPath = `/apis/v1beta1/pipeline_versions` ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'GET' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } if ( resource_key_type !== undefined ) { localVarQueryParameter [ 'resource_key.type' ] = resource_key_type ; } if ( resource_key_id !== undefined ) { localVarQueryParameter [ 'resource_key.id' ] = resource_key_id ; } if ( page_size !== undefined ) { localVarQueryParameter [ 'page_size' ] = page_size ; } if ( page_token !== undefined ) { localVarQueryParameter [ 'page_token' ] = page_token ; } if ( sort_by !== undefined ) { localVarQueryParameter [ 'sort_by' ] = sort_by ; } if ( filter !== undefined ) { localVarQueryParameter [ 'filter' ] = filter ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } page_token param { number } page_size param { string } sort_by param { string } filter param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { * } options throws listPipelines ( page_token ? , page_size ? , sort_by ? , filter ? , resource_reference_key_type ? , resource_reference_key_id ? , options = { } ) { const localVarPath = `/apis/v1beta1/pipelines` ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'GET' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } if ( page_token !== undefined ) { localVarQueryParameter [ 'page_token' ] = page_token ; } if ( page_size !== undefined ) { localVarQueryParameter [ 'page_size' ] = page_size ; } if ( sort_by !== undefined ) { localVarQueryParameter [ 'sort_by' ] = sort_by ; } if ( filter !== undefined ) { localVarQueryParameter [ 'filter' ] = filter ; } if ( resource_reference_key_type !== undefined ) { localVarQueryParameter [ 'resource_reference_key.type' ] = resource_reference_key_type ; } if ( resource_reference_key_id !== undefined ) { localVarQueryParameter [ 'resource_reference_key.id' ] = resource_reference_key_id ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } pipeline_id param { string } version_id param { * } options throws updatePipelineDefaultVersion ( pipeline_id , version_id , options = { } ) { if ( pipeline_id === null || pipeline_id === undefined ) { throw new RequiredError ( 'pipeline_id' , 'Required parameter pipeline_id was null or undefined when calling updatePipelineDefaultVersion.' ) ; } if ( version_id === null || version_id === undefined ) { throw new RequiredError ( 'version_id' , 'Required parameter version_id was null or undefined when calling updatePipelineDefaultVersion.' ) ; } const localVarPath = `/apis/v1beta1/pipelines/{pipeline_id}/default_version/{version_id}` . replace ( `{${ 'pipeline_id' }}` , encodeURIComponent ( String ( pipeline_id ) ) ) . replace ( `{${ 'version_id' }}` , encodeURIComponent ( String ( version_id ) ) ) ; const localVarUrlObj = url . parse ( localVarPath , true ) ; const localVarRequestOptions = Object . assign ( { method : 'POST' } , options ) ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( configuration && configuration . apiKey ) { const localVarApiKeyValue = typeof configuration . apiKey === 'function' ? configuration . apiKey ( 'authorization' ) : configuration . apiKey ; localVarHeaderParameter [ 'authorization' ] = localVarApiKeyValue ; } localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ; delete localVarUrlObj . search ; localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , } ; } ; export export const PipelineServiceApiFp = function ( configuration ? ) { return { summary param { ApiPipeline } body param { * } options throws createPipeline ( body , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . createPipeline ( body , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { ApiPipelineVersion } body param { * } options throws createPipelineVersion ( body , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . createPipelineVersion ( body , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } id param { * } options throws deletePipeline ( id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . deletePipeline ( id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } version_id param { * } options throws deletePipelineVersion ( version_id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . deletePipelineVersion ( version_id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } id param { * } options throws getPipeline ( id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . getPipeline ( id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } version_id param { * } options throws getPipelineVersion ( version_id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . getPipelineVersion ( version_id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } version_id param { * } options throws getPipelineVersionTemplate ( version_id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . getPipelineVersionTemplate ( version_id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } id param { * } options throws getTemplate ( id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . getTemplate ( id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_key_type param { string } resource_key_id param { number } page_size param { string } page_token param { string } sort_by param { string } filter param { * } options throws listPipelineVersions ( resource_key_type ? , resource_key_id ? , page_size ? , page_token ? , sort_by ? , filter ? , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . listPipelineVersions ( resource_key_type , resource_key_id , page_size , page_token , sort_by , filter , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } page_token param { number } page_size param { string } sort_by param { string } filter param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { * } options throws listPipelines ( page_token ? , page_size ? , sort_by ? , filter ? , resource_reference_key_type ? , resource_reference_key_id ? , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . listPipelines ( page_token , page_size , sort_by , filter , resource_reference_key_type , resource_reference_key_id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , summary param { string } pipeline_id param { string } version_id param { * } options throws updatePipelineDefaultVersion ( pipeline_id , version_id , options ? ) { const localVarFetchArgs = PipelineServiceApiFetchParamCreator ( configuration ) . updatePipelineDefaultVersion ( pipeline_id , version_id , options ) ; return ( fetch = portableFetch , basePath = BASE_PATH ) => { return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( response => { if ( response . status >= 200 && response . status < 300 ) { return response . json ( ) ; } else { throw response ; } } ) ; } ; } , } ; } ; export export const PipelineServiceApiFactory = function ( configuration ? , fetch ? , basePath ? ) { return { summary param { ApiPipeline } body param { * } options throws createPipeline ( body , options ? ) { return PipelineServiceApiFp ( configuration ) . createPipeline ( body , options ) ( fetch , basePath ) ; } , summary param { ApiPipelineVersion } body param { * } options throws createPipelineVersion ( body , options ? ) { return PipelineServiceApiFp ( configuration ) . createPipelineVersion ( body , options ) ( fetch , basePath ) ; } , summary param { string } id param { * } options throws deletePipeline ( id , options ? ) { return PipelineServiceApiFp ( configuration ) . deletePipeline ( id , options ) ( fetch , basePath ) ; } , summary param { string } version_id param { * } options throws deletePipelineVersion ( version_id , options ? ) { return PipelineServiceApiFp ( configuration ) . deletePipelineVersion ( version_id , options ) ( fetch , basePath ) ; } , summary param { string } id param { * } options throws getPipeline ( id , options ? ) { return PipelineServiceApiFp ( configuration ) . getPipeline ( id , options ) ( fetch , basePath ) ; } , summary param { string } version_id param { * } options throws getPipelineVersion ( version_id , options ? ) { return PipelineServiceApiFp ( configuration ) . getPipelineVersion ( version_id , options ) ( fetch , basePath ) ; } , summary param { string } version_id param { * } options throws getPipelineVersionTemplate ( version_id , options ? ) { return PipelineServiceApiFp ( configuration ) . getPipelineVersionTemplate ( version_id , options ) ( fetch , basePath ) ; } , summary param { string } id param { * } options throws getTemplate ( id , options ? ) { return PipelineServiceApiFp ( configuration ) . getTemplate ( id , options ) ( fetch , basePath ) ; } , summary param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_key_type param { string } resource_key_id param { number } page_size param { string } page_token param { string } sort_by param { string } filter param { * } options throws listPipelineVersions ( resource_key_type ? , resource_key_id ? , page_size ? , page_token ? , sort_by ? , filter ? , options ? ) { return PipelineServiceApiFp ( configuration ) . listPipelineVersions ( resource_key_type , resource_key_id , page_size , page_token , sort_by , filter , options ) ( fetch , basePath ) ; } , summary param { string } page_token param { number } page_size param { string } sort_by param { string } filter param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { * } options throws listPipelines ( page_token ? , page_size ? , sort_by ? , filter ? , resource_reference_key_type ? , resource_reference_key_id ? , options ? ) { return PipelineServiceApiFp ( configuration ) . listPipelines ( page_token , page_size , sort_by , filter , resource_reference_key_type , resource_reference_key_id , options ) ( fetch , basePath ) ; } , summary param { string } pipeline_id param { string } version_id param { * } options throws updatePipelineDefaultVersion ( pipeline_id , version_id , options ? ) { return PipelineServiceApiFp ( configuration ) . updatePipelineDefaultVersion ( pipeline_id , version_id , options ) ( fetch , basePath ) ; } , } ; } ; export class extends BaseAPI export class PipelineServiceApi extends BaseAPI { summary param { ApiPipeline } body param { * } options throws memberof public createPipeline ( body , options ? ) { return PipelineServiceApiFp ( this . configuration ) . createPipeline ( body , options ) ( this . fetch , this . basePath ) ; } summary param { ApiPipelineVersion } body param { * } options throws memberof public createPipelineVersion ( body , options ? ) { return PipelineServiceApiFp ( this . configuration ) . createPipelineVersion ( body , options ) ( this . fetch , this . basePath ) ; } summary param { string } id param { * } options throws memberof public deletePipeline ( id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . deletePipeline ( id , options ) ( this . fetch , this . basePath ) ; } summary param { string } version_id param { * } options throws memberof public deletePipelineVersion ( version_id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . deletePipelineVersion ( version_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } id param { * } options throws memberof public getPipeline ( id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . getPipeline ( id , options ) ( this . fetch , this . basePath ) ; } summary param { string } version_id param { * } options throws memberof public getPipelineVersion ( version_id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . getPipelineVersion ( version_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } version_id param { * } options throws memberof public getPipelineVersionTemplate ( version_id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . getPipelineVersionTemplate ( version_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } id param { * } options throws memberof public getTemplate ( id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . getTemplate ( id , options ) ( this . fetch , this . basePath ) ; } summary param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_key_type param { string } resource_key_id param { number } page_size param { string } page_token param { string } sort_by param { string } filter param { * } options throws memberof public listPipelineVersions ( resource_key_type ? , resource_key_id ? , page_size ? , page_token ? , sort_by ? , filter ? , options ? ) { return PipelineServiceApiFp ( this . configuration ) . listPipelineVersions ( resource_key_type , resource_key_id , page_size , page_token , sort_by , filter , options ) ( this . fetch , this . basePath ) ; } summary param { string } page_token param { number } page_size param { string } sort_by param { string } filter param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { * } options throws memberof public listPipelines ( page_token ? , page_size ? , sort_by ? , filter ? , resource_reference_key_type ? , resource_reference_key_id ? , options ? ) { return PipelineServiceApiFp ( this . configuration ) . listPipelines ( page_token , page_size , sort_by , filter , resource_reference_key_type , resource_reference_key_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } pipeline_id param { string } version_id param { * } options throws memberof public updatePipelineDefaultVersion ( pipeline_id , version_id , options ? ) { return PipelineServiceApiFp ( this . configuration ) . updatePipelineDefaultVersion ( pipeline_id , version_id , options ) ( this . fetch , this . basePath ) ; } }