Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2025-06-18 09:26:00 +00:00
parent 5d46d7f19a
commit 0ad7eaf429
70 changed files with 6485 additions and 76 deletions
@@ -92,6 +92,14 @@ public interface AdminApi {
Call<Repository> adminCreateRepo(
@retrofit2.http.Body CreateRepoOption body, @retrofit2.http.Path("username") String username);
/**
* Get an global actions runner registration token
*
* @return Call&lt;Void&gt;
*/
@POST("admin/actions/runners/registration-token")
Call<Void> adminCreateRunnerRegistrationToken();
/**
* Create a user
*
@@ -318,4 +326,30 @@ public interface AdminApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("pattern") String pattern);
/**
* Delete an global runner
*
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@DELETE("admin/actions/runners/{runner_id}")
Call<Void> deleteAdminRunner(@retrofit2.http.Path("runner_id") String runnerId);
/**
* Get an global runner
*
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@GET("admin/actions/runners/{runner_id}")
Call<Void> getAdminRunner(@retrofit2.http.Path("runner_id") String runnerId);
/**
* Get all runners
*
* @return Call&lt;Void&gt;
*/
@GET("admin/actions/runners")
Call<Void> getAdminRunners();
}
@@ -23,6 +23,7 @@ import org.gitnex.tea4j.v2.models.IssueDeadline;
import org.gitnex.tea4j.v2.models.IssueLabelsOption;
import org.gitnex.tea4j.v2.models.IssueMeta;
import org.gitnex.tea4j.v2.models.Label;
import org.gitnex.tea4j.v2.models.LockIssueOption;
import org.gitnex.tea4j.v2.models.Milestone;
import org.gitnex.tea4j.v2.models.Reaction;
import org.gitnex.tea4j.v2.models.TimelineComment;
@@ -916,6 +917,23 @@ public interface IssueApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Lock an issue
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param body (optional)
* @return Call&lt;Void&gt;
*/
@Headers({"Content-Type:application/json"})
@PUT("repos/{owner}/{repo}/issues/{index}/lock")
Call<Void> issueLockIssue(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index,
@retrofit2.http.Body LockIssueOption body);
/**
* Add a reaction to a comment of an issue
*
@@ -1152,6 +1170,20 @@ public interface IssueApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Unlock an issue
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @return Call&lt;Void&gt;
*/
@DELETE("repos/{owner}/{repo}/issues/{index}/lock")
Call<Void> issueUnlockIssue(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index);
/**
* Moves the Pin to the given Position
*
@@ -57,6 +57,14 @@ public interface MiscellaneousApi {
@GET("signing-key.gpg")
Call<String> getSigningKey();
/**
* Get default signing-key.pub
*
* @return Call&lt;String&gt;
*/
@GET("signing-key.pub")
Call<String> getSigningKeySSH();
/**
* Returns the version of the Gitea application
*
@@ -21,6 +21,7 @@ import org.gitnex.tea4j.v2.models.InlineResponse200;
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.RenameOrgOption;
import org.gitnex.tea4j.v2.models.Repository;
import org.gitnex.tea4j.v2.models.Secret;
import org.gitnex.tea4j.v2.models.Team;
@@ -70,6 +71,17 @@ public interface OrganizationApi {
@retrofit2.http.Path("variablename") String variablename,
@retrofit2.http.Body CreateVariableOption body);
/**
* Delete an org-level runner
*
* @param org name of the organization (required)
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@DELETE("orgs/{org}/actions/runners/{runner_id}")
Call<Void> deleteOrgRunner(
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("runner_id") String runnerId);
/**
* Delete a secret in an organization
*
@@ -93,6 +105,26 @@ public interface OrganizationApi {
@retrofit2.http.Path("org") String org,
@retrofit2.http.Path("variablename") String variablename);
/**
* Get an org-level runner
*
* @param org name of the organization (required)
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@GET("orgs/{org}/actions/runners/{runner_id}")
Call<Void> getOrgRunner(
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("runner_id") String runnerId);
/**
* Get org-level runners
*
* @param org name of the organization (required)
* @return Call&lt;Void&gt;
*/
@GET("orgs/{org}/actions/runners")
Call<Void> getOrgRunners(@retrofit2.http.Path("org") String org);
/**
* Get an org-level variable
*
@@ -189,6 +221,15 @@ public interface OrganizationApi {
Call<Label> orgCreateLabel(
@retrofit2.http.Path("org") String org, @retrofit2.http.Body CreateLabelOption body);
/**
* Get an organization&#x27;s actions runner registration token
*
* @param org name of the organization (required)
* @return Call&lt;Void&gt;
*/
@POST("orgs/{org}/actions/runners/registration-token")
Call<Void> orgCreateRunnerRegistrationToken(@retrofit2.http.Path("org") String org);
/**
* Create a team
*
@@ -714,6 +755,18 @@ public interface OrganizationApi {
Call<Void> organizationUnblockUser(
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
/**
* Rename an organization
*
* @param body (required)
* @param org existing org name (required)
* @return Call&lt;Void&gt;
*/
@Headers({"Content-Type:application/json"})
@POST("orgs/{org}/rename")
Call<Void> renameOrg(
@retrofit2.http.Body RenameOrgOption body, @retrofit2.http.Path("org") String org);
/**
* Search for teams within an organization
*
@@ -24,6 +24,20 @@ public interface PackageApi {
@retrofit2.http.Path("name") String name,
@retrofit2.http.Path("version") String version);
/**
* Gets the latest version of a package
*
* @param owner owner of the package (required)
* @param type type of the package (required)
* @param name name of the package (required)
* @return Call&lt;ModelPackage&gt;
*/
@GET("packages/{owner}/{type}/{name}/-/latest")
Call<ModelPackage> getLatestPackageVersion(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("type") String type,
@retrofit2.http.Path("name") String name);
/**
* Gets a package
*
@@ -40,6 +54,22 @@ public interface PackageApi {
@retrofit2.http.Path("name") String name,
@retrofit2.http.Path("version") String version);
/**
* Link a package to a repository
*
* @param owner owner of the package (required)
* @param type type of the package (required)
* @param name name of the package (required)
* @param repoName name of the repository to link. (required)
* @return Call&lt;Void&gt;
*/
@POST("packages/{owner}/{type}/{name}/-/link/{repo_name}")
Call<Void> linkPackage(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("type") String type,
@retrofit2.http.Path("name") String name,
@retrofit2.http.Path("repo_name") String repoName);
/**
* Gets all files of a package
*
@@ -56,6 +86,24 @@ public interface PackageApi {
@retrofit2.http.Path("name") String name,
@retrofit2.http.Path("version") String version);
/**
* Gets all versions of a package
*
* @param owner owner of the package (required)
* @param type type of the package (required)
* @param name name of the package (required)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;List&lt;ModelPackage&gt;&gt;
*/
@GET("packages/{owner}/{type}/{name}")
Call<List<ModelPackage>> listPackageVersions(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("type") String type,
@retrofit2.http.Path("name") String name,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Gets all packages of an owner
*
@@ -73,4 +121,18 @@ public interface PackageApi {
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("type") String type,
@retrofit2.http.Query("q") String q);
/**
* Unlink a package from a repository
*
* @param owner owner of the package (required)
* @param type type of the package (required)
* @param name name of the package (required)
* @return Call&lt;Void&gt;
*/
@POST("packages/{owner}/{type}/{name}/-/unlink")
Call<Void> unlinkPackage(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("type") String type,
@retrofit2.http.Path("name") String name);
}
@@ -6,8 +6,11 @@ import java.util.List;
import java.util.Map;
import okhttp3.RequestBody;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.ActionArtifact;
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.Activity;
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
import org.gitnex.tea4j.v2.models.AnnotatedTag;
@@ -21,6 +24,7 @@ import org.gitnex.tea4j.v2.models.Commit;
import org.gitnex.tea4j.v2.models.CommitStatus;
import org.gitnex.tea4j.v2.models.Compare;
import org.gitnex.tea4j.v2.models.ContentsResponse;
import org.gitnex.tea4j.v2.models.CreateActionWorkflowDispatch;
import org.gitnex.tea4j.v2.models.CreateBranchProtectionOption;
import org.gitnex.tea4j.v2.models.CreateBranchRepoOption;
import org.gitnex.tea4j.v2.models.CreateFileOptions;
@@ -53,6 +57,7 @@ import org.gitnex.tea4j.v2.models.FileDeleteResponse;
import org.gitnex.tea4j.v2.models.FileResponse;
import org.gitnex.tea4j.v2.models.FilesResponse;
import org.gitnex.tea4j.v2.models.GenerateRepoOption;
import org.gitnex.tea4j.v2.models.GetFilesOptions;
import org.gitnex.tea4j.v2.models.GitBlobResponse;
import org.gitnex.tea4j.v2.models.GitHook;
import org.gitnex.tea4j.v2.models.GitTreeResponse;
@@ -113,6 +118,76 @@ public interface RepositoryApi {
Call<Repository> acceptRepoTransfer(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Disable a workflow
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param workflowId id of the workflow (required)
* @return Call&lt;Void&gt;
*/
@PUT("repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable")
Call<Void> actionsDisableWorkflow(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("workflow_id") String workflowId);
/**
* Create a workflow dispatch event
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param workflowId id of the workflow (required)
* @param body (optional)
* @return Call&lt;Void&gt;
*/
@Headers({"Content-Type:application/json"})
@POST("repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches")
Call<Void> actionsDispatchWorkflow(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("workflow_id") String workflowId,
@retrofit2.http.Body CreateActionWorkflowDispatch body);
/**
* Enable a workflow
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param workflowId id of the workflow (required)
* @return Call&lt;Void&gt;
*/
@PUT("repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable")
Call<Void> actionsEnableWorkflow(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("workflow_id") String workflowId);
/**
* Get a workflow
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param workflowId id of the workflow (required)
* @return Call&lt;ActionWorkflow&gt;
*/
@GET("repos/{owner}/{repo}/actions/workflows/{workflow_id}")
Call<ActionWorkflow> actionsGetWorkflow(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("workflow_id") String workflowId);
/**
* List repository workflows
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;List&lt;ActionWorkflow&gt;&gt;
*/
@GET("repos/{owner}/{repo}/actions/workflows")
Call<List<ActionWorkflow>> actionsListRepositoryWorkflows(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Create a repository
*
@@ -155,6 +230,48 @@ public interface RepositoryApi {
@retrofit2.http.Path("variablename") String variablename,
@retrofit2.http.Body CreateVariableOption body);
/**
* Delete 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)
* @return Call&lt;Void&gt;
*/
@DELETE("repos/{owner}/{repo}/actions/runs/{run}")
Call<Void> deleteActionRun(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("run") Integer run);
/**
* Deletes a specific artifact for a workflow run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param artifactId id of the artifact (required)
* @return Call&lt;Void&gt;
*/
@DELETE("repos/{owner}/{repo}/actions/artifacts/{artifact_id}")
Call<Void> deleteArtifact(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("artifact_id") String artifactId);
/**
* Delete an repo-level runner
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@DELETE("repos/{owner}/{repo}/actions/runners/{runner_id}")
Call<Void> deleteRepoRunner(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("runner_id") String runnerId);
/**
* Delete a secret in a repository
*
@@ -183,6 +300,34 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("variablename") String variablename);
/**
* Downloads the job logs 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;Void&gt;
*/
@GET("repos/{owner}/{repo}/actions/jobs/{job_id}/logs")
Call<Void> downloadActionsRunJobLogs(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("job_id") Integer jobId);
/**
* Downloads a specific artifact for a workflow run redirects to blob url
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param artifactId id of the artifact (required)
* @return Call&lt;Void&gt;
*/
@GET("repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip")
Call<Void> downloadArtifact(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("artifact_id") String artifactId);
/**
* Create a repository using a template
*
@@ -213,6 +358,50 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("sha") String sha);
/**
* Gets a specific artifact for a workflow run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param artifactId id of the artifact (required)
* @return Call&lt;ActionArtifact&gt;
*/
@GET("repos/{owner}/{repo}/actions/artifacts/{artifact_id}")
Call<ActionArtifact> getArtifact(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("artifact_id") String artifactId);
/**
* Lists all artifacts for a repository
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param name name of the artifact (optional)
* @return Call&lt;ActionArtifactsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/artifacts")
Call<ActionArtifactsResponse> getArtifacts(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("name") String name);
/**
* Lists all artifacts for a repository run
*
* @param owner name of the owner (required)
* @param repo name of the repository (required)
* @param run runid of the workflow run (required)
* @param name name of the artifact (optional)
* @return Call&lt;ActionArtifactsResponse&gt;
*/
@GET("repos/{owner}/{repo}/actions/runs/{run}/artifacts")
Call<ActionArtifactsResponse> getArtifactsOfRun(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("run") Integer run,
@retrofit2.http.Query("name") String name);
/**
* Gets the blob of a repository.
*
@@ -227,6 +416,31 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("sha") String sha);
/**
* Get an repo-level runner
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@GET("repos/{owner}/{repo}/actions/runners/{runner_id}")
Call<Void> getRepoRunner(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("runner_id") String runnerId);
/**
* Get repo-level runners
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;Void&gt;
*/
@GET("repos/{owner}/{repo}/actions/runners")
Call<Void> getRepoRunners(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get a repo-level variable
*
@@ -646,6 +860,17 @@ public interface RepositoryApi {
@retrofit2.http.Body IdAssetsBody2 body,
@retrofit2.http.Query("name") String name);
/**
* Get a repository&#x27;s actions runner registration token
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;Void&gt;
*/
@POST("repos/{owner}/{repo}/actions/runners/registration-token")
Call<Void> repoCreateRunnerRegistrationToken(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Create a commit status
*
@@ -1218,6 +1443,8 @@ public interface RepositoryApi {
* @param repo name of the repo (required)
* @param sha SHA or branch to start listing commits from (usually &#x27;master&#x27;) (optional)
* @param path filepath of a file/dir (optional)
* @param since Only commits after this date will be returned (ISO 8601 format) (optional)
* @param until Only commits before this date will be returned (ISO 8601 format) (optional)
* @param stat include diff stats for every commit (disable for speedup, default &#x27;true&#x27;)
* (optional)
* @param verification include verification for every commit (disable for speedup, default
@@ -1235,6 +1462,8 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("sha") String sha,
@retrofit2.http.Query("path") String path,
@retrofit2.http.Query("since") Date since,
@retrofit2.http.Query("until") Date until,
@retrofit2.http.Query("stat") Boolean stat,
@retrofit2.http.Query("verification") Boolean verification,
@retrofit2.http.Query("files") Boolean files,
@@ -1344,8 +1573,8 @@ public interface RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param filepath path of the dir, file, symlink or submodule in the repo (required)
* @param ref The name of the commit/branch/tag. Default the repositorys default branch (usually
* master) (optional)
* @param ref The name of the commit/branch/tag. Default to the repositorys default branch.
* (optional)
* @return Call&lt;ContentsResponse&gt;
*/
@GET("repos/{owner}/{repo}/contents/{filepath}")
@@ -1360,8 +1589,8 @@ public interface RepositoryApi {
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param ref The name of the commit/branch/tag. Default the repositorys default branch (usually
* master) (optional)
* @param ref The name of the commit/branch/tag. Default to the repositorys default branch.
* (optional)
* @return Call&lt;List&lt;ContentsResponse&gt;&gt;
*/
@GET("repos/{owner}/{repo}/contents")
@@ -1376,8 +1605,8 @@ public interface RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param filepath filepath of file to get (required)
* @param ref The name of the commit/branch/tag. Default the repositorys default branch (usually
* master) (optional)
* @param ref The name of the commit/branch/tag. Default to the repositorys default branch.
* (optional)
* @return Call&lt;Void&gt;
*/
@GET("repos/{owner}/{repo}/editorconfig/{filepath}")
@@ -1387,6 +1616,47 @@ public interface RepositoryApi {
@retrofit2.http.Path("filepath") String filepath,
@retrofit2.http.Query("ref") String ref);
/**
* Get the metadata and contents of requested files See the POST method. This GET method supports
* to use JSON encoded request body in query parameter.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param body The JSON encoded body (see the POST request): {\&quot;files\&quot;:
* [\&quot;filename1\&quot;, \&quot;filename2\&quot;]} (required)
* @param ref The name of the commit/branch/tag. Default to the repositorys default branch.
* (optional)
* @return Call&lt;List&lt;ContentsResponse&gt;&gt;
*/
@GET("repos/{owner}/{repo}/file-contents")
Call<List<ContentsResponse>> repoGetFileContents(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("body") String body,
@retrofit2.http.Query("ref") String ref);
/**
* Get the metadata and contents of requested files Uses automatic pagination based on default
* page size and max response size and returns the maximum allowed number of files. Files which
* could not be retrieved are null. Files which are too large are being returned with
* &#x60;encoding &#x3D;&#x3D; null&#x60;, &#x60;content &#x3D;&#x3D; null&#x60; and &#x60;size
* &gt; 0&#x60;, they can be requested separately by using the &#x60;download_url&#x60;.
*
* @param body (required)
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param ref The name of the commit/branch/tag. Default to the repositorys default branch.
* (optional)
* @return Call&lt;List&lt;ContentsResponse&gt;&gt;
*/
@Headers({"Content-Type:application/json"})
@POST("repos/{owner}/{repo}/file-contents")
Call<List<ContentsResponse>> repoGetFileContentsPost(
@retrofit2.http.Body GetFilesOptions body,
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("ref") String ref);
/**
* Get a Git hook
*
@@ -2015,6 +2285,7 @@ public interface RepositoryApi {
*
* @param owner Owner of the repo (required)
* @param repo Name of the repo (required)
* @param baseBranch Filter by target base branch of the pull request (optional)
* @param state State of pull request (optional, default to open)
* @param sort Type of sort (optional)
* @param milestone ID of the milestone (optional)
@@ -2028,6 +2299,7 @@ public interface RepositoryApi {
Call<List<PullRequest>> repoListPullRequests(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Query("base_branch") String baseBranch,
@retrofit2.http.Query("state") String state,
@retrofit2.http.Query("sort") String sort,
@retrofit2.http.Query("milestone") Long milestone,
@@ -2388,6 +2660,17 @@ public interface RepositoryApi {
Call<String> repoSigningKey(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get signing-key.pub for given repository
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;String&gt;
*/
@GET("repos/{owner}/{repo}/signing-key.pub")
Call<String> repoSigningKeySSH(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Submit a pending review to an pull request
*
@@ -60,6 +60,15 @@ public interface UserApi {
@retrofit2.http.Path("variablename") String variablename,
@retrofit2.http.Body CreateVariableOption body);
/**
* Delete an user-level runner
*
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@DELETE("user/actions/runners/{runner_id}")
Call<Void> deleteUserRunner(@retrofit2.http.Path("runner_id") String runnerId);
/**
* Delete a secret in a user scope
*
@@ -78,6 +87,23 @@ public interface UserApi {
@DELETE("user/actions/variables/{variablename}")
Call<Void> deleteUserVariable(@retrofit2.http.Path("variablename") String variablename);
/**
* Get an user-level runner
*
* @param runnerId id of the runner (required)
* @return Call&lt;Void&gt;
*/
@GET("user/actions/runners/{runner_id}")
Call<Void> getUserRunner(@retrofit2.http.Path("runner_id") String runnerId);
/**
* Get user-level runners
*
* @return Call&lt;Void&gt;
*/
@GET("user/actions/runners")
Call<Void> getUserRunners();
/**
* Get user settings
*
@@ -213,6 +239,14 @@ public interface UserApi {
Call<OAuth2Application> userCreateOAuth2Application(
@retrofit2.http.Body CreateOAuth2ApplicationOptions body);
/**
* Get an user&#x27;s actions runner registration token
*
* @return Call&lt;Void&gt;
*/
@POST("user/actions/runners/registration-token")
Call<Void> userCreateRunnerRegistrationToken();
/**
* Create an access token
*
@@ -117,8 +117,12 @@ public interface CustomApi {
Call<UserSettings> customUpdateUserSettings(@Body UserSettingsOptions userSettingsOptions);
@Headers({"Content-Type:application/json"})
@HTTP(method = "DELETE", path = "repos/{owner}/{repo}/issues/{index}/dependencies", hasBody = true)
Call<Void> customIssueRemoveIssueDependencies(@retrofit2.http.Path("owner") String owner,
@HTTP(
method = "DELETE",
path = "repos/{owner}/{repo}/issues/{index}/dependencies",
hasBody = true)
Call<Void> issueRemoveIssueDependencies2(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Body IssueMeta body);
@@ -16,6 +16,7 @@ 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;
@@ -23,9 +24,15 @@ import java.util.Objects;
public class AccessToken implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("created_at")
private Date createdAt = null;
@SerializedName("id")
private Long id = null;
@SerializedName("last_used_at")
private Date lastUsedAt = null;
@SerializedName("name")
private String name = null;
@@ -38,6 +45,25 @@ public class AccessToken implements Serializable {
@SerializedName("token_last_eight")
private String tokenLastEight = null;
public AccessToken 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 AccessToken id(Long id) {
this.id = id;
return this;
@@ -57,6 +83,25 @@ public class AccessToken implements Serializable {
this.id = id;
}
public AccessToken lastUsedAt(Date lastUsedAt) {
this.lastUsedAt = lastUsedAt;
return this;
}
/**
* Get lastUsedAt
*
* @return lastUsedAt
*/
@Schema(description = "")
public Date getLastUsedAt() {
return lastUsedAt;
}
public void setLastUsedAt(Date lastUsedAt) {
this.lastUsedAt = lastUsedAt;
}
public AccessToken name(String name) {
this.name = name;
return this;
@@ -150,7 +195,9 @@ public class AccessToken implements Serializable {
return false;
}
AccessToken accessToken = (AccessToken) o;
return Objects.equals(this.id, accessToken.id)
return Objects.equals(this.createdAt, accessToken.createdAt)
&& Objects.equals(this.id, accessToken.id)
&& Objects.equals(this.lastUsedAt, accessToken.lastUsedAt)
&& Objects.equals(this.name, accessToken.name)
&& Objects.equals(this.scopes, accessToken.scopes)
&& Objects.equals(this.sha1, accessToken.sha1)
@@ -159,7 +206,7 @@ public class AccessToken implements Serializable {
@Override
public int hashCode() {
return Objects.hash(id, name, scopes, sha1, tokenLastEight);
return Objects.hash(createdAt, id, lastUsedAt, name, scopes, sha1, tokenLastEight);
}
@Override
@@ -167,7 +214,9 @@ public class AccessToken implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class AccessToken {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" lastUsedAt: ").append(toIndentedString(lastUsedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n");
@@ -0,0 +1,310 @@
/*
* 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;
/** ActionArtifact represents a ActionArtifact */
@Schema(description = "ActionArtifact represents a ActionArtifact")
public class ActionArtifact implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("archive_download_url")
private String archiveDownloadUrl = null;
@SerializedName("created_at")
private Date createdAt = null;
@SerializedName("expired")
private Boolean expired = null;
@SerializedName("expires_at")
private Date expiresAt = null;
@SerializedName("id")
private Long id = null;
@SerializedName("name")
private String name = null;
@SerializedName("size_in_bytes")
private Long sizeInBytes = null;
@SerializedName("updated_at")
private Date updatedAt = null;
@SerializedName("url")
private String url = null;
@SerializedName("workflow_run")
private ActionWorkflowRun workflowRun = null;
public ActionArtifact archiveDownloadUrl(String archiveDownloadUrl) {
this.archiveDownloadUrl = archiveDownloadUrl;
return this;
}
/**
* Get archiveDownloadUrl
*
* @return archiveDownloadUrl
*/
@Schema(description = "")
public String getArchiveDownloadUrl() {
return archiveDownloadUrl;
}
public void setArchiveDownloadUrl(String archiveDownloadUrl) {
this.archiveDownloadUrl = archiveDownloadUrl;
}
public ActionArtifact 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 ActionArtifact expired(Boolean expired) {
this.expired = expired;
return this;
}
/**
* Get expired
*
* @return expired
*/
@Schema(description = "")
public Boolean isExpired() {
return expired;
}
public void setExpired(Boolean expired) {
this.expired = expired;
}
public ActionArtifact expiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* Get expiresAt
*
* @return expiresAt
*/
@Schema(description = "")
public Date getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
}
public ActionArtifact 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 ActionArtifact 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 ActionArtifact sizeInBytes(Long sizeInBytes) {
this.sizeInBytes = sizeInBytes;
return this;
}
/**
* Get sizeInBytes
*
* @return sizeInBytes
*/
@Schema(description = "")
public Long getSizeInBytes() {
return sizeInBytes;
}
public void setSizeInBytes(Long sizeInBytes) {
this.sizeInBytes = sizeInBytes;
}
public ActionArtifact updatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
*
* @return updatedAt
*/
@Schema(description = "")
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public ActionArtifact 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 ActionArtifact workflowRun(ActionWorkflowRun workflowRun) {
this.workflowRun = workflowRun;
return this;
}
/**
* Get workflowRun
*
* @return workflowRun
*/
@Schema(description = "")
public ActionWorkflowRun getWorkflowRun() {
return workflowRun;
}
public void setWorkflowRun(ActionWorkflowRun workflowRun) {
this.workflowRun = workflowRun;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionArtifact actionArtifact = (ActionArtifact) o;
return Objects.equals(this.archiveDownloadUrl, actionArtifact.archiveDownloadUrl)
&& Objects.equals(this.createdAt, actionArtifact.createdAt)
&& Objects.equals(this.expired, actionArtifact.expired)
&& Objects.equals(this.expiresAt, actionArtifact.expiresAt)
&& Objects.equals(this.id, actionArtifact.id)
&& Objects.equals(this.name, actionArtifact.name)
&& Objects.equals(this.sizeInBytes, actionArtifact.sizeInBytes)
&& Objects.equals(this.updatedAt, actionArtifact.updatedAt)
&& Objects.equals(this.url, actionArtifact.url)
&& Objects.equals(this.workflowRun, actionArtifact.workflowRun);
}
@Override
public int hashCode() {
return Objects.hash(
archiveDownloadUrl,
createdAt,
expired,
expiresAt,
id,
name,
sizeInBytes,
updatedAt,
url,
workflowRun);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionArtifact {\n");
sb.append(" archiveDownloadUrl: ").append(toIndentedString(archiveDownloadUrl)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" expired: ").append(toIndentedString(expired)).append("\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" sizeInBytes: ").append(toIndentedString(sizeInBytes)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" workflowRun: ").append(toIndentedString(workflowRun)).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;
/** ActionArtifactsResponse returns ActionArtifacts */
@Schema(description = "ActionArtifactsResponse returns ActionArtifacts")
public class ActionArtifactsResponse implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("artifacts")
private List<ActionArtifact> artifacts = null;
@SerializedName("total_count")
private Long totalCount = null;
public ActionArtifactsResponse artifacts(List<ActionArtifact> artifacts) {
this.artifacts = artifacts;
return this;
}
public ActionArtifactsResponse addArtifactsItem(ActionArtifact artifactsItem) {
if (this.artifacts == null) {
this.artifacts = new ArrayList<>();
}
this.artifacts.add(artifactsItem);
return this;
}
/**
* Get artifacts
*
* @return artifacts
*/
@Schema(description = "")
public List<ActionArtifact> getArtifacts() {
return artifacts;
}
public void setArtifacts(List<ActionArtifact> artifacts) {
this.artifacts = artifacts;
}
public ActionArtifactsResponse 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;
}
ActionArtifactsResponse actionArtifactsResponse = (ActionArtifactsResponse) o;
return Objects.equals(this.artifacts, actionArtifactsResponse.artifacts)
&& Objects.equals(this.totalCount, actionArtifactsResponse.totalCount);
}
@Override
public int hashCode() {
return Objects.hash(artifacts, totalCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionArtifactsResponse {\n");
sb.append(" artifacts: ").append(toIndentedString(artifacts)).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 ");
}
}
@@ -0,0 +1,213 @@
/*
* 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;
/** ActionRunner represents a Runner */
@Schema(description = "ActionRunner represents a Runner")
public class ActionRunner implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("busy")
private Boolean busy = null;
@SerializedName("ephemeral")
private Boolean ephemeral = null;
@SerializedName("id")
private Long id = null;
@SerializedName("labels")
private List<ActionRunnerLabel> labels = null;
@SerializedName("name")
private String name = null;
@SerializedName("status")
private String status = null;
public ActionRunner busy(Boolean busy) {
this.busy = busy;
return this;
}
/**
* Get busy
*
* @return busy
*/
@Schema(description = "")
public Boolean isBusy() {
return busy;
}
public void setBusy(Boolean busy) {
this.busy = busy;
}
public ActionRunner ephemeral(Boolean ephemeral) {
this.ephemeral = ephemeral;
return this;
}
/**
* Get ephemeral
*
* @return ephemeral
*/
@Schema(description = "")
public Boolean isEphemeral() {
return ephemeral;
}
public void setEphemeral(Boolean ephemeral) {
this.ephemeral = ephemeral;
}
public ActionRunner 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 ActionRunner labels(List<ActionRunnerLabel> labels) {
this.labels = labels;
return this;
}
public ActionRunner addLabelsItem(ActionRunnerLabel labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList<>();
}
this.labels.add(labelsItem);
return this;
}
/**
* Get labels
*
* @return labels
*/
@Schema(description = "")
public List<ActionRunnerLabel> getLabels() {
return labels;
}
public void setLabels(List<ActionRunnerLabel> labels) {
this.labels = labels;
}
public ActionRunner 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 ActionRunner 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;
}
ActionRunner actionRunner = (ActionRunner) o;
return Objects.equals(this.busy, actionRunner.busy)
&& Objects.equals(this.ephemeral, actionRunner.ephemeral)
&& Objects.equals(this.id, actionRunner.id)
&& Objects.equals(this.labels, actionRunner.labels)
&& Objects.equals(this.name, actionRunner.name)
&& Objects.equals(this.status, actionRunner.status);
}
@Override
public int hashCode() {
return Objects.hash(busy, ephemeral, id, labels, name, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionRunner {\n");
sb.append(" busy: ").append(toIndentedString(busy)).append("\n");
sb.append(" ephemeral: ").append(toIndentedString(ephemeral)).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(" 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 ");
}
}
@@ -0,0 +1,131 @@
/*
* 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;
/** ActionRunnerLabel represents a Runner Label */
@Schema(description = "ActionRunnerLabel represents a Runner Label")
public class ActionRunnerLabel implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("id")
private Long id = null;
@SerializedName("name")
private String name = null;
@SerializedName("type")
private String type = null;
public ActionRunnerLabel 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 ActionRunnerLabel 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 ActionRunnerLabel type(String type) {
this.type = type;
return this;
}
/**
* Get type
*
* @return type
*/
@Schema(description = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionRunnerLabel actionRunnerLabel = (ActionRunnerLabel) o;
return Objects.equals(this.id, actionRunnerLabel.id)
&& Objects.equals(this.name, actionRunnerLabel.name)
&& Objects.equals(this.type, actionRunnerLabel.type);
}
@Override
public int hashCode() {
return Objects.hash(id, name, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionRunnerLabel {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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;
/** ActionRunnersResponse returns Runners */
@Schema(description = "ActionRunnersResponse returns Runners")
public class ActionRunnersResponse implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("runners")
private List<ActionRunner> runners = null;
@SerializedName("total_count")
private Long totalCount = null;
public ActionRunnersResponse runners(List<ActionRunner> runners) {
this.runners = runners;
return this;
}
public ActionRunnersResponse addRunnersItem(ActionRunner runnersItem) {
if (this.runners == null) {
this.runners = new ArrayList<>();
}
this.runners.add(runnersItem);
return this;
}
/**
* Get runners
*
* @return runners
*/
@Schema(description = "")
public List<ActionRunner> getRunners() {
return runners;
}
public void setRunners(List<ActionRunner> runners) {
this.runners = runners;
}
public ActionRunnersResponse 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;
}
ActionRunnersResponse actionRunnersResponse = (ActionRunnersResponse) o;
return Objects.equals(this.runners, actionRunnersResponse.runners)
&& Objects.equals(this.totalCount, actionRunnersResponse.totalCount);
}
@Override
public int hashCode() {
return Objects.hash(runners, totalCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionRunnersResponse {\n");
sb.append(" runners: ").append(toIndentedString(runners)).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 ");
}
}
@@ -25,6 +25,9 @@ public class ActionVariable implements Serializable {
@SerializedName("data")
private String data = null;
@SerializedName("description")
private String description = null;
@SerializedName("name")
private String name = null;
@@ -53,6 +56,25 @@ public class ActionVariable implements Serializable {
this.data = data;
}
public ActionVariable description(String description) {
this.description = description;
return this;
}
/**
* the description of the variable
*
* @return description
*/
@Schema(description = "the description of the variable")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ActionVariable name(String name) {
this.name = name;
return this;
@@ -120,6 +142,7 @@ public class ActionVariable implements Serializable {
}
ActionVariable actionVariable = (ActionVariable) o;
return Objects.equals(this.data, actionVariable.data)
&& Objects.equals(this.description, actionVariable.description)
&& Objects.equals(this.name, actionVariable.name)
&& Objects.equals(this.ownerId, actionVariable.ownerId)
&& Objects.equals(this.repoId, actionVariable.repoId);
@@ -127,7 +150,7 @@ public class ActionVariable implements Serializable {
@Override
public int hashCode() {
return Objects.hash(data, name, ownerId, repoId);
return Objects.hash(data, description, name, ownerId, repoId);
}
@Override
@@ -136,6 +159,7 @@ public class ActionVariable implements Serializable {
sb.append("class ActionVariable {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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");
@@ -0,0 +1,301 @@
/*
* 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;
/** ActionWorkflow represents a ActionWorkflow */
@Schema(description = "ActionWorkflow represents a ActionWorkflow")
public class ActionWorkflow implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("badge_url")
private String badgeUrl = null;
@SerializedName("created_at")
private Date createdAt = null;
@SerializedName("deleted_at")
private Date deletedAt = null;
@SerializedName("html_url")
private String htmlUrl = null;
@SerializedName("id")
private String id = null;
@SerializedName("name")
private String name = null;
@SerializedName("path")
private String path = null;
@SerializedName("state")
private String state = null;
@SerializedName("updated_at")
private Date updatedAt = null;
@SerializedName("url")
private String url = null;
public ActionWorkflow badgeUrl(String badgeUrl) {
this.badgeUrl = badgeUrl;
return this;
}
/**
* Get badgeUrl
*
* @return badgeUrl
*/
@Schema(description = "")
public String getBadgeUrl() {
return badgeUrl;
}
public void setBadgeUrl(String badgeUrl) {
this.badgeUrl = badgeUrl;
}
public ActionWorkflow 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 ActionWorkflow deletedAt(Date deletedAt) {
this.deletedAt = deletedAt;
return this;
}
/**
* Get deletedAt
*
* @return deletedAt
*/
@Schema(description = "")
public Date getDeletedAt() {
return deletedAt;
}
public void setDeletedAt(Date deletedAt) {
this.deletedAt = deletedAt;
}
public ActionWorkflow 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 ActionWorkflow id(String id) {
this.id = id;
return this;
}
/**
* Get id
*
* @return id
*/
@Schema(description = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ActionWorkflow 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 ActionWorkflow 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 ActionWorkflow state(String state) {
this.state = state;
return this;
}
/**
* Get state
*
* @return state
*/
@Schema(description = "")
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public ActionWorkflow updatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
*
* @return updatedAt
*/
@Schema(description = "")
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public ActionWorkflow 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;
}
ActionWorkflow actionWorkflow = (ActionWorkflow) o;
return Objects.equals(this.badgeUrl, actionWorkflow.badgeUrl)
&& Objects.equals(this.createdAt, actionWorkflow.createdAt)
&& Objects.equals(this.deletedAt, actionWorkflow.deletedAt)
&& Objects.equals(this.htmlUrl, actionWorkflow.htmlUrl)
&& Objects.equals(this.id, actionWorkflow.id)
&& Objects.equals(this.name, actionWorkflow.name)
&& Objects.equals(this.path, actionWorkflow.path)
&& Objects.equals(this.state, actionWorkflow.state)
&& Objects.equals(this.updatedAt, actionWorkflow.updatedAt)
&& Objects.equals(this.url, actionWorkflow.url);
}
@Override
public int hashCode() {
return Objects.hash(
badgeUrl, createdAt, deletedAt, htmlUrl, id, name, path, state, updatedAt, url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflow {\n");
sb.append(" badgeUrl: ").append(toIndentedString(badgeUrl)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).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(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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,131 @@
/*
* 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;
/** ActionWorkflowRun represents a WorkflowRun */
@Schema(description = "ActionWorkflowRun represents a WorkflowRun")
public class ActionWorkflowRun implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("head_sha")
private String headSha = null;
@SerializedName("id")
private Long id = null;
@SerializedName("repository_id")
private Long repositoryId = null;
public ActionWorkflowRun 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 ActionWorkflowRun 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 ActionWorkflowRun repositoryId(Long repositoryId) {
this.repositoryId = repositoryId;
return this;
}
/**
* Get repositoryId
*
* @return repositoryId
*/
@Schema(description = "")
public Long getRepositoryId() {
return repositoryId;
}
public void setRepositoryId(Long repositoryId) {
this.repositoryId = repositoryId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionWorkflowRun actionWorkflowRun = (ActionWorkflowRun) o;
return Objects.equals(this.headSha, actionWorkflowRun.headSha)
&& Objects.equals(this.id, actionWorkflowRun.id)
&& Objects.equals(this.repositoryId, actionWorkflowRun.repositoryId);
}
@Override
public int hashCode() {
return Objects.hash(headSha, id, repositoryId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowRun {\n");
sb.append(" headSha: ").append(toIndentedString(headSha)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).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 ");
}
}
@@ -12,8 +12,13 @@
package org.gitnex.tea4j.v2.models;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@@ -34,8 +39,57 @@ public class CombinedStatus implements Serializable {
@SerializedName("sha")
private String sha = null;
/** Gets or Sets state */
@JsonAdapter(StateEnum.Adapter.class)
public enum StateEnum {
PENDING("pending"),
SUCCESS("success"),
ERROR("error"),
FAILURE("failure"),
WARNING("warning"),
SKIPPED("skipped");
private String value;
StateEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StateEnum fromValue(String input) {
for (StateEnum b : StateEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter<StateEnum> {
@Override
public void write(final JsonWriter jsonWriter, final StateEnum enumeration)
throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public StateEnum read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return StateEnum.fromValue((String) (value));
}
}
}
@SerializedName("state")
private String state = null;
private StateEnum state = null;
@SerializedName("statuses")
private List<CommitStatus> statuses = null;
@@ -103,7 +157,7 @@ public class CombinedStatus implements Serializable {
this.sha = sha;
}
public CombinedStatus state(String state) {
public CombinedStatus state(StateEnum state) {
this.state = state;
return this;
}
@@ -114,11 +168,11 @@ public class CombinedStatus implements Serializable {
* @return state
*/
@Schema(description = "")
public String getState() {
public StateEnum getState() {
return state;
}
public void setState(String state) {
public void setState(StateEnum state) {
this.state = state;
}
@@ -12,8 +12,13 @@
package org.gitnex.tea4j.v2.models;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
@@ -38,8 +43,57 @@ public class CommitStatus implements Serializable {
@SerializedName("id")
private Long id = null;
/** Gets or Sets status */
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {
PENDING("pending"),
SUCCESS("success"),
ERROR("error"),
FAILURE("failure"),
WARNING("warning"),
SKIPPED("skipped");
private String value;
StatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StatusEnum fromValue(String input) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter<StatusEnum> {
@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration)
throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return StatusEnum.fromValue((String) (value));
}
}
}
@SerializedName("status")
private String status = null;
private StatusEnum status = null;
@SerializedName("target_url")
private String targetUrl = null;
@@ -145,7 +199,7 @@ public class CommitStatus implements Serializable {
this.id = id;
}
public CommitStatus status(String status) {
public CommitStatus status(StatusEnum status) {
this.status = status;
return this;
}
@@ -156,11 +210,11 @@ public class CommitStatus implements Serializable {
* @return status
*/
@Schema(description = "")
public String getStatus() {
public StatusEnum getStatus() {
return status;
}
public void setStatus(String status) {
public void setStatus(StatusEnum status) {
this.status = status;
}
@@ -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;
/**
@@ -46,9 +47,15 @@ public class ContentsResponse implements Serializable {
@SerializedName("html_url")
private String htmlUrl = null;
@SerializedName("last_author_date")
private Date lastAuthorDate = null;
@SerializedName("last_commit_sha")
private String lastCommitSha = null;
@SerializedName("last_committer_date")
private Date lastCommitterDate = null;
@SerializedName("name")
private String name = null;
@@ -187,6 +194,25 @@ public class ContentsResponse implements Serializable {
this.htmlUrl = htmlUrl;
}
public ContentsResponse lastAuthorDate(Date lastAuthorDate) {
this.lastAuthorDate = lastAuthorDate;
return this;
}
/**
* Get lastAuthorDate
*
* @return lastAuthorDate
*/
@Schema(description = "")
public Date getLastAuthorDate() {
return lastAuthorDate;
}
public void setLastAuthorDate(Date lastAuthorDate) {
this.lastAuthorDate = lastAuthorDate;
}
public ContentsResponse lastCommitSha(String lastCommitSha) {
this.lastCommitSha = lastCommitSha;
return this;
@@ -206,6 +232,25 @@ public class ContentsResponse implements Serializable {
this.lastCommitSha = lastCommitSha;
}
public ContentsResponse lastCommitterDate(Date lastCommitterDate) {
this.lastCommitterDate = lastCommitterDate;
return this;
}
/**
* Get lastCommitterDate
*
* @return lastCommitterDate
*/
@Schema(description = "")
public Date getLastCommitterDate() {
return lastCommitterDate;
}
public void setLastCommitterDate(Date lastCommitterDate) {
this.lastCommitterDate = lastCommitterDate;
}
public ContentsResponse name(String name) {
this.name = name;
return this;
@@ -376,7 +421,9 @@ public class ContentsResponse implements Serializable {
&& Objects.equals(this.encoding, contentsResponse.encoding)
&& Objects.equals(this.gitUrl, contentsResponse.gitUrl)
&& Objects.equals(this.htmlUrl, contentsResponse.htmlUrl)
&& Objects.equals(this.lastAuthorDate, contentsResponse.lastAuthorDate)
&& Objects.equals(this.lastCommitSha, contentsResponse.lastCommitSha)
&& Objects.equals(this.lastCommitterDate, contentsResponse.lastCommitterDate)
&& Objects.equals(this.name, contentsResponse.name)
&& Objects.equals(this.path, contentsResponse.path)
&& Objects.equals(this.sha, contentsResponse.sha)
@@ -396,7 +443,9 @@ public class ContentsResponse implements Serializable {
encoding,
gitUrl,
htmlUrl,
lastAuthorDate,
lastCommitSha,
lastCommitterDate,
name,
path,
sha,
@@ -418,7 +467,9 @@ public class ContentsResponse implements Serializable {
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
sb.append(" gitUrl: ").append(toIndentedString(gitUrl)).append("\n");
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" lastAuthorDate: ").append(toIndentedString(lastAuthorDate)).append("\n");
sb.append(" lastCommitSha: ").append(toIndentedString(lastCommitSha)).append("\n");
sb.append(" lastCommitterDate: ").append(toIndentedString(lastCommitterDate)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" sha: ").append(toIndentedString(sha)).append("\n");
@@ -67,7 +67,10 @@ public class CreateAccessTokenOption implements Serializable {
*
* @return scopes
*/
@Schema(description = "")
@Schema(
example =
"[\"all\",\"read:activitypub\",\"read:issue\",\"write:misc\",\"read:notification\",\"read:organization\",\"read:package\",\"read:repository\",\"read:user\"]",
description = "")
public List<String> getScopes() {
return scopes;
}
@@ -0,0 +1,120 @@
/*
* 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.HashMap;
import java.util.Map;
import java.util.Objects;
/** CreateActionWorkflowDispatch represents the payload for triggering a workflow dispatch event */
@Schema(
description =
"CreateActionWorkflowDispatch represents the payload for triggering a workflow dispatch"
+ " event")
public class CreateActionWorkflowDispatch implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("inputs")
private Map<String, String> inputs = null;
@SerializedName("ref")
private String ref = null;
public CreateActionWorkflowDispatch inputs(Map<String, String> inputs) {
this.inputs = inputs;
return this;
}
public CreateActionWorkflowDispatch putInputsItem(String key, String inputsItem) {
if (this.inputs == null) {
this.inputs = new HashMap<>();
}
this.inputs.put(key, inputsItem);
return this;
}
/**
* Get inputs
*
* @return inputs
*/
@Schema(description = "")
public Map<String, String> getInputs() {
return inputs;
}
public void setInputs(Map<String, String> inputs) {
this.inputs = inputs;
}
public CreateActionWorkflowDispatch ref(String ref) {
this.ref = ref;
return this;
}
/**
* Get ref
*
* @return ref
*/
@Schema(example = "refs/heads/main", required = true, description = "")
public String getRef() {
return ref;
}
public void setRef(String ref) {
this.ref = ref;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateActionWorkflowDispatch createActionWorkflowDispatch = (CreateActionWorkflowDispatch) o;
return Objects.equals(this.inputs, createActionWorkflowDispatch.inputs)
&& Objects.equals(this.ref, createActionWorkflowDispatch.ref);
}
@Override
public int hashCode() {
return Objects.hash(inputs, ref);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateActionWorkflowDispatch {\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" ref: ").append(toIndentedString(ref)).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 ");
}
}
@@ -25,6 +25,9 @@ public class CreateOrUpdateSecretOption implements Serializable {
@SerializedName("data")
private String data = null;
@SerializedName("description")
private String description = null;
public CreateOrUpdateSecretOption data(String data) {
this.data = data;
return this;
@@ -44,6 +47,25 @@ public class CreateOrUpdateSecretOption implements Serializable {
this.data = data;
}
public CreateOrUpdateSecretOption description(String description) {
this.description = description;
return this;
}
/**
* Description of the secret to update
*
* @return description
*/
@Schema(description = "Description of the secret to update")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -53,12 +75,13 @@ public class CreateOrUpdateSecretOption implements Serializable {
return false;
}
CreateOrUpdateSecretOption createOrUpdateSecretOption = (CreateOrUpdateSecretOption) o;
return Objects.equals(this.data, createOrUpdateSecretOption.data);
return Objects.equals(this.data, createOrUpdateSecretOption.data)
&& Objects.equals(this.description, createOrUpdateSecretOption.description);
}
@Override
public int hashCode() {
return Objects.hash(data);
return Objects.hash(data, description);
}
@Override
@@ -67,6 +90,7 @@ public class CreateOrUpdateSecretOption implements Serializable {
sb.append("class CreateOrUpdateSecretOption {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -34,6 +34,9 @@ public class CreateReleaseOption implements Serializable {
@SerializedName("prerelease")
private Boolean prerelease = null;
@SerializedName("tag_message")
private String tagMessage = null;
@SerializedName("tag_name")
private String tagName = null;
@@ -116,6 +119,25 @@ public class CreateReleaseOption implements Serializable {
this.prerelease = prerelease;
}
public CreateReleaseOption tagMessage(String tagMessage) {
this.tagMessage = tagMessage;
return this;
}
/**
* Get tagMessage
*
* @return tagMessage
*/
@Schema(description = "")
public String getTagMessage() {
return tagMessage;
}
public void setTagMessage(String tagMessage) {
this.tagMessage = tagMessage;
}
public CreateReleaseOption tagName(String tagName) {
this.tagName = tagName;
return this;
@@ -167,13 +189,14 @@ public class CreateReleaseOption implements Serializable {
&& Objects.equals(this.draft, createReleaseOption.draft)
&& Objects.equals(this.name, createReleaseOption.name)
&& Objects.equals(this.prerelease, createReleaseOption.prerelease)
&& Objects.equals(this.tagMessage, createReleaseOption.tagMessage)
&& Objects.equals(this.tagName, createReleaseOption.tagName)
&& Objects.equals(this.targetCommitish, createReleaseOption.targetCommitish);
}
@Override
public int hashCode() {
return Objects.hash(body, draft, name, prerelease, tagName, targetCommitish);
return Objects.hash(body, draft, name, prerelease, tagMessage, tagName, targetCommitish);
}
@Override
@@ -185,6 +208,7 @@ public class CreateReleaseOption implements Serializable {
sb.append(" draft: ").append(toIndentedString(draft)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" prerelease: ").append(toIndentedString(prerelease)).append("\n");
sb.append(" tagMessage: ").append(toIndentedString(tagMessage)).append("\n");
sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n");
sb.append(" targetCommitish: ").append(toIndentedString(targetCommitish)).append("\n");
sb.append("}");
@@ -12,8 +12,13 @@
package org.gitnex.tea4j.v2.models;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.io.Serializable;
import java.util.Objects;
@@ -30,8 +35,57 @@ public class CreateStatusOption implements Serializable {
@SerializedName("description")
private String description = null;
/** Gets or Sets state */
@JsonAdapter(StateEnum.Adapter.class)
public enum StateEnum {
PENDING("pending"),
SUCCESS("success"),
ERROR("error"),
FAILURE("failure"),
WARNING("warning"),
SKIPPED("skipped");
private String value;
StateEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StateEnum fromValue(String input) {
for (StateEnum b : StateEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter<StateEnum> {
@Override
public void write(final JsonWriter jsonWriter, final StateEnum enumeration)
throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public StateEnum read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return StateEnum.fromValue((String) (value));
}
}
}
@SerializedName("state")
private String state = null;
private StateEnum state = null;
@SerializedName("target_url")
private String targetUrl = null;
@@ -74,7 +128,7 @@ public class CreateStatusOption implements Serializable {
this.description = description;
}
public CreateStatusOption state(String state) {
public CreateStatusOption state(StateEnum state) {
this.state = state;
return this;
}
@@ -85,11 +139,11 @@ public class CreateStatusOption implements Serializable {
* @return state
*/
@Schema(description = "")
public String getState() {
public StateEnum getState() {
return state;
}
public void setState(String state) {
public void setState(StateEnum state) {
this.state = state;
}
@@ -22,9 +22,31 @@ import java.util.Objects;
public class CreateVariableOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("description")
private String description = null;
@SerializedName("value")
private String value = null;
public CreateVariableOption description(String description) {
this.description = description;
return this;
}
/**
* Description of the variable to create
*
* @return description
*/
@Schema(description = "Description of the variable to create")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public CreateVariableOption value(String value) {
this.value = value;
return this;
@@ -53,12 +75,13 @@ public class CreateVariableOption implements Serializable {
return false;
}
CreateVariableOption createVariableOption = (CreateVariableOption) o;
return Objects.equals(this.value, createVariableOption.value);
return Objects.equals(this.description, createVariableOption.description)
&& Objects.equals(this.value, createVariableOption.value);
}
@Override
public int hashCode() {
return Objects.hash(value);
return Objects.hash(description, value);
}
@Override
@@ -66,6 +89,7 @@ public class CreateVariableOption implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class CreateVariableOption {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append("}");
return sb.toString();
@@ -28,6 +28,9 @@ public class GeneralAPISettings implements Serializable {
@SerializedName("default_max_blob_size")
private Long defaultMaxBlobSize = null;
@SerializedName("default_max_response_size")
private Long defaultMaxResponseSize = null;
@SerializedName("default_paging_num")
private Long defaultPagingNum = null;
@@ -72,6 +75,25 @@ public class GeneralAPISettings implements Serializable {
this.defaultMaxBlobSize = defaultMaxBlobSize;
}
public GeneralAPISettings defaultMaxResponseSize(Long defaultMaxResponseSize) {
this.defaultMaxResponseSize = defaultMaxResponseSize;
return this;
}
/**
* Get defaultMaxResponseSize
*
* @return defaultMaxResponseSize
*/
@Schema(description = "")
public Long getDefaultMaxResponseSize() {
return defaultMaxResponseSize;
}
public void setDefaultMaxResponseSize(Long defaultMaxResponseSize) {
this.defaultMaxResponseSize = defaultMaxResponseSize;
}
public GeneralAPISettings defaultPagingNum(Long defaultPagingNum) {
this.defaultPagingNum = defaultPagingNum;
return this;
@@ -121,6 +143,7 @@ public class GeneralAPISettings implements Serializable {
GeneralAPISettings generalAPISettings = (GeneralAPISettings) o;
return Objects.equals(this.defaultGitTreesPerPage, generalAPISettings.defaultGitTreesPerPage)
&& Objects.equals(this.defaultMaxBlobSize, generalAPISettings.defaultMaxBlobSize)
&& Objects.equals(this.defaultMaxResponseSize, generalAPISettings.defaultMaxResponseSize)
&& Objects.equals(this.defaultPagingNum, generalAPISettings.defaultPagingNum)
&& Objects.equals(this.maxResponseItems, generalAPISettings.maxResponseItems);
}
@@ -128,7 +151,11 @@ public class GeneralAPISettings implements Serializable {
@Override
public int hashCode() {
return Objects.hash(
defaultGitTreesPerPage, defaultMaxBlobSize, defaultPagingNum, maxResponseItems);
defaultGitTreesPerPage,
defaultMaxBlobSize,
defaultMaxResponseSize,
defaultPagingNum,
maxResponseItems);
}
@Override
@@ -140,6 +167,9 @@ public class GeneralAPISettings implements Serializable {
.append(toIndentedString(defaultGitTreesPerPage))
.append("\n");
sb.append(" defaultMaxBlobSize: ").append(toIndentedString(defaultMaxBlobSize)).append("\n");
sb.append(" defaultMaxResponseSize: ")
.append(toIndentedString(defaultMaxResponseSize))
.append("\n");
sb.append(" defaultPagingNum: ").append(toIndentedString(defaultPagingNum)).append("\n");
sb.append(" maxResponseItems: ").append(toIndentedString(maxResponseItems)).append("\n");
sb.append("}");
@@ -0,0 +1,94 @@
/*
* 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;
/** GetFilesOptions options for retrieving metadate and content of multiple files */
@Schema(
description = "GetFilesOptions options for retrieving metadate and content of multiple files")
public class GetFilesOptions implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("files")
private List<String> files = null;
public GetFilesOptions files(List<String> files) {
this.files = files;
return this;
}
public GetFilesOptions addFilesItem(String filesItem) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(filesItem);
return this;
}
/**
* Get files
*
* @return files
*/
@Schema(description = "")
public List<String> getFiles() {
return files;
}
public void setFiles(List<String> files) {
this.files = files;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetFilesOptions getFilesOptions = (GetFilesOptions) o;
return Objects.equals(this.files, getFilesOptions.files);
}
@Override
public int hashCode() {
return Objects.hash(files);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetFilesOptions {\n");
sb.append(" files: ").append(toIndentedString(files)).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;
/** LockIssueOption options to lock an issue */
@Schema(description = "LockIssueOption options to lock an issue")
public class LockIssueOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("lock_reason")
private String lockReason = null;
public LockIssueOption lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
/**
* Get lockReason
*
* @return lockReason
*/
@Schema(description = "")
public String getLockReason() {
return lockReason;
}
public void setLockReason(String lockReason) {
this.lockReason = lockReason;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LockIssueOption lockIssueOption = (LockIssueOption) o;
return Objects.equals(this.lockReason, lockIssueOption.lockReason);
}
@Override
public int hashCode() {
return Objects.hash(lockReason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LockIssueOption {\n");
sb.append(" lockReason: ").append(toIndentedString(lockReason)).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 ");
}
}
@@ -99,7 +99,8 @@ public class MigrateRepoOptions implements Serializable {
GOGS("gogs"),
ONEDEV("onedev"),
GITBUCKET("gitbucket"),
CODEBASE("codebase");
CODEBASE("codebase"),
CODECOMMIT("codecommit");
private String value;
@@ -22,9 +22,6 @@ import java.util.Objects;
public class PackageFile implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("Size")
private Long size = null;
@SerializedName("id")
private Long id = null;
@@ -43,24 +40,8 @@ public class PackageFile implements Serializable {
@SerializedName("sha512")
private String sha512 = null;
public PackageFile size(Long size) {
this.size = size;
return this;
}
/**
* Get size
*
* @return size
*/
@Schema(description = "")
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
@SerializedName("size")
private Long size = null;
public PackageFile id(Long id) {
this.id = id;
@@ -176,6 +157,25 @@ public class PackageFile implements Serializable {
this.sha512 = sha512;
}
public PackageFile size(Long size) {
this.size = size;
return this;
}
/**
* Get size
*
* @return size
*/
@Schema(description = "")
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -185,18 +185,18 @@ public class PackageFile implements Serializable {
return false;
}
PackageFile packageFile = (PackageFile) o;
return Objects.equals(this.size, packageFile.size)
&& Objects.equals(this.id, packageFile.id)
return Objects.equals(this.id, packageFile.id)
&& Objects.equals(this.md5, packageFile.md5)
&& Objects.equals(this.name, packageFile.name)
&& Objects.equals(this.sha1, packageFile.sha1)
&& Objects.equals(this.sha256, packageFile.sha256)
&& Objects.equals(this.sha512, packageFile.sha512);
&& Objects.equals(this.sha512, packageFile.sha512)
&& Objects.equals(this.size, packageFile.size);
}
@Override
public int hashCode() {
return Objects.hash(size, id, md5, name, sha1, sha256, sha512);
return Objects.hash(id, md5, name, sha1, sha256, sha512, size);
}
@Override
@@ -204,13 +204,13 @@ public class PackageFile implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class PackageFile {\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" md5: ").append(toIndentedString(md5)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n");
sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n");
sb.append(" sha512: ").append(toIndentedString(sha512)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -38,6 +38,9 @@ public class PublicKey implements Serializable {
@SerializedName("key_type")
private String keyType = null;
@SerializedName("last_used_at")
private Date lastUsedAt = null;
@SerializedName("read_only")
private Boolean readOnly = null;
@@ -145,6 +148,25 @@ public class PublicKey implements Serializable {
this.keyType = keyType;
}
public PublicKey lastUsedAt(Date lastUsedAt) {
this.lastUsedAt = lastUsedAt;
return this;
}
/**
* Get lastUsedAt
*
* @return lastUsedAt
*/
@Schema(description = "")
public Date getLastUsedAt() {
return lastUsedAt;
}
public void setLastUsedAt(Date lastUsedAt) {
this.lastUsedAt = lastUsedAt;
}
public PublicKey readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
@@ -235,6 +257,7 @@ public class PublicKey implements Serializable {
&& Objects.equals(this.id, publicKey.id)
&& Objects.equals(this.key, publicKey.key)
&& Objects.equals(this.keyType, publicKey.keyType)
&& Objects.equals(this.lastUsedAt, publicKey.lastUsedAt)
&& Objects.equals(this.readOnly, publicKey.readOnly)
&& Objects.equals(this.title, publicKey.title)
&& Objects.equals(this.url, publicKey.url)
@@ -243,7 +266,8 @@ public class PublicKey implements Serializable {
@Override
public int hashCode() {
return Objects.hash(createdAt, fingerprint, id, key, keyType, readOnly, title, url, user);
return Objects.hash(
createdAt, fingerprint, id, key, keyType, lastUsedAt, readOnly, title, url, user);
}
@Override
@@ -256,6 +280,7 @@ public class PublicKey implements Serializable {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n");
sb.append(" lastUsedAt: ").append(toIndentedString(lastUsedAt)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
@@ -0,0 +1,85 @@
/*
* 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;
/** RenameOrgOption options when renaming an organization */
@Schema(description = "RenameOrgOption options when renaming an organization")
public class RenameOrgOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("new_name")
private String newName = null;
public RenameOrgOption newName(String newName) {
this.newName = newName;
return this;
}
/**
* New username for this org. This name cannot be in use yet by any other user.
*
* @return newName
*/
@Schema(
required = true,
description = "New username for this org. This name cannot be in use yet by any other user.")
public String getNewName() {
return newName;
}
public void setNewName(String newName) {
this.newName = newName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RenameOrgOption renameOrgOption = (RenameOrgOption) o;
return Objects.equals(this.newName, renameOrgOption.newName);
}
@Override
public int hashCode() {
return Objects.hash(newName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RenameOrgOption {\n");
sb.append(" newName: ").append(toIndentedString(newName)).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 ");
}
}
@@ -33,6 +33,9 @@ public class Repository implements Serializable {
@SerializedName("allow_fast_forward_only_merge")
private Boolean allowFastForwardOnlyMerge = null;
@SerializedName("allow_manual_merge")
private Boolean allowManualMerge = null;
@SerializedName("allow_merge_commits")
private Boolean allowMergeCommits = null;
@@ -54,6 +57,9 @@ public class Repository implements Serializable {
@SerializedName("archived_at")
private Date archivedAt = null;
@SerializedName("autodetect_manual_merge")
private Boolean autodetectManualMerge = null;
@SerializedName("avatar_url")
private String avatarUrl = null;
@@ -280,6 +286,25 @@ public class Repository implements Serializable {
this.allowFastForwardOnlyMerge = allowFastForwardOnlyMerge;
}
public Repository allowManualMerge(Boolean allowManualMerge) {
this.allowManualMerge = allowManualMerge;
return this;
}
/**
* Get allowManualMerge
*
* @return allowManualMerge
*/
@Schema(description = "")
public Boolean isAllowManualMerge() {
return allowManualMerge;
}
public void setAllowManualMerge(Boolean allowManualMerge) {
this.allowManualMerge = allowManualMerge;
}
public Repository allowMergeCommits(Boolean allowMergeCommits) {
this.allowMergeCommits = allowMergeCommits;
return this;
@@ -413,6 +438,25 @@ public class Repository implements Serializable {
this.archivedAt = archivedAt;
}
public Repository autodetectManualMerge(Boolean autodetectManualMerge) {
this.autodetectManualMerge = autodetectManualMerge;
return this;
}
/**
* Get autodetectManualMerge
*
* @return autodetectManualMerge
*/
@Schema(description = "")
public Boolean isAutodetectManualMerge() {
return autodetectManualMerge;
}
public void setAutodetectManualMerge(Boolean autodetectManualMerge) {
this.autodetectManualMerge = autodetectManualMerge;
}
public Repository avatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
return this;
@@ -1465,6 +1509,7 @@ public class Repository implements Serializable {
}
Repository repository = (Repository) o;
return Objects.equals(this.allowFastForwardOnlyMerge, repository.allowFastForwardOnlyMerge)
&& Objects.equals(this.allowManualMerge, repository.allowManualMerge)
&& Objects.equals(this.allowMergeCommits, repository.allowMergeCommits)
&& Objects.equals(this.allowRebase, repository.allowRebase)
&& Objects.equals(this.allowRebaseExplicit, repository.allowRebaseExplicit)
@@ -1472,6 +1517,7 @@ public class Repository implements Serializable {
&& Objects.equals(this.allowSquashMerge, repository.allowSquashMerge)
&& Objects.equals(this.archived, repository.archived)
&& Objects.equals(this.archivedAt, repository.archivedAt)
&& Objects.equals(this.autodetectManualMerge, repository.autodetectManualMerge)
&& Objects.equals(this.avatarUrl, repository.avatarUrl)
&& Objects.equals(this.cloneUrl, repository.cloneUrl)
&& Objects.equals(this.createdAt, repository.createdAt)
@@ -1533,6 +1579,7 @@ public class Repository implements Serializable {
public int hashCode() {
return Objects.hash(
allowFastForwardOnlyMerge,
allowManualMerge,
allowMergeCommits,
allowRebase,
allowRebaseExplicit,
@@ -1540,6 +1587,7 @@ public class Repository implements Serializable {
allowSquashMerge,
archived,
archivedAt,
autodetectManualMerge,
avatarUrl,
cloneUrl,
createdAt,
@@ -1604,6 +1652,7 @@ public class Repository implements Serializable {
sb.append(" allowFastForwardOnlyMerge: ")
.append(toIndentedString(allowFastForwardOnlyMerge))
.append("\n");
sb.append(" allowManualMerge: ").append(toIndentedString(allowManualMerge)).append("\n");
sb.append(" allowMergeCommits: ").append(toIndentedString(allowMergeCommits)).append("\n");
sb.append(" allowRebase: ").append(toIndentedString(allowRebase)).append("\n");
sb.append(" allowRebaseExplicit: ")
@@ -1613,6 +1662,9 @@ public class Repository implements Serializable {
sb.append(" allowSquashMerge: ").append(toIndentedString(allowSquashMerge)).append("\n");
sb.append(" archived: ").append(toIndentedString(archived)).append("\n");
sb.append(" archivedAt: ").append(toIndentedString(archivedAt)).append("\n");
sb.append(" autodetectManualMerge: ")
.append(toIndentedString(autodetectManualMerge))
.append("\n");
sb.append(" avatarUrl: ").append(toIndentedString(avatarUrl)).append("\n");
sb.append(" cloneUrl: ").append(toIndentedString(cloneUrl)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
@@ -26,6 +26,9 @@ public class Secret implements Serializable {
@SerializedName("created_at")
private Date createdAt = null;
@SerializedName("description")
private String description = null;
@SerializedName("name")
private String name = null;
@@ -48,6 +51,25 @@ public class Secret implements Serializable {
this.createdAt = createdAt;
}
public Secret description(String description) {
this.description = description;
return this;
}
/**
* the secret&#x27;s description
*
* @return description
*/
@Schema(description = "the secret's description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Secret name(String name) {
this.name = name;
return this;
@@ -77,12 +99,13 @@ public class Secret implements Serializable {
}
Secret secret = (Secret) o;
return Objects.equals(this.createdAt, secret.createdAt)
&& Objects.equals(this.description, secret.description)
&& Objects.equals(this.name, secret.name);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, name);
return Objects.hash(createdAt, description, name);
}
@Override
@@ -91,6 +114,7 @@ public class Secret implements Serializable {
sb.append("class Secret {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
@@ -22,12 +22,34 @@ import java.util.Objects;
public class UpdateVariableOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("description")
private String description = null;
@SerializedName("name")
private String name = null;
@SerializedName("value")
private String value = null;
public UpdateVariableOption description(String description) {
this.description = description;
return this;
}
/**
* Description of the variable to update
*
* @return description
*/
@Schema(description = "Description of the variable to update")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public UpdateVariableOption name(String name) {
this.name = name;
return this;
@@ -77,13 +99,14 @@ public class UpdateVariableOption implements Serializable {
return false;
}
UpdateVariableOption updateVariableOption = (UpdateVariableOption) o;
return Objects.equals(this.name, updateVariableOption.name)
return Objects.equals(this.description, updateVariableOption.description)
&& Objects.equals(this.name, updateVariableOption.name)
&& Objects.equals(this.value, updateVariableOption.value);
}
@Override
public int hashCode() {
return Objects.hash(name, value);
return Objects.hash(description, name, value);
}
@Override
@@ -91,6 +114,7 @@ public class UpdateVariableOption implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateVariableOption {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append("}");