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.Body; 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 TasksClient { /** * Retrieves the most recent tasks meeting the given criteria */ @GET("api/tasks/") Single getApiTasks(@Query("process_definition_name") String processDefinitionName, @Query("task_definition_name") String taskDefinitionName, @Query("allowed_statuses") TaskStatus[] allowedStatuses, @Query("start_time") DateTime startTime, @Query("end_time") DateTime endTime, @Query("limit") Integer limit); /** * Appends log entries for a task; intended for use within the task executable */ @POST("api/tasks/{task_id}/log_entries") Single postApiTasksTaskIdLogEntries(@Body LogEntry[] logEntry, @Path("task_id") UUID taskId); /** * Appends metadata entries for a task; intended for use within the task executable */ @POST("api/tasks/{task_id}/metadata") Single postApiTasksTaskIdMetadata(@Body MetadataEntry[] metadataEntry, @Path("task_id") UUID taskId); /** * Marks the task as having succeeded */ @POST("api/tasks/{task_id}/succeed") Single postApiTasksTaskIdSucceed(@Path("task_id") UUID taskId); /** * Marks the task as having failed */ @POST("api/tasks/{task_id}/fail") Single postApiTasksTaskIdFail(@Path("task_id") UUID taskId); }