mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-07-03 07:30:51 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -6,6 +6,7 @@ import org.gitnex.tea4j.v2.CollectionFormats.*;
|
||||
import org.gitnex.tea4j.v2.models.Activity;
|
||||
import org.gitnex.tea4j.v2.models.CreateHookOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateLabelOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateOrgOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateRepoOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateTeamOption;
|
||||
@@ -19,6 +20,7 @@ import org.gitnex.tea4j.v2.models.Label;
|
||||
import org.gitnex.tea4j.v2.models.Organization;
|
||||
import org.gitnex.tea4j.v2.models.OrganizationPermissions;
|
||||
import org.gitnex.tea4j.v2.models.Repository;
|
||||
import org.gitnex.tea4j.v2.models.Secret;
|
||||
import org.gitnex.tea4j.v2.models.Team;
|
||||
import org.gitnex.tea4j.v2.models.UpdateUserAvatarOption;
|
||||
import org.gitnex.tea4j.v2.models.User;
|
||||
@@ -50,6 +52,17 @@ public interface OrganizationApi {
|
||||
Call<Repository> createOrgRepoDeprecated(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Body CreateRepoOption body);
|
||||
|
||||
/**
|
||||
* Delete a secret in an organization
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("orgs/{org}/actions/secrets/{secretname}")
|
||||
Call<Void> deleteOrgSecret(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("secretname") String secretname);
|
||||
|
||||
/**
|
||||
* Add a team member
|
||||
*
|
||||
@@ -329,6 +342,20 @@ public interface OrganizationApi {
|
||||
Call<Void> orgIsPublicMember(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
|
||||
|
||||
/**
|
||||
* List an organization's actions secrets
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return Call<List<Secret>>
|
||||
*/
|
||||
@GET("orgs/{org}/actions/secrets")
|
||||
Call<List<Secret>> orgListActionsSecrets(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* List an organization's activity feeds
|
||||
*
|
||||
@@ -589,4 +616,19 @@ public interface OrganizationApi {
|
||||
@retrofit2.http.Query("include_desc") Boolean includeDesc,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Create or Update a secret value in an organization
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("orgs/{org}/actions/secrets/{secretname}")
|
||||
Call<Void> updateOrgSecret(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("secretname") String secretname,
|
||||
@retrofit2.http.Body CreateOrUpdateSecretOption body);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import org.gitnex.tea4j.v2.models.CreateFileOptions;
|
||||
import org.gitnex.tea4j.v2.models.CreateForkOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateHookOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateKeyOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
|
||||
import org.gitnex.tea4j.v2.models.CreatePullRequestOption;
|
||||
import org.gitnex.tea4j.v2.models.CreatePullReviewOptions;
|
||||
import org.gitnex.tea4j.v2.models.CreatePushMirrorOption;
|
||||
@@ -122,6 +123,20 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Body CreateForkOption body);
|
||||
|
||||
/**
|
||||
* Delete a secret in a repository
|
||||
*
|
||||
* @param owner owner of the repository (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("repos/{owner}/{repo}/actions/secrets/{secretname}")
|
||||
Call<Void> deleteRepoSecret(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("secretname") String secretname);
|
||||
|
||||
/**
|
||||
* Create a repository using a template
|
||||
*
|
||||
@@ -1279,13 +1294,19 @@ public interface RepositoryApi {
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param sha a git ref or commit sha (required)
|
||||
* @param verification include verification for every commit (disable for speedup, default
|
||||
* 'true') (optional)
|
||||
* @param files include a list of affected files for every commit (disable for speedup, default
|
||||
* 'true') (optional)
|
||||
* @return Call<Note>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/git/notes/{sha}")
|
||||
Call<Note> repoGetNote(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("sha") String sha);
|
||||
@retrofit2.http.Path("sha") String sha,
|
||||
@retrofit2.http.Query("verification") Boolean verification,
|
||||
@retrofit2.http.Query("files") Boolean files);
|
||||
|
||||
/**
|
||||
* Get a pull request
|
||||
@@ -1309,6 +1330,10 @@ public interface RepositoryApi {
|
||||
* @param index index of the pull request to get (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param verification include verification for every commit (disable for speedup, default
|
||||
* 'true') (optional)
|
||||
* @param files include a list of affected files for every commit (disable for speedup, default
|
||||
* 'true') (optional)
|
||||
* @return Call<List<Commit>>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/pulls/{index}/commits")
|
||||
@@ -1317,7 +1342,9 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("index") Long index,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
@retrofit2.http.Query("limit") Integer limit,
|
||||
@retrofit2.http.Query("verification") Boolean verification,
|
||||
@retrofit2.http.Query("files") Boolean files);
|
||||
|
||||
/**
|
||||
* Get changed files for a pull request
|
||||
@@ -2258,6 +2285,23 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Create or Update a secret value in a repository
|
||||
*
|
||||
* @param owner owner of the repository (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("repos/{owner}/{repo}/actions/secrets/{secretname}")
|
||||
Call<Void> updateRepoSecret(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("secretname") String secretname,
|
||||
@retrofit2.http.Body CreateOrUpdateSecretOption body);
|
||||
|
||||
/**
|
||||
* Check if the current user is watching a repo
|
||||
*
|
||||
|
||||
@@ -11,6 +11,7 @@ import org.gitnex.tea4j.v2.models.CreateGPGKeyOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateHookOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateKeyOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateOAuth2ApplicationOptions;
|
||||
import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateRepoOption;
|
||||
import org.gitnex.tea4j.v2.models.DeleteEmailOption;
|
||||
import org.gitnex.tea4j.v2.models.EditHookOption;
|
||||
@@ -43,6 +44,15 @@ public interface UserApi {
|
||||
@POST("user/repos")
|
||||
Call<Repository> createCurrentUserRepo(@retrofit2.http.Body CreateRepoOption body);
|
||||
|
||||
/**
|
||||
* Delete a secret in a user scope
|
||||
*
|
||||
* @param secretname name of the secret (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("user/actions/secrets/{secretname}")
|
||||
Call<Void> deleteUserSecret(@retrofit2.http.Path("secretname") String secretname);
|
||||
|
||||
/**
|
||||
* Get user settings
|
||||
*
|
||||
@@ -59,6 +69,19 @@ public interface UserApi {
|
||||
@GET("user/gpg_key_token")
|
||||
Call<String> getVerificationToken();
|
||||
|
||||
/**
|
||||
* Create or Update a secret value in a user scope
|
||||
*
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("user/actions/secrets/{secretname}")
|
||||
Call<Void> updateUserSecret(
|
||||
@retrofit2.http.Path("secretname") String secretname,
|
||||
@retrofit2.http.Body CreateOrUpdateSecretOption body);
|
||||
|
||||
/**
|
||||
* Update user settings
|
||||
*
|
||||
|
||||
@@ -98,14 +98,14 @@ public interface CustomApi {
|
||||
@HTTP(method = "DELETE", path = "user/emails", hasBody = true)
|
||||
Call<Void> userDeleteEmailWithBody(@Body DeleteEmailOption body);
|
||||
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@GET("notifications")
|
||||
Call<List<NotificationThread>> notifyGetList2(
|
||||
@retrofit2.http.Query("all") Boolean all,
|
||||
@retrofit2.http.Query("status-types") List<String> statusTypes,
|
||||
@retrofit2.http.Query("subject-type") List<String> subjectType,
|
||||
@retrofit2.http.Query("since") String since,
|
||||
@retrofit2.http.Query("before") String before,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@GET("notifications")
|
||||
Call<List<NotificationThread>> notifyGetList2(
|
||||
@retrofit2.http.Query("all") Boolean all,
|
||||
@retrofit2.http.Query("status-types") List<String> statusTypes,
|
||||
@retrofit2.http.Query("subject-type") List<String> subjectType,
|
||||
@retrofit2.http.Query("since") String since,
|
||||
@retrofit2.http.Query("before") String before,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
}
|
||||
|
||||
@@ -27,9 +27,4 @@ public interface WebApi {
|
||||
@Path("repo") String repo,
|
||||
@Path("sha") String sha,
|
||||
@Path("diffType") String diffType);
|
||||
|
||||
@Streaming
|
||||
@GET("attachments/{hashid}")
|
||||
Call<ResponseBody> getAttachment(
|
||||
@Path("hashid") String hashid);
|
||||
}
|
||||
|
||||
@@ -31,6 +31,9 @@ public class CreateLabelOption implements Serializable {
|
||||
@SerializedName("exclusive")
|
||||
private Boolean exclusive = null;
|
||||
|
||||
@SerializedName("is_archived")
|
||||
private Boolean isArchived = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -91,6 +94,25 @@ public class CreateLabelOption implements Serializable {
|
||||
this.exclusive = exclusive;
|
||||
}
|
||||
|
||||
public CreateLabelOption isArchived(Boolean isArchived) {
|
||||
this.isArchived = isArchived;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isArchived
|
||||
*
|
||||
* @return isArchived
|
||||
*/
|
||||
@Schema(example = "false", description = "")
|
||||
public Boolean isIsArchived() {
|
||||
return isArchived;
|
||||
}
|
||||
|
||||
public void setIsArchived(Boolean isArchived) {
|
||||
this.isArchived = isArchived;
|
||||
}
|
||||
|
||||
public CreateLabelOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -122,12 +144,13 @@ public class CreateLabelOption implements Serializable {
|
||||
return Objects.equals(this.color, createLabelOption.color)
|
||||
&& Objects.equals(this.description, createLabelOption.description)
|
||||
&& Objects.equals(this.exclusive, createLabelOption.exclusive)
|
||||
&& Objects.equals(this.isArchived, createLabelOption.isArchived)
|
||||
&& Objects.equals(this.name, createLabelOption.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(color, description, exclusive, name);
|
||||
return Objects.hash(color, description, exclusive, isArchived, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -138,6 +161,7 @@ public class CreateLabelOption implements Serializable {
|
||||
sb.append(" color: ").append(toIndentedString(color)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n");
|
||||
sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
|
||||
*
|
||||
*
|
||||
* 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.Objects;
|
||||
|
||||
/** CreateOrUpdateSecretOption options when creating or updating secret */
|
||||
@Schema(description = "CreateOrUpdateSecretOption options when creating or updating secret")
|
||||
public class CreateOrUpdateSecretOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("data")
|
||||
private String data = null;
|
||||
|
||||
public CreateOrUpdateSecretOption data(String data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data of the secret to update
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
@Schema(required = true, description = "Data of the secret to update")
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateOrUpdateSecretOption createOrUpdateSecretOption = (CreateOrUpdateSecretOption) o;
|
||||
return Objects.equals(this.data, createOrUpdateSecretOption.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateOrUpdateSecretOption {\n");
|
||||
|
||||
sb.append(" data: ").append(toIndentedString(data)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,9 @@ public class EditLabelOption implements Serializable {
|
||||
@SerializedName("exclusive")
|
||||
private Boolean exclusive = null;
|
||||
|
||||
@SerializedName("is_archived")
|
||||
private Boolean isArchived = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -91,6 +94,25 @@ public class EditLabelOption implements Serializable {
|
||||
this.exclusive = exclusive;
|
||||
}
|
||||
|
||||
public EditLabelOption isArchived(Boolean isArchived) {
|
||||
this.isArchived = isArchived;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isArchived
|
||||
*
|
||||
* @return isArchived
|
||||
*/
|
||||
@Schema(example = "false", description = "")
|
||||
public Boolean isIsArchived() {
|
||||
return isArchived;
|
||||
}
|
||||
|
||||
public void setIsArchived(Boolean isArchived) {
|
||||
this.isArchived = isArchived;
|
||||
}
|
||||
|
||||
public EditLabelOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -122,12 +144,13 @@ public class EditLabelOption implements Serializable {
|
||||
return Objects.equals(this.color, editLabelOption.color)
|
||||
&& Objects.equals(this.description, editLabelOption.description)
|
||||
&& Objects.equals(this.exclusive, editLabelOption.exclusive)
|
||||
&& Objects.equals(this.isArchived, editLabelOption.isArchived)
|
||||
&& Objects.equals(this.name, editLabelOption.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(color, description, exclusive, name);
|
||||
return Objects.hash(color, description, exclusive, isArchived, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -138,6 +161,7 @@ public class EditLabelOption implements Serializable {
|
||||
sb.append(" color: ").append(toIndentedString(color)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n");
|
||||
sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -33,6 +33,9 @@ public class Hook implements Serializable {
|
||||
@SerializedName("authorization_header")
|
||||
private String authorizationHeader = null;
|
||||
|
||||
@SerializedName("branch_filter")
|
||||
private String branchFilter = null;
|
||||
|
||||
@SerializedName("config")
|
||||
private Map<String, String> config = null;
|
||||
|
||||
@@ -89,6 +92,25 @@ public class Hook implements Serializable {
|
||||
this.authorizationHeader = authorizationHeader;
|
||||
}
|
||||
|
||||
public Hook branchFilter(String branchFilter) {
|
||||
this.branchFilter = branchFilter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get branchFilter
|
||||
*
|
||||
* @return branchFilter
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getBranchFilter() {
|
||||
return branchFilter;
|
||||
}
|
||||
|
||||
public void setBranchFilter(String branchFilter) {
|
||||
this.branchFilter = branchFilter;
|
||||
}
|
||||
|
||||
public Hook config(Map<String, String> config) {
|
||||
this.config = config;
|
||||
return this;
|
||||
@@ -230,6 +252,7 @@ public class Hook implements Serializable {
|
||||
Hook hook = (Hook) o;
|
||||
return Objects.equals(this.active, hook.active)
|
||||
&& Objects.equals(this.authorizationHeader, hook.authorizationHeader)
|
||||
&& Objects.equals(this.branchFilter, hook.branchFilter)
|
||||
&& Objects.equals(this.config, hook.config)
|
||||
&& Objects.equals(this.createdAt, hook.createdAt)
|
||||
&& Objects.equals(this.events, hook.events)
|
||||
@@ -241,7 +264,7 @@ public class Hook implements Serializable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
active, authorizationHeader, config, createdAt, events, id, type, updatedAt);
|
||||
active, authorizationHeader, branchFilter, config, createdAt, events, id, type, updatedAt);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -253,6 +276,7 @@ public class Hook implements Serializable {
|
||||
sb.append(" authorizationHeader: ")
|
||||
.append(toIndentedString(authorizationHeader))
|
||||
.append("\n");
|
||||
sb.append(" branchFilter: ").append(toIndentedString(branchFilter)).append("\n");
|
||||
sb.append(" config: ").append(toIndentedString(config)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" events: ").append(toIndentedString(events)).append("\n");
|
||||
|
||||
@@ -34,6 +34,9 @@ public class Label implements Serializable {
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("is_archived")
|
||||
private Boolean isArchived = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -116,6 +119,25 @@ public class Label implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Label isArchived(Boolean isArchived) {
|
||||
this.isArchived = isArchived;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isArchived
|
||||
*
|
||||
* @return isArchived
|
||||
*/
|
||||
@Schema(example = "false", description = "")
|
||||
public Boolean isIsArchived() {
|
||||
return isArchived;
|
||||
}
|
||||
|
||||
public void setIsArchived(Boolean isArchived) {
|
||||
this.isArchived = isArchived;
|
||||
}
|
||||
|
||||
public Label name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -167,13 +189,14 @@ public class Label implements Serializable {
|
||||
&& Objects.equals(this.description, label.description)
|
||||
&& Objects.equals(this.exclusive, label.exclusive)
|
||||
&& Objects.equals(this.id, label.id)
|
||||
&& Objects.equals(this.isArchived, label.isArchived)
|
||||
&& Objects.equals(this.name, label.name)
|
||||
&& Objects.equals(this.url, label.url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(color, description, exclusive, id, name, url);
|
||||
return Objects.hash(color, description, exclusive, id, isArchived, name, url);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -185,6 +208,7 @@ public class Label implements Serializable {
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -29,6 +29,9 @@ public class ModelPackage implements Serializable {
|
||||
@SerializedName("creator")
|
||||
private User creator = null;
|
||||
|
||||
@SerializedName("html_url")
|
||||
private String htmlUrl = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@@ -85,6 +88,25 @@ public class ModelPackage implements Serializable {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public ModelPackage 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 ModelPackage id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -210,6 +232,7 @@ public class ModelPackage implements Serializable {
|
||||
ModelPackage _package = (ModelPackage) o;
|
||||
return Objects.equals(this.createdAt, _package.createdAt)
|
||||
&& Objects.equals(this.creator, _package.creator)
|
||||
&& Objects.equals(this.htmlUrl, _package.htmlUrl)
|
||||
&& Objects.equals(this.id, _package.id)
|
||||
&& Objects.equals(this.name, _package.name)
|
||||
&& Objects.equals(this.owner, _package.owner)
|
||||
@@ -220,7 +243,7 @@ public class ModelPackage implements Serializable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(createdAt, creator, id, name, owner, repository, type, version);
|
||||
return Objects.hash(createdAt, creator, htmlUrl, id, name, owner, repository, type, version);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -230,6 +253,7 @@ public class ModelPackage implements Serializable {
|
||||
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
|
||||
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" owner: ").append(toIndentedString(owner)).append("\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;
|
||||
|
||||
/** PushMirror represents information of a push mirror */
|
||||
@@ -23,7 +24,7 @@ public class PushMirror implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("created")
|
||||
private String created = null;
|
||||
private Date created = null;
|
||||
|
||||
@SerializedName("interval")
|
||||
private String interval = null;
|
||||
@@ -32,7 +33,7 @@ public class PushMirror implements Serializable {
|
||||
private String lastError = null;
|
||||
|
||||
@SerializedName("last_update")
|
||||
private String lastUpdate = null;
|
||||
private Date lastUpdate = null;
|
||||
|
||||
@SerializedName("remote_address")
|
||||
private String remoteAddress = null;
|
||||
@@ -46,7 +47,7 @@ public class PushMirror implements Serializable {
|
||||
@SerializedName("sync_on_commit")
|
||||
private Boolean syncOnCommit = null;
|
||||
|
||||
public PushMirror created(String created) {
|
||||
public PushMirror created(Date created) {
|
||||
this.created = created;
|
||||
return this;
|
||||
}
|
||||
@@ -57,11 +58,11 @@ public class PushMirror implements Serializable {
|
||||
* @return created
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getCreated() {
|
||||
public Date getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(String created) {
|
||||
public void setCreated(Date created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
@@ -103,7 +104,7 @@ public class PushMirror implements Serializable {
|
||||
this.lastError = lastError;
|
||||
}
|
||||
|
||||
public PushMirror lastUpdate(String lastUpdate) {
|
||||
public PushMirror lastUpdate(Date lastUpdate) {
|
||||
this.lastUpdate = lastUpdate;
|
||||
return this;
|
||||
}
|
||||
@@ -114,11 +115,11 @@ public class PushMirror implements Serializable {
|
||||
* @return lastUpdate
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getLastUpdate() {
|
||||
public Date getLastUpdate() {
|
||||
return lastUpdate;
|
||||
}
|
||||
|
||||
public void setLastUpdate(String lastUpdate) {
|
||||
public void setLastUpdate(Date lastUpdate) {
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,9 @@ public class Release implements Serializable {
|
||||
@SerializedName("target_commitish")
|
||||
private String targetCommitish = null;
|
||||
|
||||
@SerializedName("upload_url")
|
||||
private String uploadUrl = null;
|
||||
|
||||
@SerializedName("url")
|
||||
private String url = null;
|
||||
|
||||
@@ -325,6 +328,25 @@ public class Release implements Serializable {
|
||||
this.targetCommitish = targetCommitish;
|
||||
}
|
||||
|
||||
public Release uploadUrl(String uploadUrl) {
|
||||
this.uploadUrl = uploadUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get uploadUrl
|
||||
*
|
||||
* @return uploadUrl
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getUploadUrl() {
|
||||
return uploadUrl;
|
||||
}
|
||||
|
||||
public void setUploadUrl(String uploadUrl) {
|
||||
this.uploadUrl = uploadUrl;
|
||||
}
|
||||
|
||||
public Release url(String url) {
|
||||
this.url = url;
|
||||
return this;
|
||||
@@ -385,6 +407,7 @@ public class Release implements Serializable {
|
||||
&& Objects.equals(this.tagName, release.tagName)
|
||||
&& Objects.equals(this.tarballUrl, release.tarballUrl)
|
||||
&& Objects.equals(this.targetCommitish, release.targetCommitish)
|
||||
&& Objects.equals(this.uploadUrl, release.uploadUrl)
|
||||
&& Objects.equals(this.url, release.url)
|
||||
&& Objects.equals(this.zipballUrl, release.zipballUrl);
|
||||
}
|
||||
@@ -405,6 +428,7 @@ public class Release implements Serializable {
|
||||
tagName,
|
||||
tarballUrl,
|
||||
targetCommitish,
|
||||
uploadUrl,
|
||||
url,
|
||||
zipballUrl);
|
||||
}
|
||||
@@ -427,6 +451,7 @@ public class Release implements Serializable {
|
||||
sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n");
|
||||
sb.append(" tarballUrl: ").append(toIndentedString(tarballUrl)).append("\n");
|
||||
sb.append(" targetCommitish: ").append(toIndentedString(targetCommitish)).append("\n");
|
||||
sb.append(" uploadUrl: ").append(toIndentedString(uploadUrl)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
sb.append(" zipballUrl: ").append(toIndentedString(zipballUrl)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -185,6 +185,9 @@ public class Repository implements Serializable {
|
||||
@SerializedName("updated_at")
|
||||
private Date updatedAt = null;
|
||||
|
||||
@SerializedName("url")
|
||||
private String url = null;
|
||||
|
||||
@SerializedName("watchers_count")
|
||||
private Long watchersCount = null;
|
||||
|
||||
@@ -1217,6 +1220,25 @@ public class Repository implements Serializable {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Repository 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;
|
||||
}
|
||||
|
||||
public Repository watchersCount(Long watchersCount) {
|
||||
this.watchersCount = watchersCount;
|
||||
return this;
|
||||
@@ -1319,6 +1341,7 @@ public class Repository implements Serializable {
|
||||
&& Objects.equals(this.starsCount, repository.starsCount)
|
||||
&& Objects.equals(this.template, repository.template)
|
||||
&& Objects.equals(this.updatedAt, repository.updatedAt)
|
||||
&& Objects.equals(this.url, repository.url)
|
||||
&& Objects.equals(this.watchersCount, repository.watchersCount)
|
||||
&& Objects.equals(this.website, repository.website);
|
||||
}
|
||||
@@ -1380,6 +1403,7 @@ public class Repository implements Serializable {
|
||||
starsCount,
|
||||
template,
|
||||
updatedAt,
|
||||
url,
|
||||
watchersCount,
|
||||
website);
|
||||
}
|
||||
@@ -1451,6 +1475,7 @@ public class Repository implements Serializable {
|
||||
sb.append(" starsCount: ").append(toIndentedString(starsCount)).append("\n");
|
||||
sb.append(" template: ").append(toIndentedString(template)).append("\n");
|
||||
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
sb.append(" watchersCount: ").append(toIndentedString(watchersCount)).append("\n");
|
||||
sb.append(" website: ").append(toIndentedString(website)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** Secret represents a secret */
|
||||
@Schema(description = "Secret represents a secret")
|
||||
public class Secret implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("created_at")
|
||||
private Date createdAt = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
public Secret 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 Secret name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the secret's name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "the secret's name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Secret secret = (Secret) o;
|
||||
return Objects.equals(this.createdAt, secret.createdAt)
|
||||
&& Objects.equals(this.name, secret.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(createdAt, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Secret {\n");
|
||||
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).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