mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# ActionWorkflowResponse
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**totalCount** | **Long** | | [optional]
|
||||
**workflows** | [**List<ActionWorkflow>**](ActionWorkflow.md) | | [optional]
|
||||
@@ -653,7 +653,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="actionsListRepositoryWorkflows"></a>
|
||||
# **actionsListRepositoryWorkflows**
|
||||
> List<ActionWorkflow> actionsListRepositoryWorkflows(owner, repo)
|
||||
> ActionWorkflowResponse actionsListRepositoryWorkflows(owner, repo)
|
||||
|
||||
List repository workflows
|
||||
|
||||
@@ -712,7 +712,7 @@ RepositoryApi apiInstance = new RepositoryApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
try {
|
||||
List<ActionWorkflow> result = apiInstance.actionsListRepositoryWorkflows(owner, repo);
|
||||
ActionWorkflowResponse result = apiInstance.actionsListRepositoryWorkflows(owner, repo);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling RepositoryApi#actionsListRepositoryWorkflows");
|
||||
@@ -729,7 +729,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<ActionWorkflow>**](ActionWorkflow.md)
|
||||
[**ActionWorkflowResponse**](ActionWorkflowResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ 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.ActionWorkflowResponse;
|
||||
import org.gitnex.tea4j.v2.models.ActionWorkflowRun;
|
||||
import org.gitnex.tea4j.v2.models.Activity;
|
||||
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
|
||||
@@ -186,10 +187,10 @@ public interface RepositoryApi {
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @return Call<List<ActionWorkflow>>
|
||||
* @return Call<ActionWorkflowResponse>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/workflows")
|
||||
Call<List<ActionWorkflow>> actionsListRepositoryWorkflows(
|
||||
Call<ActionWorkflowResponse> actionsListRepositoryWorkflows(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{.SwaggerAppVer}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** ActionWorkflowResponse returns a ActionWorkflow */
|
||||
@Schema(description = "ActionWorkflowResponse returns a ActionWorkflow")
|
||||
public class ActionWorkflowResponse implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("total_count")
|
||||
private Long totalCount = null;
|
||||
|
||||
@SerializedName("workflows")
|
||||
private List<ActionWorkflow> workflows = null;
|
||||
|
||||
public ActionWorkflowResponse 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 ActionWorkflowResponse workflows(List<ActionWorkflow> workflows) {
|
||||
this.workflows = workflows;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionWorkflowResponse addWorkflowsItem(ActionWorkflow workflowsItem) {
|
||||
if (this.workflows == null) {
|
||||
this.workflows = new ArrayList<>();
|
||||
}
|
||||
this.workflows.add(workflowsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get workflows
|
||||
*
|
||||
* @return workflows
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public List<ActionWorkflow> getWorkflows() {
|
||||
return workflows;
|
||||
}
|
||||
|
||||
public void setWorkflows(List<ActionWorkflow> workflows) {
|
||||
this.workflows = workflows;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionWorkflowResponse actionWorkflowResponse = (ActionWorkflowResponse) o;
|
||||
return Objects.equals(this.totalCount, actionWorkflowResponse.totalCount)
|
||||
&& Objects.equals(this.workflows, actionWorkflowResponse.workflows);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(totalCount, workflows);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionWorkflowResponse {\n");
|
||||
|
||||
sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
|
||||
sb.append(" workflows: ").append(toIndentedString(workflows)).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 ");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user