package com.hbc.svc.sundial.v2.models; import io.reactivex.Single; import java.lang.Integer; import java.lang.String; import java.lang.Void; import java.util.UUID; import org.joda.time.DateTime; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Path; import retrofit2.http.Query; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 2.0.0-dev * User agent: apibuilder app.apibuilder.io/hbc/svc-sundial/2.0.0-dev/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * */ public interface ProcessesClient { /** * Retrieves a list of process runs based on search parameters. */ @GET("api/processes/") Single getApiProcesses(@Query("process_definition_name") String processDefinitionName, @Query("start_time") DateTime startTime, @Query("end_time") DateTime endTime, @Query("max_records") Integer maxRecords, @Query("allowed_statuses") ProcessStatus[] allowedStatuses); /** * Retrieves a process run */ @GET("api/processes/{process_id}") Single getApiProcessesProcessId(@Path("process_id") UUID processId); /** * Retries a failed process run by restarting failed tasks; tasks will be given a single additional attempt */ @POST("api/processes/{process_id}/retry") Single postApiProcessesProcessIdRetry(@Path("process_id") UUID processId); /** * Terminates an active process */ @POST("api/processes/{process_id}/kill") Single postApiProcessesProcessIdKill(@Path("process_id") UUID processId); }