diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION
index a625450..752a79e 100644
--- a/.swagger-codegen/VERSION
+++ b/.swagger-codegen/VERSION
@@ -1 +1 @@
-2.3.1
\ No newline at end of file
+2.4.8
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 70cb81a..d3fa7d2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,8 +3,8 @@
#
language: java
jdk:
- - oraclejdk8
- - oraclejdk7
+ - openjdk8
+ - openjdk11
before_install:
# ensure gradlew has proper permission
- chmod a+x ./gradlew
diff --git a/build.gradle b/build.gradle
index 925e1c5..650ab5a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -93,7 +93,7 @@ if(hasProperty('target') && target == 'android') {
javadoc {
source = sourceSets.main.allJava
- classpath = configurations.compileClasspath
+ classpath = sourceSets.main.compileClasspath
options
{
@@ -115,5 +115,6 @@ dependencies {
compile 'com.google.code.gson:gson:2.8.1'
compile 'io.gsonfire:gson-fire:1.8.0'
compile 'org.threeten:threetenbp:1.3.5'
+ compile 'javax.annotation:javax.annotation-api:1.3.2'
testCompile 'junit:junit:4.12'
}
diff --git a/docs/APIError.md b/docs/APIError.md
new file mode 100644
index 0000000..e95c91b
--- /dev/null
+++ b/docs/APIError.md
@@ -0,0 +1,11 @@
+
+# APIError
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/AccessToken.md b/docs/AccessToken.md
index 5ee4506..928a5e2 100644
--- a/docs/AccessToken.md
+++ b/docs/AccessToken.md
@@ -4,9 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **Long** | | [optional]
-**name** | **String** | | [optional]
-**sha1** | **String** | | [optional]
+**name** | **String** | |
diff --git a/docs/AdminApi.md b/docs/AdminApi.md
index 8c58f9c..58d7554 100644
--- a/docs/AdminApi.md
+++ b/docs/AdminApi.md
@@ -11,6 +11,8 @@ Method | HTTP request | Description
[**adminDeleteUser**](AdminApi.md#adminDeleteUser) | **DELETE** /admin/users/{username} | Delete a user
[**adminDeleteUserPublicKey**](AdminApi.md#adminDeleteUserPublicKey) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user's public key
[**adminEditUser**](AdminApi.md#adminEditUser) | **PATCH** /admin/users/{username} | Edit an existing user
+[**adminGetAllOrgs**](AdminApi.md#adminGetAllOrgs) | **GET** /admin/orgs | List all organizations
+[**adminGetAllUsers**](AdminApi.md#adminGetAllUsers) | **GET** /admin/users | List all users
@@ -595,3 +597,165 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+# **adminGetAllOrgs**
+> List<Organization> adminGetAllOrgs(page, limit)
+
+List all organizations
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.AdminApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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();
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results, maximum page size is 50
+try {
+ List result = apiInstance.adminGetAllOrgs(page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AdminApi#adminGetAllOrgs");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results, maximum page size is 50 | [optional]
+
+### Return type
+
+[**List<Organization>**](Organization.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **adminGetAllUsers**
+> List<User> adminGetAllUsers()
+
+List all users
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.AdminApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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();
+try {
+ List result = apiInstance.adminGetAllUsers();
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AdminApi#adminGetAllUsers");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**List<User>**](User.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
diff --git a/docs/AnnotatedTag.md b/docs/AnnotatedTag.md
new file mode 100644
index 0000000..ed18920
--- /dev/null
+++ b/docs/AnnotatedTag.md
@@ -0,0 +1,16 @@
+
+# AnnotatedTag
+
+## 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]
+
+
+
diff --git a/docs/AnnotatedTagObject.md b/docs/AnnotatedTagObject.md
new file mode 100644
index 0000000..253dfcc
--- /dev/null
+++ b/docs/AnnotatedTagObject.md
@@ -0,0 +1,12 @@
+
+# AnnotatedTagObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sha** | **String** | | [optional]
+**type** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/Comment.md b/docs/Comment.md
index 0dbf5a3..fb3bafa 100644
--- a/docs/Comment.md
+++ b/docs/Comment.md
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
**htmlUrl** | **String** | | [optional]
**id** | **Long** | | [optional]
**issueUrl** | **String** | | [optional]
+**originalAuthor** | **String** | | [optional]
+**originalAuthorId** | **Long** | | [optional]
**pullRequestUrl** | **String** | | [optional]
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**user** | [**User**](User.md) | | [optional]
diff --git a/docs/Commit.md b/docs/Commit.md
new file mode 100644
index 0000000..e236a3d
--- /dev/null
+++ b/docs/Commit.md
@@ -0,0 +1,16 @@
+
+# Commit
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**author** | [**User**](User.md) | | [optional]
+**commit** | [**RepoCommit**](RepoCommit.md) | | [optional]
+**committer** | [**User**](User.md) | | [optional]
+**htmlUrl** | **String** | | [optional]
+**parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional]
+**sha** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/CommitMeta.md b/docs/CommitMeta.md
new file mode 100644
index 0000000..25be92d
--- /dev/null
+++ b/docs/CommitMeta.md
@@ -0,0 +1,11 @@
+
+# CommitMeta
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sha** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/CommitUser.md b/docs/CommitUser.md
new file mode 100644
index 0000000..d763ebd
--- /dev/null
+++ b/docs/CommitUser.md
@@ -0,0 +1,12 @@
+
+# CommitUser
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**date** | **String** | | [optional]
+**email** | **String** | | [optional]
+**name** | **String** | | [optional]
+
+
+
diff --git a/docs/ContentsResponse.md b/docs/ContentsResponse.md
new file mode 100644
index 0000000..3097291
--- /dev/null
+++ b/docs/ContentsResponse.md
@@ -0,0 +1,23 @@
+
+# ContentsResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | [**FileLinksResponse**](FileLinksResponse.md) | | [optional]
+**content** | **String** | `content` is populated when `type` is `file`, otherwise null | [optional]
+**downloadUrl** | **String** | | [optional]
+**encoding** | **String** | `encoding` is populated when `type` is `file`, otherwise null | [optional]
+**gitUrl** | **String** | | [optional]
+**htmlUrl** | **String** | | [optional]
+**name** | **String** | | [optional]
+**path** | **String** | | [optional]
+**sha** | **String** | | [optional]
+**size** | **Long** | | [optional]
+**submoduleGitUrl** | **String** | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional]
+**target** | **String** | `target` is populated when `type` is `symlink`, otherwise null | [optional]
+**type** | **String** | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/CreateFileOptions.md b/docs/CreateFileOptions.md
new file mode 100644
index 0000000..0c5aada
--- /dev/null
+++ b/docs/CreateFileOptions.md
@@ -0,0 +1,15 @@
+
+# CreateFileOptions
+
+## 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 |
+**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 `branch` before creating the file | [optional]
+
+
+
diff --git a/docs/CreateHookOption.md b/docs/CreateHookOption.md
index 8bf73ba..9b06ab2 100644
--- a/docs/CreateHookOption.md
+++ b/docs/CreateHookOption.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
+**branchFilter** | **String** | | [optional]
**config** | **Map<String, String>** | |
**events** | **List<String>** | | [optional]
**type** | [**TypeEnum**](#TypeEnum) | |
diff --git a/docs/CreateLabelOption.md b/docs/CreateLabelOption.md
index c46d36b..5393f74 100644
--- a/docs/CreateLabelOption.md
+++ b/docs/CreateLabelOption.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **String** | |
+**description** | **String** | | [optional]
**name** | **String** | |
diff --git a/docs/CreateOrgOption.md b/docs/CreateOrgOption.md
index 78d05dc..1145120 100644
--- a/docs/CreateOrgOption.md
+++ b/docs/CreateOrgOption.md
@@ -7,8 +7,19 @@ Name | Type | Description | Notes
**description** | **String** | | [optional]
**fullName** | **String** | | [optional]
**location** | **String** | | [optional]
+**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
**username** | **String** | |
+**visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are `public` (default), `limited` or `private` | [optional]
**website** | **String** | | [optional]
+
+## Enum: VisibilityEnum
+Name | Value
+---- | -----
+PUBLIC | "public"
+LIMITED | "limited"
+PRIVATE | "private"
+
+
diff --git a/docs/CreateRepoOption.md b/docs/CreateRepoOption.md
index a9154ab..8bb081b 100644
--- a/docs/CreateRepoOption.md
+++ b/docs/CreateRepoOption.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional]
**description** | **String** | Description of the repository to create | [optional]
**gitignores** | **String** | Gitignores to use | [optional]
+**issueLabels** | **String** | Issue 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]
diff --git a/docs/CreateTeamOption.md b/docs/CreateTeamOption.md
index 6d2ad62..a9037a1 100644
--- a/docs/CreateTeamOption.md
+++ b/docs/CreateTeamOption.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**description** | **String** | | [optional]
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
+**units** | **List<String>** | | [optional]
diff --git a/docs/CreateUserOption.md b/docs/CreateUserOption.md
index 1eda2da..7ccfb17 100644
--- a/docs/CreateUserOption.md
+++ b/docs/CreateUserOption.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**email** | **String** | |
**fullName** | **String** | | [optional]
**loginName** | **String** | | [optional]
+**mustChangePassword** | **Boolean** | | [optional]
**password** | **String** | |
**sendNotify** | **Boolean** | | [optional]
**sourceId** | **Long** | | [optional]
diff --git a/docs/DeleteFileOptions.md b/docs/DeleteFileOptions.md
new file mode 100644
index 0000000..c3847f4
--- /dev/null
+++ b/docs/DeleteFileOptions.md
@@ -0,0 +1,15 @@
+
+# DeleteFileOptions
+
+## 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]
+**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 `branch` before creating the file | [optional]
+**sha** | **String** | sha is the SHA for the file that already exists |
+
+
+
diff --git a/docs/AccessTokenName.md b/docs/EditGitHookOption.md
similarity index 64%
rename from docs/AccessTokenName.md
rename to docs/EditGitHookOption.md
index 64cb186..8ab95a9 100644
--- a/docs/AccessTokenName.md
+++ b/docs/EditGitHookOption.md
@@ -1,10 +1,10 @@
-# AccessTokenName
+# EditGitHookOption
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **String** | |
+**content** | **String** | | [optional]
diff --git a/docs/EditHookOption.md b/docs/EditHookOption.md
index 70b99be..7db1044 100644
--- a/docs/EditHookOption.md
+++ b/docs/EditHookOption.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
+**branchFilter** | **String** | | [optional]
**config** | **Map<String, String>** | | [optional]
**events** | **List<String>** | | [optional]
diff --git a/docs/EditLabelOption.md b/docs/EditLabelOption.md
index 32c72df..15f442c 100644
--- a/docs/EditLabelOption.md
+++ b/docs/EditLabelOption.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **String** | | [optional]
+**description** | **String** | | [optional]
**name** | **String** | | [optional]
diff --git a/docs/EditOrgOption.md b/docs/EditOrgOption.md
index 5fe1c89..5341e21 100644
--- a/docs/EditOrgOption.md
+++ b/docs/EditOrgOption.md
@@ -7,7 +7,18 @@ Name | Type | Description | Notes
**description** | **String** | | [optional]
**fullName** | **String** | | [optional]
**location** | **String** | | [optional]
+**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
+**visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are `public`, `limited` or `private` | [optional]
**website** | **String** | | [optional]
+
+## Enum: VisibilityEnum
+Name | Value
+---- | -----
+PUBLIC | "public"
+LIMITED | "limited"
+PRIVATE | "private"
+
+
diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md
new file mode 100644
index 0000000..e4a9b50
--- /dev/null
+++ b/docs/EditRepoOption.md
@@ -0,0 +1,26 @@
+
+# EditRepoOption
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**allowMergeCommits** | **Boolean** | either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`. | [optional]
+**allowRebase** | **Boolean** | either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`. | [optional]
+**allowRebaseExplicit** | **Boolean** | either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`. | [optional]
+**allowSquashMerge** | **Boolean** | either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`. | [optional]
+**archived** | **Boolean** | set to `true` 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 `true` to enable issues for this repository or `false` to disable them. | [optional]
+**hasPullRequests** | **Boolean** | either `true` to allow pull requests, or `false` to prevent pull request. | [optional]
+**hasWiki** | **Boolean** | either `true` to enable the wiki for this repository or `false` to disable it. | [optional]
+**ignoreWhitespaceConflicts** | **Boolean** | either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`. | [optional]
+**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
+**name** | **String** | name of the repository | [optional]
+**_private** | **Boolean** | either `true` to make the repository private or `false` 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]
+**website** | **String** | a URL with more information about the repository. | [optional]
+
+
+
diff --git a/docs/EditTeamOption.md b/docs/EditTeamOption.md
index 673dcde..29967d2 100644
--- a/docs/EditTeamOption.md
+++ b/docs/EditTeamOption.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**description** | **String** | | [optional]
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
+**units** | **List<String>** | | [optional]
diff --git a/docs/EditUserOption.md b/docs/EditUserOption.md
index 9a79b92..30892c6 100644
--- a/docs/EditUserOption.md
+++ b/docs/EditUserOption.md
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
**location** | **String** | | [optional]
**loginName** | **String** | | [optional]
**maxRepoCreation** | **Long** | | [optional]
+**mustChangePassword** | **Boolean** | | [optional]
**password** | **String** | | [optional]
**prohibitLogin** | **Boolean** | | [optional]
**sourceId** | **Long** | | [optional]
diff --git a/docs/ExternalTracker.md b/docs/ExternalTracker.md
new file mode 100644
index 0000000..172c0cf
--- /dev/null
+++ b/docs/ExternalTracker.md
@@ -0,0 +1,12 @@
+
+# ExternalTracker
+
+## 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 `numeric` or `alphanumeric` | [optional]
+**externalTrackerUrl** | **String** | URL of external issue tracker. | [optional]
+
+
+
diff --git a/docs/ExternalWiki.md b/docs/ExternalWiki.md
new file mode 100644
index 0000000..780c4b9
--- /dev/null
+++ b/docs/ExternalWiki.md
@@ -0,0 +1,10 @@
+
+# ExternalWiki
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**externalWikiUrl** | **String** | URL of external wiki. | [optional]
+
+
+
diff --git a/docs/FileCommitResponse.md b/docs/FileCommitResponse.md
new file mode 100644
index 0000000..99b41c6
--- /dev/null
+++ b/docs/FileCommitResponse.md
@@ -0,0 +1,17 @@
+
+# FileCommitResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**author** | [**CommitUser**](CommitUser.md) | | [optional]
+**committer** | [**CommitUser**](CommitUser.md) | | [optional]
+**htmlUrl** | **String** | | [optional]
+**message** | **String** | | [optional]
+**parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional]
+**sha** | **String** | | [optional]
+**tree** | [**CommitMeta**](CommitMeta.md) | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/FileDeleteResponse.md b/docs/FileDeleteResponse.md
new file mode 100644
index 0000000..09e3779
--- /dev/null
+++ b/docs/FileDeleteResponse.md
@@ -0,0 +1,12 @@
+
+# FileDeleteResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional]
+**content** | **Object** | | [optional]
+**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]
+
+
+
diff --git a/docs/FileLinksResponse.md b/docs/FileLinksResponse.md
new file mode 100644
index 0000000..91f5394
--- /dev/null
+++ b/docs/FileLinksResponse.md
@@ -0,0 +1,12 @@
+
+# FileLinksResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**git** | **String** | | [optional]
+**html** | **String** | | [optional]
+**self** | **String** | | [optional]
+
+
+
diff --git a/docs/FileResponse.md b/docs/FileResponse.md
new file mode 100644
index 0000000..0028927
--- /dev/null
+++ b/docs/FileResponse.md
@@ -0,0 +1,12 @@
+
+# FileResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional]
+**content** | [**ContentsResponse**](ContentsResponse.md) | | [optional]
+**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]
+
+
+
diff --git a/docs/GitBlobResponse.md b/docs/GitBlobResponse.md
new file mode 100644
index 0000000..e31fc0f
--- /dev/null
+++ b/docs/GitBlobResponse.md
@@ -0,0 +1,14 @@
+
+# GitBlobResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | **String** | | [optional]
+**encoding** | **String** | | [optional]
+**sha** | **String** | | [optional]
+**size** | **Long** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/GitEntry.md b/docs/GitEntry.md
new file mode 100644
index 0000000..9875255
--- /dev/null
+++ b/docs/GitEntry.md
@@ -0,0 +1,15 @@
+
+# GitEntry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mode** | **String** | | [optional]
+**path** | **String** | | [optional]
+**sha** | **String** | | [optional]
+**size** | **Long** | | [optional]
+**type** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/GitHook.md b/docs/GitHook.md
new file mode 100644
index 0000000..8f03e36
--- /dev/null
+++ b/docs/GitHook.md
@@ -0,0 +1,12 @@
+
+# GitHook
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | **String** | | [optional]
+**isActive** | **Boolean** | | [optional]
+**name** | **String** | | [optional]
+
+
+
diff --git a/docs/GitObject.md b/docs/GitObject.md
new file mode 100644
index 0000000..88548d7
--- /dev/null
+++ b/docs/GitObject.md
@@ -0,0 +1,12 @@
+
+# GitObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sha** | **String** | | [optional]
+**type** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/GitTreeResponse.md b/docs/GitTreeResponse.md
new file mode 100644
index 0000000..7ea44d2
--- /dev/null
+++ b/docs/GitTreeResponse.md
@@ -0,0 +1,15 @@
+
+# GitTreeResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**page** | **Long** | | [optional]
+**sha** | **String** | | [optional]
+**totalCount** | **Long** | | [optional]
+**tree** | [**List<GitEntry>**](GitEntry.md) | | [optional]
+**truncated** | **Boolean** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/Hook.md b/docs/Hook.md
new file mode 100644
index 0000000..8df8c58
--- /dev/null
+++ b/docs/Hook.md
@@ -0,0 +1,16 @@
+
+# Hook
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**active** | **Boolean** | | [optional]
+**config** | **Map<String, String>** | | [optional]
+**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+**events** | **List<String>** | | [optional]
+**id** | **Long** | | [optional]
+**type** | **String** | | [optional]
+**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+
+
+
diff --git a/docs/Identity.md b/docs/Identity.md
new file mode 100644
index 0000000..6c78401
--- /dev/null
+++ b/docs/Identity.md
@@ -0,0 +1,11 @@
+
+# Identity
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**email** | **String** | | [optional]
+**name** | **String** | | [optional]
+
+
+
diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md
new file mode 100644
index 0000000..ea00bde
--- /dev/null
+++ b/docs/InlineResponse200.md
@@ -0,0 +1,11 @@
+
+# InlineResponse200
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**List<Team>**](Team.md) | | [optional]
+**ok** | **Boolean** | | [optional]
+
+
+
diff --git a/docs/UserSearchList.md b/docs/InlineResponse2001.md
similarity index 90%
rename from docs/UserSearchList.md
rename to docs/InlineResponse2001.md
index 3ea0837..3e7645b 100644
--- a/docs/UserSearchList.md
+++ b/docs/InlineResponse2001.md
@@ -1,5 +1,5 @@
-# UserSearchList
+# InlineResponse2001
## Properties
Name | Type | Description | Notes
diff --git a/docs/InternalTracker.md b/docs/InternalTracker.md
new file mode 100644
index 0000000..7620b11
--- /dev/null
+++ b/docs/InternalTracker.md
@@ -0,0 +1,12 @@
+
+# InternalTracker
+
+## 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]
+
+
+
diff --git a/docs/Issue.md b/docs/Issue.md
index dfd2ab4..9328054 100644
--- a/docs/Issue.md
+++ b/docs/Issue.md
@@ -15,6 +15,8 @@ Name | Type | Description | Notes
**labels** | [**List<Label>**](Label.md) | | [optional]
**milestone** | [**Milestone**](Milestone.md) | | [optional]
**number** | **Long** | | [optional]
+**originalAuthor** | **String** | | [optional]
+**originalAuthorId** | **Long** | | [optional]
**pullRequest** | [**PullRequestMeta**](PullRequestMeta.md) | | [optional]
**state** | **String** | | [optional]
**title** | **String** | | [optional]
diff --git a/docs/IssueApi.md b/docs/IssueApi.md
index 1e1f1ef..9ed2ae4 100644
--- a/docs/IssueApi.md
+++ b/docs/IssueApi.md
@@ -8,7 +8,7 @@ Method | HTTP request | Description
[**issueAddTime**](IssueApi.md#issueAddTime) | **POST** /repos/{owner}/{repo}/issues/{id}/times | Add a tracked time to a issue
[**issueClearLabels**](IssueApi.md#issueClearLabels) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue
[**issueCreateComment**](IssueApi.md#issueCreateComment) | **POST** /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue
-[**issueCreateIssue**](IssueApi.md#issueCreateIssue) | **POST** /repos/{owner}/{repo}/issues | Create an issue
+[**issueCreateIssue**](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.
[**issueCreateLabel**](IssueApi.md#issueCreateLabel) | **POST** /repos/{owner}/{repo}/labels | Create a label
[**issueCreateMilestone**](IssueApi.md#issueCreateMilestone) | **POST** /repos/{owner}/{repo}/milestones | Create a milestone
[**issueDeleteComment**](IssueApi.md#issueDeleteComment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment
@@ -17,8 +17,8 @@ Method | HTTP request | Description
[**issueDeleteMilestone**](IssueApi.md#issueDeleteMilestone) | **DELETE** /repos/{owner}/{repo}/milestones/{id} | Delete a milestone
[**issueEditComment**](IssueApi.md#issueEditComment) | **PATCH** /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment
[**issueEditCommentDeprecated**](IssueApi.md#issueEditCommentDeprecated) | **PATCH** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment
-[**issueEditIssue**](IssueApi.md#issueEditIssue) | **PATCH** /repos/{owner}/{repo}/issues/{index} | Edit an issue
-[**issueEditIssueDeadline**](IssueApi.md#issueEditIssueDeadline) | **POST** /repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted.
+[**issueEditIssue**](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.
+[**issueEditIssueDeadline**](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.
[**issueEditLabel**](IssueApi.md#issueEditLabel) | **PATCH** /repos/{owner}/{repo}/labels/{id} | Update a label
[**issueEditMilestone**](IssueApi.md#issueEditMilestone) | **PATCH** /repos/{owner}/{repo}/milestones/{id} | Update a milestone
[**issueGetComments**](IssueApi.md#issueGetComments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue
@@ -26,12 +26,14 @@ Method | HTTP request | Description
[**issueGetLabel**](IssueApi.md#issueGetLabel) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label
[**issueGetLabels**](IssueApi.md#issueGetLabels) | **GET** /repos/{owner}/{repo}/issues/{index}/labels | Get an issue's labels
[**issueGetMilestone**](IssueApi.md#issueGetMilestone) | **GET** /repos/{owner}/{repo}/milestones/{id} | Get a milestone
-[**issueGetMilestonesList**](IssueApi.md#issueGetMilestonesList) | **GET** /repos/{owner}/{repo}/milestones | Get all of a repository's milestones
+[**issueGetMilestonesList**](IssueApi.md#issueGetMilestonesList) | **GET** /repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones
[**issueGetRepoComments**](IssueApi.md#issueGetRepoComments) | **GET** /repos/{owner}/{repo}/issues/comments | List all comments in a repository
[**issueListIssues**](IssueApi.md#issueListIssues) | **GET** /repos/{owner}/{repo}/issues | List a repository's issues
[**issueListLabels**](IssueApi.md#issueListLabels) | **GET** /repos/{owner}/{repo}/labels | Get all of a repository's labels
[**issueRemoveLabel**](IssueApi.md#issueRemoveLabel) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue
[**issueReplaceLabels**](IssueApi.md#issueReplaceLabels) | **PUT** /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels
+[**issueStartStopWatch**](IssueApi.md#issueStartStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue.
+[**issueStopWatch**](IssueApi.md#issueStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch.
[**issueTrackedTimes**](IssueApi.md#issueTrackedTimes) | **GET** /repos/{owner}/{repo}/issues/{id}/times | List an issue's tracked times
@@ -388,7 +390,7 @@ Name | Type | Description | Notes
# **issueCreateIssue**
> Issue issueCreateIssue(owner, repo, body)
-Create an issue
+Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
### Example
```java
@@ -1166,7 +1168,7 @@ Name | Type | Description | Notes
# **issueEditIssue**
> Issue issueEditIssue(owner, repo, index, body)
-Edit an issue
+Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
### Example
```java
@@ -1254,7 +1256,7 @@ Name | Type | Description | Notes
# **issueEditIssueDeadline**
> IssueDeadline issueEditIssueDeadline(owner, repo, index, body)
-Set an issue deadline. If set to null, the deadline is deleted.
+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.
### Example
```java
@@ -1948,9 +1950,9 @@ Name | Type | Description | Notes
# **issueGetMilestonesList**
-> List<Milestone> issueGetMilestonesList(owner, repo)
+> List<Milestone> issueGetMilestonesList(owner, repo, state)
-Get all of a repository's milestones
+Get all of a repository's opened milestones
### Example
```java
@@ -2001,8 +2003,9 @@ Token.setApiKey("YOUR API KEY");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
+String state = "state_example"; // String | Milestone state, Recognised values are open, closed and all. Defaults to \"open\"
try {
- List result = apiInstance.issueGetMilestonesList(owner, repo);
+ List result = apiInstance.issueGetMilestonesList(owner, repo, state);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueGetMilestonesList");
@@ -2016,6 +2019,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
+ **state** | **String**| Milestone state, Recognised values are open, closed and all. Defaults to \"open\" | [optional]
### Return type
@@ -2118,7 +2122,7 @@ Name | Type | Description | Notes
# **issueListIssues**
-> List<Issue> issueListIssues(owner, repo, state, page, q)
+> List<Issue> issueListIssues(owner, repo, state, labels, page, q)
List a repository's issues
@@ -2172,10 +2176,11 @@ IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String state = "state_example"; // String | whether issue is open or closed
+String labels = "labels_example"; // String | comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded
Integer page = 56; // Integer | page number of requested issues
String q = "q_example"; // String | search string
try {
- List result = apiInstance.issueListIssues(owner, repo, state, page, q);
+ List result = apiInstance.issueListIssues(owner, repo, state, labels, page, q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueListIssues");
@@ -2190,6 +2195,7 @@ Name | Type | Description | Notes
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**state** | **String**| whether issue is open or closed | [optional]
+ **labels** | **String**| comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded | [optional]
**page** | **Integer**| page number of requested issues | [optional]
**q** | **String**| search string | [optional]
@@ -2460,6 +2466,176 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **issueStartStopWatch**
+> issueStartStopWatch(owner, repo, index)
+
+Start stopwatch on an issue.
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.IssueApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+IssueApi apiInstance = new IssueApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long index = 789L; // Long | index of the issue to create the stopwatch on
+try {
+ apiInstance.issueStartStopWatch(owner, repo, index);
+} catch (ApiException e) {
+ System.err.println("Exception when calling IssueApi#issueStartStopWatch");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **index** | **Long**| index of the issue to create the stopwatch on |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **issueStopWatch**
+> issueStopWatch(owner, repo, index)
+
+Stop an issue's existing stopwatch.
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.IssueApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+IssueApi apiInstance = new IssueApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long index = 789L; // Long | index of the issue to stop the stopwatch on
+try {
+ apiInstance.issueStopWatch(owner, repo, index);
+} catch (ApiException e) {
+ System.err.println("Exception when calling IssueApi#issueStopWatch");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **index** | **Long**| index of the issue to stop the stopwatch on |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json
diff --git a/docs/Label.md b/docs/Label.md
index 3defc6e..faa999b 100644
--- a/docs/Label.md
+++ b/docs/Label.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **String** | | [optional]
+**description** | **String** | | [optional]
**id** | **Long** | | [optional]
**name** | **String** | | [optional]
**url** | **String** | | [optional]
diff --git a/docs/MergePullRequestOption.md b/docs/MergePullRequestOption.md
new file mode 100644
index 0000000..b74a10a
--- /dev/null
+++ b/docs/MergePullRequestOption.md
@@ -0,0 +1,22 @@
+
+# MergePullRequestOption
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_do** | [**DoEnum**](#DoEnum) | |
+**mergeMessageField** | **String** | | [optional]
+**mergeTitleField** | **String** | | [optional]
+
+
+
+## Enum: DoEnum
+Name | Value
+---- | -----
+MERGE | "merge"
+REBASE | "rebase"
+REBASE_MERGE | "rebase-merge"
+SQUASH | "squash"
+
+
+
diff --git a/docs/MigrateRepoForm.md b/docs/MigrateRepoForm.md
index 2d2f004..d75f3d9 100644
--- a/docs/MigrateRepoForm.md
+++ b/docs/MigrateRepoForm.md
@@ -8,10 +8,16 @@ Name | Type | Description | Notes
**authUsername** | **String** | | [optional]
**cloneAddr** | **String** | |
**description** | **String** | | [optional]
+**issues** | **Boolean** | | [optional]
+**labels** | **Boolean** | | [optional]
+**milestones** | **Boolean** | | [optional]
**mirror** | **Boolean** | | [optional]
**_private** | **Boolean** | | [optional]
+**pullRequests** | **Boolean** | | [optional]
+**releases** | **Boolean** | | [optional]
**repoName** | **String** | |
**uid** | **Long** | |
+**wiki** | **Boolean** | | [optional]
diff --git a/docs/MiscellaneousApi.md b/docs/MiscellaneousApi.md
index 6922fe2..a8ac7bc 100644
--- a/docs/MiscellaneousApi.md
+++ b/docs/MiscellaneousApi.md
@@ -89,7 +89,7 @@ This endpoint does not need any parameter.
# **renderMarkdown**
-> renderMarkdown(body)
+> String renderMarkdown(body)
Render a markdown document as HTML
@@ -142,7 +142,8 @@ Token.setApiKey("YOUR API KEY");
MiscellaneousApi apiInstance = new MiscellaneousApi();
MarkdownOption body = new MarkdownOption(); // MarkdownOption |
try {
- apiInstance.renderMarkdown(body);
+ String result = apiInstance.renderMarkdown(body);
+ System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MiscellaneousApi#renderMarkdown");
e.printStackTrace();
@@ -157,7 +158,7 @@ Name | Type | Description | Notes
### Return type
-null (empty response body)
+**String**
### Authorization
@@ -170,7 +171,7 @@ null (empty response body)
# **renderMarkdownRaw**
-> renderMarkdownRaw(body)
+> String renderMarkdownRaw(body)
Render raw markdown as HTML
@@ -223,7 +224,8 @@ Token.setApiKey("YOUR API KEY");
MiscellaneousApi apiInstance = new MiscellaneousApi();
String body = "body_example"; // String | Request body to render
try {
- apiInstance.renderMarkdownRaw(body);
+ String result = apiInstance.renderMarkdownRaw(body);
+ System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MiscellaneousApi#renderMarkdownRaw");
e.printStackTrace();
@@ -238,7 +240,7 @@ Name | Type | Description | Notes
### Return type
-null (empty response body)
+**String**
### Authorization
diff --git a/docs/Organization.md b/docs/Organization.md
index f54f031..b6a48a2 100644
--- a/docs/Organization.md
+++ b/docs/Organization.md
@@ -9,7 +9,9 @@ Name | Type | Description | Notes
**fullName** | **String** | | [optional]
**id** | **Long** | | [optional]
**location** | **String** | | [optional]
+**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
**username** | **String** | | [optional]
+**visibility** | **String** | | [optional]
**website** | **String** | | [optional]
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index fdff348..8286e20 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -8,8 +8,10 @@ Method | HTTP request | Description
[**orgAddTeamMember**](OrganizationApi.md#orgAddTeamMember) | **PUT** /teams/{id}/members/{username} | Add a team member
[**orgAddTeamRepository**](OrganizationApi.md#orgAddTeamRepository) | **PUT** /teams/{id}/repos/{org}/{repo} | Add a repository to a team
[**orgConcealMember**](OrganizationApi.md#orgConcealMember) | **DELETE** /orgs/{org}/public_members/{username} | Conceal a user's membership
+[**orgCreate**](OrganizationApi.md#orgCreate) | **POST** /orgs | Create an organization
[**orgCreateHook**](OrganizationApi.md#orgCreateHook) | **POST** /orgs/{org}/hooks/ | Create a hook
[**orgCreateTeam**](OrganizationApi.md#orgCreateTeam) | **POST** /orgs/{org}/teams | Create a team
+[**orgDelete**](OrganizationApi.md#orgDelete) | **DELETE** /orgs/{org} | Delete an organization
[**orgDeleteHook**](OrganizationApi.md#orgDeleteHook) | **DELETE** /orgs/{org}/hooks/{id} | Delete a hook
[**orgDeleteMember**](OrganizationApi.md#orgDeleteMember) | **DELETE** /orgs/{org}/members/{username} | Remove a member from an organization
[**orgDeleteTeam**](OrganizationApi.md#orgDeleteTeam) | **DELETE** /teams/{id} | Delete a team
@@ -26,13 +28,15 @@ Method | HTTP request | Description
[**orgListMembers**](OrganizationApi.md#orgListMembers) | **GET** /orgs/{org}/members | List an organization's members
[**orgListPublicMembers**](OrganizationApi.md#orgListPublicMembers) | **GET** /orgs/{org}/public_members | List an organization's public members
[**orgListRepos**](OrganizationApi.md#orgListRepos) | **GET** /orgs/{org}/repos | List an organization's repos
+[**orgListTeamMember**](OrganizationApi.md#orgListTeamMember) | **GET** /teams/{id}/members/{username} | List a particular member of team
[**orgListTeamMembers**](OrganizationApi.md#orgListTeamMembers) | **GET** /teams/{id}/members | List a team's members
[**orgListTeamRepos**](OrganizationApi.md#orgListTeamRepos) | **GET** /teams/{id}/repos | List a team's repos
[**orgListTeams**](OrganizationApi.md#orgListTeams) | **GET** /orgs/{org}/teams | List an organization's teams
-[**orgListUserOrgs**](OrganizationApi.md#orgListUserOrgs) | **GET** /user/{username}/orgs | List a user's organizations
+[**orgListUserOrgs**](OrganizationApi.md#orgListUserOrgs) | **GET** /users/{username}/orgs | List a user's organizations
[**orgPublicizeMember**](OrganizationApi.md#orgPublicizeMember) | **PUT** /orgs/{org}/public_members/{username} | Publicize a user's membership
[**orgRemoveTeamMember**](OrganizationApi.md#orgRemoveTeamMember) | **DELETE** /teams/{id}/members/{username} | Remove a team member
[**orgRemoveTeamRepository**](OrganizationApi.md#orgRemoveTeamRepository) | **DELETE** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team
+[**teamSearch**](OrganizationApi.md#teamSearch) | **GET** /orgs/{org}/teams/search | Search for teams within an organization
@@ -370,9 +374,91 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
+
+# **orgCreate**
+> Organization orgCreate(organization)
+
+Create an organization
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.OrganizationApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+CreateOrgOption organization = new CreateOrgOption(); // CreateOrgOption |
+try {
+ Organization result = apiInstance.orgCreate(organization);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#orgCreate");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization** | [**CreateOrgOption**](CreateOrgOption.md)| |
+
+### Return type
+
+[**Organization**](Organization.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
# **orgCreateHook**
-> List<Branch> orgCreateHook(org, body)
+> Hook orgCreateHook(org, body)
Create a hook
@@ -426,7 +512,7 @@ OrganizationApi apiInstance = new OrganizationApi();
String org = "org_example"; // String | name of the organization
CreateHookOption body = new CreateHookOption(); // CreateHookOption |
try {
- List result = apiInstance.orgCreateHook(org, body);
+ Hook result = apiInstance.orgCreateHook(org, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationApi#orgCreateHook");
@@ -443,7 +529,7 @@ Name | Type | Description | Notes
### Return type
-[**List<Branch>**](Branch.md)
+[**Hook**](Hook.md)
### Authorization
@@ -538,6 +624,87 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+# **orgDelete**
+> orgDelete(org)
+
+Delete an organization
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.OrganizationApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | organization that is to be deleted
+try {
+ apiInstance.orgDelete(org);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#orgDelete");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| organization that is to be deleted |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
# **orgDeleteHook**
> orgDeleteHook(org, id)
@@ -854,7 +1021,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**org** | **String**| name of the organization to edit |
- **body** | [**EditOrgOption**](EditOrgOption.md)| | [optional]
+ **body** | [**EditOrgOption**](EditOrgOption.md)| |
### Return type
@@ -871,7 +1038,7 @@ Name | Type | Description | Notes
# **orgEditHook**
-> List<Branch> orgEditHook(org, id, body)
+> Hook orgEditHook(org, id, body)
Update a hook
@@ -926,7 +1093,7 @@ String org = "org_example"; // String | name of the organization
Long id = 789L; // Long | id of the hook to update
EditHookOption body = new EditHookOption(); // EditHookOption |
try {
- List result = apiInstance.orgEditHook(org, id, body);
+ Hook result = apiInstance.orgEditHook(org, id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationApi#orgEditHook");
@@ -944,7 +1111,7 @@ Name | Type | Description | Notes
### Return type
-[**List<Branch>**](Branch.md)
+[**Hook**](Hook.md)
### Authorization
@@ -1123,7 +1290,7 @@ Name | Type | Description | Notes
# **orgGetHook**
-> List<Branch> orgGetHook(org, id)
+> Hook orgGetHook(org, id)
Get a hook
@@ -1177,7 +1344,7 @@ OrganizationApi apiInstance = new OrganizationApi();
String org = "org_example"; // String | name of the organization
Long id = 789L; // Long | id of the hook to get
try {
- List result = apiInstance.orgGetHook(org, id);
+ Hook result = apiInstance.orgGetHook(org, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationApi#orgGetHook");
@@ -1194,7 +1361,7 @@ Name | Type | Description | Notes
### Return type
-[**List<Branch>**](Branch.md)
+[**Hook**](Hook.md)
### Authorization
@@ -1533,7 +1700,7 @@ This endpoint does not need any parameter.
# **orgListHooks**
-> List<Branch> orgListHooks(org)
+> List<Hook> orgListHooks(org)
List an organization's webhooks
@@ -1586,7 +1753,7 @@ Token.setApiKey("YOUR API KEY");
OrganizationApi apiInstance = new OrganizationApi();
String org = "org_example"; // String | name of the organization
try {
- List result = apiInstance.orgListHooks(org);
+ List result = apiInstance.orgListHooks(org);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationApi#orgListHooks");
@@ -1602,7 +1769,7 @@ Name | Type | Description | Notes
### Return type
-[**List<Branch>**](Branch.md)
+[**List<Hook>**](Hook.md)
### Authorization
@@ -1854,6 +2021,90 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **orgListTeamMember**
+> User orgListTeamMember(id, username)
+
+List a particular member of team
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.OrganizationApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+Long id = 789L; // Long | id of the team
+String username = "username_example"; // String | username of the member to list
+try {
+ User result = apiInstance.orgListTeamMember(id, username);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#orgListTeamMember");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Long**| id of the team |
+ **username** | **String**| username of the member to list |
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -2440,3 +2691,93 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
+
+# **teamSearch**
+> InlineResponse200 teamSearch(org, q, includeDesc, limit, page)
+
+Search for teams within an organization
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.OrganizationApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+String q = "q_example"; // String | keywords to search
+Boolean includeDesc = true; // Boolean | include search within team description (defaults to true)
+Integer limit = 56; // Integer | limit size of results
+Integer page = 56; // Integer | page number of results to return (1-based)
+try {
+ InlineResponse200 result = apiInstance.teamSearch(org, q, includeDesc, limit, page);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#teamSearch");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **q** | **String**| keywords to search | [optional]
+ **includeDesc** | **Boolean**| include search within team description (defaults to true) | [optional]
+ **limit** | **Integer**| limit size of results | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+
+### Return type
+
+[**InlineResponse200**](InlineResponse200.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
diff --git a/docs/PayloadCommit.md b/docs/PayloadCommit.md
index ecea132..fe04829 100644
--- a/docs/PayloadCommit.md
+++ b/docs/PayloadCommit.md
@@ -4,10 +4,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**added** | **List<String>** | | [optional]
**author** | [**PayloadUser**](PayloadUser.md) | | [optional]
**committer** | [**PayloadUser**](PayloadUser.md) | | [optional]
**id** | **String** | sha1 hash of the commit | [optional]
**message** | **String** | | [optional]
+**modified** | **List<String>** | | [optional]
+**removed** | **List<String>** | | [optional]
**timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**url** | **String** | | [optional]
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]
diff --git a/docs/Reference.md b/docs/Reference.md
new file mode 100644
index 0000000..72d6f81
--- /dev/null
+++ b/docs/Reference.md
@@ -0,0 +1,12 @@
+
+# Reference
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**object** | [**GitObject**](GitObject.md) | | [optional]
+**ref** | **String** | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/RepoCommit.md b/docs/RepoCommit.md
new file mode 100644
index 0000000..dcff042
--- /dev/null
+++ b/docs/RepoCommit.md
@@ -0,0 +1,14 @@
+
+# RepoCommit
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**author** | [**CommitUser**](CommitUser.md) | | [optional]
+**committer** | [**CommitUser**](CommitUser.md) | | [optional]
+**message** | **String** | | [optional]
+**tree** | [**CommitMeta**](CommitMeta.md) | | [optional]
+**url** | **String** | | [optional]
+
+
+
diff --git a/docs/RepoTopicOptions.md b/docs/RepoTopicOptions.md
new file mode 100644
index 0000000..8e0720f
--- /dev/null
+++ b/docs/RepoTopicOptions.md
@@ -0,0 +1,10 @@
+
+# RepoTopicOptions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**topics** | **List<String>** | list of topic names | [optional]
+
+
+
diff --git a/docs/Repository.md b/docs/Repository.md
index 4a03494..bd15e8b 100644
--- a/docs/Repository.md
+++ b/docs/Repository.md
@@ -4,20 +4,33 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**allowMergeCommits** | **Boolean** | | [optional]
+**allowRebase** | **Boolean** | | [optional]
+**allowRebaseExplicit** | **Boolean** | | [optional]
+**allowSquashMerge** | **Boolean** | | [optional]
**archived** | **Boolean** | | [optional]
+**avatarUrl** | **String** | | [optional]
**cloneUrl** | **String** | | [optional]
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**defaultBranch** | **String** | | [optional]
**description** | **String** | | [optional]
**empty** | **Boolean** | | [optional]
+**externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional]
+**externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional]
**fork** | **Boolean** | | [optional]
**forksCount** | **Long** | | [optional]
**fullName** | **String** | | [optional]
+**hasIssues** | **Boolean** | | [optional]
+**hasPullRequests** | **Boolean** | | [optional]
+**hasWiki** | **Boolean** | | [optional]
**htmlUrl** | **String** | | [optional]
**id** | **Long** | | [optional]
+**ignoreWhitespaceConflicts** | **Boolean** | | [optional]
+**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
**mirror** | **Boolean** | | [optional]
**name** | **String** | | [optional]
**openIssuesCount** | **Long** | | [optional]
+**originalUrl** | **String** | | [optional]
**owner** | [**User**](User.md) | | [optional]
**parent** | [**Repository**](Repository.md) | | [optional]
**permissions** | [**Permission**](Permission.md) | | [optional]
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index 19bc955..270533e 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -6,9 +6,14 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**createCurrentUserRepo**](RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
[**createFork**](RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository
+[**getBlob**](RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
+[**getTag**](RepositoryApi.md#getTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
+[**getTree**](RepositoryApi.md#getTree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
[**listForks**](RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository's forks
[**repoAddCollaborator**](RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
+[**repoAddTopc**](RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
[**repoCheckCollaborator**](RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
+[**repoCreateFile**](RepositoryApi.md#repoCreateFile) | **POST** /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository
[**repoCreateHook**](RepositoryApi.md#repoCreateHook) | **POST** /repos/{owner}/{repo}/hooks | Create a hook
[**repoCreateKey**](RepositoryApi.md#repoCreateKey) | **POST** /repos/{owner}/{repo}/keys | Add a key to a repository
[**repoCreatePullRequest**](RepositoryApi.md#repoCreatePullRequest) | **POST** /repos/{owner}/{repo}/pulls | Create a pull request
@@ -17,28 +22,41 @@ Method | HTTP request | Description
[**repoCreateStatus**](RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
[**repoDelete**](RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository
[**repoDeleteCollaborator**](RepositoryApi.md#repoDeleteCollaborator) | **DELETE** /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository
+[**repoDeleteFile**](RepositoryApi.md#repoDeleteFile) | **DELETE** /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository
+[**repoDeleteGitHook**](RepositoryApi.md#repoDeleteGitHook) | **DELETE** /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository
[**repoDeleteHook**](RepositoryApi.md#repoDeleteHook) | **DELETE** /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository
[**repoDeleteKey**](RepositoryApi.md#repoDeleteKey) | **DELETE** /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository
[**repoDeleteRelease**](RepositoryApi.md#repoDeleteRelease) | **DELETE** /repos/{owner}/{repo}/releases/{id} | Delete a release
[**repoDeleteReleaseAttachment**](RepositoryApi.md#repoDeleteReleaseAttachment) | **DELETE** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment
+[**repoDeleteTopic**](RepositoryApi.md#repoDeleteTopic) | **DELETE** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository
+[**repoEdit**](RepositoryApi.md#repoEdit) | **PATCH** /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed.
+[**repoEditGitHook**](RepositoryApi.md#repoEditGitHook) | **PATCH** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository
[**repoEditHook**](RepositoryApi.md#repoEditHook) | **PATCH** /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository
[**repoEditPullRequest**](RepositoryApi.md#repoEditPullRequest) | **PATCH** /repos/{owner}/{repo}/pulls/{index} | Update a pull request
[**repoEditRelease**](RepositoryApi.md#repoEditRelease) | **PATCH** /repos/{owner}/{repo}/releases/{id} | Update a release
[**repoEditReleaseAttachment**](RepositoryApi.md#repoEditReleaseAttachment) | **PATCH** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment
[**repoGet**](RepositoryApi.md#repoGet) | **GET** /repos/{owner}/{repo} | Get a repository
+[**repoGetAllCommits**](RepositoryApi.md#repoGetAllCommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
[**repoGetArchive**](RepositoryApi.md#repoGetArchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
[**repoGetBranch**](RepositoryApi.md#repoGetBranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository
[**repoGetByID**](RepositoryApi.md#repoGetByID) | **GET** /repositories/{id} | Get a repository by id
[**repoGetCombinedStatusByRef**](RepositoryApi.md#repoGetCombinedStatusByRef) | **GET** /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit's combined status, by branch/tag/commit reference
+[**repoGetContents**](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
+[**repoGetContentsList**](RepositoryApi.md#repoGetContentsList) | **GET** /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir
[**repoGetEditorConfig**](RepositoryApi.md#repoGetEditorConfig) | **GET** /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository
+[**repoGetGitHook**](RepositoryApi.md#repoGetGitHook) | **GET** /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook
[**repoGetHook**](RepositoryApi.md#repoGetHook) | **GET** /repos/{owner}/{repo}/hooks/{id} | Get a hook
[**repoGetKey**](RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id
[**repoGetPullRequest**](RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
[**repoGetRawFile**](RepositoryApi.md#repoGetRawFile) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
[**repoGetRelease**](RepositoryApi.md#repoGetRelease) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release
[**repoGetReleaseAttachment**](RepositoryApi.md#repoGetReleaseAttachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
+[**repoGetSingleCommit**](RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
+[**repoListAllGitRefs**](RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs
[**repoListBranches**](RepositoryApi.md#repoListBranches) | **GET** /repos/{owner}/{repo}/branches | List a repository's branches
[**repoListCollaborators**](RepositoryApi.md#repoListCollaborators) | **GET** /repos/{owner}/{repo}/collaborators | List a repository's collaborators
+[**repoListGitHooks**](RepositoryApi.md#repoListGitHooks) | **GET** /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository
+[**repoListGitRefs**](RepositoryApi.md#repoListGitRefs) | **GET** /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository's refs
[**repoListHooks**](RepositoryApi.md#repoListHooks) | **GET** /repos/{owner}/{repo}/hooks | List the hooks in a repository
[**repoListKeys**](RepositoryApi.md#repoListKeys) | **GET** /repos/{owner}/{repo}/keys | List a repository's keys
[**repoListPullRequests**](RepositoryApi.md#repoListPullRequests) | **GET** /repos/{owner}/{repo}/pulls | List a repo's pull requests
@@ -47,6 +65,8 @@ Method | HTTP request | Description
[**repoListStargazers**](RepositoryApi.md#repoListStargazers) | **GET** /repos/{owner}/{repo}/stargazers | List a repo's stargazers
[**repoListStatuses**](RepositoryApi.md#repoListStatuses) | **GET** /repos/{owner}/{repo}/statuses/{sha} | Get a commit's statuses
[**repoListSubscribers**](RepositoryApi.md#repoListSubscribers) | **GET** /repos/{owner}/{repo}/subscribers | List a repo's watchers
+[**repoListTags**](RepositoryApi.md#repoListTags) | **GET** /repos/{owner}/{repo}/tags | List a repository's tags
+[**repoListTopics**](RepositoryApi.md#repoListTopics) | **GET** /repos/{owner}/{repo}/topics | Get list of topics that a repository has
[**repoMergePullRequest**](RepositoryApi.md#repoMergePullRequest) | **POST** /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request
[**repoMigrate**](RepositoryApi.md#repoMigrate) | **POST** /repos/migrate | Migrate a remote git repository
[**repoMirrorSync**](RepositoryApi.md#repoMirrorSync) | **POST** /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository
@@ -54,6 +74,8 @@ Method | HTTP request | Description
[**repoSearch**](RepositoryApi.md#repoSearch) | **GET** /repos/search | Search for repositories
[**repoTestHook**](RepositoryApi.md#repoTestHook) | **POST** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook
[**repoTrackedTimes**](RepositoryApi.md#repoTrackedTimes) | **GET** /repos/{owner}/{repo}/times | List a repo's tracked times
+[**repoUpdateFile**](RepositoryApi.md#repoUpdateFile) | **PUT** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository
+[**repoUpdateTopics**](RepositoryApi.md#repoUpdateTopics) | **PUT** /repos/{owner}/{repo}/topics | Replace list of topics for a repository
[**topicSearch**](RepositoryApi.md#topicSearch) | **GET** /topics/search | search topics via keyword
[**userCurrentCheckSubscription**](RepositoryApi.md#userCurrentCheckSubscription) | **GET** /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
[**userCurrentDeleteSubscription**](RepositoryApi.md#userCurrentDeleteSubscription) | **DELETE** /repos/{owner}/{repo}/subscription | Unwatch a repo
@@ -223,6 +245,270 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **getBlob**
+> GitBlobResponse getBlob(owner, repo, sha)
+
+Gets the blob of a repository.
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String sha = "sha_example"; // String | sha of the commit
+try {
+ GitBlobResponse result = apiInstance.getBlob(owner, repo, sha);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#getBlob");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **sha** | **String**| sha of the commit |
+
+### Return type
+
+[**GitBlobResponse**](GitBlobResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **getTag**
+> AnnotatedTag getTag(owner, repo, sha)
+
+Gets the tag object of an annotated tag (not lightweight tags)
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String sha = "sha_example"; // String | sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.
+try {
+ AnnotatedTag result = apiInstance.getTag(owner, repo, sha);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#getTag");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **sha** | **String**| sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. |
+
+### Return type
+
+[**AnnotatedTag**](AnnotatedTag.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **getTree**
+> GitTreeResponse getTree(owner, repo, sha, recursive, page, perPage)
+
+Gets the tree of a repository.
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String sha = "sha_example"; // String | sha of the commit
+Boolean recursive = true; // Boolean | show all directories and files
+Integer page = 56; // Integer | page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page
+Integer perPage = 56; // Integer | number of items per page; default is 1000 or what is set in app.ini as DEFAULT_GIT_TREES_PER_PAGE
+try {
+ GitTreeResponse result = apiInstance.getTree(owner, repo, sha, recursive, page, perPage);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#getTree");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **sha** | **String**| sha of the commit |
+ **recursive** | **Boolean**| show all directories and files | [optional]
+ **page** | **Integer**| page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page | [optional]
+ **perPage** | **Integer**| number of items per page; default is 1000 or what is set in app.ini as DEFAULT_GIT_TREES_PER_PAGE | [optional]
+
+### Return type
+
+[**GitTreeResponse**](GitTreeResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -399,11 +685,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoCheckCollaborator**
-> repoCheckCollaborator(owner, repo, collaborator)
+
+# **repoAddTopc**
+> repoAddTopc(owner, repo, topic)
-Check if a user is a collaborator of a repository
+Add a topic to a repository
### Example
```java
@@ -454,11 +740,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String collaborator = "collaborator_example"; // String | username of the collaborator
+String topic = "topic_example"; // String | name of the topic to add
try {
- apiInstance.repoCheckCollaborator(owner, repo, collaborator);
+ apiInstance.repoAddTopc(owner, repo, topic);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCheckCollaborator");
+ System.err.println("Exception when calling RepositoryApi#repoAddTopc");
e.printStackTrace();
}
```
@@ -469,7 +755,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **collaborator** | **String**| username of the collaborator |
+ **topic** | **String**| name of the topic to add |
### Return type
@@ -484,11 +770,1474 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoCreateHook**
-> List<Branch> repoCreateHook(owner, repo, body)
+
+# **repoCheckCollaborator**
+> repoCheckCollaborator(owner, repo, collaborator)
-Create a hook
+Check if a user is a collaborator of a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String collaborator = "collaborator_example"; // String | username of the collaborator
+try {
+ apiInstance.repoCheckCollaborator(owner, repo, collaborator);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCheckCollaborator");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **collaborator** | **String**| username of the collaborator |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoCreateFile**
+> FileResponse repoCreateFile(owner, repo, filepath, body)
+
+Create a file in a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String filepath = "filepath_example"; // String | path of the file to create
+CreateFileOptions body = new CreateFileOptions(); // CreateFileOptions |
+try {
+ FileResponse result = apiInstance.repoCreateFile(owner, repo, filepath, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateFile");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **filepath** | **String**| path of the file to create |
+ **body** | [**CreateFileOptions**](CreateFileOptions.md)| |
+
+### Return type
+
+[**FileResponse**](FileResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoCreateHook**
+> Hook repoCreateHook(owner, repo, body)
+
+Create a hook
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+CreateHookOption body = new CreateHookOption(); // CreateHookOption |
+try {
+ Hook result = apiInstance.repoCreateHook(owner, repo, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateHook");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **body** | [**CreateHookOption**](CreateHookOption.md)| | [optional]
+
+### Return type
+
+[**Hook**](Hook.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoCreateKey**
+> DeployKey repoCreateKey(owner, repo, body)
+
+Add a key to a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+CreateKeyOption body = new CreateKeyOption(); // CreateKeyOption |
+try {
+ DeployKey result = apiInstance.repoCreateKey(owner, repo, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateKey");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **body** | [**CreateKeyOption**](CreateKeyOption.md)| | [optional]
+
+### Return type
+
+[**DeployKey**](DeployKey.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoCreatePullRequest**
+> PullRequest repoCreatePullRequest(owner, repo, body)
+
+Create a pull request
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+CreatePullRequestOption body = new CreatePullRequestOption(); // CreatePullRequestOption |
+try {
+ PullRequest result = apiInstance.repoCreatePullRequest(owner, repo, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreatePullRequest");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **body** | [**CreatePullRequestOption**](CreatePullRequestOption.md)| | [optional]
+
+### Return type
+
+[**PullRequest**](PullRequest.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoCreateRelease**
+> Release repoCreateRelease(owner, repo, body)
+
+Create a release
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+CreateReleaseOption body = new CreateReleaseOption(); // CreateReleaseOption |
+try {
+ Release result = apiInstance.repoCreateRelease(owner, repo, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateRelease");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **body** | [**CreateReleaseOption**](CreateReleaseOption.md)| | [optional]
+
+### Return type
+
+[**Release**](Release.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoCreateReleaseAttachment**
+> Attachment repoCreateReleaseAttachment(owner, repo, id, attachment, name)
+
+Create a release attachment
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long id = 789L; // Long | id of the release
+File attachment = new File("/path/to/file.txt"); // File | attachment to upload
+String name = "name_example"; // String | name of the attachment
+try {
+ Attachment result = apiInstance.repoCreateReleaseAttachment(owner, repo, id, attachment, name);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateReleaseAttachment");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **id** | **Long**| id of the release |
+ **attachment** | **File**| attachment to upload |
+ **name** | **String**| name of the attachment | [optional]
+
+### Return type
+
+[**Attachment**](Attachment.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+
+# **repoCreateStatus**
+> List<Status> repoCreateStatus(owner, repo, sha, body)
+
+Create a commit status
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String sha = "sha_example"; // String | sha of the commit
+CreateStatusOption body = new CreateStatusOption(); // CreateStatusOption |
+try {
+ List result = apiInstance.repoCreateStatus(owner, repo, sha, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateStatus");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **sha** | **String**| sha of the commit |
+ **body** | [**CreateStatusOption**](CreateStatusOption.md)| | [optional]
+
+### Return type
+
+[**List<Status>**](Status.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoDelete**
+> repoDelete(owner, repo)
+
+Delete a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo to delete
+String repo = "repo_example"; // String | name of the repo to delete
+try {
+ apiInstance.repoDelete(owner, repo);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDelete");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo to delete |
+ **repo** | **String**| name of the repo to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoDeleteCollaborator**
+> repoDeleteCollaborator(owner, repo, collaborator)
+
+Delete a collaborator from a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String collaborator = "collaborator_example"; // String | username of the collaborator to delete
+try {
+ apiInstance.repoDeleteCollaborator(owner, repo, collaborator);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteCollaborator");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **collaborator** | **String**| username of the collaborator to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoDeleteFile**
+> FileDeleteResponse repoDeleteFile(owner, repo, filepath, body)
+
+Delete a file in a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String filepath = "filepath_example"; // String | path of the file to delete
+DeleteFileOptions body = new DeleteFileOptions(); // DeleteFileOptions |
+try {
+ FileDeleteResponse result = apiInstance.repoDeleteFile(owner, repo, filepath, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteFile");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **filepath** | **String**| path of the file to delete |
+ **body** | [**DeleteFileOptions**](DeleteFileOptions.md)| |
+
+### Return type
+
+[**FileDeleteResponse**](FileDeleteResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoDeleteGitHook**
+> repoDeleteGitHook(owner, repo, id)
+
+Delete a Git hook in a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String id = "id_example"; // String | id of the hook to get
+try {
+ apiInstance.repoDeleteGitHook(owner, repo, id);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteGitHook");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **id** | **String**| id of the hook to get |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoDeleteHook**
+> repoDeleteHook(owner, repo, id)
+
+Delete a hook in a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long id = 789L; // Long | id of the hook to delete
+try {
+ apiInstance.repoDeleteHook(owner, repo, id);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteHook");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **id** | **Long**| id of the hook to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoDeleteKey**
+> repoDeleteKey(owner, repo, id)
+
+Delete a key from a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long id = 789L; // Long | id of the key to delete
+try {
+ apiInstance.repoDeleteKey(owner, repo, id);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteKey");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **id** | **Long**| id of the key to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json, text/html
+
+
+# **repoDeleteRelease**
+> repoDeleteRelease(owner, repo, id)
+
+Delete a release
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long id = 789L; // Long | id of the release to delete
+try {
+ apiInstance.repoDeleteRelease(owner, repo, id);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteRelease");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **id** | **Long**| id of the release to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json, text/html
+
+
+# **repoDeleteReleaseAttachment**
+> repoDeleteReleaseAttachment(owner, repo, id, attachmentId)
+
+Delete a release attachment
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+Long id = 789L; // Long | id of the release
+Long attachmentId = 789L; // Long | id of the attachment to delete
+try {
+ apiInstance.repoDeleteReleaseAttachment(owner, repo, id, attachmentId);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteReleaseAttachment");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **id** | **Long**| id of the release |
+ **attachmentId** | **Long**| id of the attachment to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoDeleteTopic**
+> repoDeleteTopic(owner, repo, topic)
+
+Delete a topic from a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String topic = "topic_example"; // String | name of the topic to delete
+try {
+ apiInstance.repoDeleteTopic(owner, repo, topic);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteTopic");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **topic** | **String**| name of the topic to delete |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoEdit**
+> Repository repoEdit(owner, repo, body)
+
+Edit a repository's properties. Only fields that are set will be changed.
### Example
```java
@@ -537,14 +2286,14 @@ Token.setApiKey("YOUR API KEY");
//Token.setApiKeyPrefix("Token");
RepositoryApi apiInstance = new RepositoryApi();
-String owner = "owner_example"; // String | owner of the repo
-String repo = "repo_example"; // String | name of the repo
-CreateHookOption body = new CreateHookOption(); // CreateHookOption |
+String owner = "owner_example"; // String | owner of the repo to edit
+String repo = "repo_example"; // String | name of the repo to edit
+EditRepoOption body = new EditRepoOption(); // EditRepoOption | Properties of a repo that you can edit
try {
- List result = apiInstance.repoCreateHook(owner, repo, body);
+ Repository result = apiInstance.repoEdit(owner, repo, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCreateHook");
+ System.err.println("Exception when calling RepositoryApi#repoEdit");
e.printStackTrace();
}
```
@@ -553,13 +2302,13 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **owner** | **String**| owner of the repo |
- **repo** | **String**| name of the repo |
- **body** | [**CreateHookOption**](CreateHookOption.md)| | [optional]
+ **owner** | **String**| owner of the repo to edit |
+ **repo** | **String**| name of the repo to edit |
+ **body** | [**EditRepoOption**](EditRepoOption.md)| Properties of a repo that you can edit | [optional]
### Return type
-[**List<Branch>**](Branch.md)
+[**Repository**](Repository.md)
### Authorization
@@ -567,14 +2316,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoCreateKey**
-> DeployKey repoCreateKey(owner, repo, body)
+
+# **repoEditGitHook**
+> GitHook repoEditGitHook(owner, repo, id, body)
-Add a key to a repository
+Edit a Git hook in a repository
### Example
```java
@@ -625,12 +2374,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-CreateKeyOption body = new CreateKeyOption(); // CreateKeyOption |
+String id = "id_example"; // String | id of the hook to get
+EditGitHookOption body = new EditGitHookOption(); // EditGitHookOption |
try {
- DeployKey result = apiInstance.repoCreateKey(owner, repo, body);
+ GitHook result = apiInstance.repoEditGitHook(owner, repo, id, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCreateKey");
+ System.err.println("Exception when calling RepositoryApi#repoEditGitHook");
e.printStackTrace();
}
```
@@ -641,11 +2391,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **body** | [**CreateKeyOption**](CreateKeyOption.md)| | [optional]
+ **id** | **String**| id of the hook to get |
+ **body** | [**EditGitHookOption**](EditGitHookOption.md)| | [optional]
### Return type
-[**DeployKey**](DeployKey.md)
+[**GitHook**](GitHook.md)
### Authorization
@@ -653,14 +2404,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoCreatePullRequest**
-> PullRequest repoCreatePullRequest(owner, repo, body)
+
+# **repoEditHook**
+> Hook repoEditHook(owner, repo, id, body)
-Create a pull request
+Edit a hook in a repository
### Example
```java
@@ -711,12 +2462,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-CreatePullRequestOption body = new CreatePullRequestOption(); // CreatePullRequestOption |
+Long id = 789L; // Long | index of the hook
+EditHookOption body = new EditHookOption(); // EditHookOption |
try {
- PullRequest result = apiInstance.repoCreatePullRequest(owner, repo, body);
+ Hook result = apiInstance.repoEditHook(owner, repo, id, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCreatePullRequest");
+ System.err.println("Exception when calling RepositoryApi#repoEditHook");
e.printStackTrace();
}
```
@@ -727,11 +2479,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **body** | [**CreatePullRequestOption**](CreatePullRequestOption.md)| | [optional]
+ **id** | **Long**| index of the hook |
+ **body** | [**EditHookOption**](EditHookOption.md)| | [optional]
### Return type
-[**PullRequest**](PullRequest.md)
+[**Hook**](Hook.md)
### Authorization
@@ -739,14 +2492,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoCreateRelease**
-> Release repoCreateRelease(owner, repo, body)
+
+# **repoEditPullRequest**
+> PullRequest repoEditPullRequest(owner, repo, index, body)
-Create a release
+Update a pull request
### Example
```java
@@ -797,12 +2550,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-CreateReleaseOption body = new CreateReleaseOption(); // CreateReleaseOption |
+Long index = 789L; // Long | index of the pull request to edit
+EditPullRequestOption body = new EditPullRequestOption(); // EditPullRequestOption |
try {
- Release result = apiInstance.repoCreateRelease(owner, repo, body);
+ PullRequest result = apiInstance.repoEditPullRequest(owner, repo, index, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCreateRelease");
+ System.err.println("Exception when calling RepositoryApi#repoEditPullRequest");
e.printStackTrace();
}
```
@@ -813,11 +2567,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **body** | [**CreateReleaseOption**](CreateReleaseOption.md)| | [optional]
+ **index** | **Long**| index of the pull request to edit |
+ **body** | [**EditPullRequestOption**](EditPullRequestOption.md)| | [optional]
### Return type
-[**Release**](Release.md)
+[**PullRequest**](PullRequest.md)
### Authorization
@@ -828,11 +2583,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
-
-# **repoCreateReleaseAttachment**
-> Attachment repoCreateReleaseAttachment(owner, repo, id, attachment, name)
+
+# **repoEditRelease**
+> Release repoEditRelease(owner, repo, id, body)
-Create a release attachment
+Update a release
### Example
```java
@@ -883,14 +2638,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release
-File attachment = new File("/path/to/file.txt"); // File | attachment to upload
-String name = "name_example"; // String | name of the attachment
+Long id = 789L; // Long | id of the release to edit
+EditReleaseOption body = new EditReleaseOption(); // EditReleaseOption |
try {
- Attachment result = apiInstance.repoCreateReleaseAttachment(owner, repo, id, attachment, name);
+ Release result = apiInstance.repoEditRelease(owner, repo, id, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCreateReleaseAttachment");
+ System.err.println("Exception when calling RepositoryApi#repoEditRelease");
e.printStackTrace();
}
```
@@ -901,13 +2655,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release |
- **attachment** | **File**| attachment to upload |
- **name** | **String**| name of the attachment | [optional]
+ **id** | **Long**| id of the release to edit |
+ **body** | [**EditReleaseOption**](EditReleaseOption.md)| | [optional]
### Return type
-[**Attachment**](Attachment.md)
+[**Release**](Release.md)
### Authorization
@@ -915,14 +2668,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
+ - **Content-Type**: application/json
- **Accept**: application/json
-
-# **repoCreateStatus**
-> List<Status> repoCreateStatus(owner, repo, sha, body)
+
+# **repoEditReleaseAttachment**
+> Attachment repoEditReleaseAttachment(owner, repo, id, attachmentId, body)
-Create a commit status
+Edit a release attachment
### Example
```java
@@ -973,13 +2726,14 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String sha = "sha_example"; // String | sha of the commit
-CreateStatusOption body = new CreateStatusOption(); // CreateStatusOption |
+Long id = 789L; // Long | id of the release
+Long attachmentId = 789L; // Long | id of the attachment to edit
+EditAttachmentOptions body = new EditAttachmentOptions(); // EditAttachmentOptions |
try {
- List result = apiInstance.repoCreateStatus(owner, repo, sha, body);
+ Attachment result = apiInstance.repoEditReleaseAttachment(owner, repo, id, attachmentId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoCreateStatus");
+ System.err.println("Exception when calling RepositoryApi#repoEditReleaseAttachment");
e.printStackTrace();
}
```
@@ -990,12 +2744,13 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **sha** | **String**| sha of the commit |
- **body** | [**CreateStatusOption**](CreateStatusOption.md)| | [optional]
+ **id** | **Long**| id of the release |
+ **attachmentId** | **Long**| id of the attachment to edit |
+ **body** | [**EditAttachmentOptions**](EditAttachmentOptions.md)| | [optional]
### Return type
-[**List<Status>**](Status.md)
+[**Attachment**](Attachment.md)
### Authorization
@@ -1003,14 +2758,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json, text/plain
+ - **Content-Type**: application/json
- **Accept**: application/json
-
-# **repoDelete**
-> repoDelete(owner, repo)
+
+# **repoGet**
+> Repository repoGet(owner, repo)
-Delete a repository
+Get a repository
### Example
```java
@@ -1059,12 +2814,13 @@ Token.setApiKey("YOUR API KEY");
//Token.setApiKeyPrefix("Token");
RepositoryApi apiInstance = new RepositoryApi();
-String owner = "owner_example"; // String | owner of the repo to delete
-String repo = "repo_example"; // String | name of the repo to delete
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
try {
- apiInstance.repoDelete(owner, repo);
+ Repository result = apiInstance.repoGet(owner, repo);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDelete");
+ System.err.println("Exception when calling RepositoryApi#repoGet");
e.printStackTrace();
}
```
@@ -1073,12 +2829,12 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **owner** | **String**| owner of the repo to delete |
- **repo** | **String**| name of the repo to delete |
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
### Return type
-null (empty response body)
+[**Repository**](Repository.md)
### Authorization
@@ -1089,11 +2845,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoDeleteCollaborator**
-> repoDeleteCollaborator(owner, repo, collaborator)
+
+# **repoGetAllCommits**
+> List<Commit> repoGetAllCommits(owner, repo, sha, page)
-Delete a collaborator from a repository
+Get a list of all commits from a repository
### Example
```java
@@ -1144,11 +2900,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String collaborator = "collaborator_example"; // String | username of the collaborator to delete
+String sha = "sha_example"; // String | SHA or branch to start listing commits from (usually 'master')
+Integer page = 56; // Integer | page number of requested commits
try {
- apiInstance.repoDeleteCollaborator(owner, repo, collaborator);
+ List result = apiInstance.repoGetAllCommits(owner, repo, sha, page);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDeleteCollaborator");
+ System.err.println("Exception when calling RepositoryApi#repoGetAllCommits");
e.printStackTrace();
}
```
@@ -1159,11 +2917,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **collaborator** | **String**| username of the collaborator to delete |
+ **sha** | **String**| SHA or branch to start listing commits from (usually 'master') | [optional]
+ **page** | **Integer**| page number of requested commits | [optional]
### Return type
-null (empty response body)
+[**List<Commit>**](Commit.md)
### Authorization
@@ -1174,11 +2933,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoDeleteHook**
-> repoDeleteHook(owner, repo, id)
+
+# **repoGetArchive**
+> repoGetArchive(owner, repo, archive)
-Delete a hook in a repository
+Get an archive of a repository
### Example
```java
@@ -1229,11 +2988,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the hook to delete
+String archive = "archive_example"; // String | archive to download, consisting of a git reference and archive
try {
- apiInstance.repoDeleteHook(owner, repo, id);
+ apiInstance.repoGetArchive(owner, repo, archive);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDeleteHook");
+ System.err.println("Exception when calling RepositoryApi#repoGetArchive");
e.printStackTrace();
}
```
@@ -1244,7 +3003,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the hook to delete |
+ **archive** | **String**| archive to download, consisting of a git reference and archive |
### Return type
@@ -1259,11 +3018,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoDeleteKey**
-> repoDeleteKey(owner, repo, id)
+
+# **repoGetBranch**
+> Branch repoGetBranch(owner, repo, branch)
-Delete a key from a repository
+Retrieve a specific branch from a repository
### Example
```java
@@ -1314,11 +3073,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the key to delete
+String branch = "branch_example"; // String | branch to get
try {
- apiInstance.repoDeleteKey(owner, repo, id);
+ Branch result = apiInstance.repoGetBranch(owner, repo, branch);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDeleteKey");
+ System.err.println("Exception when calling RepositoryApi#repoGetBranch");
e.printStackTrace();
}
```
@@ -1329,11 +3089,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the key to delete |
+ **branch** | **String**| branch to get |
### Return type
-null (empty response body)
+[**Branch**](Branch.md)
### Authorization
@@ -1342,13 +3102,13 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, text/plain
- - **Accept**: application/json, text/html
+ - **Accept**: application/json
-
-# **repoDeleteRelease**
-> repoDeleteRelease(owner, repo, id)
+
+# **repoGetByID**
+> Repository repoGetByID(id)
-Delete a release
+Get a repository by id
### Example
```java
@@ -1397,13 +3157,12 @@ Token.setApiKey("YOUR API KEY");
//Token.setApiKeyPrefix("Token");
RepositoryApi apiInstance = new RepositoryApi();
-String owner = "owner_example"; // String | owner of the repo
-String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release to delete
+Long id = 789L; // Long | id of the repo to get
try {
- apiInstance.repoDeleteRelease(owner, repo, id);
+ Repository result = apiInstance.repoGetByID(id);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDeleteRelease");
+ System.err.println("Exception when calling RepositoryApi#repoGetByID");
e.printStackTrace();
}
```
@@ -1412,13 +3171,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **owner** | **String**| owner of the repo |
- **repo** | **String**| name of the repo |
- **id** | **Long**| id of the release to delete |
+ **id** | **Long**| id of the repo to get |
### Return type
-null (empty response body)
+[**Repository**](Repository.md)
### Authorization
@@ -1427,13 +3184,13 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, text/plain
- - **Accept**: application/json, text/html
+ - **Accept**: application/json
-
-# **repoDeleteReleaseAttachment**
-> repoDeleteReleaseAttachment(owner, repo, id, attachmentId)
+
+# **repoGetCombinedStatusByRef**
+> Status repoGetCombinedStatusByRef(owner, repo, ref, page)
-Delete a release attachment
+Get a commit's combined status, by branch/tag/commit reference
### Example
```java
@@ -1484,12 +3241,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release
-Long attachmentId = 789L; // Long | id of the attachment to delete
+String ref = "ref_example"; // String | name of branch/tag/commit
+Integer page = 56; // Integer | page number of results
try {
- apiInstance.repoDeleteReleaseAttachment(owner, repo, id, attachmentId);
+ Status result = apiInstance.repoGetCombinedStatusByRef(owner, repo, ref, page);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDeleteReleaseAttachment");
+ System.err.println("Exception when calling RepositoryApi#repoGetCombinedStatusByRef");
e.printStackTrace();
}
```
@@ -1500,12 +3258,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release |
- **attachmentId** | **Long**| id of the attachment to delete |
+ **ref** | **String**| name of branch/tag/commit |
+ **page** | **Integer**| page number of results | [optional]
### Return type
-null (empty response body)
+[**Status**](Status.md)
### Authorization
@@ -1516,11 +3274,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoEditHook**
-> List<Branch> repoEditHook(owner, repo, id, body)
+
+# **repoGetContents**
+> ContentsResponse repoGetContents(owner, repo, filepath, ref)
-Edit a hook in a repository
+Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
### Example
```java
@@ -1571,13 +3329,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | index of the hook
-EditHookOption body = new EditHookOption(); // EditHookOption |
+String filepath = "filepath_example"; // String | path of the dir, file, symlink or submodule in the repo
+String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master)
try {
- List result = apiInstance.repoEditHook(owner, repo, id, body);
+ ContentsResponse result = apiInstance.repoGetContents(owner, repo, filepath, ref);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoEditHook");
+ System.err.println("Exception when calling RepositoryApi#repoGetContents");
e.printStackTrace();
}
```
@@ -1588,12 +3346,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| index of the hook |
- **body** | [**EditHookOption**](EditHookOption.md)| | [optional]
+ **filepath** | **String**| path of the dir, file, symlink or submodule in the repo |
+ **ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional]
### Return type
-[**List<Branch>**](Branch.md)
+[**ContentsResponse**](ContentsResponse.md)
### Authorization
@@ -1604,11 +3362,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoEditPullRequest**
-> PullRequest repoEditPullRequest(owner, repo, index, body)
+
+# **repoGetContentsList**
+> List<ContentsResponse> repoGetContentsList(owner, repo, ref)
-Update a pull request
+Gets the metadata of all the entries of the root dir
### Example
```java
@@ -1659,13 +3417,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long index = 789L; // Long | index of the pull request to edit
-EditPullRequestOption body = new EditPullRequestOption(); // EditPullRequestOption |
+String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master)
try {
- PullRequest result = apiInstance.repoEditPullRequest(owner, repo, index, body);
+ List result = apiInstance.repoGetContentsList(owner, repo, ref);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoEditPullRequest");
+ System.err.println("Exception when calling RepositoryApi#repoGetContentsList");
e.printStackTrace();
}
```
@@ -1676,12 +3433,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **index** | **Long**| index of the pull request to edit |
- **body** | [**EditPullRequestOption**](EditPullRequestOption.md)| | [optional]
+ **ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional]
### Return type
-[**PullRequest**](PullRequest.md)
+[**List<ContentsResponse>**](ContentsResponse.md)
### Authorization
@@ -1689,14 +3445,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoEditRelease**
-> Release repoEditRelease(owner, repo, id, body)
+
+# **repoGetEditorConfig**
+> repoGetEditorConfig(owner, repo, filepath)
-Update a release
+Get the EditorConfig definitions of a file in a repository
### Example
```java
@@ -1747,13 +3503,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release to edit
-EditReleaseOption body = new EditReleaseOption(); // EditReleaseOption |
+String filepath = "filepath_example"; // String | filepath of file to get
try {
- Release result = apiInstance.repoEditRelease(owner, repo, id, body);
- System.out.println(result);
+ apiInstance.repoGetEditorConfig(owner, repo, filepath);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoEditRelease");
+ System.err.println("Exception when calling RepositoryApi#repoGetEditorConfig");
e.printStackTrace();
}
```
@@ -1764,12 +3518,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release to edit |
- **body** | [**EditReleaseOption**](EditReleaseOption.md)| | [optional]
+ **filepath** | **String**| filepath of file to get |
### Return type
-[**Release**](Release.md)
+null (empty response body)
### Authorization
@@ -1777,14 +3530,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoEditReleaseAttachment**
-> Attachment repoEditReleaseAttachment(owner, repo, id, attachmentId, body)
+
+# **repoGetGitHook**
+> GitHook repoGetGitHook(owner, repo, id)
-Edit a release attachment
+Get a Git hook
### Example
```java
@@ -1835,14 +3588,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release
-Long attachmentId = 789L; // Long | id of the attachment to edit
-EditAttachmentOptions body = new EditAttachmentOptions(); // EditAttachmentOptions |
+String id = "id_example"; // String | id of the hook to get
try {
- Attachment result = apiInstance.repoEditReleaseAttachment(owner, repo, id, attachmentId, body);
+ GitHook result = apiInstance.repoGetGitHook(owner, repo, id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoEditReleaseAttachment");
+ System.err.println("Exception when calling RepositoryApi#repoGetGitHook");
e.printStackTrace();
}
```
@@ -1853,13 +3604,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release |
- **attachmentId** | **Long**| id of the attachment to edit |
- **body** | [**EditAttachmentOptions**](EditAttachmentOptions.md)| | [optional]
+ **id** | **String**| id of the hook to get |
### Return type
-[**Attachment**](Attachment.md)
+[**GitHook**](GitHook.md)
### Authorization
@@ -1867,14 +3616,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGet**
-> Repository repoGet(owner, repo)
+
+# **repoGetHook**
+> Hook repoGetHook(owner, repo, id)
-Get a repository
+Get a hook
### Example
```java
@@ -1925,11 +3674,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
+Long id = 789L; // Long | id of the hook to get
try {
- Repository result = apiInstance.repoGet(owner, repo);
+ Hook result = apiInstance.repoGetHook(owner, repo, id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGet");
+ System.err.println("Exception when calling RepositoryApi#repoGetHook");
e.printStackTrace();
}
```
@@ -1940,10 +3690,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
+ **id** | **Long**| id of the hook to get |
### Return type
-[**Repository**](Repository.md)
+[**Hook**](Hook.md)
### Authorization
@@ -1954,11 +3705,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetArchive**
-> repoGetArchive(owner, repo, archive)
+
+# **repoGetKey**
+> DeployKey repoGetKey(owner, repo, id)
-Get an archive of a repository
+Get a repository's key by id
### Example
```java
@@ -2009,11 +3760,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String archive = "archive_example"; // String | archive to download, consisting of a git reference and archive
+Long id = 789L; // Long | id of the key to get
try {
- apiInstance.repoGetArchive(owner, repo, archive);
+ DeployKey result = apiInstance.repoGetKey(owner, repo, id);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetArchive");
+ System.err.println("Exception when calling RepositoryApi#repoGetKey");
e.printStackTrace();
}
```
@@ -2024,11 +3776,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **archive** | **String**| archive to download, consisting of a git reference and archive |
+ **id** | **Long**| id of the key to get |
### Return type
-null (empty response body)
+[**DeployKey**](DeployKey.md)
### Authorization
@@ -2039,11 +3791,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetBranch**
-> Branch repoGetBranch(owner, repo, branch)
+
+# **repoGetPullRequest**
+> PullRequest repoGetPullRequest(owner, repo, index)
-Retrieve a specific branch from a repository
+Get a pull request
### Example
```java
@@ -2094,12 +3846,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String branch = "branch_example"; // String | branch to get
+Long index = 789L; // Long | index of the pull request to get
try {
- Branch result = apiInstance.repoGetBranch(owner, repo, branch);
+ PullRequest result = apiInstance.repoGetPullRequest(owner, repo, index);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetBranch");
+ System.err.println("Exception when calling RepositoryApi#repoGetPullRequest");
e.printStackTrace();
}
```
@@ -2110,11 +3862,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **branch** | **String**| branch to get |
+ **index** | **Long**| index of the pull request to get |
### Return type
-[**Branch**](Branch.md)
+[**PullRequest**](PullRequest.md)
### Authorization
@@ -2125,11 +3877,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetByID**
-> Repository repoGetByID(id)
+
+# **repoGetRawFile**
+> repoGetRawFile(owner, repo, filepath)
-Get a repository by id
+Get a file from a repository
### Example
```java
@@ -2178,12 +3930,13 @@ Token.setApiKey("YOUR API KEY");
//Token.setApiKeyPrefix("Token");
RepositoryApi apiInstance = new RepositoryApi();
-Long id = 789L; // Long | id of the repo to get
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String filepath = "filepath_example"; // String | filepath of the file to get
try {
- Repository result = apiInstance.repoGetByID(id);
- System.out.println(result);
+ apiInstance.repoGetRawFile(owner, repo, filepath);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetByID");
+ System.err.println("Exception when calling RepositoryApi#repoGetRawFile");
e.printStackTrace();
}
```
@@ -2192,11 +3945,13 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **Long**| id of the repo to get |
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **filepath** | **String**| filepath of the file to get |
### Return type
-[**Repository**](Repository.md)
+null (empty response body)
### Authorization
@@ -2207,11 +3962,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetCombinedStatusByRef**
-> Status repoGetCombinedStatusByRef(owner, repo, ref)
+
+# **repoGetRelease**
+> Release repoGetRelease(owner, repo, id)
-Get a commit's combined status, by branch/tag/commit reference
+Get a release
### Example
```java
@@ -2262,12 +4017,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String ref = "ref_example"; // String | name of branch/tag/commit
+Long id = 789L; // Long | id of the release to get
try {
- Status result = apiInstance.repoGetCombinedStatusByRef(owner, repo, ref);
+ Release result = apiInstance.repoGetRelease(owner, repo, id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetCombinedStatusByRef");
+ System.err.println("Exception when calling RepositoryApi#repoGetRelease");
e.printStackTrace();
}
```
@@ -2278,11 +4033,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **ref** | **String**| name of branch/tag/commit |
+ **id** | **Long**| id of the release to get |
### Return type
-[**Status**](Status.md)
+[**Release**](Release.md)
### Authorization
@@ -2293,11 +4048,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetEditorConfig**
-> repoGetEditorConfig(owner, repo, filepath)
+
+# **repoGetReleaseAttachment**
+> Attachment repoGetReleaseAttachment(owner, repo, id, attachmentId)
-Get the EditorConfig definitions of a file in a repository
+Get a release attachment
### Example
```java
@@ -2348,11 +4103,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String filepath = "filepath_example"; // String | filepath of file to get
+Long id = 789L; // Long | id of the release
+Long attachmentId = 789L; // Long | id of the attachment to get
try {
- apiInstance.repoGetEditorConfig(owner, repo, filepath);
+ Attachment result = apiInstance.repoGetReleaseAttachment(owner, repo, id, attachmentId);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetEditorConfig");
+ System.err.println("Exception when calling RepositoryApi#repoGetReleaseAttachment");
e.printStackTrace();
}
```
@@ -2363,11 +4120,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **filepath** | **String**| filepath of file to get |
+ **id** | **Long**| id of the release |
+ **attachmentId** | **Long**| id of the attachment to get |
### Return type
-null (empty response body)
+[**Attachment**](Attachment.md)
### Authorization
@@ -2378,11 +4136,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetHook**
-> List<Branch> repoGetHook(owner, repo, id)
+
+# **repoGetSingleCommit**
+> Commit repoGetSingleCommit(owner, repo, sha)
-Get a hook
+Get a single commit from a repository
### Example
```java
@@ -2433,12 +4191,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the hook to get
+String sha = "sha_example"; // String | the commit hash
try {
- List result = apiInstance.repoGetHook(owner, repo, id);
+ Commit result = apiInstance.repoGetSingleCommit(owner, repo, sha);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetHook");
+ System.err.println("Exception when calling RepositoryApi#repoGetSingleCommit");
e.printStackTrace();
}
```
@@ -2449,11 +4207,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the hook to get |
+ **sha** | **String**| the commit hash |
### Return type
-[**List<Branch>**](Branch.md)
+[**Commit**](Commit.md)
### Authorization
@@ -2464,11 +4222,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetKey**
-> DeployKey repoGetKey(owner, repo, id)
+
+# **repoListAllGitRefs**
+> List<Reference> repoListAllGitRefs(owner, repo)
-Get a repository's key by id
+Get specified ref or filtered repository's refs
### Example
```java
@@ -2519,12 +4277,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the key to get
try {
- DeployKey result = apiInstance.repoGetKey(owner, repo, id);
+ List result = apiInstance.repoListAllGitRefs(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetKey");
+ System.err.println("Exception when calling RepositoryApi#repoListAllGitRefs");
e.printStackTrace();
}
```
@@ -2535,11 +4292,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the key to get |
### Return type
-[**DeployKey**](DeployKey.md)
+[**List<Reference>**](Reference.md)
### Authorization
@@ -2550,11 +4306,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetPullRequest**
-> PullRequest repoGetPullRequest(owner, repo, index)
+
+# **repoListBranches**
+> List<Branch> repoListBranches(owner, repo)
-Get a pull request
+List a repository's branches
### Example
```java
@@ -2605,12 +4361,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long index = 789L; // Long | index of the pull request to get
try {
- PullRequest result = apiInstance.repoGetPullRequest(owner, repo, index);
+ List result = apiInstance.repoListBranches(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetPullRequest");
+ System.err.println("Exception when calling RepositoryApi#repoListBranches");
e.printStackTrace();
}
```
@@ -2621,11 +4376,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **index** | **Long**| index of the pull request to get |
### Return type
-[**PullRequest**](PullRequest.md)
+[**List<Branch>**](Branch.md)
### Authorization
@@ -2636,11 +4390,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetRawFile**
-> repoGetRawFile(owner, repo, filepath)
+
+# **repoListCollaborators**
+> List<User> repoListCollaborators(owner, repo)
-Get a file from a repository
+List a repository's collaborators
### Example
```java
@@ -2691,11 +4445,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String filepath = "filepath_example"; // String | filepath of the file to get
try {
- apiInstance.repoGetRawFile(owner, repo, filepath);
+ List result = apiInstance.repoListCollaborators(owner, repo);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetRawFile");
+ System.err.println("Exception when calling RepositoryApi#repoListCollaborators");
e.printStackTrace();
}
```
@@ -2706,11 +4460,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **filepath** | **String**| filepath of the file to get |
### Return type
-null (empty response body)
+[**List<User>**](User.md)
### Authorization
@@ -2721,11 +4474,11 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetRelease**
-> Release repoGetRelease(owner, repo, id)
+
+# **repoListGitHooks**
+> List<GitHook> repoListGitHooks(owner, repo)
-Get a release
+List the Git hooks in a repository
### Example
```java
@@ -2776,12 +4529,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release to get
try {
- Release result = apiInstance.repoGetRelease(owner, repo, id);
+ List result = apiInstance.repoListGitHooks(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetRelease");
+ System.err.println("Exception when calling RepositoryApi#repoListGitHooks");
e.printStackTrace();
}
```
@@ -2792,11 +4544,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release to get |
### Return type
-[**Release**](Release.md)
+[**List<GitHook>**](GitHook.md)
### Authorization
@@ -2807,11 +4558,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoGetReleaseAttachment**
-> Attachment repoGetReleaseAttachment(owner, repo, id, attachmentId)
+
+# **repoListGitRefs**
+> List<Reference> repoListGitRefs(owner, repo, ref)
-Get a release attachment
+Get specified ref or filtered repository's refs
### Example
```java
@@ -2862,13 +4613,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release
-Long attachmentId = 789L; // Long | id of the attachment to get
+String ref = "ref_example"; // String | part or full name of the ref
try {
- Attachment result = apiInstance.repoGetReleaseAttachment(owner, repo, id, attachmentId);
+ List result = apiInstance.repoListGitRefs(owner, repo, ref);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoGetReleaseAttachment");
+ System.err.println("Exception when calling RepositoryApi#repoListGitRefs");
e.printStackTrace();
}
```
@@ -2879,12 +4629,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release |
- **attachmentId** | **Long**| id of the attachment to get |
+ **ref** | **String**| part or full name of the ref |
### Return type
-[**Attachment**](Attachment.md)
+[**List<Reference>**](Reference.md)
### Authorization
@@ -2895,11 +4644,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListBranches**
-> List<Branch> repoListBranches(owner, repo)
+
+# **repoListHooks**
+> List<Hook> repoListHooks(owner, repo)
-List a repository's branches
+List the hooks in a repository
### Example
```java
@@ -2951,10 +4700,10 @@ RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
try {
- List result = apiInstance.repoListBranches(owner, repo);
+ List result = apiInstance.repoListHooks(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListBranches");
+ System.err.println("Exception when calling RepositoryApi#repoListHooks");
e.printStackTrace();
}
```
@@ -2968,7 +4717,7 @@ Name | Type | Description | Notes
### Return type
-[**List<Branch>**](Branch.md)
+[**List<Hook>**](Hook.md)
### Authorization
@@ -2979,11 +4728,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListCollaborators**
-> List<User> repoListCollaborators(owner, repo)
+
+# **repoListKeys**
+> List<DeployKey> repoListKeys(owner, repo, keyId, fingerprint)
-List a repository's collaborators
+List a repository's keys
### Example
```java
@@ -3034,11 +4783,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
+Integer keyId = 56; // Integer | the key_id to search for
+String fingerprint = "fingerprint_example"; // String | fingerprint of the key
try {
- List result = apiInstance.repoListCollaborators(owner, repo);
+ List result = apiInstance.repoListKeys(owner, repo, keyId, fingerprint);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListCollaborators");
+ System.err.println("Exception when calling RepositoryApi#repoListKeys");
e.printStackTrace();
}
```
@@ -3049,10 +4800,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
+ **keyId** | **Integer**| the key_id to search for | [optional]
+ **fingerprint** | **String**| fingerprint of the key | [optional]
### Return type
-[**List<User>**](User.md)
+[**List<DeployKey>**](DeployKey.md)
### Authorization
@@ -3063,11 +4816,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListHooks**
-> List<Branch> repoListHooks(owner, repo)
+
+# **repoListPullRequests**
+> List<PullRequest> repoListPullRequests(owner, repo, page, state, sort, milestone, labels)
-List the hooks in a repository
+List a repo's pull requests
### Example
```java
@@ -3118,11 +4871,16 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
+Integer page = 56; // Integer | Page number
+String state = "state_example"; // String | State of pull request: open or closed (optional)
+String sort = "sort_example"; // String | Type of sort
+Long milestone = 789L; // Long | ID of the milestone
+List labels = Arrays.asList(56L); // List | Label IDs
try {
- List result = apiInstance.repoListHooks(owner, repo);
+ List result = apiInstance.repoListPullRequests(owner, repo, page, state, sort, milestone, labels);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListHooks");
+ System.err.println("Exception when calling RepositoryApi#repoListPullRequests");
e.printStackTrace();
}
```
@@ -3133,10 +4891,15 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
+ **page** | **Integer**| Page number | [optional]
+ **state** | **String**| State of pull request: open or closed (optional) | [optional] [enum: closed, open, all]
+ **sort** | **String**| Type of sort | [optional] [enum: oldest, recentupdate, leastupdate, mostcomment, leastcomment, priority]
+ **milestone** | **Long**| ID of the milestone | [optional]
+ **labels** | [**List<Long>**](Long.md)| Label IDs | [optional]
### Return type
-[**List<Branch>**](Branch.md)
+[**List<PullRequest>**](PullRequest.md)
### Authorization
@@ -3147,11 +4910,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListKeys**
-> List<DeployKey> repoListKeys(owner, repo, keyId, fingerprint)
+
+# **repoListReleaseAttachments**
+> List<Attachment> repoListReleaseAttachments(owner, repo, id)
-List a repository's keys
+List release's attachments
### Example
```java
@@ -3202,13 +4965,12 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Integer keyId = 56; // Integer | the key_id to search for
-String fingerprint = "fingerprint_example"; // String | fingerprint of the key
+Long id = 789L; // Long | id of the release
try {
- List result = apiInstance.repoListKeys(owner, repo, keyId, fingerprint);
+ List result = apiInstance.repoListReleaseAttachments(owner, repo, id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListKeys");
+ System.err.println("Exception when calling RepositoryApi#repoListReleaseAttachments");
e.printStackTrace();
}
```
@@ -3219,12 +4981,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **keyId** | **Integer**| the key_id to search for | [optional]
- **fingerprint** | **String**| fingerprint of the key | [optional]
+ **id** | **Long**| id of the release |
### Return type
-[**List<DeployKey>**](DeployKey.md)
+[**List<Attachment>**](Attachment.md)
### Authorization
@@ -3235,11 +4996,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListPullRequests**
-> List<PullRequest> repoListPullRequests(owner, repo, page, state, sort, milestone, labels)
+
+# **repoListReleases**
+> List<Release> repoListReleases(owner, repo, page, perPage)
-List a repo's pull requests
+List a repo's releases
### Example
```java
@@ -3290,16 +5051,13 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Integer page = 56; // Integer | Page number
-String state = "state_example"; // String | State of pull request: open or closed (optional)
-String sort = "sort_example"; // String | Type of sort
-Long milestone = 789L; // Long | ID of the milestone
-List labels = Arrays.asList(56L); // List | Label IDs
+Integer page = 56; // Integer | page wants to load
+Integer perPage = 56; // Integer | items count every page wants to load
try {
- List result = apiInstance.repoListPullRequests(owner, repo, page, state, sort, milestone, labels);
+ List result = apiInstance.repoListReleases(owner, repo, page, perPage);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListPullRequests");
+ System.err.println("Exception when calling RepositoryApi#repoListReleases");
e.printStackTrace();
}
```
@@ -3310,15 +5068,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **page** | **Integer**| Page number | [optional]
- **state** | **String**| State of pull request: open or closed (optional) | [optional] [enum: closed, open, all]
- **sort** | **String**| Type of sort | [optional] [enum: oldest, recentupdate, leastupdate, mostcomment, leastcomment, priority]
- **milestone** | **Long**| ID of the milestone | [optional]
- **labels** | [**List<Long>**](Long.md)| Label IDs | [optional]
+ **page** | **Integer**| page wants to load | [optional]
+ **perPage** | **Integer**| items count every page wants to load | [optional]
### Return type
-[**List<PullRequest>**](PullRequest.md)
+[**List<Release>**](Release.md)
### Authorization
@@ -3329,11 +5084,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListReleaseAttachments**
-> List<Attachment> repoListReleaseAttachments(owner, repo, id)
+
+# **repoListStargazers**
+> List<User> repoListStargazers(owner, repo)
-List release's attachments
+List a repo's stargazers
### Example
```java
@@ -3384,12 +5139,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-Long id = 789L; // Long | id of the release
try {
- List result = apiInstance.repoListReleaseAttachments(owner, repo, id);
+ List result = apiInstance.repoListStargazers(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListReleaseAttachments");
+ System.err.println("Exception when calling RepositoryApi#repoListStargazers");
e.printStackTrace();
}
```
@@ -3400,11 +5154,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **id** | **Long**| id of the release |
### Return type
-[**List<Attachment>**](Attachment.md)
+[**List<User>**](User.md)
### Authorization
@@ -3415,11 +5168,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListReleases**
-> List<Release> repoListReleases(owner, repo)
+
+# **repoListStatuses**
+> List<Status> repoListStatuses(owner, repo, sha, page, sort, state)
-List a repo's releases
+Get a commit's statuses
### Example
```java
@@ -3470,11 +5223,15 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
+String sha = "sha_example"; // String | sha of the commit
+Integer page = 56; // Integer | page number of results
+String sort = "sort_example"; // String | type of sort
+String state = "state_example"; // String | type of state
try {
- List result = apiInstance.repoListReleases(owner, repo);
+ List result = apiInstance.repoListStatuses(owner, repo, sha, page, sort, state);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListReleases");
+ System.err.println("Exception when calling RepositoryApi#repoListStatuses");
e.printStackTrace();
}
```
@@ -3485,10 +5242,14 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
+ **sha** | **String**| sha of the commit |
+ **page** | **Integer**| page number of results | [optional]
+ **sort** | **String**| type of sort | [optional] [enum: oldest, recentupdate, leastupdate, leastindex, highestindex]
+ **state** | **String**| type of state | [optional] [enum: pending, success, error, failure, warning]
### Return type
-[**List<Release>**](Release.md)
+[**List<Status>**](Status.md)
### Authorization
@@ -3499,11 +5260,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListStargazers**
-> List<User> repoListStargazers(owner, repo)
+
+# **repoListSubscribers**
+> List<User> repoListSubscribers(owner, repo)
-List a repo's stargazers
+List a repo's watchers
### Example
```java
@@ -3555,10 +5316,10 @@ RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
try {
- List result = apiInstance.repoListStargazers(owner, repo);
+ List result = apiInstance.repoListSubscribers(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListStargazers");
+ System.err.println("Exception when calling RepositoryApi#repoListSubscribers");
e.printStackTrace();
}
```
@@ -3583,11 +5344,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListStatuses**
-> List<Status> repoListStatuses(owner, repo, sha)
+
+# **repoListTags**
+> List<Tag> repoListTags(owner, repo)
-Get a commit's statuses
+List a repository's tags
### Example
```java
@@ -3638,12 +5399,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
-String sha = "sha_example"; // String | sha of the commit
try {
- List result = apiInstance.repoListStatuses(owner, repo, sha);
+ List result = apiInstance.repoListTags(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListStatuses");
+ System.err.println("Exception when calling RepositoryApi#repoListTags");
e.printStackTrace();
}
```
@@ -3654,11 +5414,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
- **sha** | **String**| sha of the commit |
### Return type
-[**List<Status>**](Status.md)
+[**List<Tag>**](Tag.md)
### Authorization
@@ -3669,11 +5428,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoListSubscribers**
-> List<User> repoListSubscribers(owner, repo)
+
+# **repoListTopics**
+> TopicName repoListTopics(owner, repo)
-List a repo's watchers
+Get list of topics that a repository has
### Example
```java
@@ -3725,10 +5484,10 @@ RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
try {
- List result = apiInstance.repoListSubscribers(owner, repo);
+ TopicName result = apiInstance.repoListTopics(owner, repo);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoListSubscribers");
+ System.err.println("Exception when calling RepositoryApi#repoListTopics");
e.printStackTrace();
}
```
@@ -3742,7 +5501,7 @@ Name | Type | Description | Notes
### Return type
-[**List<User>**](User.md)
+[**TopicName**](TopicName.md)
### Authorization
@@ -3755,7 +5514,7 @@ Name | Type | Description | Notes
# **repoMergePullRequest**
-> repoMergePullRequest(owner, repo, index)
+> repoMergePullRequest(owner, repo, index, body)
Merge a pull request
@@ -3809,8 +5568,9 @@ RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
Long index = 789L; // Long | index of the pull request to merge
+MergePullRequestOption body = new MergePullRequestOption(); // MergePullRequestOption |
try {
- apiInstance.repoMergePullRequest(owner, repo, index);
+ apiInstance.repoMergePullRequest(owner, repo, index, body);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoMergePullRequest");
e.printStackTrace();
@@ -3824,6 +5584,7 @@ Name | Type | Description | Notes
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **Long**| index of the pull request to merge |
+ **body** | [**MergePullRequestOption**](MergePullRequestOption.md)| | [optional]
### Return type
@@ -4090,7 +5851,7 @@ null (empty response body)
# **repoSearch**
-> SearchResults repoSearch(q, uid, page, limit, mode, exclusive, sort, order)
+> SearchResults repoSearch(q, topic, includeDesc, uid, starredBy, _private, page, limit, mode, exclusive, sort, order)
Search for repositories
@@ -4142,7 +5903,11 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String q = "q_example"; // String | keyword
+Boolean topic = true; // Boolean | Limit search to repositories with keyword as topic
+Boolean includeDesc = true; // Boolean | include search of keyword within repository description
Long uid = 789L; // Long | search only for repos that the user with the given id owns or contributes to
+Long starredBy = 789L; // Long | search only for repos that the user with the given id has starred
+Boolean _private = true; // Boolean | include private repositories this user has access to (defaults to true)
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results, maximum page size is 50
String mode = "mode_example"; // String | type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"
@@ -4150,7 +5915,7 @@ Boolean exclusive = true; // Boolean | if `uid` is given, search only for repos
String sort = "sort_example"; // String | sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\"
String order = "order_example"; // String | sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.
try {
- SearchResults result = apiInstance.repoSearch(q, uid, page, limit, mode, exclusive, sort, order);
+ SearchResults result = apiInstance.repoSearch(q, topic, includeDesc, uid, starredBy, _private, page, limit, mode, exclusive, sort, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoSearch");
@@ -4163,7 +5928,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**q** | **String**| keyword | [optional]
+ **topic** | **Boolean**| Limit search to repositories with keyword as topic | [optional]
+ **includeDesc** | **Boolean**| include search of keyword within repository description | [optional]
**uid** | **Long**| search only for repos that the user with the given id owns or contributes to | [optional]
+ **starredBy** | **Long**| search only for repos that the user with the given id has starred | [optional]
+ **_private** | **Boolean**| include private repositories this user has access to (defaults to true) | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results, maximum page size is 50 | [optional]
**mode** | **String**| type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\" | [optional]
@@ -4348,6 +6117,179 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoUpdateFile**
+> FileResponse repoUpdateFile(owner, repo, filepath, body)
+
+Update a file in a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String filepath = "filepath_example"; // String | path of the file to update
+UpdateFileOptions body = new UpdateFileOptions(); // UpdateFileOptions |
+try {
+ FileResponse result = apiInstance.repoUpdateFile(owner, repo, filepath, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoUpdateFile");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **filepath** | **String**| path of the file to update |
+ **body** | [**UpdateFileOptions**](UpdateFileOptions.md)| |
+
+### Return type
+
+[**FileResponse**](FileResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **repoUpdateTopics**
+> repoUpdateTopics(owner, repo, body)
+
+Replace list of topics for a repository
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+RepoTopicOptions body = new RepoTopicOptions(); // RepoTopicOptions |
+try {
+ apiInstance.repoUpdateTopics(owner, repo, body);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoUpdateTopics");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **body** | [**RepoTopicOptions**](RepoTopicOptions.md)| | [optional]
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -4355,7 +6297,7 @@ Name | Type | Description | Notes
# **topicSearch**
-> Repository topicSearch(q)
+> List<TopicResponse> topicSearch(q)
search topics via keyword
@@ -4408,7 +6350,7 @@ Token.setApiKey("YOUR API KEY");
RepositoryApi apiInstance = new RepositoryApi();
String q = "q_example"; // String | keywords to search
try {
- Repository result = apiInstance.topicSearch(q);
+ List result = apiInstance.topicSearch(q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#topicSearch");
@@ -4424,7 +6366,7 @@ Name | Type | Description | Notes
### Return type
-[**Repository**](Repository.md)
+[**List<TopicResponse>**](TopicResponse.md)
### Authorization
diff --git a/docs/Tag.md b/docs/Tag.md
new file mode 100644
index 0000000..042f405
--- /dev/null
+++ b/docs/Tag.md
@@ -0,0 +1,14 @@
+
+# Tag
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**commit** | [**CommitMeta**](CommitMeta.md) | | [optional]
+**id** | **String** | | [optional]
+**name** | **String** | | [optional]
+**tarballUrl** | **String** | | [optional]
+**zipballUrl** | **String** | | [optional]
+
+
+
diff --git a/docs/Team.md b/docs/Team.md
index e18af22..1818408 100644
--- a/docs/Team.md
+++ b/docs/Team.md
@@ -7,7 +7,9 @@ Name | Type | Description | Notes
**description** | **String** | | [optional]
**id** | **Long** | | [optional]
**name** | **String** | | [optional]
+**organization** | [**Organization**](Organization.md) | | [optional]
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
+**units** | **List<String>** | | [optional]
diff --git a/docs/TopicName.md b/docs/TopicName.md
new file mode 100644
index 0000000..8a0b6cc
--- /dev/null
+++ b/docs/TopicName.md
@@ -0,0 +1,10 @@
+
+# TopicName
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**topics** | **List<String>** | | [optional]
+
+
+
diff --git a/docs/TopicResponse.md b/docs/TopicResponse.md
new file mode 100644
index 0000000..dd50fb4
--- /dev/null
+++ b/docs/TopicResponse.md
@@ -0,0 +1,14 @@
+
+# TopicResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+**id** | **Long** | | [optional]
+**repoCount** | **Long** | | [optional]
+**topicName** | **String** | | [optional]
+**updated** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+
+
+
diff --git a/docs/UpdateFileOptions.md b/docs/UpdateFileOptions.md
new file mode 100644
index 0000000..31da6a3
--- /dev/null
+++ b/docs/UpdateFileOptions.md
@@ -0,0 +1,17 @@
+
+# UpdateFileOptions
+
+## 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 |
+**fromPath** | **String** | from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL | [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 `branch` before creating the file | [optional]
+**sha** | **String** | sha is the SHA for the file that already exists |
+
+
+
diff --git a/docs/User.md b/docs/User.md
index 0a7a550..0bcd977 100644
--- a/docs/User.md
+++ b/docs/User.md
@@ -5,10 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**avatarUrl** | **String** | URL to the user's avatar | [optional]
+**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**email** | **String** | | [optional]
**fullName** | **String** | the user's full name | [optional]
**id** | **Long** | the user's id | [optional]
+**isAdmin** | **Boolean** | Is the user an administrator | [optional]
**language** | **String** | User locale | [optional]
+**lastLogin** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**login** | **String** | the user's username | [optional]
diff --git a/docs/UserApi.md b/docs/UserApi.md
index 7e5d3ef..3f9ea80 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -42,6 +42,7 @@ Method | HTTP request | Description
[**userListRepos**](UserApi.md#userListRepos) | **GET** /users/{username}/repos | List the repos owned by the given user
[**userListStarred**](UserApi.md#userListStarred) | **GET** /users/{username}/starred | The repos that the given user has starred
[**userListSubscriptions**](UserApi.md#userListSubscriptions) | **GET** /users/{username}/subscriptions | List the repositories watched by a user
+[**userListTeams**](UserApi.md#userListTeams) | **GET** /user/teams | List all the teams a user belongs to
[**userSearch**](UserApi.md#userSearch) | **GET** /users/search | Search for users
[**userTrackedTimes**](UserApi.md#userTrackedTimes) | **GET** /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo
@@ -295,7 +296,7 @@ null (empty response body)
# **userCreateToken**
-> AccessToken userCreateToken(username, accessTokenName)
+> userCreateToken(username, accessToken)
Create an access token
@@ -347,10 +348,9 @@ Token.setApiKey("YOUR API KEY");
UserApi apiInstance = new UserApi();
String username = "username_example"; // String | username of user
-AccessTokenName accessTokenName = new AccessTokenName(); // AccessTokenName |
+AccessToken accessToken = new AccessToken(); // AccessToken |
try {
- AccessToken result = apiInstance.userCreateToken(username, accessTokenName);
- System.out.println(result);
+ apiInstance.userCreateToken(username, accessToken);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#userCreateToken");
e.printStackTrace();
@@ -362,11 +362,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| username of user |
- **accessTokenName** | [**AccessTokenName**](AccessTokenName.md)| | [optional]
+ **accessToken** | [**AccessToken**](AccessToken.md)| | [optional]
### Return type
-[**AccessToken**](AccessToken.md)
+null (empty response body)
### Authorization
@@ -3124,6 +3124,84 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **userListTeams**
+> List<Team> userListTeams()
+
+List all the teams a user belongs to
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.UserApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// 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: 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");
+
+UserApi apiInstance = new UserApi();
+try {
+ List result = apiInstance.userListTeams();
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#userListTeams");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**List<Team>**](Team.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -3131,7 +3209,7 @@ Name | Type | Description | Notes
# **userSearch**
-> UserSearchList userSearch(q, uid, limit)
+> InlineResponse2001 userSearch(q, uid, limit)
Search for users
@@ -3186,7 +3264,7 @@ String q = "q_example"; // String | keyword
Long uid = 789L; // Long | ID of the user to search for
Integer limit = 56; // Integer | maximum number of users to return
try {
- UserSearchList result = apiInstance.userSearch(q, uid, limit);
+ InlineResponse2001 result = apiInstance.userSearch(q, uid, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#userSearch");
@@ -3204,7 +3282,7 @@ Name | Type | Description | Notes
### Return type
-[**UserSearchList**](UserSearchList.md)
+[**InlineResponse2001**](InlineResponse2001.md)
### Authorization
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 2c6137b..5c2d1cf 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index b7a3647..ca9d628 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,5 @@
-#Tue May 17 23:08:05 CST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip
diff --git a/gradlew b/gradlew
index 9d82f78..83f2acf 100755
--- a/gradlew
+++ b/gradlew
@@ -1,4 +1,20 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
##############################################################################
##
@@ -6,20 +22,38 @@
##
##############################################################################
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
-warn ( ) {
+warn () {
echo "$*"
}
-die ( ) {
+die () {
echo
echo "$*"
echo
@@ -30,6 +64,7 @@ die ( ) {
cygwin=false
msys=false
darwin=false
+nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
@@ -40,26 +75,11 @@ case "`uname`" in
MINGW* )
msys=true
;;
+ NONSTOP* )
+ nonstop=true
+ ;;
esac
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
@@ -85,7 +105,7 @@ location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
@@ -105,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
@@ -150,11 +170,19 @@ if $cygwin ; then
esac
fi
-# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
-function splitJvmOpts() {
- JVM_OPTS=("$@")
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
}
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
-JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
-exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
+exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
index 5f19212..24467a1 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -1,90 +1,100 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%@eval[2+2]" == "4" goto 4NT_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/pom.xml b/pom.xml
index 2fe0c03..8813bf7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,6 +31,25 @@
+
+ io.swagger
+ swagger-codegen-maven-plugin
+ 2.4.8
+
+
+
+ generate
+
+
+
+
+
+ ${project.basedir}/swagger.v1.json
+ java
+ io.gitea.api
+ io.gitea.model
+
+
org.apache.maven.plugins
maven-enforcer-plugin
@@ -307,7 +326,7 @@
- 1.7
+ 1.8
${java.version}
${java.version}
1.8.0
diff --git a/src/main/java/io/gitea/ApiException.java b/src/main/java/io/gitea/ApiException.java
index 449500e..2c8fec4 100644
--- a/src/main/java/io/gitea/ApiException.java
+++ b/src/main/java/io/gitea/ApiException.java
@@ -16,7 +16,7 @@
import java.util.Map;
import java.util.List;
-@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-02T17:53:11.028Z")
+@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-15T10:08:30.717+03:00")
public class ApiException extends Exception {
private int code = 0;
private Map> responseHeaders = null;
diff --git a/src/main/java/io/gitea/Configuration.java b/src/main/java/io/gitea/Configuration.java
index 4db8cf0..40a2288 100644
--- a/src/main/java/io/gitea/Configuration.java
+++ b/src/main/java/io/gitea/Configuration.java
@@ -13,7 +13,7 @@
package io.gitea;
-@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-02T17:53:11.028Z")
+@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-15T10:08:30.717+03:00")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();
diff --git a/src/main/java/io/gitea/JSON.java b/src/main/java/io/gitea/JSON.java
index 51fbd4d..c8bcdf3 100644
--- a/src/main/java/io/gitea/JSON.java
+++ b/src/main/java/io/gitea/JSON.java
@@ -28,6 +28,7 @@
import org.threeten.bp.format.DateTimeFormatter;
import io.gitea.model.*;
+import okio.ByteString;
import java.io.IOException;
import java.io.StringReader;
@@ -46,11 +47,13 @@ public class JSON {
private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter();
private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter();
private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter();
+ private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter();
public static GsonBuilder createGson() {
GsonFireBuilder fireBuilder = new GsonFireBuilder()
;
- return fireBuilder.createGsonBuilder();
+ GsonBuilder builder = fireBuilder.createGsonBuilder();
+ return builder;
}
private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) {
@@ -75,6 +78,7 @@ public JSON() {
.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter)
.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter)
.registerTypeAdapter(LocalDate.class, localDateTypeAdapter)
+ .registerTypeAdapter(byte[].class, byteArrayAdapter)
.create();
}
@@ -141,6 +145,34 @@ public T deserialize(String body, Type returnType) {
}
}
+ /**
+ * Gson TypeAdapter for Byte Array type
+ */
+ public class ByteArrayAdapter extends TypeAdapter {
+
+ @Override
+ public void write(JsonWriter out, byte[] value) throws IOException {
+ if (value == null) {
+ out.nullValue();
+ } else {
+ out.value(ByteString.of(value).base64());
+ }
+ }
+
+ @Override
+ public byte[] read(JsonReader in) throws IOException {
+ switch (in.peek()) {
+ case NULL:
+ in.nextNull();
+ return null;
+ default:
+ String bytesAsBase64 = in.nextString();
+ ByteString byteString = ByteString.decodeBase64(bytesAsBase64);
+ return byteString.toByteArray();
+ }
+ }
+ }
+
/**
* Gson TypeAdapter for JSR310 OffsetDateTime type
*/
diff --git a/src/main/java/io/gitea/Pair.java b/src/main/java/io/gitea/Pair.java
index 02dfd8a..914659d 100644
--- a/src/main/java/io/gitea/Pair.java
+++ b/src/main/java/io/gitea/Pair.java
@@ -13,7 +13,7 @@
package io.gitea;
-@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-02T17:53:11.028Z")
+@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-15T10:08:30.717+03:00")
public class Pair {
private String name = "";
private String value = "";
diff --git a/src/main/java/io/gitea/StringUtil.java b/src/main/java/io/gitea/StringUtil.java
index 8ae7e3c..1556ff2 100644
--- a/src/main/java/io/gitea/StringUtil.java
+++ b/src/main/java/io/gitea/StringUtil.java
@@ -13,7 +13,7 @@
package io.gitea;
-@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-02T17:53:11.028Z")
+@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-15T10:08:30.717+03:00")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
diff --git a/src/main/java/io/gitea/api/AdminApi.java b/src/main/java/io/gitea/api/AdminApi.java
index 35b2500..8c91225 100644
--- a/src/main/java/io/gitea/api/AdminApi.java
+++ b/src/main/java/io/gitea/api/AdminApi.java
@@ -945,4 +945,242 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for adminGetAllOrgs
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results, maximum page size is 50 (optional)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call adminGetAllOrgsCall(Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/admin/orgs";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ if (page != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
+ if (limit != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json", "text/plain"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call adminGetAllOrgsValidateBeforeCall(Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+
+ com.squareup.okhttp.Call call = adminGetAllOrgsCall(page, limit, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * List all organizations
+ *
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results, maximum page size is 50 (optional)
+ * @return List<Organization>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public List adminGetAllOrgs(Integer page, Integer limit) throws ApiException {
+ ApiResponse> resp = adminGetAllOrgsWithHttpInfo(page, limit);
+ return resp.getData();
+ }
+
+ /**
+ * List all organizations
+ *
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results, maximum page size is 50 (optional)
+ * @return ApiResponse<List<Organization>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse> adminGetAllOrgsWithHttpInfo(Integer page, Integer limit) throws ApiException {
+ com.squareup.okhttp.Call call = adminGetAllOrgsValidateBeforeCall(page, limit, null, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * List all organizations (asynchronously)
+ *
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results, maximum page size is 50 (optional)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call adminGetAllOrgsAsync(Integer page, Integer limit, final ApiCallback> callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = adminGetAllOrgsValidateBeforeCall(page, limit, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
+ /**
+ * Build call for adminGetAllUsers
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call adminGetAllUsersCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/admin/users";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json", "text/plain"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call adminGetAllUsersValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+
+ com.squareup.okhttp.Call call = adminGetAllUsersCall(progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * List all users
+ *
+ * @return List<User>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public List adminGetAllUsers() throws ApiException {
+ ApiResponse> resp = adminGetAllUsersWithHttpInfo();
+ return resp.getData();
+ }
+
+ /**
+ * List all users
+ *
+ * @return ApiResponse<List<User>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse> adminGetAllUsersWithHttpInfo() throws ApiException {
+ com.squareup.okhttp.Call call = adminGetAllUsersValidateBeforeCall(null, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * List all users (asynchronously)
+ *
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call adminGetAllUsersAsync(final ApiCallback> callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = adminGetAllUsersValidateBeforeCall(progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
}
diff --git a/src/main/java/io/gitea/api/IssueApi.java b/src/main/java/io/gitea/api/IssueApi.java
index ecb36df..055cfe5 100644
--- a/src/main/java/io/gitea/api/IssueApi.java
+++ b/src/main/java/io/gitea/api/IssueApi.java
@@ -723,7 +723,7 @@ private com.squareup.okhttp.Call issueCreateIssueValidateBeforeCall(String owner
}
/**
- * Create an issue
+ * Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -737,7 +737,7 @@ public Issue issueCreateIssue(String owner, String repo, CreateIssueOption body)
}
/**
- * Create an issue
+ * Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -752,7 +752,7 @@ public ApiResponse issueCreateIssueWithHttpInfo(String owner, String repo
}
/**
- * Create an issue (asynchronously)
+ * Create an issue. If using deadline only the date will be taken into account, and time of day ignored. (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -2029,7 +2029,7 @@ private com.squareup.okhttp.Call issueEditIssueValidateBeforeCall(String owner,
}
/**
- * Edit an issue
+ * Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -2044,7 +2044,7 @@ public Issue issueEditIssue(String owner, String repo, Long index, EditIssueOpti
}
/**
- * Edit an issue
+ * Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -2060,7 +2060,7 @@ public ApiResponse issueEditIssueWithHttpInfo(String owner, String repo,
}
/**
- * Edit an issue (asynchronously)
+ * Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -2176,7 +2176,7 @@ private com.squareup.okhttp.Call issueEditIssueDeadlineValidateBeforeCall(String
}
/**
- * Set an issue deadline. If set to null, the deadline is deleted.
+ * 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.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -2191,7 +2191,7 @@ public IssueDeadline issueEditIssueDeadline(String owner, String repo, Long inde
}
/**
- * Set an issue deadline. If set to null, the deadline is deleted.
+ * 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.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -2207,7 +2207,7 @@ public ApiResponse issueEditIssueDeadlineWithHttpInfo(String owne
}
/**
- * Set an issue deadline. If set to null, the deadline is deleted. (asynchronously)
+ * 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. (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -3262,12 +3262,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* Build call for issueGetMilestonesList
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
+ * @param state Milestone state, Recognised values are open, closed and all. Defaults to \"open\" (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
- public com.squareup.okhttp.Call issueGetMilestonesListCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public com.squareup.okhttp.Call issueGetMilestonesListCall(String owner, String repo, String state, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@@ -3277,6 +3278,8 @@ public com.squareup.okhttp.Call issueGetMilestonesListCall(String owner, String
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
+ if (state != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("state", state));
Map localVarHeaderParams = new HashMap();
@@ -3311,7 +3314,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
}
@SuppressWarnings("rawtypes")
- private com.squareup.okhttp.Call issueGetMilestonesListValidateBeforeCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private com.squareup.okhttp.Call issueGetMilestonesListValidateBeforeCall(String owner, String repo, String state, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'owner' is set
if (owner == null) {
@@ -3324,48 +3327,51 @@ private com.squareup.okhttp.Call issueGetMilestonesListValidateBeforeCall(String
}
- com.squareup.okhttp.Call call = issueGetMilestonesListCall(owner, repo, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = issueGetMilestonesListCall(owner, repo, state, progressListener, progressRequestListener);
return call;
}
/**
- * Get all of a repository's milestones
+ * Get all of a repository's opened milestones
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
+ * @param state Milestone state, Recognised values are open, closed and all. Defaults to \"open\" (optional)
* @return List<Milestone>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List issueGetMilestonesList(String owner, String repo) throws ApiException {
- ApiResponse> resp = issueGetMilestonesListWithHttpInfo(owner, repo);
+ public List issueGetMilestonesList(String owner, String repo, String state) throws ApiException {
+ ApiResponse> resp = issueGetMilestonesListWithHttpInfo(owner, repo, state);
return resp.getData();
}
/**
- * Get all of a repository's milestones
+ * Get all of a repository's opened milestones
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
+ * @param state Milestone state, Recognised values are open, closed and all. Defaults to \"open\" (optional)
* @return ApiResponse<List<Milestone>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> issueGetMilestonesListWithHttpInfo(String owner, String repo) throws ApiException {
- com.squareup.okhttp.Call call = issueGetMilestonesListValidateBeforeCall(owner, repo, null, null);
+ public ApiResponse> issueGetMilestonesListWithHttpInfo(String owner, String repo, String state) throws ApiException {
+ com.squareup.okhttp.Call call = issueGetMilestonesListValidateBeforeCall(owner, repo, state, null, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
- * Get all of a repository's milestones (asynchronously)
+ * Get all of a repository's opened milestones (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
+ * @param state Milestone state, Recognised values are open, closed and all. Defaults to \"open\" (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call issueGetMilestonesListAsync(String owner, String repo, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call issueGetMilestonesListAsync(String owner, String repo, String state, final ApiCallback> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -3386,7 +3392,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
};
}
- com.squareup.okhttp.Call call = issueGetMilestonesListValidateBeforeCall(owner, repo, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = issueGetMilestonesListValidateBeforeCall(owner, repo, state, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -3535,6 +3541,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param state whether issue is open or closed (optional)
+ * @param labels comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded (optional)
* @param page page number of requested issues (optional)
* @param q search string (optional)
* @param progressListener Progress listener
@@ -3542,7 +3549,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
- public com.squareup.okhttp.Call issueListIssuesCall(String owner, String repo, String state, Integer page, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public com.squareup.okhttp.Call issueListIssuesCall(String owner, String repo, String state, String labels, Integer page, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@@ -3554,6 +3561,8 @@ public com.squareup.okhttp.Call issueListIssuesCall(String owner, String repo, S
List localVarCollectionQueryParams = new ArrayList();
if (state != null)
localVarQueryParams.addAll(apiClient.parameterToPair("state", state));
+ if (labels != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("labels", labels));
if (page != null)
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
if (q != null)
@@ -3592,7 +3601,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
}
@SuppressWarnings("rawtypes")
- private com.squareup.okhttp.Call issueListIssuesValidateBeforeCall(String owner, String repo, String state, Integer page, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private com.squareup.okhttp.Call issueListIssuesValidateBeforeCall(String owner, String repo, String state, String labels, Integer page, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'owner' is set
if (owner == null) {
@@ -3605,7 +3614,7 @@ private com.squareup.okhttp.Call issueListIssuesValidateBeforeCall(String owner,
}
- com.squareup.okhttp.Call call = issueListIssuesCall(owner, repo, state, page, q, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = issueListIssuesCall(owner, repo, state, labels, page, q, progressListener, progressRequestListener);
return call;
}
@@ -3616,13 +3625,14 @@ private com.squareup.okhttp.Call issueListIssuesValidateBeforeCall(String owner,
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param state whether issue is open or closed (optional)
+ * @param labels comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded (optional)
* @param page page number of requested issues (optional)
* @param q search string (optional)
* @return List<Issue>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List issueListIssues(String owner, String repo, String state, Integer page, String q) throws ApiException {
- ApiResponse> resp = issueListIssuesWithHttpInfo(owner, repo, state, page, q);
+ public List issueListIssues(String owner, String repo, String state, String labels, Integer page, String q) throws ApiException {
+ ApiResponse> resp = issueListIssuesWithHttpInfo(owner, repo, state, labels, page, q);
return resp.getData();
}
@@ -3632,13 +3642,14 @@ public List issueListIssues(String owner, String repo, String state, Inte
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param state whether issue is open or closed (optional)
+ * @param labels comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded (optional)
* @param page page number of requested issues (optional)
* @param q search string (optional)
* @return ApiResponse<List<Issue>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> issueListIssuesWithHttpInfo(String owner, String repo, String state, Integer page, String q) throws ApiException {
- com.squareup.okhttp.Call call = issueListIssuesValidateBeforeCall(owner, repo, state, page, q, null, null);
+ public ApiResponse> issueListIssuesWithHttpInfo(String owner, String repo, String state, String labels, Integer page, String q) throws ApiException {
+ com.squareup.okhttp.Call call = issueListIssuesValidateBeforeCall(owner, repo, state, labels, page, q, null, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -3649,13 +3660,14 @@ public ApiResponse> issueListIssuesWithHttpInfo(String owner, String
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param state whether issue is open or closed (optional)
+ * @param labels comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded (optional)
* @param page page number of requested issues (optional)
* @param q search string (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call issueListIssuesAsync(String owner, String repo, String state, Integer page, String q, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call issueListIssuesAsync(String owner, String repo, String state, String labels, Integer page, String q, final ApiCallback> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -3676,7 +3688,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
};
}
- com.squareup.okhttp.Call call = issueListIssuesValidateBeforeCall(owner, repo, state, page, q, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = issueListIssuesValidateBeforeCall(owner, repo, state, labels, page, q, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -4110,6 +4122,284 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for issueStartStopWatch
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to create the stopwatch on (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call issueStartStopWatchCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/issues/{index}/stopwatch/start"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call issueStartStopWatchValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'owner' is set
+ if (owner == null) {
+ throw new ApiException("Missing the required parameter 'owner' when calling issueStartStopWatch(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling issueStartStopWatch(Async)");
+ }
+
+ // verify the required parameter 'index' is set
+ if (index == null) {
+ throw new ApiException("Missing the required parameter 'index' when calling issueStartStopWatch(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = issueStartStopWatchCall(owner, repo, index, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Start stopwatch on an issue.
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to create the stopwatch on (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public void issueStartStopWatch(String owner, String repo, Long index) throws ApiException {
+ issueStartStopWatchWithHttpInfo(owner, repo, index);
+ }
+
+ /**
+ * Start stopwatch on an issue.
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to create the stopwatch on (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse issueStartStopWatchWithHttpInfo(String owner, String repo, Long index) throws ApiException {
+ com.squareup.okhttp.Call call = issueStartStopWatchValidateBeforeCall(owner, repo, index, null, null);
+ return apiClient.execute(call);
+ }
+
+ /**
+ * Start stopwatch on an issue. (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to create the stopwatch on (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call issueStartStopWatchAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = issueStartStopWatchValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener);
+ apiClient.executeAsync(call, callback);
+ return call;
+ }
+ /**
+ * Build call for issueStopWatch
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to stop the stopwatch on (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call issueStopWatchCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call issueStopWatchValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'owner' is set
+ if (owner == null) {
+ throw new ApiException("Missing the required parameter 'owner' when calling issueStopWatch(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling issueStopWatch(Async)");
+ }
+
+ // verify the required parameter 'index' is set
+ if (index == null) {
+ throw new ApiException("Missing the required parameter 'index' when calling issueStopWatch(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = issueStopWatchCall(owner, repo, index, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Stop an issue's existing stopwatch.
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to stop the stopwatch on (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public void issueStopWatch(String owner, String repo, Long index) throws ApiException {
+ issueStopWatchWithHttpInfo(owner, repo, index);
+ }
+
+ /**
+ * Stop an issue's existing stopwatch.
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to stop the stopwatch on (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse issueStopWatchWithHttpInfo(String owner, String repo, Long index) throws ApiException {
+ com.squareup.okhttp.Call call = issueStopWatchValidateBeforeCall(owner, repo, index, null, null);
+ return apiClient.execute(call);
+ }
+
+ /**
+ * Stop an issue's existing stopwatch. (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue to stop the stopwatch on (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call issueStopWatchAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = issueStopWatchValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener);
+ apiClient.executeAsync(call, callback);
+ return call;
+ }
/**
* Build call for issueTrackedTimes
* @param owner owner of the repo (required)
diff --git a/src/main/java/io/gitea/api/MiscellaneousApi.java b/src/main/java/io/gitea/api/MiscellaneousApi.java
index 06a956d..144b90e 100644
--- a/src/main/java/io/gitea/api/MiscellaneousApi.java
+++ b/src/main/java/io/gitea/api/MiscellaneousApi.java
@@ -230,22 +230,25 @@ private com.squareup.okhttp.Call renderMarkdownValidateBeforeCall(MarkdownOption
* Render a markdown document as HTML
*
* @param body (optional)
+ * @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public void renderMarkdown(MarkdownOption body) throws ApiException {
- renderMarkdownWithHttpInfo(body);
+ public String renderMarkdown(MarkdownOption body) throws ApiException {
+ ApiResponse resp = renderMarkdownWithHttpInfo(body);
+ return resp.getData();
}
/**
* Render a markdown document as HTML
*
* @param body (optional)
- * @return ApiResponse<Void>
+ * @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse renderMarkdownWithHttpInfo(MarkdownOption body) throws ApiException {
+ public ApiResponse renderMarkdownWithHttpInfo(MarkdownOption body) throws ApiException {
com.squareup.okhttp.Call call = renderMarkdownValidateBeforeCall(body, null, null);
- return apiClient.execute(call);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
}
/**
@@ -256,7 +259,7 @@ public ApiResponse renderMarkdownWithHttpInfo(MarkdownOption body) throws
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call renderMarkdownAsync(MarkdownOption body, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call renderMarkdownAsync(MarkdownOption body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -278,7 +281,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
com.squareup.okhttp.Call call = renderMarkdownValidateBeforeCall(body, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
@@ -348,22 +352,25 @@ private com.squareup.okhttp.Call renderMarkdownRawValidateBeforeCall(String body
* Render raw markdown as HTML
*
* @param body Request body to render (required)
+ * @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public void renderMarkdownRaw(String body) throws ApiException {
- renderMarkdownRawWithHttpInfo(body);
+ public String renderMarkdownRaw(String body) throws ApiException {
+ ApiResponse resp = renderMarkdownRawWithHttpInfo(body);
+ return resp.getData();
}
/**
* Render raw markdown as HTML
*
* @param body Request body to render (required)
- * @return ApiResponse<Void>
+ * @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse renderMarkdownRawWithHttpInfo(String body) throws ApiException {
+ public ApiResponse renderMarkdownRawWithHttpInfo(String body) throws ApiException {
com.squareup.okhttp.Call call = renderMarkdownRawValidateBeforeCall(body, null, null);
- return apiClient.execute(call);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
}
/**
@@ -374,7 +381,7 @@ public ApiResponse renderMarkdownRawWithHttpInfo(String body) throws ApiEx
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call renderMarkdownRawAsync(String body, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call renderMarkdownRawAsync(String body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -396,7 +403,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
com.squareup.okhttp.Call call = renderMarkdownRawValidateBeforeCall(body, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
}
diff --git a/src/main/java/io/gitea/api/OrganizationApi.java b/src/main/java/io/gitea/api/OrganizationApi.java
index 4dca277..2c8405f 100644
--- a/src/main/java/io/gitea/api/OrganizationApi.java
+++ b/src/main/java/io/gitea/api/OrganizationApi.java
@@ -27,13 +27,15 @@
import java.io.IOException;
-import io.gitea.model.Branch;
import io.gitea.model.CreateHookOption;
+import io.gitea.model.CreateOrgOption;
import io.gitea.model.CreateRepoOption;
import io.gitea.model.CreateTeamOption;
import io.gitea.model.EditHookOption;
import io.gitea.model.EditOrgOption;
import io.gitea.model.EditTeamOption;
+import io.gitea.model.Hook;
+import io.gitea.model.InlineResponse200;
import io.gitea.model.Organization;
import io.gitea.model.Repository;
import io.gitea.model.Team;
@@ -588,6 +590,128 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, callback);
return call;
}
+ /**
+ * Build call for orgCreate
+ * @param organization (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call orgCreateCall(CreateOrgOption organization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = organization;
+
+ // create path and map variables
+ String localVarPath = "/orgs";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call orgCreateValidateBeforeCall(CreateOrgOption organization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'organization' is set
+ if (organization == null) {
+ throw new ApiException("Missing the required parameter 'organization' when calling orgCreate(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = orgCreateCall(organization, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Create an organization
+ *
+ * @param organization (required)
+ * @return Organization
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public Organization orgCreate(CreateOrgOption organization) throws ApiException {
+ ApiResponse resp = orgCreateWithHttpInfo(organization);
+ return resp.getData();
+ }
+
+ /**
+ * Create an organization
+ *
+ * @param organization (required)
+ * @return ApiResponse<Organization>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse orgCreateWithHttpInfo(CreateOrgOption organization) throws ApiException {
+ com.squareup.okhttp.Call call = orgCreateValidateBeforeCall(organization, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Create an organization (asynchronously)
+ *
+ * @param organization (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call orgCreateAsync(CreateOrgOption organization, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = orgCreateValidateBeforeCall(organization, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for orgCreateHook
* @param org name of the organization (required)
@@ -663,11 +787,11 @@ private com.squareup.okhttp.Call orgCreateHookValidateBeforeCall(String org, Cre
*
* @param org name of the organization (required)
* @param body (required)
- * @return List<Branch>
+ * @return Hook
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List orgCreateHook(String org, CreateHookOption body) throws ApiException {
- ApiResponse> resp = orgCreateHookWithHttpInfo(org, body);
+ public Hook orgCreateHook(String org, CreateHookOption body) throws ApiException {
+ ApiResponse resp = orgCreateHookWithHttpInfo(org, body);
return resp.getData();
}
@@ -676,12 +800,12 @@ public List orgCreateHook(String org, CreateHookOption body) throws ApiE
*
* @param org name of the organization (required)
* @param body (required)
- * @return ApiResponse<List<Branch>>
+ * @return ApiResponse<Hook>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> orgCreateHookWithHttpInfo(String org, CreateHookOption body) throws ApiException {
+ public ApiResponse orgCreateHookWithHttpInfo(String org, CreateHookOption body) throws ApiException {
com.squareup.okhttp.Call call = orgCreateHookValidateBeforeCall(org, body, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -694,7 +818,7 @@ public ApiResponse> orgCreateHookWithHttpInfo(String org, CreateHoo
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call orgCreateHookAsync(String org, CreateHookOption body, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call orgCreateHookAsync(String org, CreateHookOption body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -716,7 +840,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
com.squareup.okhttp.Call call = orgCreateHookValidateBeforeCall(org, body, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -847,6 +971,125 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for orgDelete
+ * @param org organization that is to be deleted (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call orgDeleteCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/orgs/{org}"
+ .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json", "text/plain"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call orgDeleteValidateBeforeCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'org' is set
+ if (org == null) {
+ throw new ApiException("Missing the required parameter 'org' when calling orgDelete(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = orgDeleteCall(org, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Delete an organization
+ *
+ * @param org organization that is to be deleted (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public void orgDelete(String org) throws ApiException {
+ orgDeleteWithHttpInfo(org);
+ }
+
+ /**
+ * Delete an organization
+ *
+ * @param org organization that is to be deleted (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse orgDeleteWithHttpInfo(String org) throws ApiException {
+ com.squareup.okhttp.Call call = orgDeleteValidateBeforeCall(org, null, null);
+ return apiClient.execute(call);
+ }
+
+ /**
+ * Delete an organization (asynchronously)
+ *
+ * @param org organization that is to be deleted (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call orgDeleteAsync(String org, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = orgDeleteValidateBeforeCall(org, progressListener, progressRequestListener);
+ apiClient.executeAsync(call, callback);
+ return call;
+ }
/**
* Build call for orgDeleteHook
* @param org name of the organization (required)
@@ -1227,7 +1470,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
/**
* Build call for orgEdit
* @param org name of the organization to edit (required)
- * @param body (optional)
+ * @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
@@ -1283,6 +1526,11 @@ private com.squareup.okhttp.Call orgEditValidateBeforeCall(String org, EditOrgOp
throw new ApiException("Missing the required parameter 'org' when calling orgEdit(Async)");
}
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException("Missing the required parameter 'body' when calling orgEdit(Async)");
+ }
+
com.squareup.okhttp.Call call = orgEditCall(org, body, progressListener, progressRequestListener);
return call;
@@ -1293,7 +1541,7 @@ private com.squareup.okhttp.Call orgEditValidateBeforeCall(String org, EditOrgOp
* Edit an organization
*
* @param org name of the organization to edit (required)
- * @param body (optional)
+ * @param body (required)
* @return Organization
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1306,7 +1554,7 @@ public Organization orgEdit(String org, EditOrgOption body) throws ApiException
* Edit an organization
*
* @param org name of the organization to edit (required)
- * @param body (optional)
+ * @param body (required)
* @return ApiResponse<Organization>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1320,7 +1568,7 @@ public ApiResponse orgEditWithHttpInfo(String org, EditOrgOption b
* Edit an organization (asynchronously)
*
* @param org name of the organization to edit (required)
- * @param body (optional)
+ * @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -1429,11 +1677,11 @@ private com.squareup.okhttp.Call orgEditHookValidateBeforeCall(String org, Long
* @param org name of the organization (required)
* @param id id of the hook to update (required)
* @param body (optional)
- * @return List<Branch>
+ * @return Hook
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List orgEditHook(String org, Long id, EditHookOption body) throws ApiException {
- ApiResponse> resp = orgEditHookWithHttpInfo(org, id, body);
+ public Hook orgEditHook(String org, Long id, EditHookOption body) throws ApiException {
+ ApiResponse resp = orgEditHookWithHttpInfo(org, id, body);
return resp.getData();
}
@@ -1443,12 +1691,12 @@ public List orgEditHook(String org, Long id, EditHookOption body) throws
* @param org name of the organization (required)
* @param id id of the hook to update (required)
* @param body (optional)
- * @return ApiResponse<List<Branch>>
+ * @return ApiResponse<Hook>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> orgEditHookWithHttpInfo(String org, Long id, EditHookOption body) throws ApiException {
+ public ApiResponse orgEditHookWithHttpInfo(String org, Long id, EditHookOption body) throws ApiException {
com.squareup.okhttp.Call call = orgEditHookValidateBeforeCall(org, id, body, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -1462,7 +1710,7 @@ public ApiResponse> orgEditHookWithHttpInfo(String org, Long id, Ed
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call orgEditHookAsync(String org, Long id, EditHookOption body, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call orgEditHookAsync(String org, Long id, EditHookOption body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1484,7 +1732,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
com.squareup.okhttp.Call call = orgEditHookValidateBeforeCall(org, id, body, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -1814,11 +2062,11 @@ private com.squareup.okhttp.Call orgGetHookValidateBeforeCall(String org, Long i
*
* @param org name of the organization (required)
* @param id id of the hook to get (required)
- * @return List<Branch>
+ * @return Hook
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List orgGetHook(String org, Long id) throws ApiException {
- ApiResponse> resp = orgGetHookWithHttpInfo(org, id);
+ public Hook orgGetHook(String org, Long id) throws ApiException {
+ ApiResponse resp = orgGetHookWithHttpInfo(org, id);
return resp.getData();
}
@@ -1827,12 +2075,12 @@ public List orgGetHook(String org, Long id) throws ApiException {
*
* @param org name of the organization (required)
* @param id id of the hook to get (required)
- * @return ApiResponse<List<Branch>>
+ * @return ApiResponse<Hook>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> orgGetHookWithHttpInfo(String org, Long id) throws ApiException {
+ public ApiResponse orgGetHookWithHttpInfo(String org, Long id) throws ApiException {
com.squareup.okhttp.Call call = orgGetHookValidateBeforeCall(org, id, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -1845,7 +2093,7 @@ public ApiResponse> orgGetHookWithHttpInfo(String org, Long id) thr
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call orgGetHookAsync(String org, Long id, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call orgGetHookAsync(String org, Long id, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1867,7 +2115,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
com.squareup.okhttp.Call call = orgGetHookValidateBeforeCall(org, id, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -2433,11 +2681,11 @@ private com.squareup.okhttp.Call orgListHooksValidateBeforeCall(String org, fina
* List an organization's webhooks
*
* @param org name of the organization (required)
- * @return List<Branch>
+ * @return List<Hook>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List orgListHooks(String org) throws ApiException {
- ApiResponse> resp = orgListHooksWithHttpInfo(org);
+ public List orgListHooks(String org) throws ApiException {
+ ApiResponse> resp = orgListHooksWithHttpInfo(org);
return resp.getData();
}
@@ -2445,12 +2693,12 @@ public List orgListHooks(String org) throws ApiException {
* List an organization's webhooks
*
* @param org name of the organization (required)
- * @return ApiResponse<List<Branch>>
+ * @return ApiResponse<List<Hook>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> orgListHooksWithHttpInfo(String org) throws ApiException {
+ public ApiResponse> orgListHooksWithHttpInfo(String org) throws ApiException {
com.squareup.okhttp.Call call = orgListHooksValidateBeforeCall(org, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -2462,7 +2710,7 @@ public ApiResponse> orgListHooksWithHttpInfo(String org) throws Api
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public com.squareup.okhttp.Call orgListHooksAsync(String org, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call orgListHooksAsync(String org, final ApiCallback> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -2484,7 +2732,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
com.squareup.okhttp.Call call = orgListHooksValidateBeforeCall(org, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -2857,6 +3105,139 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for orgListTeamMember
+ * @param id id of the team (required)
+ * @param username username of the member to list (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call orgListTeamMemberCall(Long id, String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/teams/{id}/members/{username}"
+ .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()))
+ .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json", "text/plain"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call orgListTeamMemberValidateBeforeCall(Long id, String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException("Missing the required parameter 'id' when calling orgListTeamMember(Async)");
+ }
+
+ // verify the required parameter 'username' is set
+ if (username == null) {
+ throw new ApiException("Missing the required parameter 'username' when calling orgListTeamMember(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = orgListTeamMemberCall(id, username, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * List a particular member of team
+ *
+ * @param id id of the team (required)
+ * @param username username of the member to list (required)
+ * @return User
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public User orgListTeamMember(Long id, String username) throws ApiException {
+ ApiResponse resp = orgListTeamMemberWithHttpInfo(id, username);
+ return resp.getData();
+ }
+
+ /**
+ * List a particular member of team
+ *
+ * @param id id of the team (required)
+ * @param username username of the member to list (required)
+ * @return ApiResponse<User>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse orgListTeamMemberWithHttpInfo(Long id, String username) throws ApiException {
+ com.squareup.okhttp.Call call = orgListTeamMemberValidateBeforeCall(id, username, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * List a particular member of team (asynchronously)
+ *
+ * @param id id of the team (required)
+ * @param username username of the member to list (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call orgListTeamMemberAsync(Long id, String username, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = orgListTeamMemberValidateBeforeCall(id, username, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for orgListTeamMembers
* @param id id of the team (required)
@@ -3238,7 +3619,7 @@ public com.squareup.okhttp.Call orgListUserOrgsCall(String username, final Progr
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/user/{username}/orgs"
+ String localVarPath = "/users/{username}/orgs"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
List localVarQueryParams = new ArrayList();
@@ -3746,4 +4127,151 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, callback);
return call;
}
+ /**
+ * Build call for teamSearch
+ * @param org name of the organization (required)
+ * @param q keywords to search (optional)
+ * @param includeDesc include search within team description (defaults to true) (optional)
+ * @param limit limit size of results (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call teamSearchCall(String org, String q, Boolean includeDesc, Integer limit, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/orgs/{org}/teams/search"
+ .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ if (q != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("q", q));
+ if (includeDesc != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("include_desc", includeDesc));
+ if (limit != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit));
+ if (page != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json", "text/plain"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call teamSearchValidateBeforeCall(String org, String q, Boolean includeDesc, Integer limit, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'org' is set
+ if (org == null) {
+ throw new ApiException("Missing the required parameter 'org' when calling teamSearch(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = teamSearchCall(org, q, includeDesc, limit, page, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Search for teams within an organization
+ *
+ * @param org name of the organization (required)
+ * @param q keywords to search (optional)
+ * @param includeDesc include search within team description (defaults to true) (optional)
+ * @param limit limit size of results (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @return InlineResponse200
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public InlineResponse200 teamSearch(String org, String q, Boolean includeDesc, Integer limit, Integer page) throws ApiException {
+ ApiResponse resp = teamSearchWithHttpInfo(org, q, includeDesc, limit, page);
+ return resp.getData();
+ }
+
+ /**
+ * Search for teams within an organization
+ *
+ * @param org name of the organization (required)
+ * @param q keywords to search (optional)
+ * @param includeDesc include search within team description (defaults to true) (optional)
+ * @param limit limit size of results (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @return ApiResponse<InlineResponse200>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse teamSearchWithHttpInfo(String org, String q, Boolean includeDesc, Integer limit, Integer page) throws ApiException {
+ com.squareup.okhttp.Call call = teamSearchValidateBeforeCall(org, q, includeDesc, limit, page, null, null);
+ Type localVarReturnType = new TypeToken