mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-06 18:02:16 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -3,6 +3,7 @@ package org.gitnex.tea4j.v2.apis;
|
||||
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.Activity;
|
||||
import org.gitnex.tea4j.v2.models.CreateHookOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateLabelOption;
|
||||
@@ -10,6 +11,7 @@ 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;
|
||||
import org.gitnex.tea4j.v2.models.CreateVariableOption;
|
||||
import org.gitnex.tea4j.v2.models.EditHookOption;
|
||||
import org.gitnex.tea4j.v2.models.EditLabelOption;
|
||||
import org.gitnex.tea4j.v2.models.EditOrgOption;
|
||||
@@ -23,6 +25,7 @@ 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.UpdateVariableOption;
|
||||
import org.gitnex.tea4j.v2.models.User;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.*;
|
||||
@@ -52,6 +55,21 @@ public interface OrganizationApi {
|
||||
Call<Repository> createOrgRepoDeprecated(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Body CreateRepoOption body);
|
||||
|
||||
/**
|
||||
* Create an org-level variable
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@POST("orgs/{org}/actions/variables/{variablename}")
|
||||
Call<Void> createOrgVariable(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body CreateVariableOption body);
|
||||
|
||||
/**
|
||||
* Delete a secret in an organization
|
||||
*
|
||||
@@ -63,6 +81,44 @@ public interface OrganizationApi {
|
||||
Call<Void> deleteOrgSecret(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("secretname") String secretname);
|
||||
|
||||
/**
|
||||
* Delete an org-level variable
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @return Call<ActionVariable>
|
||||
*/
|
||||
@DELETE("orgs/{org}/actions/variables/{variablename}")
|
||||
Call<ActionVariable> deleteOrgVariable(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get an org-level variable
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @return Call<ActionVariable>
|
||||
*/
|
||||
@GET("orgs/{org}/actions/variables/{variablename}")
|
||||
Call<ActionVariable> getOrgVariable(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get an org-level variables list
|
||||
*
|
||||
* @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<ActionVariable>>
|
||||
*/
|
||||
@GET("orgs/{org}/actions/variables")
|
||||
Call<List<ActionVariable>> getOrgVariablesList(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Add a team member
|
||||
*
|
||||
@@ -690,4 +746,19 @@ public interface OrganizationApi {
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("secretname") String secretname,
|
||||
@retrofit2.http.Body CreateOrUpdateSecretOption body);
|
||||
|
||||
/**
|
||||
* Update an org-level variable
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("orgs/{org}/actions/variables/{variablename}")
|
||||
Call<Void> updateOrgVariable(
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body UpdateVariableOption body);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import okhttp3.RequestBody;
|
||||
import org.gitnex.tea4j.v2.CollectionFormats.*;
|
||||
import org.gitnex.tea4j.v2.models.ActionVariable;
|
||||
import org.gitnex.tea4j.v2.models.Activity;
|
||||
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
|
||||
import org.gitnex.tea4j.v2.models.AnnotatedTag;
|
||||
@@ -31,6 +32,7 @@ import org.gitnex.tea4j.v2.models.CreateReleaseOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateRepoOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateStatusOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateTagOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateVariableOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateWikiPageOptions;
|
||||
import org.gitnex.tea4j.v2.models.DeleteFileOptions;
|
||||
import org.gitnex.tea4j.v2.models.DeployKey;
|
||||
@@ -79,6 +81,7 @@ import org.gitnex.tea4j.v2.models.TrackedTime;
|
||||
import org.gitnex.tea4j.v2.models.TransferRepoOption;
|
||||
import org.gitnex.tea4j.v2.models.UpdateFileOptions;
|
||||
import org.gitnex.tea4j.v2.models.UpdateRepoAvatarOption;
|
||||
import org.gitnex.tea4j.v2.models.UpdateVariableOption;
|
||||
import org.gitnex.tea4j.v2.models.User;
|
||||
import org.gitnex.tea4j.v2.models.WatchInfo;
|
||||
import org.gitnex.tea4j.v2.models.WikiCommitList;
|
||||
@@ -124,6 +127,23 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Body CreateForkOption body);
|
||||
|
||||
/**
|
||||
* Create a repo-level variable
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@POST("repos/{owner}/{repo}/actions/variables/{variablename}")
|
||||
Call<Void> createRepoVariable(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body CreateVariableOption body);
|
||||
|
||||
/**
|
||||
* Delete a secret in a repository
|
||||
*
|
||||
@@ -138,6 +158,20 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("secretname") String secretname);
|
||||
|
||||
/**
|
||||
* Delete a repo-level variable
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @return Call<ActionVariable>
|
||||
*/
|
||||
@DELETE("repos/{owner}/{repo}/actions/variables/{variablename}")
|
||||
Call<ActionVariable> deleteRepoVariable(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Create a repository using a template
|
||||
*
|
||||
@@ -182,6 +216,36 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("sha") String sha);
|
||||
|
||||
/**
|
||||
* Get a repo-level variable
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @return Call<ActionVariable>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/variables/{variablename}")
|
||||
Call<ActionVariable> getRepoVariable(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get repo-level variables list
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return Call<List<ActionVariable>>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/variables")
|
||||
Call<List<ActionVariable>> getRepoVariablesList(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Gets the tree of a repository.
|
||||
*
|
||||
@@ -2361,6 +2425,23 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("secretname") String secretname,
|
||||
@retrofit2.http.Body CreateOrUpdateSecretOption body);
|
||||
|
||||
/**
|
||||
* Update a repo-level variable
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param variablename name of the variable (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("repos/{owner}/{repo}/actions/variables/{variablename}")
|
||||
Call<Void> updateRepoVariable(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body UpdateVariableOption body);
|
||||
|
||||
/**
|
||||
* Check if the current user is watching a repo
|
||||
*
|
||||
|
||||
@@ -4,6 +4,7 @@ import java.util.Date;
|
||||
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.Activity;
|
||||
import org.gitnex.tea4j.v2.models.CreateAccessTokenOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateEmailOption;
|
||||
@@ -13,6 +14,7 @@ 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.CreateVariableOption;
|
||||
import org.gitnex.tea4j.v2.models.DeleteEmailOption;
|
||||
import org.gitnex.tea4j.v2.models.EditHookOption;
|
||||
import org.gitnex.tea4j.v2.models.Email;
|
||||
@@ -26,6 +28,7 @@ import org.gitnex.tea4j.v2.models.StopWatch;
|
||||
import org.gitnex.tea4j.v2.models.Team;
|
||||
import org.gitnex.tea4j.v2.models.TrackedTime;
|
||||
import org.gitnex.tea4j.v2.models.UpdateUserAvatarOption;
|
||||
import org.gitnex.tea4j.v2.models.UpdateVariableOption;
|
||||
import org.gitnex.tea4j.v2.models.User;
|
||||
import org.gitnex.tea4j.v2.models.UserHeatmapData;
|
||||
import org.gitnex.tea4j.v2.models.UserSettings;
|
||||
@@ -44,6 +47,19 @@ public interface UserApi {
|
||||
@POST("user/repos")
|
||||
Call<Repository> createCurrentUserRepo(@retrofit2.http.Body CreateRepoOption body);
|
||||
|
||||
/**
|
||||
* Create a user-level variable
|
||||
*
|
||||
* @param variablename name of the variable (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@POST("user/actions/variables/{variablename}")
|
||||
Call<Void> createUserVariable(
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body CreateVariableOption body);
|
||||
|
||||
/**
|
||||
* Delete a secret in a user scope
|
||||
*
|
||||
@@ -53,6 +69,15 @@ public interface UserApi {
|
||||
@DELETE("user/actions/secrets/{secretname}")
|
||||
Call<Void> deleteUserSecret(@retrofit2.http.Path("secretname") String secretname);
|
||||
|
||||
/**
|
||||
* Delete a user-level variable which is created by current doer
|
||||
*
|
||||
* @param variablename name of the variable (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("user/actions/variables/{variablename}")
|
||||
Call<Void> deleteUserVariable(@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get user settings
|
||||
*
|
||||
@@ -61,6 +86,26 @@ public interface UserApi {
|
||||
@GET("user/settings")
|
||||
Call<List<UserSettings>> getUserSettings();
|
||||
|
||||
/**
|
||||
* Get a user-level variable which is created by current doer
|
||||
*
|
||||
* @param variablename name of the variable (required)
|
||||
* @return Call<ActionVariable>
|
||||
*/
|
||||
@GET("user/actions/variables/{variablename}")
|
||||
Call<ActionVariable> getUserVariable(@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get the user-level list of variables which is created by current doer
|
||||
*
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return Call<List<ActionVariable>>
|
||||
*/
|
||||
@GET("user/actions/variables")
|
||||
Call<List<ActionVariable>> getUserVariablesList(
|
||||
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Get a Token to verify
|
||||
*
|
||||
@@ -92,6 +137,19 @@ public interface UserApi {
|
||||
@PATCH("user/settings")
|
||||
Call<List<UserSettings>> updateUserSettings(@retrofit2.http.Body UserSettingsOptions body);
|
||||
|
||||
/**
|
||||
* Update a user-level variable which is created by current doer
|
||||
*
|
||||
* @param variablename name of the variable (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("user/actions/variables/{variablename}")
|
||||
Call<Void> updateUserVariable(
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body UpdateVariableOption body);
|
||||
|
||||
/**
|
||||
* Add email addresses
|
||||
*
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
* 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.Objects;
|
||||
|
||||
/** ActionVariable return value of the query API */
|
||||
@Schema(description = "ActionVariable return value of the query API")
|
||||
public class ActionVariable implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("data")
|
||||
private String data = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("owner_id")
|
||||
private Long ownerId = null;
|
||||
|
||||
@SerializedName("repo_id")
|
||||
private Long repoId = null;
|
||||
|
||||
public ActionVariable data(String data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the value of the variable
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
@Schema(description = "the value of the variable")
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ActionVariable name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the name of the variable
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "the name of the variable")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionVariable ownerId(Long ownerId) {
|
||||
this.ownerId = ownerId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the owner to which the variable belongs
|
||||
*
|
||||
* @return ownerId
|
||||
*/
|
||||
@Schema(description = "the owner to which the variable belongs")
|
||||
public Long getOwnerId() {
|
||||
return ownerId;
|
||||
}
|
||||
|
||||
public void setOwnerId(Long ownerId) {
|
||||
this.ownerId = ownerId;
|
||||
}
|
||||
|
||||
public ActionVariable repoId(Long repoId) {
|
||||
this.repoId = repoId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the repository to which the variable belongs
|
||||
*
|
||||
* @return repoId
|
||||
*/
|
||||
@Schema(description = "the repository to which the variable belongs")
|
||||
public Long getRepoId() {
|
||||
return repoId;
|
||||
}
|
||||
|
||||
public void setRepoId(Long repoId) {
|
||||
this.repoId = repoId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionVariable actionVariable = (ActionVariable) o;
|
||||
return Objects.equals(this.data, actionVariable.data)
|
||||
&& Objects.equals(this.name, actionVariable.name)
|
||||
&& Objects.equals(this.ownerId, actionVariable.ownerId)
|
||||
&& Objects.equals(this.repoId, actionVariable.repoId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(data, name, ownerId, repoId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionVariable {\n");
|
||||
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
|
||||
sb.append(" repoId: ").append(toIndentedString(repoId)).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,83 @@
|
||||
/*
|
||||
* 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.Objects;
|
||||
|
||||
/** CreateVariableOption the option when creating variable */
|
||||
@Schema(description = "CreateVariableOption the option when creating variable")
|
||||
public class CreateVariableOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("value")
|
||||
private String value = null;
|
||||
|
||||
public CreateVariableOption value(String value) {
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Value of the variable to create
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
@Schema(required = true, description = "Value of the variable to create")
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateVariableOption createVariableOption = (CreateVariableOption) o;
|
||||
return Objects.equals(this.value, createVariableOption.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateVariableOption {\n");
|
||||
|
||||
sb.append(" value: ").append(toIndentedString(value)).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,109 @@
|
||||
/*
|
||||
* 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.Objects;
|
||||
|
||||
/** UpdateVariableOption the option when updating variable */
|
||||
@Schema(description = "UpdateVariableOption the option when updating variable")
|
||||
public class UpdateVariableOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("value")
|
||||
private String value = null;
|
||||
|
||||
public UpdateVariableOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* New name for the variable. If the field is empty, the variable name won't be updated.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(
|
||||
description =
|
||||
"New name for the variable. If the field is empty, the variable name won't be updated.")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public UpdateVariableOption value(String value) {
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Value of the variable to update
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
@Schema(required = true, description = "Value of the variable to update")
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpdateVariableOption updateVariableOption = (UpdateVariableOption) o;
|
||||
return Objects.equals(this.name, updateVariableOption.name)
|
||||
&& Objects.equals(this.value, updateVariableOption.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class UpdateVariableOption {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" value: ").append(toIndentedString(value)).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