Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2026-05-14 00:02:48 +00:00
parent df46b4857a
commit e3763c4892
8 changed files with 78 additions and 12 deletions
@@ -381,13 +381,19 @@ public interface AdminApi {
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param sort sort jobs by attribute. Supported values are \"id\". Default is
* \"id\" (optional)
* @param order sort order, either \"asc\" (ascending) or \"desc\"
* (descending). Default is \"asc\" (optional)
* @return Call<ActionWorkflowJobsResponse>
*/
@GET("admin/actions/jobs")
Call<ActionWorkflowJobsResponse> listAdminWorkflowJobs(
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("sort") String sort,
@retrofit2.http.Query("order") String order);
/**
* Lists all runs
@@ -623,6 +623,10 @@ public interface RepositoryApi {
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param sort sort jobs by attribute. Supported values are \&quot;id\&quot;. Default is
* \&quot;id\&quot; (optional)
* @param order sort order, either \&quot;asc\&quot; (ascending) or \&quot;desc\&quot;
* (descending). Default is \&quot;asc\&quot; (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/jobs")
@@ -631,7 +635,9 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("sort") String sort,
@retrofit2.http.Query("order") String order);
/**
* Lists all jobs for a workflow run attempt
@@ -666,6 +672,10 @@ public interface RepositoryApi {
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param sort sort jobs by attribute. Supported values are \&quot;id\&quot;. Default is
* \&quot;id\&quot; (optional)
* @param order sort order, either \&quot;asc\&quot; (ascending) or \&quot;desc\&quot;
* (descending). Default is \&quot;asc\&quot; (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/runs/{run}/jobs")
@@ -675,7 +685,9 @@ public interface RepositoryApi {
@retrofit2.http.Path("run") Integer run,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("sort") String sort,
@retrofit2.http.Query("order") String order);
/**
* Reject a repo transfer
@@ -145,13 +145,19 @@ public interface UserApi {
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param sort sort jobs by attribute. Supported values are \&quot;id\&quot;. Default is
* \&quot;id\&quot; (optional)
* @param order sort order, either \&quot;asc\&quot; (ascending) or \&quot;desc\&quot;
* (descending). Default is \&quot;asc\&quot; (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@GET("user/actions/jobs")
Call<ActionWorkflowJobsResponse> getUserWorkflowJobs(
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("sort") String sort,
@retrofit2.http.Query("order") String order);
/**
* Get workflow runs
@@ -165,6 +165,9 @@ public class Repository implements Serializable {
@SerializedName("mirror_interval")
private String mirrorInterval = null;
@SerializedName("mirror_last_sync_at")
private Date mirrorLastSyncAt = null;
@SerializedName("mirror_updated")
private Date mirrorUpdated = null;
@@ -1142,6 +1145,25 @@ public class Repository implements Serializable {
this.mirrorInterval = mirrorInterval;
}
public Repository mirrorLastSyncAt(Date mirrorLastSyncAt) {
this.mirrorLastSyncAt = mirrorLastSyncAt;
return this;
}
/**
* Get mirrorLastSyncAt
*
* @return mirrorLastSyncAt
*/
@Schema(description = "")
public Date getMirrorLastSyncAt() {
return mirrorLastSyncAt;
}
public void setMirrorLastSyncAt(Date mirrorLastSyncAt) {
this.mirrorLastSyncAt = mirrorLastSyncAt;
}
public Repository mirrorUpdated(Date mirrorUpdated) {
this.mirrorUpdated = mirrorUpdated;
return this;
@@ -1627,6 +1649,7 @@ public class Repository implements Serializable {
&& Objects.equals(this.link, repository.link)
&& Objects.equals(this.mirror, repository.mirror)
&& Objects.equals(this.mirrorInterval, repository.mirrorInterval)
&& Objects.equals(this.mirrorLastSyncAt, repository.mirrorLastSyncAt)
&& Objects.equals(this.mirrorUpdated, repository.mirrorUpdated)
&& Objects.equals(this.name, repository.name)
&& Objects.equals(this.objectFormatName, repository.objectFormatName)
@@ -1699,6 +1722,7 @@ public class Repository implements Serializable {
link,
mirror,
mirrorInterval,
mirrorLastSyncAt,
mirrorUpdated,
name,
objectFormatName,
@@ -1787,6 +1811,7 @@ public class Repository implements Serializable {
sb.append(" link: ").append(toIndentedString(link)).append("\n");
sb.append(" mirror: ").append(toIndentedString(mirror)).append("\n");
sb.append(" mirrorInterval: ").append(toIndentedString(mirrorInterval)).append("\n");
sb.append(" mirrorLastSyncAt: ").append(toIndentedString(mirrorLastSyncAt)).append("\n");
sb.append(" mirrorUpdated: ").append(toIndentedString(mirrorUpdated)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" objectFormatName: ").append(toIndentedString(objectFormatName)).append("\n");