/**
 * backend/api/run.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 ApiListRunsResponse { type { Array < ApiRun > } memberof runs ? : Array < ApiRun > ; 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 ApiPipelineRuntime { type { string } memberof pipeline_manifest ? : string ; type { string } memberof workflow_manifest ? : string ; } export interface export interface ApiPipelineSpec { type { string } memberof pipeline_id ? : string ; type { string } memberof pipeline_name ? : string ; type { string } memberof workflow_manifest ? : string ; type { string } memberof pipeline_manifest ? : string ; type { Array < ApiParameter > } memberof parameters ? : Array < ApiParameter > ; } export interface export interface ApiReadArtifactResponse { type { string } memberof data ? : string ; } export enum { string } export enum ApiRelationship { UNKNOWNRELATIONSHIP = < any > 'UNKNOWN_RELATIONSHIP' , OWNER = < any > 'OWNER' , CREATOR = < any > 'CREATOR' } export interface export interface ApiReportRunMetricsRequest { type { string } memberof run_id ? : string ; type { Array < ApiRunMetric > } memberof metrics ? : Array < ApiRunMetric > ; } export interface export interface ApiReportRunMetricsResponse { type { Array < ReportRunMetricsResponseReportRunMetricResult > } memberof results ? : Array < ReportRunMetricsResponseReportRunMetricResult > ; } 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 ApiRun { type { string } memberof id ? : string ; type { string } memberof name ? : string ; type { ApiRunStorageState } memberof storage_state ? : ApiRunStorageState ; type { string } memberof description ? : string ; type { ApiPipelineSpec } memberof pipeline_spec ? : ApiPipelineSpec ; type { Array < ApiResourceReference > } memberof resource_references ? : Array < ApiResourceReference > ; type { string } memberof service_account ? : string ; type { Date } memberof created_at ? : Date ; type { Date } memberof scheduled_at ? : Date ; type { Date } memberof finished_at ? : Date ; type { string } memberof status ? : string ; type { string } memberof error ? : string ; type { Array < ApiRunMetric > } memberof metrics ? : Array < ApiRunMetric > ; } export interface export interface ApiRunDetail { type { ApiRun } memberof run ? : ApiRun ; type { ApiPipelineRuntime } memberof pipeline_runtime ? : ApiPipelineRuntime ; } export interface export interface ApiRunMetric { type { string } memberof name ? : string ; type { string } memberof node_id ? : string ; type { number } memberof number_value ? : number ; type { RunMetricFormat } memberof format ? : RunMetricFormat ; } export enum { string } export enum ApiRunStorageState { AVAILABLE = < any > 'STORAGESTATE_AVAILABLE' , ARCHIVED = < any > 'STORAGESTATE_ARCHIVED' } 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 ProtobufAny { type { string } memberof type_url ? : string ; type { string } memberof value ? : string ; } export interface export interface ReportRunMetricsResponseReportRunMetricResult { type { string } memberof metric_name ? : string ; type { string } memberof metric_node_id ? : string ; type { ReportRunMetricsResponseReportRunMetricResultStatus } memberof status ? : ReportRunMetricsResponseReportRunMetricResultStatus ; type { string } memberof message ? : string ; } export enum { string } export enum ReportRunMetricsResponseReportRunMetricResultStatus { UNSPECIFIED = < any > 'UNSPECIFIED' , OK = < any > 'OK' , INVALIDARGUMENT = < any > 'INVALID_ARGUMENT' , DUPLICATEREPORTING = < any > 'DUPLICATE_REPORTING' , INTERNALERROR = < any > 'INTERNAL_ERROR' } export enum { string } export enum RunMetricFormat { UNSPECIFIED = < any > 'UNSPECIFIED' , RAW = < any > 'RAW' , PERCENTAGE = < any > 'PERCENTAGE' } export export const RunServiceApiFetchParamCreator = function ( configuration ? ) { return { summary param { string } id param { * } options throws archiveRun ( id , options = { } ) { if ( id === null || id === undefined ) { throw new RequiredError ( 'id' , 'Required parameter id was null or undefined when calling archiveRun.' ) ; } const localVarPath = `/apis/v1beta1/runs/{id}:archive` . replace ( `{${ 'id' }}` , encodeURIComponent ( String ( 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 , } ; } , summary param { ApiRun } body param { * } options throws createRun ( body , options = { } ) { if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling createRun.' ) ; } const localVarPath = `/apis/v1beta1/runs` ; 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 > 'ApiRun' !== '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 deleteRun ( id , options = { } ) { if ( id === null || id === undefined ) { throw new RequiredError ( 'id' , 'Required parameter id was null or undefined when calling deleteRun.' ) ; } const localVarPath = `/apis/v1beta1/runs/{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 } run_id param { * } options throws getRun ( run_id , options = { } ) { if ( run_id === null || run_id === undefined ) { throw new RequiredError ( 'run_id' , 'Required parameter run_id was null or undefined when calling getRun.' ) ; } const localVarPath = `/apis/v1beta1/runs/{run_id}` . replace ( `{${ 'run_id' }}` , encodeURIComponent ( String ( run_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 } page_token param { number } page_size param { string } sort_by param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { string } filter param { * } options throws listRuns ( page_token ? , page_size ? , sort_by ? , resource_reference_key_type ? , resource_reference_key_id ? , filter ? , options = { } ) { const localVarPath = `/apis/v1beta1/runs` ; 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 ( 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 ; } 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 } run_id param { string } node_id param { string } artifact_name param { * } options throws readArtifact ( run_id , node_id , artifact_name , options = { } ) { if ( run_id === null || run_id === undefined ) { throw new RequiredError ( 'run_id' , 'Required parameter run_id was null or undefined when calling readArtifact.' ) ; } if ( node_id === null || node_id === undefined ) { throw new RequiredError ( 'node_id' , 'Required parameter node_id was null or undefined when calling readArtifact.' ) ; } if ( artifact_name === null || artifact_name === undefined ) { throw new RequiredError ( 'artifact_name' , 'Required parameter artifact_name was null or undefined when calling readArtifact.' ) ; } const localVarPath = `/apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read` . replace ( `{${ 'run_id' }}` , encodeURIComponent ( String ( run_id ) ) ) . replace ( `{${ 'node_id' }}` , encodeURIComponent ( String ( node_id ) ) ) . replace ( `{${ 'artifact_name' }}` , encodeURIComponent ( String ( artifact_name ) ) ) ; 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 } run_id param { ApiReportRunMetricsRequest } body param { * } options throws reportRunMetrics ( run_id , body , options = { } ) { if ( run_id === null || run_id === undefined ) { throw new RequiredError ( 'run_id' , 'Required parameter run_id was null or undefined when calling reportRunMetrics.' ) ; } if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling reportRunMetrics.' ) ; } const localVarPath = `/apis/v1beta1/runs/{run_id}:reportMetrics` . replace ( `{${ 'run_id' }}` , encodeURIComponent ( String ( run_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 ; } 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 > 'ApiReportRunMetricsRequest' !== 'string' || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ; localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : body || '' ; return { url : url . format ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , summary param { string } run_id param { * } options throws retryRun ( run_id , options = { } ) { if ( run_id === null || run_id === undefined ) { throw new RequiredError ( 'run_id' , 'Required parameter run_id was null or undefined when calling retryRun.' ) ; } const localVarPath = `/apis/v1beta1/runs/{run_id}/retry` . replace ( `{${ 'run_id' }}` , encodeURIComponent ( String ( run_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 , } ; } , summary param { string } run_id param { * } options throws terminateRun ( run_id , options = { } ) { if ( run_id === null || run_id === undefined ) { throw new RequiredError ( 'run_id' , 'Required parameter run_id was null or undefined when calling terminateRun.' ) ; } const localVarPath = `/apis/v1beta1/runs/{run_id}/terminate` . replace ( `{${ 'run_id' }}` , encodeURIComponent ( String ( run_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 , } ; } , summary param { string } id param { * } options throws unarchiveRun ( id , options = { } ) { if ( id === null || id === undefined ) { throw new RequiredError ( 'id' , 'Required parameter id was null or undefined when calling unarchiveRun.' ) ; } const localVarPath = `/apis/v1beta1/runs/{id}:unarchive` . replace ( `{${ 'id' }}` , encodeURIComponent ( String ( 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 RunServiceApiFp = function ( configuration ? ) { return { summary param { string } id param { * } options throws archiveRun ( id , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . archiveRun ( 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 { ApiRun } body param { * } options throws createRun ( body , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . createRun ( 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 deleteRun ( id , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . deleteRun ( 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 } run_id param { * } options throws getRun ( run_id , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . getRun ( run_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 } page_token param { number } page_size param { string } sort_by param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { string } filter param { * } options throws listRuns ( page_token ? , page_size ? , sort_by ? , resource_reference_key_type ? , resource_reference_key_id ? , filter ? , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . listRuns ( page_token , page_size , sort_by , resource_reference_key_type , resource_reference_key_id , 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 } run_id param { string } node_id param { string } artifact_name param { * } options throws readArtifact ( run_id , node_id , artifact_name , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . readArtifact ( run_id , node_id , artifact_name , 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 } run_id param { ApiReportRunMetricsRequest } body param { * } options throws reportRunMetrics ( run_id , body , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . reportRunMetrics ( run_id , 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 } run_id param { * } options throws retryRun ( run_id , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . retryRun ( run_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 } run_id param { * } options throws terminateRun ( run_id , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . terminateRun ( run_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 unarchiveRun ( id , options ? ) { const localVarFetchArgs = RunServiceApiFetchParamCreator ( configuration ) . unarchiveRun ( 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 RunServiceApiFactory = function ( configuration ? , fetch ? , basePath ? ) { return { summary param { string } id param { * } options throws archiveRun ( id , options ? ) { return RunServiceApiFp ( configuration ) . archiveRun ( id , options ) ( fetch , basePath ) ; } , summary param { ApiRun } body param { * } options throws createRun ( body , options ? ) { return RunServiceApiFp ( configuration ) . createRun ( body , options ) ( fetch , basePath ) ; } , summary param { string } id param { * } options throws deleteRun ( id , options ? ) { return RunServiceApiFp ( configuration ) . deleteRun ( id , options ) ( fetch , basePath ) ; } , summary param { string } run_id param { * } options throws getRun ( run_id , options ? ) { return RunServiceApiFp ( configuration ) . getRun ( run_id , options ) ( fetch , basePath ) ; } , summary param { string } page_token param { number } page_size param { string } sort_by param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { string } filter param { * } options throws listRuns ( page_token ? , page_size ? , sort_by ? , resource_reference_key_type ? , resource_reference_key_id ? , filter ? , options ? ) { return RunServiceApiFp ( configuration ) . listRuns ( page_token , page_size , sort_by , resource_reference_key_type , resource_reference_key_id , filter , options ) ( fetch , basePath ) ; } , summary param { string } run_id param { string } node_id param { string } artifact_name param { * } options throws readArtifact ( run_id , node_id , artifact_name , options ? ) { return RunServiceApiFp ( configuration ) . readArtifact ( run_id , node_id , artifact_name , options ) ( fetch , basePath ) ; } , summary param { string } run_id param { ApiReportRunMetricsRequest } body param { * } options throws reportRunMetrics ( run_id , body , options ? ) { return RunServiceApiFp ( configuration ) . reportRunMetrics ( run_id , body , options ) ( fetch , basePath ) ; } , summary param { string } run_id param { * } options throws retryRun ( run_id , options ? ) { return RunServiceApiFp ( configuration ) . retryRun ( run_id , options ) ( fetch , basePath ) ; } , summary param { string } run_id param { * } options throws terminateRun ( run_id , options ? ) { return RunServiceApiFp ( configuration ) . terminateRun ( run_id , options ) ( fetch , basePath ) ; } , summary param { string } id param { * } options throws unarchiveRun ( id , options ? ) { return RunServiceApiFp ( configuration ) . unarchiveRun ( id , options ) ( fetch , basePath ) ; } , } ; } ; export class extends BaseAPI export class RunServiceApi extends BaseAPI { summary param { string } id param { * } options throws memberof public archiveRun ( id , options ? ) { return RunServiceApiFp ( this . configuration ) . archiveRun ( id , options ) ( this . fetch , this . basePath ) ; } summary param { ApiRun } body param { * } options throws memberof public createRun ( body , options ? ) { return RunServiceApiFp ( this . configuration ) . createRun ( body , options ) ( this . fetch , this . basePath ) ; } summary param { string } id param { * } options throws memberof public deleteRun ( id , options ? ) { return RunServiceApiFp ( this . configuration ) . deleteRun ( id , options ) ( this . fetch , this . basePath ) ; } summary param { string } run_id param { * } options throws memberof public getRun ( run_id , options ? ) { return RunServiceApiFp ( this . configuration ) . getRun ( run_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } page_token param { number } page_size param { string } sort_by param { 'UNKNOWN_RESOURCE_TYPE' | 'EXPERIMENT' | 'JOB' | 'PIPELINE' | 'PIPELINE_VERSION' | 'NAMESPACE' } resource_reference_key_type param { string } resource_reference_key_id param { string } filter param { * } options throws memberof public listRuns ( page_token ? , page_size ? , sort_by ? , resource_reference_key_type ? , resource_reference_key_id ? , filter ? , options ? ) { return RunServiceApiFp ( this . configuration ) . listRuns ( page_token , page_size , sort_by , resource_reference_key_type , resource_reference_key_id , filter , options ) ( this . fetch , this . basePath ) ; } summary param { string } run_id param { string } node_id param { string } artifact_name param { * } options throws memberof public readArtifact ( run_id , node_id , artifact_name , options ? ) { return RunServiceApiFp ( this . configuration ) . readArtifact ( run_id , node_id , artifact_name , options ) ( this . fetch , this . basePath ) ; } summary param { string } run_id param { ApiReportRunMetricsRequest } body param { * } options throws memberof public reportRunMetrics ( run_id , body , options ? ) { return RunServiceApiFp ( this . configuration ) . reportRunMetrics ( run_id , body , options ) ( this . fetch , this . basePath ) ; } summary param { string } run_id param { * } options throws memberof public retryRun ( run_id , options ? ) { return RunServiceApiFp ( this . configuration ) . retryRun ( run_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } run_id param { * } options throws memberof public terminateRun ( run_id , options ? ) { return RunServiceApiFp ( this . configuration ) . terminateRun ( run_id , options ) ( this . fetch , this . basePath ) ; } summary param { string } id param { * } options throws memberof public unarchiveRun ( id , options ? ) { return RunServiceApiFp ( this . configuration ) . unarchiveRun ( id , options ) ( this . fetch , this . basePath ) ; } }