Gitea API 1.13

This commit is contained in:
François TERROT 2021-02-28 22:04:54 +01:00
parent 97a6f5c8cd
commit a7c65f7c89
472 changed files with 153333 additions and 15 deletions

48
.classpath Executable file
View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="lib" path="openapi-generator-cli-5.0.1.jar"/>
<classpathentry kind="lib" path="target/java.gitea.api-1.13.0-sources.jar"/>
<classpathentry kind="lib" path="target/java.gitea.api-1.13.0-tests.jar"/>
<classpathentry kind="lib" path="target/java.gitea.api-1.13.0.jar"/>
<classpathentry kind="lib" path="target/lib/annotations-13.0.jar"/>
<classpathentry kind="lib" path="target/lib/commons-lang3-3.11.jar"/>
<classpathentry kind="lib" path="target/lib/gson-2.8.6.jar"/>
<classpathentry kind="lib" path="target/lib/gson-fire-1.8.5.jar"/>
<classpathentry kind="lib" path="target/lib/hamcrest-core-1.3.jar"/>
<classpathentry kind="lib" path="target/lib/javax.annotation-api-1.3.2.jar"/>
<classpathentry kind="lib" path="target/lib/jsr305-3.0.2.jar"/>
<classpathentry kind="lib" path="target/lib/junit-4.13.1.jar"/>
<classpathentry kind="lib" path="target/lib/kotlin-stdlib-1.4.10.jar"/>
<classpathentry kind="lib" path="target/lib/kotlin-stdlib-common-1.4.0.jar"/>
<classpathentry kind="lib" path="target/lib/kotlin-stdlib-jdk7-1.4.10.jar"/>
<classpathentry kind="lib" path="target/lib/kotlin-stdlib-jdk8-1.4.10.jar"/>
<classpathentry kind="lib" path="target/lib/logging-interceptor-4.9.1.jar"/>
<classpathentry kind="lib" path="target/lib/okhttp-4.9.1.jar"/>
<classpathentry kind="lib" path="target/lib/okio-2.8.0.jar"/>
<classpathentry kind="lib" path="target/lib/swagger-annotations-1.6.2.jar"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

20
.gitignore vendored
View File

@ -1,25 +1,21 @@
# ---> Java
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# exclude jar for gradle wrapper
!gradle/wrapper/*.jar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# build files
**/target
target
.gradle
build

23
.openapi-generator-ignore Executable file
View File

@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

306
.openapi-generator/FILES Executable file
View File

@ -0,0 +1,306 @@
.gitignore
.travis.yml
README.md
api/openapi.yaml
build.gradle
build.sbt
docs/APIError.md
docs/AccessToken.md
docs/AddCollaboratorOption.md
docs/AddTimeOption.md
docs/AdminApi.md
docs/AnnotatedTag.md
docs/AnnotatedTagObject.md
docs/Attachment.md
docs/Branch.md
docs/BranchProtection.md
docs/CombinedStatus.md
docs/Comment.md
docs/Commit.md
docs/CommitDateOptions.md
docs/CommitMeta.md
docs/CommitUser.md
docs/ContentsResponse.md
docs/CreateBranchProtectionOption.md
docs/CreateBranchRepoOption.md
docs/CreateEmailOption.md
docs/CreateFileOptions.md
docs/CreateForkOption.md
docs/CreateGPGKeyOption.md
docs/CreateHookOption.md
docs/CreateIssueCommentOption.md
docs/CreateIssueOption.md
docs/CreateKeyOption.md
docs/CreateLabelOption.md
docs/CreateMilestoneOption.md
docs/CreateOAuth2ApplicationOptions.md
docs/CreateOrgOption.md
docs/CreatePullRequestOption.md
docs/CreatePullReviewComment.md
docs/CreatePullReviewOptions.md
docs/CreateReleaseOption.md
docs/CreateRepoOption.md
docs/CreateStatusOption.md
docs/CreateTeamOption.md
docs/CreateUserOption.md
docs/Cron.md
docs/DeleteEmailOption.md
docs/DeleteFileOptions.md
docs/DeployKey.md
docs/EditAttachmentOptions.md
docs/EditBranchProtectionOption.md
docs/EditDeadlineOption.md
docs/EditGitHookOption.md
docs/EditHookOption.md
docs/EditIssueCommentOption.md
docs/EditIssueOption.md
docs/EditLabelOption.md
docs/EditMilestoneOption.md
docs/EditOrgOption.md
docs/EditPullRequestOption.md
docs/EditReactionOption.md
docs/EditReleaseOption.md
docs/EditRepoOption.md
docs/EditTeamOption.md
docs/EditUserOption.md
docs/Email.md
docs/ExternalTracker.md
docs/ExternalWiki.md
docs/FileCommitResponse.md
docs/FileDeleteResponse.md
docs/FileLinksResponse.md
docs/FileResponse.md
docs/GPGKey.md
docs/GPGKeyEmail.md
docs/GeneralAPISettings.md
docs/GeneralAttachmentSettings.md
docs/GeneralRepoSettings.md
docs/GeneralUISettings.md
docs/GitBlobResponse.md
docs/GitEntry.md
docs/GitHook.md
docs/GitObject.md
docs/GitTreeResponse.md
docs/Hook.md
docs/Identity.md
docs/InlineObject.md
docs/InlineResponse200.md
docs/InlineResponse2001.md
docs/InternalTracker.md
docs/Issue.md
docs/IssueApi.md
docs/IssueDeadline.md
docs/IssueLabelsOption.md
docs/IssueTemplate.md
docs/Label.md
docs/MarkdownOption.md
docs/MergePullRequestOption.md
docs/MigrateRepoForm.md
docs/MigrateRepoOptions.md
docs/Milestone.md
docs/MiscellaneousApi.md
docs/NotificationApi.md
docs/NotificationCount.md
docs/NotificationSubject.md
docs/NotificationThread.md
docs/OAuth2Application.md
docs/Organization.md
docs/OrganizationApi.md
docs/PRBranchInfo.md
docs/PayloadCommit.md
docs/PayloadCommitVerification.md
docs/PayloadUser.md
docs/Permission.md
docs/PublicKey.md
docs/PullRequest.md
docs/PullRequestMeta.md
docs/PullReview.md
docs/PullReviewComment.md
docs/Reaction.md
docs/Reference.md
docs/Release.md
docs/RepoCommit.md
docs/RepoTopicOptions.md
docs/Repository.md
docs/RepositoryApi.md
docs/RepositoryMeta.md
docs/SearchResults.md
docs/ServerVersion.md
docs/SettingsApi.md
docs/Status.md
docs/StopWatch.md
docs/SubmitPullReviewOptions.md
docs/Tag.md
docs/Team.md
docs/TopicName.md
docs/TopicResponse.md
docs/TrackedTime.md
docs/TransferRepoOption.md
docs/UpdateFileOptions.md
docs/User.md
docs/UserApi.md
docs/UserHeatmapData.md
docs/WatchInfo.md
git_push.sh
gradle.properties
gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties
gradlew
gradlew.bat
pom.xml
settings.gradle
src/main/AndroidManifest.xml
src/main/java/io/gitea/ApiCallback.java
src/main/java/io/gitea/ApiClient.java
src/main/java/io/gitea/ApiException.java
src/main/java/io/gitea/ApiResponse.java
src/main/java/io/gitea/Configuration.java
src/main/java/io/gitea/GzipRequestInterceptor.java
src/main/java/io/gitea/JSON.java
src/main/java/io/gitea/Pair.java
src/main/java/io/gitea/ProgressRequestBody.java
src/main/java/io/gitea/ProgressResponseBody.java
src/main/java/io/gitea/ServerConfiguration.java
src/main/java/io/gitea/ServerVariable.java
src/main/java/io/gitea/StringUtil.java
src/main/java/io/gitea/api/AdminApi.java
src/main/java/io/gitea/api/IssueApi.java
src/main/java/io/gitea/api/MiscellaneousApi.java
src/main/java/io/gitea/api/NotificationApi.java
src/main/java/io/gitea/api/OrganizationApi.java
src/main/java/io/gitea/api/RepositoryApi.java
src/main/java/io/gitea/api/SettingsApi.java
src/main/java/io/gitea/api/UserApi.java
src/main/java/io/gitea/auth/ApiKeyAuth.java
src/main/java/io/gitea/auth/Authentication.java
src/main/java/io/gitea/auth/HttpBasicAuth.java
src/main/java/io/gitea/auth/HttpBearerAuth.java
src/main/java/io/gitea/model/APIError.java
src/main/java/io/gitea/model/AccessToken.java
src/main/java/io/gitea/model/AddCollaboratorOption.java
src/main/java/io/gitea/model/AddTimeOption.java
src/main/java/io/gitea/model/AnnotatedTag.java
src/main/java/io/gitea/model/AnnotatedTagObject.java
src/main/java/io/gitea/model/Attachment.java
src/main/java/io/gitea/model/Branch.java
src/main/java/io/gitea/model/BranchProtection.java
src/main/java/io/gitea/model/CombinedStatus.java
src/main/java/io/gitea/model/Comment.java
src/main/java/io/gitea/model/Commit.java
src/main/java/io/gitea/model/CommitDateOptions.java
src/main/java/io/gitea/model/CommitMeta.java
src/main/java/io/gitea/model/CommitUser.java
src/main/java/io/gitea/model/ContentsResponse.java
src/main/java/io/gitea/model/CreateBranchProtectionOption.java
src/main/java/io/gitea/model/CreateBranchRepoOption.java
src/main/java/io/gitea/model/CreateEmailOption.java
src/main/java/io/gitea/model/CreateFileOptions.java
src/main/java/io/gitea/model/CreateForkOption.java
src/main/java/io/gitea/model/CreateGPGKeyOption.java
src/main/java/io/gitea/model/CreateHookOption.java
src/main/java/io/gitea/model/CreateIssueCommentOption.java
src/main/java/io/gitea/model/CreateIssueOption.java
src/main/java/io/gitea/model/CreateKeyOption.java
src/main/java/io/gitea/model/CreateLabelOption.java
src/main/java/io/gitea/model/CreateMilestoneOption.java
src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java
src/main/java/io/gitea/model/CreateOrgOption.java
src/main/java/io/gitea/model/CreatePullRequestOption.java
src/main/java/io/gitea/model/CreatePullReviewComment.java
src/main/java/io/gitea/model/CreatePullReviewOptions.java
src/main/java/io/gitea/model/CreateReleaseOption.java
src/main/java/io/gitea/model/CreateRepoOption.java
src/main/java/io/gitea/model/CreateStatusOption.java
src/main/java/io/gitea/model/CreateTeamOption.java
src/main/java/io/gitea/model/CreateUserOption.java
src/main/java/io/gitea/model/Cron.java
src/main/java/io/gitea/model/DeleteEmailOption.java
src/main/java/io/gitea/model/DeleteFileOptions.java
src/main/java/io/gitea/model/DeployKey.java
src/main/java/io/gitea/model/EditAttachmentOptions.java
src/main/java/io/gitea/model/EditBranchProtectionOption.java
src/main/java/io/gitea/model/EditDeadlineOption.java
src/main/java/io/gitea/model/EditGitHookOption.java
src/main/java/io/gitea/model/EditHookOption.java
src/main/java/io/gitea/model/EditIssueCommentOption.java
src/main/java/io/gitea/model/EditIssueOption.java
src/main/java/io/gitea/model/EditLabelOption.java
src/main/java/io/gitea/model/EditMilestoneOption.java
src/main/java/io/gitea/model/EditOrgOption.java
src/main/java/io/gitea/model/EditPullRequestOption.java
src/main/java/io/gitea/model/EditReactionOption.java
src/main/java/io/gitea/model/EditReleaseOption.java
src/main/java/io/gitea/model/EditRepoOption.java
src/main/java/io/gitea/model/EditTeamOption.java
src/main/java/io/gitea/model/EditUserOption.java
src/main/java/io/gitea/model/Email.java
src/main/java/io/gitea/model/ExternalTracker.java
src/main/java/io/gitea/model/ExternalWiki.java
src/main/java/io/gitea/model/FileCommitResponse.java
src/main/java/io/gitea/model/FileDeleteResponse.java
src/main/java/io/gitea/model/FileLinksResponse.java
src/main/java/io/gitea/model/FileResponse.java
src/main/java/io/gitea/model/GPGKey.java
src/main/java/io/gitea/model/GPGKeyEmail.java
src/main/java/io/gitea/model/GeneralAPISettings.java
src/main/java/io/gitea/model/GeneralAttachmentSettings.java
src/main/java/io/gitea/model/GeneralRepoSettings.java
src/main/java/io/gitea/model/GeneralUISettings.java
src/main/java/io/gitea/model/GitBlobResponse.java
src/main/java/io/gitea/model/GitEntry.java
src/main/java/io/gitea/model/GitHook.java
src/main/java/io/gitea/model/GitObject.java
src/main/java/io/gitea/model/GitTreeResponse.java
src/main/java/io/gitea/model/Hook.java
src/main/java/io/gitea/model/Identity.java
src/main/java/io/gitea/model/InlineObject.java
src/main/java/io/gitea/model/InlineResponse200.java
src/main/java/io/gitea/model/InlineResponse2001.java
src/main/java/io/gitea/model/InternalTracker.java
src/main/java/io/gitea/model/Issue.java
src/main/java/io/gitea/model/IssueDeadline.java
src/main/java/io/gitea/model/IssueLabelsOption.java
src/main/java/io/gitea/model/IssueTemplate.java
src/main/java/io/gitea/model/Label.java
src/main/java/io/gitea/model/MarkdownOption.java
src/main/java/io/gitea/model/MergePullRequestOption.java
src/main/java/io/gitea/model/MigrateRepoForm.java
src/main/java/io/gitea/model/MigrateRepoOptions.java
src/main/java/io/gitea/model/Milestone.java
src/main/java/io/gitea/model/NotificationCount.java
src/main/java/io/gitea/model/NotificationSubject.java
src/main/java/io/gitea/model/NotificationThread.java
src/main/java/io/gitea/model/OAuth2Application.java
src/main/java/io/gitea/model/Organization.java
src/main/java/io/gitea/model/PRBranchInfo.java
src/main/java/io/gitea/model/PayloadCommit.java
src/main/java/io/gitea/model/PayloadCommitVerification.java
src/main/java/io/gitea/model/PayloadUser.java
src/main/java/io/gitea/model/Permission.java
src/main/java/io/gitea/model/PublicKey.java
src/main/java/io/gitea/model/PullRequest.java
src/main/java/io/gitea/model/PullRequestMeta.java
src/main/java/io/gitea/model/PullReview.java
src/main/java/io/gitea/model/PullReviewComment.java
src/main/java/io/gitea/model/Reaction.java
src/main/java/io/gitea/model/Reference.java
src/main/java/io/gitea/model/Release.java
src/main/java/io/gitea/model/RepoCommit.java
src/main/java/io/gitea/model/RepoTopicOptions.java
src/main/java/io/gitea/model/Repository.java
src/main/java/io/gitea/model/RepositoryMeta.java
src/main/java/io/gitea/model/SearchResults.java
src/main/java/io/gitea/model/ServerVersion.java
src/main/java/io/gitea/model/Status.java
src/main/java/io/gitea/model/StopWatch.java
src/main/java/io/gitea/model/SubmitPullReviewOptions.java
src/main/java/io/gitea/model/Tag.java
src/main/java/io/gitea/model/Team.java
src/main/java/io/gitea/model/TopicName.java
src/main/java/io/gitea/model/TopicResponse.java
src/main/java/io/gitea/model/TrackedTime.java
src/main/java/io/gitea/model/TransferRepoOption.java
src/main/java/io/gitea/model/UpdateFileOptions.java
src/main/java/io/gitea/model/User.java
src/main/java/io/gitea/model/UserHeatmapData.java
src/main/java/io/gitea/model/WatchInfo.java

1
.openapi-generator/VERSION Executable file
View File

@ -0,0 +1 @@
5.0.1

23
.project Executable file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>java.gitea.api</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8

View File

@ -0,0 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8

View File

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

22
.travis.yml Executable file
View File

@ -0,0 +1,22 @@
#
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
# Ref: https://docs.travis-ci.com/user/languages/java/
#
language: java
jdk:
- openjdk12
- openjdk11
- openjdk10
- openjdk9
- openjdk8
before_install:
# ensure gradlew has proper permission
- chmod a+x ./gradlew
script:
# test using maven
#- mvn test
# test using gradle
- gradle test
# test using sbt
# - sbt test

596
README.md
View File

@ -1,3 +1,597 @@
# java.gitea.api
Can be ween as a fork of https://github.com/zeripath/java-gitea-api with updated Gitea API version and generated thanks to OpenAPI.
Gitea API.
- API version: 1.1.1
This documentation describes the Gitea API.
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
## Requirements
Building the API client library requires:
1. Java 1.8+
2. Maven/Gradle
## Installation
To install the API client library to your local Maven repository, simply execute:
```shell
mvn clean install
```
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
```shell
mvn clean deploy
```
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.
### Maven users
Add this dependency to your project's POM:
```xml
<dependency>
<groupId>io.gitea</groupId>
<artifactId>java.gitea.api</artifactId>
<version>1.13.0</version>
<scope>compile</scope>
</dependency>
```
### Gradle users
Add this dependency to your project's build file:
```groovy
compile "io.gitea:java.gitea.api:1.13.0"
```
### Others
At first generate the JAR by executing:
```shell
mvn clean package
```
Then manually install the following JARs:
* `target/java.gitea.api-1.13.0.jar`
* `target/lib/*.jar`
## Getting Started
Please follow the [installation](#installation) instruction and execute the following Java code:
```java
// Import classes:
import io.gitea.ApiClient;
import io.gitea.ApiException;
import io.gitea.Configuration;
import io.gitea.auth.*;
import io.gitea.models.*;
import io.gitea.api.AdminApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost/api/v1");
// Configure API key authorization: AccessToken
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
AccessToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccessToken.setApiKeyPrefix("Token");
// Configure API key authorization: AuthorizationHeaderToken
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: SudoHeader
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
SudoHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoHeader.setApiKeyPrefix("Token");
// Configure API key authorization: SudoParam
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
SudoParam.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoParam.setApiKeyPrefix("Token");
// Configure API key authorization: TOTPHeader
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
TOTPHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TOTPHeader.setApiKeyPrefix("Token");
// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.setApiKeyPrefix("Token");
AdminApi apiInstance = new AdminApi(defaultClient);
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
try {
apiInstance.adminAdoptRepository(owner, repo);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminAdoptRepository");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AdminApi* | [**adminAdoptRepository**](docs/AdminApi.md#adminAdoptRepository) | **POST** /admin/unadopted/{owner}/{repo} | Adopt unadopted files as a repository
*AdminApi* | [**adminCreateOrg**](docs/AdminApi.md#adminCreateOrg) | **POST** /admin/users/{username}/orgs | Create an organization
*AdminApi* | [**adminCreatePublicKey**](docs/AdminApi.md#adminCreatePublicKey) | **POST** /admin/users/{username}/keys | Add a public key on behalf of a user
*AdminApi* | [**adminCreateRepo**](docs/AdminApi.md#adminCreateRepo) | **POST** /admin/users/{username}/repos | Create a repository on behalf of a user
*AdminApi* | [**adminCreateUser**](docs/AdminApi.md#adminCreateUser) | **POST** /admin/users | Create a user
*AdminApi* | [**adminCronList**](docs/AdminApi.md#adminCronList) | **GET** /admin/cron | List cron tasks
*AdminApi* | [**adminCronRun**](docs/AdminApi.md#adminCronRun) | **POST** /admin/cron/{task} | Run cron task
*AdminApi* | [**adminDeleteUnadoptedRepository**](docs/AdminApi.md#adminDeleteUnadoptedRepository) | **DELETE** /admin/unadopted/{owner}/{repo} | Delete unadopted files
*AdminApi* | [**adminDeleteUser**](docs/AdminApi.md#adminDeleteUser) | **DELETE** /admin/users/{username} | Delete a user
*AdminApi* | [**adminDeleteUserPublicKey**](docs/AdminApi.md#adminDeleteUserPublicKey) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user&#39;s public key
*AdminApi* | [**adminEditUser**](docs/AdminApi.md#adminEditUser) | **PATCH** /admin/users/{username} | Edit an existing user
*AdminApi* | [**adminGetAllOrgs**](docs/AdminApi.md#adminGetAllOrgs) | **GET** /admin/orgs | List all organizations
*AdminApi* | [**adminGetAllUsers**](docs/AdminApi.md#adminGetAllUsers) | **GET** /admin/users | List all users
*AdminApi* | [**adminUnadoptedList**](docs/AdminApi.md#adminUnadoptedList) | **GET** /admin/unadopted | List unadopted repositories
*IssueApi* | [**issueAddLabel**](docs/IssueApi.md#issueAddLabel) | **POST** /repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue
*IssueApi* | [**issueAddSubscription**](docs/IssueApi.md#issueAddSubscription) | **PUT** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue
*IssueApi* | [**issueAddTime**](docs/IssueApi.md#issueAddTime) | **POST** /repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue
*IssueApi* | [**issueCheckSubscription**](docs/IssueApi.md#issueCheckSubscription) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions/check | Check if user is subscribed to an issue
*IssueApi* | [**issueClearLabels**](docs/IssueApi.md#issueClearLabels) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue
*IssueApi* | [**issueCreateComment**](docs/IssueApi.md#issueCreateComment) | **POST** /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue
*IssueApi* | [**issueCreateIssue**](docs/IssueApi.md#issueCreateIssue) | **POST** /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
*IssueApi* | [**issueCreateLabel**](docs/IssueApi.md#issueCreateLabel) | **POST** /repos/{owner}/{repo}/labels | Create a label
*IssueApi* | [**issueCreateMilestone**](docs/IssueApi.md#issueCreateMilestone) | **POST** /repos/{owner}/{repo}/milestones | Create a milestone
*IssueApi* | [**issueDeleteComment**](docs/IssueApi.md#issueDeleteComment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment
*IssueApi* | [**issueDeleteCommentDeprecated**](docs/IssueApi.md#issueDeleteCommentDeprecated) | **DELETE** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment
*IssueApi* | [**issueDeleteCommentReaction**](docs/IssueApi.md#issueDeleteCommentReaction) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue
*IssueApi* | [**issueDeleteIssueReaction**](docs/IssueApi.md#issueDeleteIssueReaction) | **DELETE** /repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue
*IssueApi* | [**issueDeleteLabel**](docs/IssueApi.md#issueDeleteLabel) | **DELETE** /repos/{owner}/{repo}/labels/{id} | Delete a label
*IssueApi* | [**issueDeleteMilestone**](docs/IssueApi.md#issueDeleteMilestone) | **DELETE** /repos/{owner}/{repo}/milestones/{id} | Delete a milestone
*IssueApi* | [**issueDeleteStopWatch**](docs/IssueApi.md#issueDeleteStopWatch) | **DELETE** /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue&#39;s existing stopwatch.
*IssueApi* | [**issueDeleteSubscription**](docs/IssueApi.md#issueDeleteSubscription) | **DELETE** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue
*IssueApi* | [**issueDeleteTime**](docs/IssueApi.md#issueDeleteTime) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time
*IssueApi* | [**issueEditComment**](docs/IssueApi.md#issueEditComment) | **PATCH** /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment
*IssueApi* | [**issueEditCommentDeprecated**](docs/IssueApi.md#issueEditCommentDeprecated) | **PATCH** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment
*IssueApi* | [**issueEditIssue**](docs/IssueApi.md#issueEditIssue) | **PATCH** /repos/{owner}/{repo}/issues/{index} | Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
*IssueApi* | [**issueEditIssueDeadline**](docs/IssueApi.md#issueEditIssueDeadline) | **POST** /repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
*IssueApi* | [**issueEditLabel**](docs/IssueApi.md#issueEditLabel) | **PATCH** /repos/{owner}/{repo}/labels/{id} | Update a label
*IssueApi* | [**issueEditMilestone**](docs/IssueApi.md#issueEditMilestone) | **PATCH** /repos/{owner}/{repo}/milestones/{id} | Update a milestone
*IssueApi* | [**issueGetComment**](docs/IssueApi.md#issueGetComment) | **GET** /repos/{owner}/{repo}/issues/comments/{id} | Get a comment
*IssueApi* | [**issueGetCommentReactions**](docs/IssueApi.md#issueGetCommentReactions) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue
*IssueApi* | [**issueGetComments**](docs/IssueApi.md#issueGetComments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue
*IssueApi* | [**issueGetIssue**](docs/IssueApi.md#issueGetIssue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get an issue
*IssueApi* | [**issueGetIssueReactions**](docs/IssueApi.md#issueGetIssueReactions) | **GET** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue
*IssueApi* | [**issueGetLabel**](docs/IssueApi.md#issueGetLabel) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label
*IssueApi* | [**issueGetLabels**](docs/IssueApi.md#issueGetLabels) | **GET** /repos/{owner}/{repo}/issues/{index}/labels | Get an issue&#39;s labels
*IssueApi* | [**issueGetMilestone**](docs/IssueApi.md#issueGetMilestone) | **GET** /repos/{owner}/{repo}/milestones/{id} | Get a milestone
*IssueApi* | [**issueGetMilestonesList**](docs/IssueApi.md#issueGetMilestonesList) | **GET** /repos/{owner}/{repo}/milestones | Get all of a repository&#39;s opened milestones
*IssueApi* | [**issueGetRepoComments**](docs/IssueApi.md#issueGetRepoComments) | **GET** /repos/{owner}/{repo}/issues/comments | List all comments in a repository
*IssueApi* | [**issueListIssues**](docs/IssueApi.md#issueListIssues) | **GET** /repos/{owner}/{repo}/issues | List a repository&#39;s issues
*IssueApi* | [**issueListLabels**](docs/IssueApi.md#issueListLabels) | **GET** /repos/{owner}/{repo}/labels | Get all of a repository&#39;s labels
*IssueApi* | [**issuePostCommentReaction**](docs/IssueApi.md#issuePostCommentReaction) | **POST** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue
*IssueApi* | [**issuePostIssueReaction**](docs/IssueApi.md#issuePostIssueReaction) | **POST** /repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue
*IssueApi* | [**issueRemoveLabel**](docs/IssueApi.md#issueRemoveLabel) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue
*IssueApi* | [**issueReplaceLabels**](docs/IssueApi.md#issueReplaceLabels) | **PUT** /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue&#39;s labels
*IssueApi* | [**issueResetTime**](docs/IssueApi.md#issueResetTime) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue
*IssueApi* | [**issueSearchIssues**](docs/IssueApi.md#issueSearchIssues) | **GET** /repos/issues/search | Search for issues across the repositories that the user has access to
*IssueApi* | [**issueStartStopWatch**](docs/IssueApi.md#issueStartStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue.
*IssueApi* | [**issueStopStopWatch**](docs/IssueApi.md#issueStopStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue&#39;s existing stopwatch.
*IssueApi* | [**issueSubscriptions**](docs/IssueApi.md#issueSubscriptions) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue.
*IssueApi* | [**issueTrackedTimes**](docs/IssueApi.md#issueTrackedTimes) | **GET** /repos/{owner}/{repo}/issues/{index}/times | List an issue&#39;s tracked times
*MiscellaneousApi* | [**getSigningKey**](docs/MiscellaneousApi.md#getSigningKey) | **GET** /signing-key.gpg | Get default signing-key.gpg
*MiscellaneousApi* | [**getVersion**](docs/MiscellaneousApi.md#getVersion) | **GET** /version | Returns the version of the Gitea application
*MiscellaneousApi* | [**renderMarkdown**](docs/MiscellaneousApi.md#renderMarkdown) | **POST** /markdown | Render a markdown document as HTML
*MiscellaneousApi* | [**renderMarkdownRaw**](docs/MiscellaneousApi.md#renderMarkdownRaw) | **POST** /markdown/raw | Render raw markdown as HTML
*NotificationApi* | [**notifyGetList**](docs/NotificationApi.md#notifyGetList) | **GET** /notifications | List users&#39;s notification threads
*NotificationApi* | [**notifyGetRepoList**](docs/NotificationApi.md#notifyGetRepoList) | **GET** /repos/{owner}/{repo}/notifications | List users&#39;s notification threads on a specific repo
*NotificationApi* | [**notifyGetThread**](docs/NotificationApi.md#notifyGetThread) | **GET** /notifications/threads/{id} | Get notification thread by ID
*NotificationApi* | [**notifyNewAvailable**](docs/NotificationApi.md#notifyNewAvailable) | **GET** /notifications/new | Check if unread notifications exist
*NotificationApi* | [**notifyReadList**](docs/NotificationApi.md#notifyReadList) | **PUT** /notifications | Mark notification threads as read, pinned or unread
*NotificationApi* | [**notifyReadRepoList**](docs/NotificationApi.md#notifyReadRepoList) | **PUT** /repos/{owner}/{repo}/notifications | Mark notification threads as read, pinned or unread on a specific repo
*NotificationApi* | [**notifyReadThread**](docs/NotificationApi.md#notifyReadThread) | **PATCH** /notifications/threads/{id} | Mark notification thread as read by ID
*OrganizationApi* | [**createOrgRepo**](docs/OrganizationApi.md#createOrgRepo) | **POST** /orgs/{org}/repos | Create a repository in an organization
*OrganizationApi* | [**createOrgRepoDeprecated**](docs/OrganizationApi.md#createOrgRepoDeprecated) | **POST** /org/{org}/repos | Create a repository in an organization
*OrganizationApi* | [**orgAddTeamMember**](docs/OrganizationApi.md#orgAddTeamMember) | **PUT** /teams/{id}/members/{username} | Add a team member
*OrganizationApi* | [**orgAddTeamRepository**](docs/OrganizationApi.md#orgAddTeamRepository) | **PUT** /teams/{id}/repos/{org}/{repo} | Add a repository to a team
*OrganizationApi* | [**orgConcealMember**](docs/OrganizationApi.md#orgConcealMember) | **DELETE** /orgs/{org}/public_members/{username} | Conceal a user&#39;s membership
*OrganizationApi* | [**orgCreate**](docs/OrganizationApi.md#orgCreate) | **POST** /orgs | Create an organization
*OrganizationApi* | [**orgCreateHook**](docs/OrganizationApi.md#orgCreateHook) | **POST** /orgs/{org}/hooks/ | Create a hook
*OrganizationApi* | [**orgCreateLabel**](docs/OrganizationApi.md#orgCreateLabel) | **POST** /orgs/{org}/labels | Create a label for an organization
*OrganizationApi* | [**orgCreateTeam**](docs/OrganizationApi.md#orgCreateTeam) | **POST** /orgs/{org}/teams | Create a team
*OrganizationApi* | [**orgDelete**](docs/OrganizationApi.md#orgDelete) | **DELETE** /orgs/{org} | Delete an organization
*OrganizationApi* | [**orgDeleteHook**](docs/OrganizationApi.md#orgDeleteHook) | **DELETE** /orgs/{org}/hooks/{id} | Delete a hook
*OrganizationApi* | [**orgDeleteLabel**](docs/OrganizationApi.md#orgDeleteLabel) | **DELETE** /orgs/{org}/labels/{id} | Delete a label
*OrganizationApi* | [**orgDeleteMember**](docs/OrganizationApi.md#orgDeleteMember) | **DELETE** /orgs/{org}/members/{username} | Remove a member from an organization
*OrganizationApi* | [**orgDeleteTeam**](docs/OrganizationApi.md#orgDeleteTeam) | **DELETE** /teams/{id} | Delete a team
*OrganizationApi* | [**orgEdit**](docs/OrganizationApi.md#orgEdit) | **PATCH** /orgs/{org} | Edit an organization
*OrganizationApi* | [**orgEditHook**](docs/OrganizationApi.md#orgEditHook) | **PATCH** /orgs/{org}/hooks/{id} | Update a hook
*OrganizationApi* | [**orgEditLabel**](docs/OrganizationApi.md#orgEditLabel) | **PATCH** /orgs/{org}/labels/{id} | Update a label
*OrganizationApi* | [**orgEditTeam**](docs/OrganizationApi.md#orgEditTeam) | **PATCH** /teams/{id} | Edit a team
*OrganizationApi* | [**orgGet**](docs/OrganizationApi.md#orgGet) | **GET** /orgs/{org} | Get an organization
*OrganizationApi* | [**orgGetAll**](docs/OrganizationApi.md#orgGetAll) | **GET** /orgs | Get list of organizations
*OrganizationApi* | [**orgGetHook**](docs/OrganizationApi.md#orgGetHook) | **GET** /orgs/{org}/hooks/{id} | Get a hook
*OrganizationApi* | [**orgGetLabel**](docs/OrganizationApi.md#orgGetLabel) | **GET** /orgs/{org}/labels/{id} | Get a single label
*OrganizationApi* | [**orgGetTeam**](docs/OrganizationApi.md#orgGetTeam) | **GET** /teams/{id} | Get a team
*OrganizationApi* | [**orgIsMember**](docs/OrganizationApi.md#orgIsMember) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization
*OrganizationApi* | [**orgIsPublicMember**](docs/OrganizationApi.md#orgIsPublicMember) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization
*OrganizationApi* | [**orgListCurrentUserOrgs**](docs/OrganizationApi.md#orgListCurrentUserOrgs) | **GET** /user/orgs | List the current user&#39;s organizations
*OrganizationApi* | [**orgListHooks**](docs/OrganizationApi.md#orgListHooks) | **GET** /orgs/{org}/hooks | List an organization&#39;s webhooks
*OrganizationApi* | [**orgListLabels**](docs/OrganizationApi.md#orgListLabels) | **GET** /orgs/{org}/labels | List an organization&#39;s labels
*OrganizationApi* | [**orgListMembers**](docs/OrganizationApi.md#orgListMembers) | **GET** /orgs/{org}/members | List an organization&#39;s members
*OrganizationApi* | [**orgListPublicMembers**](docs/OrganizationApi.md#orgListPublicMembers) | **GET** /orgs/{org}/public_members | List an organization&#39;s public members
*OrganizationApi* | [**orgListRepos**](docs/OrganizationApi.md#orgListRepos) | **GET** /orgs/{org}/repos | List an organization&#39;s repos
*OrganizationApi* | [**orgListTeamMember**](docs/OrganizationApi.md#orgListTeamMember) | **GET** /teams/{id}/members/{username} | List a particular member of team
*OrganizationApi* | [**orgListTeamMembers**](docs/OrganizationApi.md#orgListTeamMembers) | **GET** /teams/{id}/members | List a team&#39;s members
*OrganizationApi* | [**orgListTeamRepos**](docs/OrganizationApi.md#orgListTeamRepos) | **GET** /teams/{id}/repos | List a team&#39;s repos
*OrganizationApi* | [**orgListTeams**](docs/OrganizationApi.md#orgListTeams) | **GET** /orgs/{org}/teams | List an organization&#39;s teams
*OrganizationApi* | [**orgListUserOrgs**](docs/OrganizationApi.md#orgListUserOrgs) | **GET** /users/{username}/orgs | List a user&#39;s organizations
*OrganizationApi* | [**orgPublicizeMember**](docs/OrganizationApi.md#orgPublicizeMember) | **PUT** /orgs/{org}/public_members/{username} | Publicize a user&#39;s membership
*OrganizationApi* | [**orgRemoveTeamMember**](docs/OrganizationApi.md#orgRemoveTeamMember) | **DELETE** /teams/{id}/members/{username} | Remove a team member
*OrganizationApi* | [**orgRemoveTeamRepository**](docs/OrganizationApi.md#orgRemoveTeamRepository) | **DELETE** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team
*OrganizationApi* | [**teamSearch**](docs/OrganizationApi.md#teamSearch) | **GET** /orgs/{org}/teams/search | Search for teams within an organization
*RepositoryApi* | [**createCurrentUserRepo**](docs/RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
*RepositoryApi* | [**createFork**](docs/RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository
*RepositoryApi* | [**getBlob**](docs/RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
*RepositoryApi* | [**getTag**](docs/RepositoryApi.md#getTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
*RepositoryApi* | [**getTree**](docs/RepositoryApi.md#getTree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
*RepositoryApi* | [**listForks**](docs/RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository&#39;s forks
*RepositoryApi* | [**repoAddCollaborator**](docs/RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
*RepositoryApi* | [**repoAddTopc**](docs/RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
*RepositoryApi* | [**repoCheckCollaborator**](docs/RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
*RepositoryApi* | [**repoCreateBranch**](docs/RepositoryApi.md#repoCreateBranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch
*RepositoryApi* | [**repoCreateBranchProtection**](docs/RepositoryApi.md#repoCreateBranchProtection) | **POST** /repos/{owner}/{repo}/branch_protections | Create a branch protections for a repository
*RepositoryApi* | [**repoCreateFile**](docs/RepositoryApi.md#repoCreateFile) | **POST** /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository
*RepositoryApi* | [**repoCreateHook**](docs/RepositoryApi.md#repoCreateHook) | **POST** /repos/{owner}/{repo}/hooks | Create a hook
*RepositoryApi* | [**repoCreateKey**](docs/RepositoryApi.md#repoCreateKey) | **POST** /repos/{owner}/{repo}/keys | Add a key to a repository
*RepositoryApi* | [**repoCreatePullRequest**](docs/RepositoryApi.md#repoCreatePullRequest) | **POST** /repos/{owner}/{repo}/pulls | Create a pull request
*RepositoryApi* | [**repoCreatePullReview**](docs/RepositoryApi.md#repoCreatePullReview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews | Create a review to an pull request
*RepositoryApi* | [**repoCreateRelease**](docs/RepositoryApi.md#repoCreateRelease) | **POST** /repos/{owner}/{repo}/releases | Create a release
*RepositoryApi* | [**repoCreateReleaseAttachment**](docs/RepositoryApi.md#repoCreateReleaseAttachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
*RepositoryApi* | [**repoCreateStatus**](docs/RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
*RepositoryApi* | [**repoDelete**](docs/RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository
*RepositoryApi* | [**repoDeleteBranch**](docs/RepositoryApi.md#repoDeleteBranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository
*RepositoryApi* | [**repoDeleteBranchProtection**](docs/RepositoryApi.md#repoDeleteBranchProtection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository
*RepositoryApi* | [**repoDeleteCollaborator**](docs/RepositoryApi.md#repoDeleteCollaborator) | **DELETE** /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository
*RepositoryApi* | [**repoDeleteFile**](docs/RepositoryApi.md#repoDeleteFile) | **DELETE** /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository
*RepositoryApi* | [**repoDeleteGitHook**](docs/RepositoryApi.md#repoDeleteGitHook) | **DELETE** /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository
*RepositoryApi* | [**repoDeleteHook**](docs/RepositoryApi.md#repoDeleteHook) | **DELETE** /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository
*RepositoryApi* | [**repoDeleteKey**](docs/RepositoryApi.md#repoDeleteKey) | **DELETE** /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository
*RepositoryApi* | [**repoDeletePullReview**](docs/RepositoryApi.md#repoDeletePullReview) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Delete a specific review from a pull request
*RepositoryApi* | [**repoDeleteRelease**](docs/RepositoryApi.md#repoDeleteRelease) | **DELETE** /repos/{owner}/{repo}/releases/{id} | Delete a release
*RepositoryApi* | [**repoDeleteReleaseAttachment**](docs/RepositoryApi.md#repoDeleteReleaseAttachment) | **DELETE** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment
*RepositoryApi* | [**repoDeleteTopic**](docs/RepositoryApi.md#repoDeleteTopic) | **DELETE** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository
*RepositoryApi* | [**repoDownloadPullDiff**](docs/RepositoryApi.md#repoDownloadPullDiff) | **GET** /repos/{owner}/{repo}/pulls/{index}.diff | Get a pull request diff
*RepositoryApi* | [**repoDownloadPullPatch**](docs/RepositoryApi.md#repoDownloadPullPatch) | **GET** /repos/{owner}/{repo}/pulls/{index}.patch | Get a pull request patch file
*RepositoryApi* | [**repoEdit**](docs/RepositoryApi.md#repoEdit) | **PATCH** /repos/{owner}/{repo} | Edit a repository&#39;s properties. Only fields that are set will be changed.
*RepositoryApi* | [**repoEditBranchProtection**](docs/RepositoryApi.md#repoEditBranchProtection) | **PATCH** /repos/{owner}/{repo}/branch_protections/{name} | Edit a branch protections for a repository. Only fields that are set will be changed
*RepositoryApi* | [**repoEditGitHook**](docs/RepositoryApi.md#repoEditGitHook) | **PATCH** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository
*RepositoryApi* | [**repoEditHook**](docs/RepositoryApi.md#repoEditHook) | **PATCH** /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository
*RepositoryApi* | [**repoEditPullRequest**](docs/RepositoryApi.md#repoEditPullRequest) | **PATCH** /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
*RepositoryApi* | [**repoEditRelease**](docs/RepositoryApi.md#repoEditRelease) | **PATCH** /repos/{owner}/{repo}/releases/{id} | Update a release
*RepositoryApi* | [**repoEditReleaseAttachment**](docs/RepositoryApi.md#repoEditReleaseAttachment) | **PATCH** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment
*RepositoryApi* | [**repoGet**](docs/RepositoryApi.md#repoGet) | **GET** /repos/{owner}/{repo} | Get a repository
*RepositoryApi* | [**repoGetAllCommits**](docs/RepositoryApi.md#repoGetAllCommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
*RepositoryApi* | [**repoGetArchive**](docs/RepositoryApi.md#repoGetArchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
*RepositoryApi* | [**repoGetBranch**](docs/RepositoryApi.md#repoGetBranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection
*RepositoryApi* | [**repoGetBranchProtection**](docs/RepositoryApi.md#repoGetBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository
*RepositoryApi* | [**repoGetByID**](docs/RepositoryApi.md#repoGetByID) | **GET** /repositories/{id} | Get a repository by id
*RepositoryApi* | [**repoGetCombinedStatusByRef**](docs/RepositoryApi.md#repoGetCombinedStatusByRef) | **GET** /repos/{owner}/{repo}/commits/{ref}/status | Get a commit&#39;s combined status, by branch/tag/commit reference
*RepositoryApi* | [**repoGetContents**](docs/RepositoryApi.md#repoGetContents) | **GET** /repos/{owner}/{repo}/contents/{filepath} | Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
*RepositoryApi* | [**repoGetContentsList**](docs/RepositoryApi.md#repoGetContentsList) | **GET** /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir
*RepositoryApi* | [**repoGetEditorConfig**](docs/RepositoryApi.md#repoGetEditorConfig) | **GET** /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository
*RepositoryApi* | [**repoGetGitHook**](docs/RepositoryApi.md#repoGetGitHook) | **GET** /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook
*RepositoryApi* | [**repoGetHook**](docs/RepositoryApi.md#repoGetHook) | **GET** /repos/{owner}/{repo}/hooks/{id} | Get a hook
*RepositoryApi* | [**repoGetIssueTemplates**](docs/RepositoryApi.md#repoGetIssueTemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository
*RepositoryApi* | [**repoGetKey**](docs/RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository&#39;s key by id
*RepositoryApi* | [**repoGetLanguages**](docs/RepositoryApi.md#repoGetLanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written
*RepositoryApi* | [**repoGetPullRequest**](docs/RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
*RepositoryApi* | [**repoGetPullReview**](docs/RepositoryApi.md#repoGetPullReview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request
*RepositoryApi* | [**repoGetPullReviewComments**](docs/RepositoryApi.md#repoGetPullReviewComments) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request
*RepositoryApi* | [**repoGetRawFile**](docs/RepositoryApi.md#repoGetRawFile) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
*RepositoryApi* | [**repoGetRelease**](docs/RepositoryApi.md#repoGetRelease) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release
*RepositoryApi* | [**repoGetReleaseAttachment**](docs/RepositoryApi.md#repoGetReleaseAttachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
*RepositoryApi* | [**repoGetReleaseTag**](docs/RepositoryApi.md#repoGetReleaseTag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name
*RepositoryApi* | [**repoGetSingleCommit**](docs/RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
*RepositoryApi* | [**repoListAllGitRefs**](docs/RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository&#39;s refs
*RepositoryApi* | [**repoListBranchProtection**](docs/RepositoryApi.md#repoListBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository
*RepositoryApi* | [**repoListBranches**](docs/RepositoryApi.md#repoListBranches) | **GET** /repos/{owner}/{repo}/branches | List a repository&#39;s branches
*RepositoryApi* | [**repoListCollaborators**](docs/RepositoryApi.md#repoListCollaborators) | **GET** /repos/{owner}/{repo}/collaborators | List a repository&#39;s collaborators
*RepositoryApi* | [**repoListGitHooks**](docs/RepositoryApi.md#repoListGitHooks) | **GET** /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository
*RepositoryApi* | [**repoListGitRefs**](docs/RepositoryApi.md#repoListGitRefs) | **GET** /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository&#39;s refs
*RepositoryApi* | [**repoListHooks**](docs/RepositoryApi.md#repoListHooks) | **GET** /repos/{owner}/{repo}/hooks | List the hooks in a repository
*RepositoryApi* | [**repoListKeys**](docs/RepositoryApi.md#repoListKeys) | **GET** /repos/{owner}/{repo}/keys | List a repository&#39;s keys
*RepositoryApi* | [**repoListPullRequests**](docs/RepositoryApi.md#repoListPullRequests) | **GET** /repos/{owner}/{repo}/pulls | List a repo&#39;s pull requests
*RepositoryApi* | [**repoListPullReviews**](docs/RepositoryApi.md#repoListPullReviews) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews | List all reviews for a pull request
*RepositoryApi* | [**repoListReleaseAttachments**](docs/RepositoryApi.md#repoListReleaseAttachments) | **GET** /repos/{owner}/{repo}/releases/{id}/assets | List release&#39;s attachments
*RepositoryApi* | [**repoListReleases**](docs/RepositoryApi.md#repoListReleases) | **GET** /repos/{owner}/{repo}/releases | List a repo&#39;s releases
*RepositoryApi* | [**repoListStargazers**](docs/RepositoryApi.md#repoListStargazers) | **GET** /repos/{owner}/{repo}/stargazers | List a repo&#39;s stargazers
*RepositoryApi* | [**repoListStatuses**](docs/RepositoryApi.md#repoListStatuses) | **GET** /repos/{owner}/{repo}/statuses/{sha} | Get a commit&#39;s statuses
*RepositoryApi* | [**repoListStatusesByRef**](docs/RepositoryApi.md#repoListStatusesByRef) | **GET** /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit&#39;s statuses, by branch/tag/commit reference
*RepositoryApi* | [**repoListSubscribers**](docs/RepositoryApi.md#repoListSubscribers) | **GET** /repos/{owner}/{repo}/subscribers | List a repo&#39;s watchers
*RepositoryApi* | [**repoListTags**](docs/RepositoryApi.md#repoListTags) | **GET** /repos/{owner}/{repo}/tags | List a repository&#39;s tags
*RepositoryApi* | [**repoListTopics**](docs/RepositoryApi.md#repoListTopics) | **GET** /repos/{owner}/{repo}/topics | Get list of topics that a repository has
*RepositoryApi* | [**repoMergePullRequest**](docs/RepositoryApi.md#repoMergePullRequest) | **POST** /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request
*RepositoryApi* | [**repoMigrate**](docs/RepositoryApi.md#repoMigrate) | **POST** /repos/migrate | Migrate a remote git repository
*RepositoryApi* | [**repoMirrorSync**](docs/RepositoryApi.md#repoMirrorSync) | **POST** /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository
*RepositoryApi* | [**repoPullRequestIsMerged**](docs/RepositoryApi.md#repoPullRequestIsMerged) | **GET** /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged
*RepositoryApi* | [**repoSearch**](docs/RepositoryApi.md#repoSearch) | **GET** /repos/search | Search for repositories
*RepositoryApi* | [**repoSigningKey**](docs/RepositoryApi.md#repoSigningKey) | **GET** /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository
*RepositoryApi* | [**repoSubmitPullReview**](docs/RepositoryApi.md#repoSubmitPullReview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Submit a pending review to an pull request
*RepositoryApi* | [**repoTestHook**](docs/RepositoryApi.md#repoTestHook) | **POST** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook
*RepositoryApi* | [**repoTrackedTimes**](docs/RepositoryApi.md#repoTrackedTimes) | **GET** /repos/{owner}/{repo}/times | List a repo&#39;s tracked times
*RepositoryApi* | [**repoTransfer**](docs/RepositoryApi.md#repoTransfer) | **POST** /repos/{owner}/{repo}/transfer | Transfer a repo ownership
*RepositoryApi* | [**repoUpdateFile**](docs/RepositoryApi.md#repoUpdateFile) | **PUT** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository
*RepositoryApi* | [**repoUpdatePullRequest**](docs/RepositoryApi.md#repoUpdatePullRequest) | **POST** /repos/{owner}/{repo}/pulls/{index}/update | Merge PR&#39;s baseBranch into headBranch
*RepositoryApi* | [**repoUpdateTopics**](docs/RepositoryApi.md#repoUpdateTopics) | **PUT** /repos/{owner}/{repo}/topics | Replace list of topics for a repository
*RepositoryApi* | [**topicSearch**](docs/RepositoryApi.md#topicSearch) | **GET** /topics/search | search topics via keyword
*RepositoryApi* | [**userCurrentCheckSubscription**](docs/RepositoryApi.md#userCurrentCheckSubscription) | **GET** /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
*RepositoryApi* | [**userCurrentDeleteSubscription**](docs/RepositoryApi.md#userCurrentDeleteSubscription) | **DELETE** /repos/{owner}/{repo}/subscription | Unwatch a repo
*RepositoryApi* | [**userCurrentPutSubscription**](docs/RepositoryApi.md#userCurrentPutSubscription) | **PUT** /repos/{owner}/{repo}/subscription | Watch a repo
*RepositoryApi* | [**userTrackedTimes**](docs/RepositoryApi.md#userTrackedTimes) | **GET** /repos/{owner}/{repo}/times/{user} | List a user&#39;s tracked times in a repo
*SettingsApi* | [**getGeneralAPISettings**](docs/SettingsApi.md#getGeneralAPISettings) | **GET** /settings/api | Get instance&#39;s global settings for api
*SettingsApi* | [**getGeneralAttachmentSettings**](docs/SettingsApi.md#getGeneralAttachmentSettings) | **GET** /settings/attachment | Get instance&#39;s global settings for Attachment
*SettingsApi* | [**getGeneralRepositorySettings**](docs/SettingsApi.md#getGeneralRepositorySettings) | **GET** /settings/repository | Get instance&#39;s global settings for repositories
*SettingsApi* | [**getGeneralUISettings**](docs/SettingsApi.md#getGeneralUISettings) | **GET** /settings/ui | Get instance&#39;s global settings for ui
*UserApi* | [**createCurrentUserRepo**](docs/UserApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
*UserApi* | [**userAddEmail**](docs/UserApi.md#userAddEmail) | **POST** /user/emails | Add email addresses
*UserApi* | [**userCheckFollowing**](docs/UserApi.md#userCheckFollowing) | **GET** /users/{follower}/following/{followee} | Check if one user is following another user
*UserApi* | [**userCreateOAuth2Application**](docs/UserApi.md#userCreateOAuth2Application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application
*UserApi* | [**userCreateToken**](docs/UserApi.md#userCreateToken) | **POST** /users/{username}/tokens | Create an access token
*UserApi* | [**userCurrentCheckFollowing**](docs/UserApi.md#userCurrentCheckFollowing) | **GET** /user/following/{username} | Check whether a user is followed by the authenticated user
*UserApi* | [**userCurrentCheckStarring**](docs/UserApi.md#userCurrentCheckStarring) | **GET** /user/starred/{owner}/{repo} | Whether the authenticated is starring the repo
*UserApi* | [**userCurrentDeleteFollow**](docs/UserApi.md#userCurrentDeleteFollow) | **DELETE** /user/following/{username} | Unfollow a user
*UserApi* | [**userCurrentDeleteGPGKey**](docs/UserApi.md#userCurrentDeleteGPGKey) | **DELETE** /user/gpg_keys/{id} | Remove a GPG key
*UserApi* | [**userCurrentDeleteKey**](docs/UserApi.md#userCurrentDeleteKey) | **DELETE** /user/keys/{id} | Delete a public key
*UserApi* | [**userCurrentDeleteStar**](docs/UserApi.md#userCurrentDeleteStar) | **DELETE** /user/starred/{owner}/{repo} | Unstar the given repo
*UserApi* | [**userCurrentGetGPGKey**](docs/UserApi.md#userCurrentGetGPGKey) | **GET** /user/gpg_keys/{id} | Get a GPG key
*UserApi* | [**userCurrentGetKey**](docs/UserApi.md#userCurrentGetKey) | **GET** /user/keys/{id} | Get a public key
*UserApi* | [**userCurrentListFollowers**](docs/UserApi.md#userCurrentListFollowers) | **GET** /user/followers | List the authenticated user&#39;s followers
*UserApi* | [**userCurrentListFollowing**](docs/UserApi.md#userCurrentListFollowing) | **GET** /user/following | List the users that the authenticated user is following
*UserApi* | [**userCurrentListGPGKeys**](docs/UserApi.md#userCurrentListGPGKeys) | **GET** /user/gpg_keys | List the authenticated user&#39;s GPG keys
*UserApi* | [**userCurrentListKeys**](docs/UserApi.md#userCurrentListKeys) | **GET** /user/keys | List the authenticated user&#39;s public keys
*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns or has access to
*UserApi* | [**userCurrentListStarred**](docs/UserApi.md#userCurrentListStarred) | **GET** /user/starred | The repos that the authenticated user has starred
*UserApi* | [**userCurrentListSubscriptions**](docs/UserApi.md#userCurrentListSubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user
*UserApi* | [**userCurrentPostGPGKey**](docs/UserApi.md#userCurrentPostGPGKey) | **POST** /user/gpg_keys | Create a GPG key
*UserApi* | [**userCurrentPostKey**](docs/UserApi.md#userCurrentPostKey) | **POST** /user/keys | Create a public key
*UserApi* | [**userCurrentPutFollow**](docs/UserApi.md#userCurrentPutFollow) | **PUT** /user/following/{username} | Follow a user
*UserApi* | [**userCurrentPutStar**](docs/UserApi.md#userCurrentPutStar) | **PUT** /user/starred/{owner}/{repo} | Star the given repo
*UserApi* | [**userCurrentTrackedTimes**](docs/UserApi.md#userCurrentTrackedTimes) | **GET** /user/times | List the current user&#39;s tracked times
*UserApi* | [**userDeleteAccessToken**](docs/UserApi.md#userDeleteAccessToken) | **DELETE** /users/{username}/tokens/{token} | delete an access token
*UserApi* | [**userDeleteEmail**](docs/UserApi.md#userDeleteEmail) | **DELETE** /user/emails | Delete email addresses
*UserApi* | [**userDeleteOAuth2Application**](docs/UserApi.md#userDeleteOAuth2Application) | **DELETE** /user/applications/oauth2/{id} | delete an OAuth2 Application
*UserApi* | [**userGet**](docs/UserApi.md#userGet) | **GET** /users/{username} | Get a user
*UserApi* | [**userGetCurrent**](docs/UserApi.md#userGetCurrent) | **GET** /user | Get the authenticated user
*UserApi* | [**userGetHeatmapData**](docs/UserApi.md#userGetHeatmapData) | **GET** /users/{username}/heatmap | Get a user&#39;s heatmap
*UserApi* | [**userGetOAuth2Application**](docs/UserApi.md#userGetOAuth2Application) | **GET** /user/applications/oauth2/{id} | get an OAuth2 Application
*UserApi* | [**userGetOauth2Application**](docs/UserApi.md#userGetOauth2Application) | **GET** /user/applications/oauth2 | List the authenticated user&#39;s oauth2 applications
*UserApi* | [**userGetStopWatches**](docs/UserApi.md#userGetStopWatches) | **GET** /user/stopwatches | Get list of all existing stopwatches
*UserApi* | [**userGetTokens**](docs/UserApi.md#userGetTokens) | **GET** /users/{username}/tokens | List the authenticated user&#39;s access tokens
*UserApi* | [**userListEmails**](docs/UserApi.md#userListEmails) | **GET** /user/emails | List the authenticated user&#39;s email addresses
*UserApi* | [**userListFollowers**](docs/UserApi.md#userListFollowers) | **GET** /users/{username}/followers | List the given user&#39;s followers
*UserApi* | [**userListFollowing**](docs/UserApi.md#userListFollowing) | **GET** /users/{username}/following | List the users that the given user is following
*UserApi* | [**userListGPGKeys**](docs/UserApi.md#userListGPGKeys) | **GET** /users/{username}/gpg_keys | List the given user&#39;s GPG keys
*UserApi* | [**userListKeys**](docs/UserApi.md#userListKeys) | **GET** /users/{username}/keys | List the given user&#39;s public keys
*UserApi* | [**userListRepos**](docs/UserApi.md#userListRepos) | **GET** /users/{username}/repos | List the repos owned by the given user
*UserApi* | [**userListStarred**](docs/UserApi.md#userListStarred) | **GET** /users/{username}/starred | The repos that the given user has starred
*UserApi* | [**userListSubscriptions**](docs/UserApi.md#userListSubscriptions) | **GET** /users/{username}/subscriptions | List the repositories watched by a user
*UserApi* | [**userListTeams**](docs/UserApi.md#userListTeams) | **GET** /user/teams | List all the teams a user belongs to
*UserApi* | [**userSearch**](docs/UserApi.md#userSearch) | **GET** /users/search | Search for users
*UserApi* | [**userUpdateOAuth2Application**](docs/UserApi.md#userUpdateOAuth2Application) | **PATCH** /user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret
## Documentation for Models
- [APIError](docs/APIError.md)
- [AccessToken](docs/AccessToken.md)
- [AddCollaboratorOption](docs/AddCollaboratorOption.md)
- [AddTimeOption](docs/AddTimeOption.md)
- [AnnotatedTag](docs/AnnotatedTag.md)
- [AnnotatedTagObject](docs/AnnotatedTagObject.md)
- [Attachment](docs/Attachment.md)
- [Branch](docs/Branch.md)
- [BranchProtection](docs/BranchProtection.md)
- [CombinedStatus](docs/CombinedStatus.md)
- [Comment](docs/Comment.md)
- [Commit](docs/Commit.md)
- [CommitDateOptions](docs/CommitDateOptions.md)
- [CommitMeta](docs/CommitMeta.md)
- [CommitUser](docs/CommitUser.md)
- [ContentsResponse](docs/ContentsResponse.md)
- [CreateBranchProtectionOption](docs/CreateBranchProtectionOption.md)
- [CreateBranchRepoOption](docs/CreateBranchRepoOption.md)
- [CreateEmailOption](docs/CreateEmailOption.md)
- [CreateFileOptions](docs/CreateFileOptions.md)
- [CreateForkOption](docs/CreateForkOption.md)
- [CreateGPGKeyOption](docs/CreateGPGKeyOption.md)
- [CreateHookOption](docs/CreateHookOption.md)
- [CreateIssueCommentOption](docs/CreateIssueCommentOption.md)
- [CreateIssueOption](docs/CreateIssueOption.md)
- [CreateKeyOption](docs/CreateKeyOption.md)
- [CreateLabelOption](docs/CreateLabelOption.md)
- [CreateMilestoneOption](docs/CreateMilestoneOption.md)
- [CreateOAuth2ApplicationOptions](docs/CreateOAuth2ApplicationOptions.md)
- [CreateOrgOption](docs/CreateOrgOption.md)
- [CreatePullRequestOption](docs/CreatePullRequestOption.md)
- [CreatePullReviewComment](docs/CreatePullReviewComment.md)
- [CreatePullReviewOptions](docs/CreatePullReviewOptions.md)
- [CreateReleaseOption](docs/CreateReleaseOption.md)
- [CreateRepoOption](docs/CreateRepoOption.md)
- [CreateStatusOption](docs/CreateStatusOption.md)
- [CreateTeamOption](docs/CreateTeamOption.md)
- [CreateUserOption](docs/CreateUserOption.md)
- [Cron](docs/Cron.md)
- [DeleteEmailOption](docs/DeleteEmailOption.md)
- [DeleteFileOptions](docs/DeleteFileOptions.md)
- [DeployKey](docs/DeployKey.md)
- [EditAttachmentOptions](docs/EditAttachmentOptions.md)
- [EditBranchProtectionOption](docs/EditBranchProtectionOption.md)
- [EditDeadlineOption](docs/EditDeadlineOption.md)
- [EditGitHookOption](docs/EditGitHookOption.md)
- [EditHookOption](docs/EditHookOption.md)
- [EditIssueCommentOption](docs/EditIssueCommentOption.md)
- [EditIssueOption](docs/EditIssueOption.md)
- [EditLabelOption](docs/EditLabelOption.md)
- [EditMilestoneOption](docs/EditMilestoneOption.md)
- [EditOrgOption](docs/EditOrgOption.md)
- [EditPullRequestOption](docs/EditPullRequestOption.md)
- [EditReactionOption](docs/EditReactionOption.md)
- [EditReleaseOption](docs/EditReleaseOption.md)
- [EditRepoOption](docs/EditRepoOption.md)
- [EditTeamOption](docs/EditTeamOption.md)
- [EditUserOption](docs/EditUserOption.md)
- [Email](docs/Email.md)
- [ExternalTracker](docs/ExternalTracker.md)
- [ExternalWiki](docs/ExternalWiki.md)
- [FileCommitResponse](docs/FileCommitResponse.md)
- [FileDeleteResponse](docs/FileDeleteResponse.md)
- [FileLinksResponse](docs/FileLinksResponse.md)
- [FileResponse](docs/FileResponse.md)
- [GPGKey](docs/GPGKey.md)
- [GPGKeyEmail](docs/GPGKeyEmail.md)
- [GeneralAPISettings](docs/GeneralAPISettings.md)
- [GeneralAttachmentSettings](docs/GeneralAttachmentSettings.md)
- [GeneralRepoSettings](docs/GeneralRepoSettings.md)
- [GeneralUISettings](docs/GeneralUISettings.md)
- [GitBlobResponse](docs/GitBlobResponse.md)
- [GitEntry](docs/GitEntry.md)
- [GitHook](docs/GitHook.md)
- [GitObject](docs/GitObject.md)
- [GitTreeResponse](docs/GitTreeResponse.md)
- [Hook](docs/Hook.md)
- [Identity](docs/Identity.md)
- [InlineObject](docs/InlineObject.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse2001](docs/InlineResponse2001.md)
- [InternalTracker](docs/InternalTracker.md)
- [Issue](docs/Issue.md)
- [IssueDeadline](docs/IssueDeadline.md)
- [IssueLabelsOption](docs/IssueLabelsOption.md)
- [IssueTemplate](docs/IssueTemplate.md)
- [Label](docs/Label.md)
- [MarkdownOption](docs/MarkdownOption.md)
- [MergePullRequestOption](docs/MergePullRequestOption.md)
- [MigrateRepoForm](docs/MigrateRepoForm.md)
- [MigrateRepoOptions](docs/MigrateRepoOptions.md)
- [Milestone](docs/Milestone.md)
- [NotificationCount](docs/NotificationCount.md)
- [NotificationSubject](docs/NotificationSubject.md)
- [NotificationThread](docs/NotificationThread.md)
- [OAuth2Application](docs/OAuth2Application.md)
- [Organization](docs/Organization.md)
- [PRBranchInfo](docs/PRBranchInfo.md)
- [PayloadCommit](docs/PayloadCommit.md)
- [PayloadCommitVerification](docs/PayloadCommitVerification.md)
- [PayloadUser](docs/PayloadUser.md)
- [Permission](docs/Permission.md)
- [PublicKey](docs/PublicKey.md)
- [PullRequest](docs/PullRequest.md)
- [PullRequestMeta](docs/PullRequestMeta.md)
- [PullReview](docs/PullReview.md)
- [PullReviewComment](docs/PullReviewComment.md)
- [Reaction](docs/Reaction.md)
- [Reference](docs/Reference.md)
- [Release](docs/Release.md)
- [RepoCommit](docs/RepoCommit.md)
- [RepoTopicOptions](docs/RepoTopicOptions.md)
- [Repository](docs/Repository.md)
- [RepositoryMeta](docs/RepositoryMeta.md)
- [SearchResults](docs/SearchResults.md)
- [ServerVersion](docs/ServerVersion.md)
- [Status](docs/Status.md)
- [StopWatch](docs/StopWatch.md)
- [SubmitPullReviewOptions](docs/SubmitPullReviewOptions.md)
- [Tag](docs/Tag.md)
- [Team](docs/Team.md)
- [TopicName](docs/TopicName.md)
- [TopicResponse](docs/TopicResponse.md)
- [TrackedTime](docs/TrackedTime.md)
- [TransferRepoOption](docs/TransferRepoOption.md)
- [UpdateFileOptions](docs/UpdateFileOptions.md)
- [User](docs/User.md)
- [UserHeatmapData](docs/UserHeatmapData.md)
- [WatchInfo](docs/WatchInfo.md)
## Documentation for Authorization
Authentication schemes defined for the API:
### AccessToken
- **Type**: API key
- **API key parameter name**: access_token
- **Location**: URL query string
### AuthorizationHeaderToken
- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header
### BasicAuth
- **Type**: HTTP basic authentication
### SudoHeader
- **Type**: API key
- **API key parameter name**: Sudo
- **Location**: HTTP header
### SudoParam
- **Type**: API key
- **API key parameter name**: sudo
- **Location**: URL query string
### TOTPHeader
- **Type**: API key
- **API key parameter name**: X-GITEA-OTP
- **Location**: HTTP header
### Token
- **Type**: API key
- **API key parameter name**: token
- **Location**: URL query string
## Recommendation
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
## Author

17116
api/openapi.yaml Executable file

File diff suppressed because it is too large Load Diff

114
build.gradle Executable file
View File

@ -0,0 +1,114 @@
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
group = 'io.gitea'
version = '1.13.0'
buildscript {
repositories {
maven { url "https://repo1.maven.org/maven2" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
repositories {
jcenter()
}
sourceSets {
main.java.srcDirs = ['src/main/java']
}
if(hasProperty('target') && target == 'android') {
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
minSdkVersion 14
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Rename the aar correctly
libraryVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.aar')) {
def fileName = "${project.name}-${variant.baseName}-${version}.aar"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
dependencies {
provided 'javax.annotation:javax.annotation-api:1.3.2'
}
}
afterEvaluate {
android.libraryVariants.all { variant ->
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
task.description = "Create jar artifact for ${variant.name}"
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
artifacts.add('archives', task);
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
} else {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
pom.artifactId = 'java.gitea.api'
}
}
task execute(type:JavaExec) {
main = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
}
dependencies {
implementation 'io.swagger:swagger-annotations:1.5.24'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:3.14.7'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.7'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'io.gsonfire:gson-fire:1.8.4'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
testImplementation 'junit:junit:4.13.1'
}
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

24
build.sbt Executable file
View File

@ -0,0 +1,24 @@
lazy val root = (project in file(".")).
settings(
organization := "io.gitea",
name := "java.gitea.api",
version := "1.13.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.24",
"com.squareup.okhttp3" % "okhttp" % "3.14.7",
"com.squareup.okhttp3" % "logging-interceptor" % "3.14.7",
"com.google.code.gson" % "gson" % "2.8.6",
"org.apache.commons" % "commons-lang3" % "3.10",
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
"junit" % "junit" % "4.13.1" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
)

View File

@ -25,9 +25,9 @@ artifactDescription: Access GITEA services in Java.
artifactId: java.gitea.api
artifactUrl: https://forge.chapril.org/gitea/java.gitea.api
artifactVersion: 1.13.0
developerEmail: fterrot<@>april.org
developerEmail: ''
developerName: Gitea Contributors, OpenAPI-generator Contributors
developerOrganisation: none
developerOrganisation: ''
developerOragnisationUrl: https://gitea.io/
groupId: io.gitea
hideGenerationTimestamp: true
@ -35,6 +35,8 @@ invokerPackage: io.gitea
licenseName: MIT
modelPackage: io.gitea.model
scmUrl: https://forge.chapril.org/gitea/java.gitea.api
scmConnection: ''
scmDeveloper: ''
snapshotVersion: false # true for master
java8: true
dateLibrary: java8

14
docs/APIError.md Executable file
View File

@ -0,0 +1,14 @@
# APIError
APIError is an api error with a message
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **String** | | [optional]
**url** | **String** | | [optional]

15
docs/AccessToken.md Executable file
View File

@ -0,0 +1,15 @@
# AccessToken
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Long** | | [optional]
**name** | **String** | | [optional]
**sha1** | **String** | | [optional]
**tokenLastEight** | **String** | | [optional]

13
docs/AddCollaboratorOption.md Executable file
View File

@ -0,0 +1,13 @@
# AddCollaboratorOption
AddCollaboratorOption options when adding a user as a collaborator of a repository
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**permission** | **String** | | [optional]

15
docs/AddTimeOption.md Executable file
View File

@ -0,0 +1,15 @@
# AddTimeOption
AddTimeOption options for adding time to an issue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created** | **OffsetDateTime** | | [optional]
**time** | **Long** | time in seconds |
**userName** | **String** | User who spent the time (optional) | [optional]

1494
docs/AdminApi.md Executable file

File diff suppressed because it is too large Load Diff

19
docs/AnnotatedTag.md Executable file
View File

@ -0,0 +1,19 @@
# AnnotatedTag
AnnotatedTag represents an annotated tag
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **String** | | [optional]
**_object** | [**AnnotatedTagObject**](AnnotatedTagObject.md) | | [optional]
**sha** | **String** | | [optional]
**tag** | **String** | | [optional]
**tagger** | [**CommitUser**](CommitUser.md) | | [optional]
**url** | **String** | | [optional]
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]

15
docs/AnnotatedTagObject.md Executable file
View File

@ -0,0 +1,15 @@
# AnnotatedTagObject
AnnotatedTagObject contains meta information of the tag object
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sha** | **String** | | [optional]
**type** | **String** | | [optional]
**url** | **String** | | [optional]

19
docs/Attachment.md Executable file
View File

@ -0,0 +1,19 @@
# Attachment
Attachment a generic attachment
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**browserDownloadUrl** | **String** | | [optional]
**createdAt** | **OffsetDateTime** | | [optional]
**downloadCount** | **Long** | | [optional]
**id** | **Long** | | [optional]
**name** | **String** | | [optional]
**size** | **Long** | | [optional]
**uuid** | **String** | | [optional]

21
docs/Branch.md Executable file
View File

@ -0,0 +1,21 @@
# Branch
Branch represents a repository branch
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional]
**effectiveBranchProtectionName** | **String** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**name** | **String** | | [optional]
**_protected** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List&lt;String&gt;** | | [optional]
**userCanMerge** | **Boolean** | | [optional]
**userCanPush** | **Boolean** | | [optional]

34
docs/BranchProtection.md Executable file
View File

@ -0,0 +1,34 @@
# BranchProtection
BranchProtection represents a branch protection for a repository
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvalsWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**approvalsWhitelistUsername** | **List&lt;String&gt;** | | [optional]
**blockOnOutdatedBranch** | **Boolean** | | [optional]
**blockOnRejectedReviews** | **Boolean** | | [optional]
**branchName** | **String** | | [optional]
**createdAt** | **OffsetDateTime** | | [optional]
**dismissStaleApprovals** | **Boolean** | | [optional]
**enableApprovalsWhitelist** | **Boolean** | | [optional]
**enableMergeWhitelist** | **Boolean** | | [optional]
**enablePush** | **Boolean** | | [optional]
**enablePushWhitelist** | **Boolean** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**mergeWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**mergeWhitelistUsernames** | **List&lt;String&gt;** | | [optional]
**protectedFilePatterns** | **String** | | [optional]
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
**pushWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**pushWhitelistUsernames** | **List&lt;String&gt;** | | [optional]
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List&lt;String&gt;** | | [optional]
**updatedAt** | **OffsetDateTime** | | [optional]

19
docs/CombinedStatus.md Executable file
View File

@ -0,0 +1,19 @@
# CombinedStatus
CombinedStatus holds the combined state of several statuses for a single commit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commitUrl** | **String** | | [optional]
**repository** | [**Repository**](Repository.md) | | [optional]
**sha** | **String** | | [optional]
**state** | **String** | StatusState holds the state of a Status It can be \&quot;pending\&quot;, \&quot;success\&quot;, \&quot;error\&quot;, \&quot;failure\&quot;, and \&quot;warning\&quot; | [optional]
**statuses** | [**List&lt;Status&gt;**](Status.md) | | [optional]
**totalCount** | **Long** | | [optional]
**url** | **String** | | [optional]

22
docs/Comment.md Executable file
View File

@ -0,0 +1,22 @@
# Comment
Comment represents a comment on a commit or issue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**createdAt** | **OffsetDateTime** | | [optional]
**htmlUrl** | **String** | | [optional]
**id** | **Long** | | [optional]
**issueUrl** | **String** | | [optional]
**originalAuthor** | **String** | | [optional]
**originalAuthorId** | **Long** | | [optional]
**pullRequestUrl** | **String** | | [optional]
**updatedAt** | **OffsetDateTime** | | [optional]
**user** | [**User**](User.md) | | [optional]

19
docs/Commit.md Executable file
View File

@ -0,0 +1,19 @@
# Commit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**User**](User.md) | | [optional]
**commit** | [**RepoCommit**](RepoCommit.md) | | [optional]
**committer** | [**User**](User.md) | | [optional]
**created** | **OffsetDateTime** | | [optional]
**htmlUrl** | **String** | | [optional]
**parents** | [**List&lt;CommitMeta&gt;**](CommitMeta.md) | | [optional]
**sha** | **String** | | [optional]
**url** | **String** | | [optional]

14
docs/CommitDateOptions.md Executable file
View File

@ -0,0 +1,14 @@
# CommitDateOptions
CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | **OffsetDateTime** | | [optional]
**committer** | **OffsetDateTime** | | [optional]

14
docs/CommitMeta.md Executable file
View File

@ -0,0 +1,14 @@
# CommitMeta
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created** | **OffsetDateTime** | | [optional]
**sha** | **String** | | [optional]
**url** | **String** | | [optional]

14
docs/CommitUser.md Executable file
View File

@ -0,0 +1,14 @@
# CommitUser
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**date** | **String** | | [optional]
**email** | **String** | | [optional]
**name** | **String** | | [optional]

26
docs/ContentsResponse.md Executable file
View File

@ -0,0 +1,26 @@
# ContentsResponse
ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**links** | [**FileLinksResponse**](FileLinksResponse.md) | | [optional]
**content** | **String** | &#x60;content&#x60; is populated when &#x60;type&#x60; is &#x60;file&#x60;, otherwise null | [optional]
**downloadUrl** | **String** | | [optional]
**encoding** | **String** | &#x60;encoding&#x60; is populated when &#x60;type&#x60; is &#x60;file&#x60;, otherwise null | [optional]
**gitUrl** | **String** | | [optional]
**htmlUrl** | **String** | | [optional]
**name** | **String** | | [optional]
**path** | **String** | | [optional]
**sha** | **String** | | [optional]
**size** | **Long** | | [optional]
**submoduleGitUrl** | **String** | &#x60;submodule_git_url&#x60; is populated when &#x60;type&#x60; is &#x60;submodule&#x60;, otherwise null | [optional]
**target** | **String** | &#x60;target&#x60; is populated when &#x60;type&#x60; is &#x60;symlink&#x60;, otherwise null | [optional]
**type** | **String** | &#x60;type&#x60; will be &#x60;file&#x60;, &#x60;dir&#x60;, &#x60;symlink&#x60;, or &#x60;submodule&#x60; | [optional]
**url** | **String** | | [optional]

View File

@ -0,0 +1,32 @@
# CreateBranchProtectionOption
CreateBranchProtectionOption options for creating a branch protection
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvalsWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**approvalsWhitelistUsername** | **List&lt;String&gt;** | | [optional]
**blockOnOutdatedBranch** | **Boolean** | | [optional]
**blockOnRejectedReviews** | **Boolean** | | [optional]
**branchName** | **String** | | [optional]
**dismissStaleApprovals** | **Boolean** | | [optional]
**enableApprovalsWhitelist** | **Boolean** | | [optional]
**enableMergeWhitelist** | **Boolean** | | [optional]
**enablePush** | **Boolean** | | [optional]
**enablePushWhitelist** | **Boolean** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**mergeWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**mergeWhitelistUsernames** | **List&lt;String&gt;** | | [optional]
**protectedFilePatterns** | **String** | | [optional]
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
**pushWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**pushWhitelistUsernames** | **List&lt;String&gt;** | | [optional]
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List&lt;String&gt;** | | [optional]

14
docs/CreateBranchRepoOption.md Executable file
View File

@ -0,0 +1,14 @@
# CreateBranchRepoOption
CreateBranchRepoOption options when creating a branch in a repository
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**newBranchName** | **String** | Name of the branch to create |
**oldBranchName** | **String** | Name of the old branch to create from | [optional]

13
docs/CreateEmailOption.md Executable file
View File

@ -0,0 +1,13 @@
# CreateEmailOption
CreateEmailOption options when creating email addresses
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emails** | **List&lt;String&gt;** | email addresses to add | [optional]

19
docs/CreateFileOptions.md Executable file
View File

@ -0,0 +1,19 @@
# CreateFileOptions
CreateFileOptions options for creating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**Identity**](Identity.md) | | [optional]
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
**committer** | [**Identity**](Identity.md) | | [optional]
**content** | **String** | content must be base64 encoded |
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
**newBranch** | **String** | new_branch (optional) will make a new branch from &#x60;branch&#x60; before creating the file | [optional]

13
docs/CreateForkOption.md Executable file
View File

@ -0,0 +1,13 @@
# CreateForkOption
CreateForkOption options for creating a fork
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**organization** | **String** | organization name, if forking into an organization | [optional]

13
docs/CreateGPGKeyOption.md Executable file
View File

@ -0,0 +1,13 @@
# CreateGPGKeyOption
CreateGPGKeyOption options create user GPG key
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**armoredPublicKey** | **String** | An armored GPG key to add |

32
docs/CreateHookOption.md Executable file
View File

@ -0,0 +1,32 @@
# CreateHookOption
CreateHookOption options when create a hook
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
**branchFilter** | **String** | | [optional]
**config** | **Map&lt;String, String&gt;** | CreateHookOptionConfig has all config options in it required are \&quot;content_type\&quot; and \&quot;url\&quot; Required |
**events** | **List&lt;String&gt;** | | [optional]
**type** | [**TypeEnum**](#TypeEnum) | |
## Enum: TypeEnum
Name | Value
---- | -----
DINGTALK | &quot;dingtalk&quot;
DISCORD | &quot;discord&quot;
GITEA | &quot;gitea&quot;
GOGS | &quot;gogs&quot;
MSTEAMS | &quot;msteams&quot;
SLACK | &quot;slack&quot;
TELEGRAM | &quot;telegram&quot;
FEISHU | &quot;feishu&quot;

View File

@ -0,0 +1,13 @@
# CreateIssueCommentOption
CreateIssueCommentOption options for creating a comment on an issue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | |

20
docs/CreateIssueOption.md Executable file
View File

@ -0,0 +1,20 @@
# CreateIssueOption
CreateIssueOption options to create one issue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assignee** | **String** | username of assignee | [optional]
**assignees** | **List&lt;String&gt;** | | [optional]
**body** | **String** | | [optional]
**closed** | **Boolean** | | [optional]
**dueDate** | **OffsetDateTime** | | [optional]
**labels** | **List&lt;Long&gt;** | list of label ids | [optional]
**milestone** | **Long** | milestone id | [optional]
**title** | **String** | |

15
docs/CreateKeyOption.md Executable file
View File

@ -0,0 +1,15 @@
# CreateKeyOption
CreateKeyOption options when creating a key
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | An armored SSH key to add |
**readOnly** | **Boolean** | Describe if the key has only read access or read/write | [optional]
**title** | **String** | Title of the key to add |

15
docs/CreateLabelOption.md Executable file
View File

@ -0,0 +1,15 @@
# CreateLabelOption
CreateLabelOption options for creating a label
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **String** | |
**description** | **String** | | [optional]
**name** | **String** | |

25
docs/CreateMilestoneOption.md Executable file
View File

@ -0,0 +1,25 @@
# CreateMilestoneOption
CreateMilestoneOption options for creating a milestone
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | | [optional]
**dueOn** | **OffsetDateTime** | | [optional]
**state** | [**StateEnum**](#StateEnum) | | [optional]
**title** | **String** | | [optional]
## Enum: StateEnum
Name | Value
---- | -----
OPEN | &quot;open&quot;
CLOSED | &quot;closed&quot;

View File

@ -0,0 +1,14 @@
# CreateOAuth2ApplicationOptions
CreateOAuth2ApplicationOptions holds options to create an oauth2 application
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]
**redirectUris** | **List&lt;String&gt;** | | [optional]

29
docs/CreateOrgOption.md Executable file
View File

@ -0,0 +1,29 @@
# CreateOrgOption
CreateOrgOption options for creating an organization
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | | [optional]
**fullName** | **String** | | [optional]
**location** | **String** | | [optional]
**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
**username** | **String** | |
**visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are &#x60;public&#x60; (default), &#x60;limited&#x60; or &#x60;private&#x60; | [optional]
**website** | **String** | | [optional]
## Enum: VisibilityEnum
Name | Value
---- | -----
PUBLIC | &quot;public&quot;
LIMITED | &quot;limited&quot;
PRIVATE | &quot;private&quot;

21
docs/CreatePullRequestOption.md Executable file
View File

@ -0,0 +1,21 @@
# CreatePullRequestOption
CreatePullRequestOption options when creating a pull request
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assignee** | **String** | | [optional]
**assignees** | **List&lt;String&gt;** | | [optional]
**base** | **String** | | [optional]
**body** | **String** | | [optional]
**dueDate** | **OffsetDateTime** | | [optional]
**head** | **String** | | [optional]
**labels** | **List&lt;Long&gt;** | | [optional]
**milestone** | **Long** | | [optional]
**title** | **String** | | [optional]

16
docs/CreatePullReviewComment.md Executable file
View File

@ -0,0 +1,16 @@
# CreatePullReviewComment
CreatePullReviewComment represent a review comment for creation api
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**newPosition** | **Long** | if comment to new file line or 0 | [optional]
**oldPosition** | **Long** | if comment to old file line or 0 | [optional]
**path** | **String** | the tree path | [optional]

16
docs/CreatePullReviewOptions.md Executable file
View File

@ -0,0 +1,16 @@
# CreatePullReviewOptions
CreatePullReviewOptions are options to create a pull review
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**comments** | [**List&lt;CreatePullReviewComment&gt;**](CreatePullReviewComment.md) | | [optional]
**commitId** | **String** | | [optional]
**event** | **String** | ReviewStateType review state type | [optional]

18
docs/CreateReleaseOption.md Executable file
View File

@ -0,0 +1,18 @@
# CreateReleaseOption
CreateReleaseOption options when creating a release
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**draft** | **Boolean** | | [optional]
**name** | **String** | | [optional]
**prerelease** | **Boolean** | | [optional]
**tagName** | **String** | |
**targetCommitish** | **String** | | [optional]

34
docs/CreateRepoOption.md Executable file
View File

@ -0,0 +1,34 @@
# CreateRepoOption
CreateRepoOption options when creating repository
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional]
**defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional]
**description** | **String** | Description of the repository to create | [optional]
**gitignores** | **String** | Gitignores to use | [optional]
**issueLabels** | **String** | Label-Set to use | [optional]
**license** | **String** | License to use | [optional]
**name** | **String** | Name of the repository to create |
**_private** | **Boolean** | Whether the repository is private | [optional]
**readme** | **String** | Readme of the repository to create | [optional]
**template** | **Boolean** | Whether the repository is template | [optional]
**trustModel** | [**TrustModelEnum**](#TrustModelEnum) | TrustModel of the repository | [optional]
## Enum: TrustModelEnum
Name | Value
---- | -----
DEFAULT | &quot;default&quot;
COLLABORATOR | &quot;collaborator&quot;
COMMITTER | &quot;committer&quot;
COLLABORATORCOMMITTER | &quot;collaboratorcommitter&quot;

16
docs/CreateStatusOption.md Executable file
View File

@ -0,0 +1,16 @@
# CreateStatusOption
CreateStatusOption holds the information needed to create a new Status for a Commit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**context** | **String** | | [optional]
**description** | **String** | | [optional]
**state** | **String** | StatusState holds the state of a Status It can be \&quot;pending\&quot;, \&quot;success\&quot;, \&quot;error\&quot;, \&quot;failure\&quot;, and \&quot;warning\&quot; | [optional]
**targetUrl** | **String** | | [optional]

28
docs/CreateTeamOption.md Executable file
View File

@ -0,0 +1,28 @@
# CreateTeamOption
CreateTeamOption options for creating a team
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**canCreateOrgRepo** | **Boolean** | | [optional]
**description** | **String** | | [optional]
**includesAllRepositories** | **Boolean** | | [optional]
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
**units** | **List&lt;String&gt;** | | [optional]
## Enum: PermissionEnum
Name | Value
---- | -----
READ | &quot;read&quot;
WRITE | &quot;write&quot;
ADMIN | &quot;admin&quot;

20
docs/CreateUserOption.md Executable file
View File

@ -0,0 +1,20 @@
# CreateUserOption
CreateUserOption create user options
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **String** | |
**fullName** | **String** | | [optional]
**loginName** | **String** | | [optional]
**mustChangePassword** | **Boolean** | | [optional]
**password** | **String** | |
**sendNotify** | **Boolean** | | [optional]
**sourceId** | **Long** | | [optional]
**username** | **String** | |

17
docs/Cron.md Executable file
View File

@ -0,0 +1,17 @@
# Cron
Cron represents a Cron task
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**execTimes** | **Long** | | [optional]
**name** | **String** | | [optional]
**next** | **OffsetDateTime** | | [optional]
**prev** | **OffsetDateTime** | | [optional]
**schedule** | **String** | | [optional]

13
docs/DeleteEmailOption.md Executable file
View File

@ -0,0 +1,13 @@
# DeleteEmailOption
DeleteEmailOption options when deleting email addresses
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emails** | **List&lt;String&gt;** | email addresses to delete | [optional]

19
docs/DeleteFileOptions.md Executable file
View File

@ -0,0 +1,19 @@
# DeleteFileOptions
DeleteFileOptions options for deleting files (used for other File structs below) Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**Identity**](Identity.md) | | [optional]
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
**committer** | [**Identity**](Identity.md) | | [optional]
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
**newBranch** | **String** | new_branch (optional) will make a new branch from &#x60;branch&#x60; before creating the file | [optional]
**sha** | **String** | sha is the SHA for the file that already exists |

21
docs/DeployKey.md Executable file
View File

@ -0,0 +1,21 @@
# DeployKey
DeployKey a deploy key
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**createdAt** | **OffsetDateTime** | | [optional]
**fingerprint** | **String** | | [optional]
**id** | **Long** | | [optional]
**key** | **String** | | [optional]
**keyId** | **Long** | | [optional]
**readOnly** | **Boolean** | | [optional]
**repository** | [**Repository**](Repository.md) | | [optional]
**title** | **String** | | [optional]
**url** | **String** | | [optional]

13
docs/EditAttachmentOptions.md Executable file
View File

@ -0,0 +1,13 @@
# EditAttachmentOptions
EditAttachmentOptions options for editing attachments
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@ -0,0 +1,31 @@
# EditBranchProtectionOption
EditBranchProtectionOption options for editing a branch protection
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvalsWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**approvalsWhitelistUsername** | **List&lt;String&gt;** | | [optional]
**blockOnOutdatedBranch** | **Boolean** | | [optional]
**blockOnRejectedReviews** | **Boolean** | | [optional]
**dismissStaleApprovals** | **Boolean** | | [optional]
**enableApprovalsWhitelist** | **Boolean** | | [optional]
**enableMergeWhitelist** | **Boolean** | | [optional]
**enablePush** | **Boolean** | | [optional]
**enablePushWhitelist** | **Boolean** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**mergeWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**mergeWhitelistUsernames** | **List&lt;String&gt;** | | [optional]
**protectedFilePatterns** | **String** | | [optional]
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
**pushWhitelistTeams** | **List&lt;String&gt;** | | [optional]
**pushWhitelistUsernames** | **List&lt;String&gt;** | | [optional]
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List&lt;String&gt;** | | [optional]

13
docs/EditDeadlineOption.md Executable file
View File

@ -0,0 +1,13 @@
# EditDeadlineOption
EditDeadlineOption options for creating a deadline
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dueDate** | **OffsetDateTime** | |

13
docs/EditGitHookOption.md Executable file
View File

@ -0,0 +1,13 @@
# EditGitHookOption
EditGitHookOption options when modifying one Git hook
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **String** | | [optional]

16
docs/EditHookOption.md Executable file
View File

@ -0,0 +1,16 @@
# EditHookOption
EditHookOption options when modify one hook
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
**branchFilter** | **String** | | [optional]
**config** | **Map&lt;String, String&gt;** | | [optional]
**events** | **List&lt;String&gt;** | | [optional]

13
docs/EditIssueCommentOption.md Executable file
View File

@ -0,0 +1,13 @@
# EditIssueCommentOption
EditIssueCommentOption options for editing a comment
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | |

20
docs/EditIssueOption.md Executable file
View File

@ -0,0 +1,20 @@
# EditIssueOption
EditIssueOption options for editing an issue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assignee** | **String** | | [optional]
**assignees** | **List&lt;String&gt;** | | [optional]
**body** | **String** | | [optional]
**dueDate** | **OffsetDateTime** | | [optional]
**milestone** | **Long** | | [optional]
**state** | **String** | | [optional]
**title** | **String** | | [optional]
**unsetDueDate** | **Boolean** | | [optional]

15
docs/EditLabelOption.md Executable file
View File

@ -0,0 +1,15 @@
# EditLabelOption
EditLabelOption options for editing a label
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **String** | | [optional]
**description** | **String** | | [optional]
**name** | **String** | | [optional]

16
docs/EditMilestoneOption.md Executable file
View File

@ -0,0 +1,16 @@
# EditMilestoneOption
EditMilestoneOption options for editing a milestone
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | | [optional]
**dueOn** | **OffsetDateTime** | | [optional]
**state** | **String** | | [optional]
**title** | **String** | | [optional]

28
docs/EditOrgOption.md Executable file
View File

@ -0,0 +1,28 @@
# EditOrgOption
EditOrgOption options for editing an organization
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | | [optional]
**fullName** | **String** | | [optional]
**location** | **String** | | [optional]
**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
**visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are &#x60;public&#x60;, &#x60;limited&#x60; or &#x60;private&#x60; | [optional]
**website** | **String** | | [optional]
## Enum: VisibilityEnum
Name | Value
---- | -----
PUBLIC | &quot;public&quot;
LIMITED | &quot;limited&quot;
PRIVATE | &quot;private&quot;

22
docs/EditPullRequestOption.md Executable file
View File

@ -0,0 +1,22 @@
# EditPullRequestOption
EditPullRequestOption options when modify pull request
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assignee** | **String** | | [optional]
**assignees** | **List&lt;String&gt;** | | [optional]
**base** | **String** | | [optional]
**body** | **String** | | [optional]
**dueDate** | **OffsetDateTime** | | [optional]
**labels** | **List&lt;Long&gt;** | | [optional]
**milestone** | **Long** | | [optional]
**state** | **String** | | [optional]
**title** | **String** | | [optional]
**unsetDueDate** | **Boolean** | | [optional]

13
docs/EditReactionOption.md Executable file
View File

@ -0,0 +1,13 @@
# EditReactionOption
EditReactionOption contain the reaction type
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **String** | | [optional]

18
docs/EditReleaseOption.md Executable file
View File

@ -0,0 +1,18 @@
# EditReleaseOption
EditReleaseOption options when editing a release
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**draft** | **Boolean** | | [optional]
**name** | **String** | | [optional]
**prerelease** | **Boolean** | | [optional]
**tagName** | **String** | | [optional]
**targetCommitish** | **String** | | [optional]

31
docs/EditRepoOption.md Executable file
View File

@ -0,0 +1,31 @@
# EditRepoOption
EditRepoOption options when editing a repository's properties
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowMergeCommits** | **Boolean** | either &#x60;true&#x60; to allow merging pull requests with a merge commit, or &#x60;false&#x60; to prevent merging pull requests with merge commits. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
**allowRebase** | **Boolean** | either &#x60;true&#x60; to allow rebase-merging pull requests, or &#x60;false&#x60; to prevent rebase-merging. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
**allowRebaseExplicit** | **Boolean** | either &#x60;true&#x60; to allow rebase with explicit merge commits (--no-ff), or &#x60;false&#x60; to prevent rebase with explicit merge commits. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
**allowSquashMerge** | **Boolean** | either &#x60;true&#x60; to allow squash-merging pull requests, or &#x60;false&#x60; to prevent squash-merging. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
**archived** | **Boolean** | set to &#x60;true&#x60; to archive this repository. | [optional]
**defaultBranch** | **String** | sets the default branch for this repository. | [optional]
**description** | **String** | a short description of the repository. | [optional]
**externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional]
**externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional]
**hasIssues** | **Boolean** | either &#x60;true&#x60; to enable issues for this repository or &#x60;false&#x60; to disable them. | [optional]
**hasProjects** | **Boolean** | either &#x60;true&#x60; to enable project unit, or &#x60;false&#x60; to disable them. | [optional]
**hasPullRequests** | **Boolean** | either &#x60;true&#x60; to allow pull requests, or &#x60;false&#x60; to prevent pull request. | [optional]
**hasWiki** | **Boolean** | either &#x60;true&#x60; to enable the wiki for this repository or &#x60;false&#x60; to disable it. | [optional]
**ignoreWhitespaceConflicts** | **Boolean** | either &#x60;true&#x60; to ignore whitespace for conflicts, or &#x60;false&#x60; to not ignore whitespace. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
**name** | **String** | name of the repository | [optional]
**_private** | **Boolean** | either &#x60;true&#x60; to make the repository private or &#x60;false&#x60; to make it public. Note: you will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private. | [optional]
**template** | **Boolean** | either &#x60;true&#x60; to make this repository a template or &#x60;false&#x60; to make it a normal repository | [optional]
**website** | **String** | a URL with more information about the repository. | [optional]

28
docs/EditTeamOption.md Executable file
View File

@ -0,0 +1,28 @@
# EditTeamOption
EditTeamOption options for editing a team
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**canCreateOrgRepo** | **Boolean** | | [optional]
**description** | **String** | | [optional]
**includesAllRepositories** | **Boolean** | | [optional]
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
**units** | **List&lt;String&gt;** | | [optional]
## Enum: PermissionEnum
Name | Value
---- | -----
READ | &quot;read&quot;
WRITE | &quot;write&quot;
ADMIN | &quot;admin&quot;

27
docs/EditUserOption.md Executable file
View File

@ -0,0 +1,27 @@
# EditUserOption
EditUserOption edit user options
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
**admin** | **Boolean** | | [optional]
**allowCreateOrganization** | **Boolean** | | [optional]
**allowGitHook** | **Boolean** | | [optional]
**allowImportLocal** | **Boolean** | | [optional]
**email** | **String** | |
**fullName** | **String** | | [optional]
**location** | **String** | | [optional]
**loginName** | **String** | | [optional]
**maxRepoCreation** | **Long** | | [optional]
**mustChangePassword** | **Boolean** | | [optional]
**password** | **String** | | [optional]
**prohibitLogin** | **Boolean** | | [optional]
**sourceId** | **Long** | | [optional]
**website** | **String** | | [optional]

15
docs/Email.md Executable file
View File

@ -0,0 +1,15 @@
# Email
Email an email address belonging to a user
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **String** | | [optional]
**primary** | **Boolean** | | [optional]
**verified** | **Boolean** | | [optional]

15
docs/ExternalTracker.md Executable file
View File

@ -0,0 +1,15 @@
# ExternalTracker
ExternalTracker represents settings for external tracker
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**externalTrackerFormat** | **String** | External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. | [optional]
**externalTrackerStyle** | **String** | External Issue Tracker Number Format, either &#x60;numeric&#x60; or &#x60;alphanumeric&#x60; | [optional]
**externalTrackerUrl** | **String** | URL of external issue tracker. | [optional]

13
docs/ExternalWiki.md Executable file
View File

@ -0,0 +1,13 @@
# ExternalWiki
ExternalWiki represents setting for external wiki
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**externalWikiUrl** | **String** | URL of external wiki. | [optional]

20
docs/FileCommitResponse.md Executable file
View File

@ -0,0 +1,20 @@
# FileCommitResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**CommitUser**](CommitUser.md) | | [optional]
**committer** | [**CommitUser**](CommitUser.md) | | [optional]
**created** | **OffsetDateTime** | | [optional]
**htmlUrl** | **String** | | [optional]
**message** | **String** | | [optional]
**parents** | [**List&lt;CommitMeta&gt;**](CommitMeta.md) | | [optional]
**sha** | **String** | | [optional]
**tree** | [**CommitMeta**](CommitMeta.md) | | [optional]
**url** | **String** | | [optional]

15
docs/FileDeleteResponse.md Executable file
View File

@ -0,0 +1,15 @@
# FileDeleteResponse
FileDeleteResponse contains information about a repo's file that was deleted
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional]
**content** | **Object** | | [optional]
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]

15
docs/FileLinksResponse.md Executable file
View File

@ -0,0 +1,15 @@
# FileLinksResponse
FileLinksResponse contains the links for a repo's file
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**git** | **String** | | [optional]
**html** | **String** | | [optional]
**self** | **String** | | [optional]

15
docs/FileResponse.md Executable file
View File

@ -0,0 +1,15 @@
# FileResponse
FileResponse contains information about a repo's file
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional]
**content** | [**ContentsResponse**](ContentsResponse.md) | | [optional]
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]

24
docs/GPGKey.md Executable file
View File

@ -0,0 +1,24 @@
# GPGKey
GPGKey a user GPG key to sign commit and tag in repository
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**canCertify** | **Boolean** | | [optional]
**canEncryptComms** | **Boolean** | | [optional]
**canEncryptStorage** | **Boolean** | | [optional]
**canSign** | **Boolean** | | [optional]
**createdAt** | **OffsetDateTime** | | [optional]
**emails** | [**List&lt;GPGKeyEmail&gt;**](GPGKeyEmail.md) | | [optional]
**expiresAt** | **OffsetDateTime** | | [optional]
**id** | **Long** | | [optional]
**keyId** | **String** | | [optional]
**primaryKeyId** | **String** | | [optional]
**publicKey** | **String** | | [optional]
**subkeys** | [**List&lt;GPGKey&gt;**](GPGKey.md) | | [optional]

14
docs/GPGKeyEmail.md Executable file
View File

@ -0,0 +1,14 @@
# GPGKeyEmail
GPGKeyEmail an email attached to a GPGKey
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **String** | | [optional]
**verified** | **Boolean** | | [optional]

16
docs/GeneralAPISettings.md Executable file
View File

@ -0,0 +1,16 @@
# GeneralAPISettings
GeneralAPISettings contains global api settings exposed by it
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**defaultGitTreesPerPage** | **Long** | | [optional]
**defaultMaxBlobSize** | **Long** | | [optional]
**defaultPagingNum** | **Long** | | [optional]
**maxResponseItems** | **Long** | | [optional]

View File

@ -0,0 +1,16 @@
# GeneralAttachmentSettings
GeneralAttachmentSettings contains global Attachment settings exposed by API
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowedTypes** | **String** | | [optional]
**enabled** | **Boolean** | | [optional]
**maxFiles** | **Long** | | [optional]
**maxSize** | **Long** | | [optional]

14
docs/GeneralRepoSettings.md Executable file
View File

@ -0,0 +1,14 @@
# GeneralRepoSettings
GeneralRepoSettings contains global repository settings exposed by API
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**httpGitDisabled** | **Boolean** | | [optional]
**mirrorsDisabled** | **Boolean** | | [optional]

13
docs/GeneralUISettings.md Executable file
View File

@ -0,0 +1,13 @@
# GeneralUISettings
GeneralUISettings contains global ui settings exposed by API
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowedReactions** | **List&lt;String&gt;** | | [optional]

17
docs/GitBlobResponse.md Executable file
View File

@ -0,0 +1,17 @@
# GitBlobResponse
GitBlobResponse represents a git blob
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **String** | | [optional]
**encoding** | **String** | | [optional]
**sha** | **String** | | [optional]
**size** | **Long** | | [optional]
**url** | **String** | | [optional]

18
docs/GitEntry.md Executable file
View File

@ -0,0 +1,18 @@
# GitEntry
GitEntry represents a git tree
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**mode** | **String** | | [optional]
**path** | **String** | | [optional]
**sha** | **String** | | [optional]
**size** | **Long** | | [optional]
**type** | **String** | | [optional]
**url** | **String** | | [optional]

15
docs/GitHook.md Executable file
View File

@ -0,0 +1,15 @@
# GitHook
GitHook represents a Git repository hook
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **String** | | [optional]
**isActive** | **Boolean** | | [optional]
**name** | **String** | | [optional]

14
docs/GitObject.md Executable file
View File

@ -0,0 +1,14 @@
# GitObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sha** | **String** | | [optional]
**type** | **String** | | [optional]
**url** | **String** | | [optional]

18
docs/GitTreeResponse.md Executable file
View File

@ -0,0 +1,18 @@
# GitTreeResponse
GitTreeResponse returns a git tree
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**page** | **Long** | | [optional]
**sha** | **String** | | [optional]
**totalCount** | **Long** | | [optional]
**tree** | [**List&lt;GitEntry&gt;**](GitEntry.md) | | [optional]
**truncated** | **Boolean** | | [optional]
**url** | **String** | | [optional]

19
docs/Hook.md Executable file
View File

@ -0,0 +1,19 @@
# Hook
Hook a hook is a web hook when one repository changed
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
**config** | **Map&lt;String, String&gt;** | | [optional]
**createdAt** | **OffsetDateTime** | | [optional]
**events** | **List&lt;String&gt;** | | [optional]
**id** | **Long** | | [optional]
**type** | **String** | | [optional]
**updatedAt** | **OffsetDateTime** | | [optional]

14
docs/Identity.md Executable file
View File

@ -0,0 +1,14 @@
# Identity
Identity for a person's identity like an author or committer
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **String** | | [optional]
**name** | **String** | | [optional]

12
docs/InlineObject.md Executable file
View File

@ -0,0 +1,12 @@
# InlineObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | |

13
docs/InlineResponse200.md Executable file
View File

@ -0,0 +1,13 @@
# InlineResponse200
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**List&lt;Team&gt;**](Team.md) | | [optional]
**ok** | **Boolean** | | [optional]

13
docs/InlineResponse2001.md Executable file
View File

@ -0,0 +1,13 @@
# InlineResponse2001
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**List&lt;User&gt;**](User.md) | | [optional]
**ok** | **Boolean** | | [optional]

15
docs/InternalTracker.md Executable file
View File

@ -0,0 +1,15 @@
# InternalTracker
InternalTracker represents settings for internal tracker
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowOnlyContributorsToTrackTime** | **Boolean** | Let only contributors track time (Built-in issue tracker) | [optional]
**enableIssueDependencies** | **Boolean** | Enable dependencies for issues and pull requests (Built-in issue tracker) | [optional]
**enableTimeTracker** | **Boolean** | Enable time tracking (Built-in issue tracker) | [optional]

34
docs/Issue.md Executable file
View File

@ -0,0 +1,34 @@
# Issue
Issue represents an issue in a repository
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assignee** | [**User**](User.md) | | [optional]
**assignees** | [**List&lt;User&gt;**](User.md) | | [optional]
**body** | **String** | | [optional]
**closedAt** | **OffsetDateTime** | | [optional]
**comments** | **Long** | | [optional]
**createdAt** | **OffsetDateTime** | | [optional]
**dueDate** | **OffsetDateTime** | | [optional]
**htmlUrl** | **String** | | [optional]
**id** | **Long** | | [optional]
**isLocked** | **Boolean** | | [optional]
**labels** | [**List&lt;Label&gt;**](Label.md) | | [optional]
**milestone** | [**Milestone**](Milestone.md) | | [optional]
**number** | **Long** | | [optional]
**originalAuthor** | **String** | | [optional]
**originalAuthorId** | **Long** | | [optional]
**pullRequest** | [**PullRequestMeta**](PullRequestMeta.md) | | [optional]
**repository** | [**RepositoryMeta**](RepositoryMeta.md) | | [optional]
**state** | **String** | StateType issue state type | [optional]
**title** | **String** | | [optional]
**updatedAt** | **OffsetDateTime** | | [optional]
**url** | **String** | | [optional]
**user** | [**User**](User.md) | | [optional]

5070
docs/IssueApi.md Executable file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More