diff --git a/docs/AdminApi.md b/docs/AdminApi.md
index 45f3565..317b70b 100644
--- a/docs/AdminApi.md
+++ b/docs/AdminApi.md
@@ -2624,7 +2624,7 @@ Name | Type | Description | Notes
# **listAdminWorkflowJobs**
-> ActionWorkflowJobsResponse listAdminWorkflowJobs(status, page, limit)
+> ActionWorkflowJobsResponse listAdminWorkflowJobs(status, page, limit, sort, order)
Lists all jobs
@@ -2683,8 +2683,10 @@ AdminApi apiInstance = new AdminApi();
String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
+String sort = "sort_example"; // String | sort jobs by attribute. Supported values are \"id\". Default is \"id\"
+String order = "order_example"; // String | sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\"
try {
- ActionWorkflowJobsResponse result = apiInstance.listAdminWorkflowJobs(status, page, limit);
+ ActionWorkflowJobsResponse result = apiInstance.listAdminWorkflowJobs(status, page, limit, sort, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#listAdminWorkflowJobs");
@@ -2699,6 +2701,8 @@ Name | Type | Description | Notes
**status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
+ **sort** | **String**| sort jobs by attribute. Supported values are \"id\". Default is \"id\" | [optional]
+ **order** | **String**| sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\" | [optional]
### Return type
diff --git a/docs/Repository.md b/docs/Repository.md
index bc5702c..7202211 100644
--- a/docs/Repository.md
+++ b/docs/Repository.md
@@ -48,6 +48,7 @@ Name | Type | Description | Notes
**link** | **String** | | [optional]
**mirror** | **Boolean** | | [optional]
**mirrorInterval** | **String** | | [optional]
+**mirrorLastSyncAt** | [**Date**](Date.md) | | [optional]
**mirrorUpdated** | [**Date**](Date.md) | | [optional]
**name** | **String** | | [optional]
**objectFormatName** | [**ObjectFormatNameEnum**](#ObjectFormatNameEnum) | ObjectFormatName of the underlying git repository sha1 ObjectFormatSHA1 sha256 ObjectFormatSHA256 | [optional]
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index 50bb7af..44991ce 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -3236,7 +3236,7 @@ Name | Type | Description | Notes
# **listWorkflowJobs**
-> ActionWorkflowJobsResponse listWorkflowJobs(owner, repo, status, page, limit)
+> ActionWorkflowJobsResponse listWorkflowJobs(owner, repo, status, page, limit, sort, order)
Lists all jobs for a repository
@@ -3297,8 +3297,10 @@ String repo = "repo_example"; // String | name of the repository
String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
+String sort = "sort_example"; // String | sort jobs by attribute. Supported values are \"id\". Default is \"id\"
+String order = "order_example"; // String | sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\"
try {
- ActionWorkflowJobsResponse result = apiInstance.listWorkflowJobs(owner, repo, status, page, limit);
+ ActionWorkflowJobsResponse result = apiInstance.listWorkflowJobs(owner, repo, status, page, limit, sort, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#listWorkflowJobs");
@@ -3315,6 +3317,8 @@ Name | Type | Description | Notes
**status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
+ **sort** | **String**| sort jobs by attribute. Supported values are \"id\". Default is \"id\" | [optional]
+ **order** | **String**| sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\" | [optional]
### Return type
@@ -3430,7 +3434,7 @@ Name | Type | Description | Notes
# **listWorkflowRunJobs**
-> ActionWorkflowJobsResponse listWorkflowRunJobs(owner, repo, run, status, page, limit)
+> ActionWorkflowJobsResponse listWorkflowRunJobs(owner, repo, run, status, page, limit, sort, order)
Lists all jobs for a workflow run
@@ -3492,8 +3496,10 @@ Integer run = 56; // Integer | runid of the workflow run
String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
+String sort = "sort_example"; // String | sort jobs by attribute. Supported values are \"id\". Default is \"id\"
+String order = "order_example"; // String | sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\"
try {
- ActionWorkflowJobsResponse result = apiInstance.listWorkflowRunJobs(owner, repo, run, status, page, limit);
+ ActionWorkflowJobsResponse result = apiInstance.listWorkflowRunJobs(owner, repo, run, status, page, limit, sort, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#listWorkflowRunJobs");
@@ -3511,6 +3517,8 @@ Name | Type | Description | Notes
**status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
+ **sort** | **String**| sort jobs by attribute. Supported values are \"id\". Default is \"id\" | [optional]
+ **order** | **String**| sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\" | [optional]
### Return type
diff --git a/docs/UserApi.md b/docs/UserApi.md
index 950e62c..e2a8a21 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -953,7 +953,7 @@ Name | Type | Description | Notes
# **getUserWorkflowJobs**
-> ActionWorkflowJobsResponse getUserWorkflowJobs(status, page, limit)
+> ActionWorkflowJobsResponse getUserWorkflowJobs(status, page, limit, sort, order)
Get workflow jobs
@@ -1012,8 +1012,10 @@ UserApi apiInstance = new UserApi();
String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
+String sort = "sort_example"; // String | sort jobs by attribute. Supported values are \"id\". Default is \"id\"
+String order = "order_example"; // String | sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\"
try {
- ActionWorkflowJobsResponse result = apiInstance.getUserWorkflowJobs(status, page, limit);
+ ActionWorkflowJobsResponse result = apiInstance.getUserWorkflowJobs(status, page, limit, sort, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserWorkflowJobs");
@@ -1028,6 +1030,8 @@ Name | Type | Description | Notes
**status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
+ **sort** | **String**| sort jobs by attribute. Supported values are \"id\". Default is \"id\" | [optional]
+ **order** | **String**| sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\" | [optional]
### Return type
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
index b66daa1..7b00ba5 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
@@ -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 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
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
index a9b7bcc..feb916c 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
@@ -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 \"id\". Default is
+ * \"id\" (optional)
+ * @param order sort order, either \"asc\" (ascending) or \"desc\"
+ * (descending). Default is \"asc\" (optional)
* @return Call<ActionWorkflowJobsResponse>
*/
@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 \"id\". Default is
+ * \"id\" (optional)
+ * @param order sort order, either \"asc\" (ascending) or \"desc\"
+ * (descending). Default is \"asc\" (optional)
* @return Call<ActionWorkflowJobsResponse>
*/
@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
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
index 0e5b764..538e64a 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
@@ -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 \"id\". Default is
+ * \"id\" (optional)
+ * @param order sort order, either \"asc\" (ascending) or \"desc\"
+ * (descending). Default is \"asc\" (optional)
* @return Call<ActionWorkflowJobsResponse>
*/
@GET("user/actions/jobs")
Call 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
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
index 64706a1..d102dc0 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
@@ -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");