Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2025-06-21 00:07:57 +00:00
parent fb52ceccc3
commit bb15c76872
18 changed files with 2721 additions and 3 deletions
@@ -2,6 +2,8 @@ package org.gitnex.tea4j.v2.apis;
import java.util.List;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
import org.gitnex.tea4j.v2.models.ActionWorkflowRunsResponse;
import org.gitnex.tea4j.v2.models.Badge;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateKeyOption;
@@ -352,4 +354,42 @@ public interface AdminApi {
*/
@GET("admin/actions/runners")
Call<Void> getAdminRunners();
/**
* Lists all jobs
*
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@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);
/**
* Lists all runs
*
* @param event workflow event name (optional)
* @param branch workflow branch (optional)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param actor triggered by user (optional)
* @param headSha triggering sha of the workflow run (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowRunsResponse&gt;
*/
@GET("admin/actions/runs")
Call<ActionWorkflowRunsResponse> listAdminWorkflowRuns(
@retrofit2.http.Query("event") String event,
@retrofit2.http.Query("branch") String branch,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("actor") String actor,
@retrofit2.http.Query("head_sha") String headSha,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
}
@@ -4,6 +4,8 @@ import java.util.Date;
import java.util.List;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.ActionVariable;
import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
import org.gitnex.tea4j.v2.models.ActionWorkflowRunsResponse;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateLabelOption;
@@ -151,6 +153,48 @@ public interface OrganizationApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Get org-level workflow jobs
*
* @param org name of the organization (required)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@GET("orgs/{org}/actions/jobs")
Call<ActionWorkflowJobsResponse> getOrgWorkflowJobs(
@retrofit2.http.Path("org") String org,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Get org-level workflow runs
*
* @param org name of the organization (required)
* @param event workflow event name (optional)
* @param branch workflow branch (optional)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param actor triggered by user (optional)
* @param headSha triggering sha of the workflow run (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowRunsResponse&gt;
*/
@GET("orgs/{org}/actions/runs")
Call<ActionWorkflowRunsResponse> getOrgWorkflowRuns(
@retrofit2.http.Path("org") String org,
@retrofit2.http.Query("event") String event,
@retrofit2.http.Query("branch") String branch,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("actor") String actor,
@retrofit2.http.Query("head_sha") String headSha,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Add a team member
*
@@ -11,6 +11,9 @@ import org.gitnex.tea4j.v2.models.ActionArtifactsResponse;
import org.gitnex.tea4j.v2.models.ActionTaskResponse;
import org.gitnex.tea4j.v2.models.ActionVariable;
import org.gitnex.tea4j.v2.models.ActionWorkflow;
import org.gitnex.tea4j.v2.models.ActionWorkflowJob;
import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
import org.gitnex.tea4j.v2.models.ActionWorkflowRun;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
import org.gitnex.tea4j.v2.models.AnnotatedTag;
@@ -492,6 +495,61 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("per_page") Integer perPage);
/**
* Gets a specific workflow job for a workflow run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param jobId id of the job (required)
* @return Call&lt;ActionWorkflowJob&gt;
*/
@GET("repos/{owner}/{repo}/actions/jobs/{job_id}")
Call<ActionWorkflowJob> getWorkflowJob(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("job_id") String jobId);
/**
* Gets a specific workflow run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param run id of the run (required)
* @return Call&lt;ActionWorkflowRun&gt;
*/
@GET("repos/{owner}/{repo}/actions/runs/{run}")
Call<ActionWorkflowRun> getWorkflowRun(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("run") String run);
/**
* Lists all runs for a repository run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param event workflow event name (optional)
* @param branch workflow branch (optional)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param actor triggered by user (optional)
* @param headSha triggering sha of the workflow run (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionArtifactsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/runs")
Call<ActionArtifactsResponse> getWorkflowRuns(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("event") String event,
@retrofit2.http.Query("branch") String branch,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("actor") String actor,
@retrofit2.http.Query("head_sha") String headSha,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* List a repository&#x27;s action tasks
*
@@ -524,6 +582,46 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Lists all jobs for a repository
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/jobs")
Call<ActionWorkflowJobsResponse> listWorkflowJobs(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Lists all jobs for a workflow run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param run runid of the workflow run (required)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowJobsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/runs/{run}/jobs")
Call<ActionWorkflowJobsResponse> listWorkflowRunJobs(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("run") Integer run,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Reject a repo transfer
*
@@ -5,6 +5,8 @@ import java.util.List;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.AccessToken;
import org.gitnex.tea4j.v2.models.ActionVariable;
import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
import org.gitnex.tea4j.v2.models.ActionWorkflowRunsResponse;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.CreateAccessTokenOption;
import org.gitnex.tea4j.v2.models.CreateEmailOption;
@@ -132,6 +134,44 @@ public interface UserApi {
Call<List<ActionVariable>> getUserVariablesList(
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
/**
* Get workflow jobs
*
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (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);
/**
* Get workflow runs
*
* @param event workflow event name (optional)
* @param branch workflow branch (optional)
* @param status workflow status (pending, queued, in_progress, failure, success, skipped)
* (optional)
* @param actor triggered by user (optional)
* @param headSha triggering sha of the workflow run (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;ActionWorkflowRunsResponse&gt;
*/
@GET("user/actions/runs")
Call<ActionWorkflowRunsResponse> getUserWorkflowRuns(
@retrofit2.http.Query("event") String event,
@retrofit2.http.Query("branch") String branch,
@retrofit2.http.Query("status") String status,
@retrofit2.http.Query("actor") String actor,
@retrofit2.http.Query("head_sha") String headSha,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Get a Token to verify
*
@@ -0,0 +1,528 @@
/*
* Gitea API
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/** ActionWorkflowJob represents a WorkflowJob */
@Schema(description = "ActionWorkflowJob represents a WorkflowJob")
public class ActionWorkflowJob implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("completed_at")
private Date completedAt = null;
@SerializedName("conclusion")
private String conclusion = null;
@SerializedName("created_at")
private Date createdAt = null;
@SerializedName("head_branch")
private String headBranch = null;
@SerializedName("head_sha")
private String headSha = null;
@SerializedName("html_url")
private String htmlUrl = null;
@SerializedName("id")
private Long id = null;
@SerializedName("labels")
private List<String> labels = null;
@SerializedName("name")
private String name = null;
@SerializedName("run_attempt")
private Long runAttempt = null;
@SerializedName("run_id")
private Long runId = null;
@SerializedName("run_url")
private String runUrl = null;
@SerializedName("runner_id")
private Long runnerId = null;
@SerializedName("runner_name")
private String runnerName = null;
@SerializedName("started_at")
private Date startedAt = null;
@SerializedName("status")
private String status = null;
@SerializedName("steps")
private List<ActionWorkflowStep> steps = null;
@SerializedName("url")
private String url = null;
public ActionWorkflowJob completedAt(Date completedAt) {
this.completedAt = completedAt;
return this;
}
/**
* Get completedAt
*
* @return completedAt
*/
@Schema(description = "")
public Date getCompletedAt() {
return completedAt;
}
public void setCompletedAt(Date completedAt) {
this.completedAt = completedAt;
}
public ActionWorkflowJob conclusion(String conclusion) {
this.conclusion = conclusion;
return this;
}
/**
* Get conclusion
*
* @return conclusion
*/
@Schema(description = "")
public String getConclusion() {
return conclusion;
}
public void setConclusion(String conclusion) {
this.conclusion = conclusion;
}
public ActionWorkflowJob createdAt(Date createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
*
* @return createdAt
*/
@Schema(description = "")
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public ActionWorkflowJob headBranch(String headBranch) {
this.headBranch = headBranch;
return this;
}
/**
* Get headBranch
*
* @return headBranch
*/
@Schema(description = "")
public String getHeadBranch() {
return headBranch;
}
public void setHeadBranch(String headBranch) {
this.headBranch = headBranch;
}
public ActionWorkflowJob headSha(String headSha) {
this.headSha = headSha;
return this;
}
/**
* Get headSha
*
* @return headSha
*/
@Schema(description = "")
public String getHeadSha() {
return headSha;
}
public void setHeadSha(String headSha) {
this.headSha = headSha;
}
public ActionWorkflowJob htmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
return this;
}
/**
* Get htmlUrl
*
* @return htmlUrl
*/
@Schema(description = "")
public String getHtmlUrl() {
return htmlUrl;
}
public void setHtmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
}
public ActionWorkflowJob id(Long id) {
this.id = id;
return this;
}
/**
* Get id
*
* @return id
*/
@Schema(description = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ActionWorkflowJob labels(List<String> labels) {
this.labels = labels;
return this;
}
public ActionWorkflowJob addLabelsItem(String labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList<>();
}
this.labels.add(labelsItem);
return this;
}
/**
* Get labels
*
* @return labels
*/
@Schema(description = "")
public List<String> getLabels() {
return labels;
}
public void setLabels(List<String> labels) {
this.labels = labels;
}
public ActionWorkflowJob name(String name) {
this.name = name;
return this;
}
/**
* Get name
*
* @return name
*/
@Schema(description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ActionWorkflowJob runAttempt(Long runAttempt) {
this.runAttempt = runAttempt;
return this;
}
/**
* Get runAttempt
*
* @return runAttempt
*/
@Schema(description = "")
public Long getRunAttempt() {
return runAttempt;
}
public void setRunAttempt(Long runAttempt) {
this.runAttempt = runAttempt;
}
public ActionWorkflowJob runId(Long runId) {
this.runId = runId;
return this;
}
/**
* Get runId
*
* @return runId
*/
@Schema(description = "")
public Long getRunId() {
return runId;
}
public void setRunId(Long runId) {
this.runId = runId;
}
public ActionWorkflowJob runUrl(String runUrl) {
this.runUrl = runUrl;
return this;
}
/**
* Get runUrl
*
* @return runUrl
*/
@Schema(description = "")
public String getRunUrl() {
return runUrl;
}
public void setRunUrl(String runUrl) {
this.runUrl = runUrl;
}
public ActionWorkflowJob runnerId(Long runnerId) {
this.runnerId = runnerId;
return this;
}
/**
* Get runnerId
*
* @return runnerId
*/
@Schema(description = "")
public Long getRunnerId() {
return runnerId;
}
public void setRunnerId(Long runnerId) {
this.runnerId = runnerId;
}
public ActionWorkflowJob runnerName(String runnerName) {
this.runnerName = runnerName;
return this;
}
/**
* Get runnerName
*
* @return runnerName
*/
@Schema(description = "")
public String getRunnerName() {
return runnerName;
}
public void setRunnerName(String runnerName) {
this.runnerName = runnerName;
}
public ActionWorkflowJob startedAt(Date startedAt) {
this.startedAt = startedAt;
return this;
}
/**
* Get startedAt
*
* @return startedAt
*/
@Schema(description = "")
public Date getStartedAt() {
return startedAt;
}
public void setStartedAt(Date startedAt) {
this.startedAt = startedAt;
}
public ActionWorkflowJob status(String status) {
this.status = status;
return this;
}
/**
* Get status
*
* @return status
*/
@Schema(description = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public ActionWorkflowJob steps(List<ActionWorkflowStep> steps) {
this.steps = steps;
return this;
}
public ActionWorkflowJob addStepsItem(ActionWorkflowStep stepsItem) {
if (this.steps == null) {
this.steps = new ArrayList<>();
}
this.steps.add(stepsItem);
return this;
}
/**
* Get steps
*
* @return steps
*/
@Schema(description = "")
public List<ActionWorkflowStep> getSteps() {
return steps;
}
public void setSteps(List<ActionWorkflowStep> steps) {
this.steps = steps;
}
public ActionWorkflowJob url(String url) {
this.url = url;
return this;
}
/**
* Get url
*
* @return url
*/
@Schema(description = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionWorkflowJob actionWorkflowJob = (ActionWorkflowJob) o;
return Objects.equals(this.completedAt, actionWorkflowJob.completedAt)
&& Objects.equals(this.conclusion, actionWorkflowJob.conclusion)
&& Objects.equals(this.createdAt, actionWorkflowJob.createdAt)
&& Objects.equals(this.headBranch, actionWorkflowJob.headBranch)
&& Objects.equals(this.headSha, actionWorkflowJob.headSha)
&& Objects.equals(this.htmlUrl, actionWorkflowJob.htmlUrl)
&& Objects.equals(this.id, actionWorkflowJob.id)
&& Objects.equals(this.labels, actionWorkflowJob.labels)
&& Objects.equals(this.name, actionWorkflowJob.name)
&& Objects.equals(this.runAttempt, actionWorkflowJob.runAttempt)
&& Objects.equals(this.runId, actionWorkflowJob.runId)
&& Objects.equals(this.runUrl, actionWorkflowJob.runUrl)
&& Objects.equals(this.runnerId, actionWorkflowJob.runnerId)
&& Objects.equals(this.runnerName, actionWorkflowJob.runnerName)
&& Objects.equals(this.startedAt, actionWorkflowJob.startedAt)
&& Objects.equals(this.status, actionWorkflowJob.status)
&& Objects.equals(this.steps, actionWorkflowJob.steps)
&& Objects.equals(this.url, actionWorkflowJob.url);
}
@Override
public int hashCode() {
return Objects.hash(
completedAt,
conclusion,
createdAt,
headBranch,
headSha,
htmlUrl,
id,
labels,
name,
runAttempt,
runId,
runUrl,
runnerId,
runnerName,
startedAt,
status,
steps,
url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowJob {\n");
sb.append(" completedAt: ").append(toIndentedString(completedAt)).append("\n");
sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" headBranch: ").append(toIndentedString(headBranch)).append("\n");
sb.append(" headSha: ").append(toIndentedString(headSha)).append("\n");
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" runAttempt: ").append(toIndentedString(runAttempt)).append("\n");
sb.append(" runId: ").append(toIndentedString(runId)).append("\n");
sb.append(" runUrl: ").append(toIndentedString(runUrl)).append("\n");
sb.append(" runnerId: ").append(toIndentedString(runnerId)).append("\n");
sb.append(" runnerName: ").append(toIndentedString(runnerName)).append("\n");
sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" steps: ").append(toIndentedString(steps)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
@@ -0,0 +1,117 @@
/*
* Gitea API
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** ActionWorkflowJobsResponse returns ActionWorkflowJobs */
@Schema(description = "ActionWorkflowJobsResponse returns ActionWorkflowJobs")
public class ActionWorkflowJobsResponse implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("jobs")
private List<ActionWorkflowJob> jobs = null;
@SerializedName("total_count")
private Long totalCount = null;
public ActionWorkflowJobsResponse jobs(List<ActionWorkflowJob> jobs) {
this.jobs = jobs;
return this;
}
public ActionWorkflowJobsResponse addJobsItem(ActionWorkflowJob jobsItem) {
if (this.jobs == null) {
this.jobs = new ArrayList<>();
}
this.jobs.add(jobsItem);
return this;
}
/**
* Get jobs
*
* @return jobs
*/
@Schema(description = "")
public List<ActionWorkflowJob> getJobs() {
return jobs;
}
public void setJobs(List<ActionWorkflowJob> jobs) {
this.jobs = jobs;
}
public ActionWorkflowJobsResponse totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* Get totalCount
*
* @return totalCount
*/
@Schema(description = "")
public Long getTotalCount() {
return totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionWorkflowJobsResponse actionWorkflowJobsResponse = (ActionWorkflowJobsResponse) o;
return Objects.equals(this.jobs, actionWorkflowJobsResponse.jobs)
&& Objects.equals(this.totalCount, actionWorkflowJobsResponse.totalCount);
}
@Override
public int hashCode() {
return Objects.hash(jobs, totalCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowJobsResponse {\n");
sb.append(" jobs: ").append(toIndentedString(jobs)).append("\n");
sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
@@ -15,6 +15,7 @@ package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
/** ActionWorkflowRun represents a WorkflowRun */
@@ -22,15 +23,196 @@ import java.util.Objects;
public class ActionWorkflowRun implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("actor")
private User actor = null;
@SerializedName("completed_at")
private Date completedAt = null;
@SerializedName("conclusion")
private String conclusion = null;
@SerializedName("display_title")
private String displayTitle = null;
@SerializedName("event")
private String event = null;
@SerializedName("head_branch")
private String headBranch = null;
@SerializedName("head_repository")
private Repository headRepository = null;
@SerializedName("head_sha")
private String headSha = null;
@SerializedName("html_url")
private String htmlUrl = null;
@SerializedName("id")
private Long id = null;
@SerializedName("path")
private String path = null;
@SerializedName("repository")
private Repository repository = null;
@SerializedName("repository_id")
private Long repositoryId = null;
@SerializedName("run_attempt")
private Long runAttempt = null;
@SerializedName("run_number")
private Long runNumber = null;
@SerializedName("started_at")
private Date startedAt = null;
@SerializedName("status")
private String status = null;
@SerializedName("trigger_actor")
private User triggerActor = null;
@SerializedName("url")
private String url = null;
public ActionWorkflowRun actor(User actor) {
this.actor = actor;
return this;
}
/**
* Get actor
*
* @return actor
*/
@Schema(description = "")
public User getActor() {
return actor;
}
public void setActor(User actor) {
this.actor = actor;
}
public ActionWorkflowRun completedAt(Date completedAt) {
this.completedAt = completedAt;
return this;
}
/**
* Get completedAt
*
* @return completedAt
*/
@Schema(description = "")
public Date getCompletedAt() {
return completedAt;
}
public void setCompletedAt(Date completedAt) {
this.completedAt = completedAt;
}
public ActionWorkflowRun conclusion(String conclusion) {
this.conclusion = conclusion;
return this;
}
/**
* Get conclusion
*
* @return conclusion
*/
@Schema(description = "")
public String getConclusion() {
return conclusion;
}
public void setConclusion(String conclusion) {
this.conclusion = conclusion;
}
public ActionWorkflowRun displayTitle(String displayTitle) {
this.displayTitle = displayTitle;
return this;
}
/**
* Get displayTitle
*
* @return displayTitle
*/
@Schema(description = "")
public String getDisplayTitle() {
return displayTitle;
}
public void setDisplayTitle(String displayTitle) {
this.displayTitle = displayTitle;
}
public ActionWorkflowRun event(String event) {
this.event = event;
return this;
}
/**
* Get event
*
* @return event
*/
@Schema(description = "")
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public ActionWorkflowRun headBranch(String headBranch) {
this.headBranch = headBranch;
return this;
}
/**
* Get headBranch
*
* @return headBranch
*/
@Schema(description = "")
public String getHeadBranch() {
return headBranch;
}
public void setHeadBranch(String headBranch) {
this.headBranch = headBranch;
}
public ActionWorkflowRun headRepository(Repository headRepository) {
this.headRepository = headRepository;
return this;
}
/**
* Get headRepository
*
* @return headRepository
*/
@Schema(description = "")
public Repository getHeadRepository() {
return headRepository;
}
public void setHeadRepository(Repository headRepository) {
this.headRepository = headRepository;
}
public ActionWorkflowRun headSha(String headSha) {
this.headSha = headSha;
return this;
@@ -50,6 +232,25 @@ public class ActionWorkflowRun implements Serializable {
this.headSha = headSha;
}
public ActionWorkflowRun htmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
return this;
}
/**
* Get htmlUrl
*
* @return htmlUrl
*/
@Schema(description = "")
public String getHtmlUrl() {
return htmlUrl;
}
public void setHtmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
}
public ActionWorkflowRun id(Long id) {
this.id = id;
return this;
@@ -69,6 +270,44 @@ public class ActionWorkflowRun implements Serializable {
this.id = id;
}
public ActionWorkflowRun path(String path) {
this.path = path;
return this;
}
/**
* Get path
*
* @return path
*/
@Schema(description = "")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public ActionWorkflowRun repository(Repository repository) {
this.repository = repository;
return this;
}
/**
* Get repository
*
* @return repository
*/
@Schema(description = "")
public Repository getRepository() {
return repository;
}
public void setRepository(Repository repository) {
this.repository = repository;
}
public ActionWorkflowRun repositoryId(Long repositoryId) {
this.repositoryId = repositoryId;
return this;
@@ -88,6 +327,120 @@ public class ActionWorkflowRun implements Serializable {
this.repositoryId = repositoryId;
}
public ActionWorkflowRun runAttempt(Long runAttempt) {
this.runAttempt = runAttempt;
return this;
}
/**
* Get runAttempt
*
* @return runAttempt
*/
@Schema(description = "")
public Long getRunAttempt() {
return runAttempt;
}
public void setRunAttempt(Long runAttempt) {
this.runAttempt = runAttempt;
}
public ActionWorkflowRun runNumber(Long runNumber) {
this.runNumber = runNumber;
return this;
}
/**
* Get runNumber
*
* @return runNumber
*/
@Schema(description = "")
public Long getRunNumber() {
return runNumber;
}
public void setRunNumber(Long runNumber) {
this.runNumber = runNumber;
}
public ActionWorkflowRun startedAt(Date startedAt) {
this.startedAt = startedAt;
return this;
}
/**
* Get startedAt
*
* @return startedAt
*/
@Schema(description = "")
public Date getStartedAt() {
return startedAt;
}
public void setStartedAt(Date startedAt) {
this.startedAt = startedAt;
}
public ActionWorkflowRun status(String status) {
this.status = status;
return this;
}
/**
* Get status
*
* @return status
*/
@Schema(description = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public ActionWorkflowRun triggerActor(User triggerActor) {
this.triggerActor = triggerActor;
return this;
}
/**
* Get triggerActor
*
* @return triggerActor
*/
@Schema(description = "")
public User getTriggerActor() {
return triggerActor;
}
public void setTriggerActor(User triggerActor) {
this.triggerActor = triggerActor;
}
public ActionWorkflowRun url(String url) {
this.url = url;
return this;
}
/**
* Get url
*
* @return url
*/
@Schema(description = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -97,14 +450,49 @@ public class ActionWorkflowRun implements Serializable {
return false;
}
ActionWorkflowRun actionWorkflowRun = (ActionWorkflowRun) o;
return Objects.equals(this.headSha, actionWorkflowRun.headSha)
return Objects.equals(this.actor, actionWorkflowRun.actor)
&& Objects.equals(this.completedAt, actionWorkflowRun.completedAt)
&& Objects.equals(this.conclusion, actionWorkflowRun.conclusion)
&& Objects.equals(this.displayTitle, actionWorkflowRun.displayTitle)
&& Objects.equals(this.event, actionWorkflowRun.event)
&& Objects.equals(this.headBranch, actionWorkflowRun.headBranch)
&& Objects.equals(this.headRepository, actionWorkflowRun.headRepository)
&& Objects.equals(this.headSha, actionWorkflowRun.headSha)
&& Objects.equals(this.htmlUrl, actionWorkflowRun.htmlUrl)
&& Objects.equals(this.id, actionWorkflowRun.id)
&& Objects.equals(this.repositoryId, actionWorkflowRun.repositoryId);
&& Objects.equals(this.path, actionWorkflowRun.path)
&& Objects.equals(this.repository, actionWorkflowRun.repository)
&& Objects.equals(this.repositoryId, actionWorkflowRun.repositoryId)
&& Objects.equals(this.runAttempt, actionWorkflowRun.runAttempt)
&& Objects.equals(this.runNumber, actionWorkflowRun.runNumber)
&& Objects.equals(this.startedAt, actionWorkflowRun.startedAt)
&& Objects.equals(this.status, actionWorkflowRun.status)
&& Objects.equals(this.triggerActor, actionWorkflowRun.triggerActor)
&& Objects.equals(this.url, actionWorkflowRun.url);
}
@Override
public int hashCode() {
return Objects.hash(headSha, id, repositoryId);
return Objects.hash(
actor,
completedAt,
conclusion,
displayTitle,
event,
headBranch,
headRepository,
headSha,
htmlUrl,
id,
path,
repository,
repositoryId,
runAttempt,
runNumber,
startedAt,
status,
triggerActor,
url);
}
@Override
@@ -112,9 +500,25 @@ public class ActionWorkflowRun implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowRun {\n");
sb.append(" actor: ").append(toIndentedString(actor)).append("\n");
sb.append(" completedAt: ").append(toIndentedString(completedAt)).append("\n");
sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n");
sb.append(" displayTitle: ").append(toIndentedString(displayTitle)).append("\n");
sb.append(" event: ").append(toIndentedString(event)).append("\n");
sb.append(" headBranch: ").append(toIndentedString(headBranch)).append("\n");
sb.append(" headRepository: ").append(toIndentedString(headRepository)).append("\n");
sb.append(" headSha: ").append(toIndentedString(headSha)).append("\n");
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" repository: ").append(toIndentedString(repository)).append("\n");
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).append("\n");
sb.append(" runAttempt: ").append(toIndentedString(runAttempt)).append("\n");
sb.append(" runNumber: ").append(toIndentedString(runNumber)).append("\n");
sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" triggerActor: ").append(toIndentedString(triggerActor)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -0,0 +1,117 @@
/*
* Gitea API
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** ActionWorkflowRunsResponse returns ActionWorkflowRuns */
@Schema(description = "ActionWorkflowRunsResponse returns ActionWorkflowRuns")
public class ActionWorkflowRunsResponse implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("total_count")
private Long totalCount = null;
@SerializedName("workflow_runs")
private List<ActionWorkflowRun> workflowRuns = null;
public ActionWorkflowRunsResponse totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* Get totalCount
*
* @return totalCount
*/
@Schema(description = "")
public Long getTotalCount() {
return totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
public ActionWorkflowRunsResponse workflowRuns(List<ActionWorkflowRun> workflowRuns) {
this.workflowRuns = workflowRuns;
return this;
}
public ActionWorkflowRunsResponse addWorkflowRunsItem(ActionWorkflowRun workflowRunsItem) {
if (this.workflowRuns == null) {
this.workflowRuns = new ArrayList<>();
}
this.workflowRuns.add(workflowRunsItem);
return this;
}
/**
* Get workflowRuns
*
* @return workflowRuns
*/
@Schema(description = "")
public List<ActionWorkflowRun> getWorkflowRuns() {
return workflowRuns;
}
public void setWorkflowRuns(List<ActionWorkflowRun> workflowRuns) {
this.workflowRuns = workflowRuns;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionWorkflowRunsResponse actionWorkflowRunsResponse = (ActionWorkflowRunsResponse) o;
return Objects.equals(this.totalCount, actionWorkflowRunsResponse.totalCount)
&& Objects.equals(this.workflowRuns, actionWorkflowRunsResponse.workflowRuns);
}
@Override
public int hashCode() {
return Objects.hash(totalCount, workflowRuns);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowRunsResponse {\n");
sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
sb.append(" workflowRuns: ").append(toIndentedString(workflowRuns)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
@@ -0,0 +1,204 @@
/*
* Gitea API
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
/** ActionWorkflowStep represents a step of a WorkflowJob */
@Schema(description = "ActionWorkflowStep represents a step of a WorkflowJob")
public class ActionWorkflowStep implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("completed_at")
private Date completedAt = null;
@SerializedName("conclusion")
private String conclusion = null;
@SerializedName("name")
private String name = null;
@SerializedName("number")
private Long number = null;
@SerializedName("started_at")
private Date startedAt = null;
@SerializedName("status")
private String status = null;
public ActionWorkflowStep completedAt(Date completedAt) {
this.completedAt = completedAt;
return this;
}
/**
* Get completedAt
*
* @return completedAt
*/
@Schema(description = "")
public Date getCompletedAt() {
return completedAt;
}
public void setCompletedAt(Date completedAt) {
this.completedAt = completedAt;
}
public ActionWorkflowStep conclusion(String conclusion) {
this.conclusion = conclusion;
return this;
}
/**
* Get conclusion
*
* @return conclusion
*/
@Schema(description = "")
public String getConclusion() {
return conclusion;
}
public void setConclusion(String conclusion) {
this.conclusion = conclusion;
}
public ActionWorkflowStep name(String name) {
this.name = name;
return this;
}
/**
* Get name
*
* @return name
*/
@Schema(description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ActionWorkflowStep number(Long number) {
this.number = number;
return this;
}
/**
* Get number
*
* @return number
*/
@Schema(description = "")
public Long getNumber() {
return number;
}
public void setNumber(Long number) {
this.number = number;
}
public ActionWorkflowStep startedAt(Date startedAt) {
this.startedAt = startedAt;
return this;
}
/**
* Get startedAt
*
* @return startedAt
*/
@Schema(description = "")
public Date getStartedAt() {
return startedAt;
}
public void setStartedAt(Date startedAt) {
this.startedAt = startedAt;
}
public ActionWorkflowStep status(String status) {
this.status = status;
return this;
}
/**
* Get status
*
* @return status
*/
@Schema(description = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionWorkflowStep actionWorkflowStep = (ActionWorkflowStep) o;
return Objects.equals(this.completedAt, actionWorkflowStep.completedAt)
&& Objects.equals(this.conclusion, actionWorkflowStep.conclusion)
&& Objects.equals(this.name, actionWorkflowStep.name)
&& Objects.equals(this.number, actionWorkflowStep.number)
&& Objects.equals(this.startedAt, actionWorkflowStep.startedAt)
&& Objects.equals(this.status, actionWorkflowStep.status);
}
@Override
public int hashCode() {
return Objects.hash(completedAt, conclusion, name, number, startedAt, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowStep {\n");
sb.append(" completedAt: ").append(toIndentedString(completedAt)).append("\n");
sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}