package com.hbc.svc.sundial.v2.models import com.hbc.svc.sundial.v2.enums.ProcessStatus import io.reactivex.Single import java.util.UUID import kotlin.Int import kotlin.String import kotlin.Unit import kotlin.collections.List import org.threeten.bp.Instant import retrofit2.Response import retrofit2.http.GET import retrofit2.http.POST import retrofit2.http.Path import retrofit2.http.Query /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ interface ProcessesClient { /** * Retrieves a list of process runs based on search parameters. */ @GET(value="api/processes/") fun getApiProcesses( @Query(value="process_definition_name") processDefinitionName: String?, @Query(value="start_time") startTime: Instant?, @Query(value="end_time") endTime: Instant?, @Query(value="max_records") maxRecords: Int?, @Query(value="allowed_statuses") allowedStatuses: List ): Single>> /** * Retrieves a process run */ @GET(value="api/processes/{process_id}") fun getApiProcessesProcessId(@Path(value="process_id") processId: UUID): Single> /** * Retries a failed process run by restarting failed tasks; tasks will be given a single * additional attempt */ @POST(value="api/processes/{process_id}/retry") fun postApiProcessesProcessIdRetry(@Path(value="process_id") processId: UUID): Single> /** * Terminates an active process */ @POST(value="api/processes/{process_id}/kill") fun postApiProcessesProcessIdKill(@Path(value="process_id") processId: UUID): Single> }