diff --git a/docs/BranchProtection.md b/docs/BranchProtection.md
index 240499a..2fefe65 100644
--- a/docs/BranchProtection.md
+++ b/docs/BranchProtection.md
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List<String>** | | [optional]
+**unprotectedFilePatterns** | **String** | | [optional]
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
diff --git a/docs/CreateBranchProtectionOption.md b/docs/CreateBranchProtectionOption.md
index 88777fe..97a4015 100644
--- a/docs/CreateBranchProtectionOption.md
+++ b/docs/CreateBranchProtectionOption.md
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List<String>** | | [optional]
+**unprotectedFilePatterns** | **String** | | [optional]
diff --git a/docs/CreateForkOption.md b/docs/CreateForkOption.md
index b0519a3..2385282 100644
--- a/docs/CreateForkOption.md
+++ b/docs/CreateForkOption.md
@@ -4,6 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**name** | **String** | name of the forked repository | [optional]
**organization** | **String** | organization name, if forking into an organization | [optional]
diff --git a/docs/CreateRepoOption.md b/docs/CreateRepoOption.md
index bfc44e0..8287f8b 100644
--- a/docs/CreateRepoOption.md
+++ b/docs/CreateRepoOption.md
@@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional]
+**autoInit** | **Boolean** | Whether the repository should be auto-initialized? | [optional]
**defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional]
**description** | **String** | Description of the repository to create | [optional]
**gitignores** | **String** | Gitignores to use | [optional]
diff --git a/docs/CreateTeamOption.md b/docs/CreateTeamOption.md
index 1af07e2..6678757 100644
--- a/docs/CreateTeamOption.md
+++ b/docs/CreateTeamOption.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
**units** | **List<String>** | | [optional]
+**unitsMap** | **Map<String, String>** | | [optional]
diff --git a/docs/CreateUserOption.md b/docs/CreateUserOption.md
index c2efed0..c5f9e11 100644
--- a/docs/CreateUserOption.md
+++ b/docs/CreateUserOption.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**loginName** | **String** | | [optional]
**mustChangePassword** | **Boolean** | | [optional]
**password** | **String** | |
+**restricted** | **Boolean** | | [optional]
**sendNotify** | **Boolean** | | [optional]
**sourceId** | **Long** | | [optional]
**username** | **String** | |
diff --git a/docs/CreateWikiPageOptions.md b/docs/CreateWikiPageOptions.md
new file mode 100644
index 0000000..012d2c3
--- /dev/null
+++ b/docs/CreateWikiPageOptions.md
@@ -0,0 +1,12 @@
+
+# CreateWikiPageOptions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**contentBase64** | **String** | content must be base64 encoded | [optional]
+**message** | **String** | optional commit message summarizing the change | [optional]
+**title** | **String** | page title. leave empty to keep unchanged | [optional]
+
+
+
diff --git a/docs/EditBranchProtectionOption.md b/docs/EditBranchProtectionOption.md
index 61a71bf..a3ece34 100644
--- a/docs/EditBranchProtectionOption.md
+++ b/docs/EditBranchProtectionOption.md
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List<String>** | | [optional]
+**unprotectedFilePatterns** | **String** | | [optional]
diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md
index 49c7bd7..e182276 100644
--- a/docs/EditRepoOption.md
+++ b/docs/EditRepoOption.md
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
**defaultDeleteBranchAfterMerge** | **Boolean** | set to `true` to delete pr branch after merge by default | [optional]
**defaultMergeStyle** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`. | [optional]
**description** | **String** | a short description of the repository. | [optional]
+**enablePrune** | **Boolean** | enable prune - remove obsolete remote-tracking references | [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]
diff --git a/docs/EditTeamOption.md b/docs/EditTeamOption.md
index cc1434c..bd699f9 100644
--- a/docs/EditTeamOption.md
+++ b/docs/EditTeamOption.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
**units** | **List<String>** | | [optional]
+**unitsMap** | **Map<String, String>** | | [optional]
diff --git a/docs/IssueApi.md b/docs/IssueApi.md
index 93b7e24..10c5ebc 100644
--- a/docs/IssueApi.md
+++ b/docs/IssueApi.md
@@ -31,6 +31,7 @@ Method | HTTP request | Description
[**issueGetComment**](IssueApi.md#issueGetComment) | **GET** /repos/{owner}/{repo}/issues/comments/{id} | Get a comment
[**issueGetCommentReactions**](IssueApi.md#issueGetCommentReactions) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue
[**issueGetComments**](IssueApi.md#issueGetComments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue
+[**issueGetCommentsAndTimeline**](IssueApi.md#issueGetCommentsAndTimeline) | **GET** /repos/{owner}/{repo}/issues/{index}/timeline | List all comments and events on an issue
[**issueGetIssue**](IssueApi.md#issueGetIssue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get an issue
[**issueGetIssueReactions**](IssueApi.md#issueGetIssueReactions) | **GET** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue
[**issueGetLabel**](IssueApi.md#issueGetLabel) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label
@@ -2556,6 +2557,106 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **issueGetCommentsAndTimeline**
+> List<TimelineComment> issueGetCommentsAndTimeline(owner, repo, index, since, page, limit, before)
+
+List all comments and events 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+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
+OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | if provided, only comments updated since the specified time are returned.
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | if provided, only comments updated before the provided time are returned.
+try {
+ List result = apiInstance.issueGetCommentsAndTimeline(owner, repo, index, since, page, limit, before);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling IssueApi#issueGetCommentsAndTimeline");
+ 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 |
+ **since** | **OffsetDateTime**| if provided, only comments updated since the specified time are returned. | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+ **before** | **OffsetDateTime**| if provided, only comments updated before the provided time are returned. | [optional]
+
+### Return type
+
+[**List<TimelineComment>**](TimelineComment.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -3287,11 +3388,11 @@ String labels = "labels_example"; // String | comma separated list of labels. Fe
String q = "q_example"; // String | search string
String type = "type_example"; // String | filter by type (issues / pulls) if set
String milestones = "milestones_example"; // String | comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded
-OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | Only show notifications updated after the given time. This is a timestamp in RFC 3339 format
-OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | Only show notifications updated before the given time. This is a timestamp in RFC 3339 format
-String createdBy = "createdBy_example"; // String | filter (issues / pulls) created to
-String assignedBy = "assignedBy_example"; // String | filter (issues / pulls) assigned to
-String mentionedBy = "mentionedBy_example"; // String | filter (issues / pulls) mentioning to
+OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | Only show items updated after the given time. This is a timestamp in RFC 3339 format
+OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | Only show items updated before the given time. This is a timestamp in RFC 3339 format
+String createdBy = "createdBy_example"; // String | Only show items which were created by the the given user
+String assignedBy = "assignedBy_example"; // String | Only show items for which the given user is assigned
+String mentionedBy = "mentionedBy_example"; // String | Only show items in which the given user was mentioned
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
try {
@@ -3314,11 +3415,11 @@ Name | Type | Description | Notes
**q** | **String**| search string | [optional]
**type** | **String**| filter by type (issues / pulls) if set | [optional] [enum: issues, pulls]
**milestones** | **String**| comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded | [optional]
- **since** | **OffsetDateTime**| Only show notifications updated after the given time. This is a timestamp in RFC 3339 format | [optional]
- **before** | **OffsetDateTime**| Only show notifications updated before the given time. This is a timestamp in RFC 3339 format | [optional]
- **createdBy** | **String**| filter (issues / pulls) created to | [optional]
- **assignedBy** | **String**| filter (issues / pulls) assigned to | [optional]
- **mentionedBy** | **String**| filter (issues / pulls) mentioning to | [optional]
+ **since** | **OffsetDateTime**| Only show items updated after the given time. This is a timestamp in RFC 3339 format | [optional]
+ **before** | **OffsetDateTime**| Only show items updated before the given time. This is a timestamp in RFC 3339 format | [optional]
+ **createdBy** | **String**| Only show items which were created by the the given user | [optional]
+ **assignedBy** | **String**| Only show items for which the given user is assigned | [optional]
+ **mentionedBy** | **String**| Only show items in which the given user was mentioned | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
diff --git a/docs/IssueTemplate.md b/docs/IssueTemplate.md
index b0ec2df..f18d615 100644
--- a/docs/IssueTemplate.md
+++ b/docs/IssueTemplate.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**fileName** | **String** | | [optional]
**labels** | **List<String>** | | [optional]
**name** | **String** | | [optional]
+**ref** | **String** | | [optional]
**title** | **String** | | [optional]
diff --git a/docs/MergePullRequestOption.md b/docs/MergePullRequestOption.md
index 56167fb..baae655 100644
--- a/docs/MergePullRequestOption.md
+++ b/docs/MergePullRequestOption.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**mergeTitleField** | **String** | | [optional]
**deleteBranchAfterMerge** | **Boolean** | | [optional]
**forceMerge** | **Boolean** | | [optional]
+**headCommitId** | **String** | | [optional]
diff --git a/docs/MiscellaneousApi.md b/docs/MiscellaneousApi.md
index b4830e2..5d8bec9 100644
--- a/docs/MiscellaneousApi.md
+++ b/docs/MiscellaneousApi.md
@@ -4,12 +4,97 @@ All URIs are relative to *http://localhost/api/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**getNodeInfo**](MiscellaneousApi.md#getNodeInfo) | **GET** /nodeinfo | Returns the nodeinfo of the Gitea application
[**getSigningKey**](MiscellaneousApi.md#getSigningKey) | **GET** /signing-key.gpg | Get default signing-key.gpg
[**getVersion**](MiscellaneousApi.md#getVersion) | **GET** /version | Returns the version of the Gitea application
[**renderMarkdown**](MiscellaneousApi.md#renderMarkdown) | **POST** /markdown | Render a markdown document as HTML
[**renderMarkdownRaw**](MiscellaneousApi.md#renderMarkdownRaw) | **POST** /markdown/raw | Render raw markdown as HTML
+
+# **getNodeInfo**
+> NodeInfo getNodeInfo()
+
+Returns the nodeinfo of the Gitea application
+
+### Example
+```java
+// Import classes:
+//import io.gitea.ApiClient;
+//import io.gitea.ApiException;
+//import io.gitea.Configuration;
+//import io.gitea.auth.*;
+//import io.gitea.api.MiscellaneousApi;
+
+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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+MiscellaneousApi apiInstance = new MiscellaneousApi();
+try {
+ NodeInfo result = apiInstance.getNodeInfo();
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling MiscellaneousApi#getNodeInfo");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**NodeInfo**](NodeInfo.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
# **getSigningKey**
> String getSigningKey()
diff --git a/docs/NodeInfo.md b/docs/NodeInfo.md
new file mode 100644
index 0000000..f8c0f8f
--- /dev/null
+++ b/docs/NodeInfo.md
@@ -0,0 +1,16 @@
+
+# NodeInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**metadata** | **Object** | | [optional]
+**openRegistrations** | **Boolean** | | [optional]
+**protocols** | **List<String>** | | [optional]
+**services** | [**NodeInfoServices**](NodeInfoServices.md) | | [optional]
+**software** | [**NodeInfoSoftware**](NodeInfoSoftware.md) | | [optional]
+**usage** | [**NodeInfoUsage**](NodeInfoUsage.md) | | [optional]
+**version** | **String** | | [optional]
+
+
+
diff --git a/docs/NodeInfoServices.md b/docs/NodeInfoServices.md
new file mode 100644
index 0000000..4f32318
--- /dev/null
+++ b/docs/NodeInfoServices.md
@@ -0,0 +1,11 @@
+
+# NodeInfoServices
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**inbound** | **List<String>** | | [optional]
+**outbound** | **List<String>** | | [optional]
+
+
+
diff --git a/docs/NodeInfoSoftware.md b/docs/NodeInfoSoftware.md
new file mode 100644
index 0000000..795a2cf
--- /dev/null
+++ b/docs/NodeInfoSoftware.md
@@ -0,0 +1,13 @@
+
+# NodeInfoSoftware
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**homepage** | **String** | | [optional]
+**name** | **String** | | [optional]
+**repository** | **String** | | [optional]
+**version** | **String** | | [optional]
+
+
+
diff --git a/docs/NodeInfoUsage.md b/docs/NodeInfoUsage.md
new file mode 100644
index 0000000..1ec3d46
--- /dev/null
+++ b/docs/NodeInfoUsage.md
@@ -0,0 +1,12 @@
+
+# NodeInfoUsage
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**localComments** | **Long** | | [optional]
+**localPosts** | **Long** | | [optional]
+**users** | [**NodeInfoUsageUsers**](NodeInfoUsageUsers.md) | | [optional]
+
+
+
diff --git a/docs/NodeInfoUsageUsers.md b/docs/NodeInfoUsageUsers.md
new file mode 100644
index 0000000..7878160
--- /dev/null
+++ b/docs/NodeInfoUsageUsers.md
@@ -0,0 +1,12 @@
+
+# NodeInfoUsageUsers
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**activeHalfyear** | **Long** | | [optional]
+**activeMonth** | **Long** | | [optional]
+**total** | **Long** | | [optional]
+
+
+
diff --git a/docs/NotificationApi.md b/docs/NotificationApi.md
index ddf4c31..45a5f50 100644
--- a/docs/NotificationApi.md
+++ b/docs/NotificationApi.md
@@ -391,7 +391,7 @@ This endpoint does not need any parameter.
# **notifyReadList**
-> notifyReadList(lastReadAt, all, statusTypes, toStatus)
+> List<NotificationThread> notifyReadList(lastReadAt, all, statusTypes, toStatus)
Mark notification threads as read, pinned or unread
@@ -453,7 +453,8 @@ String all = "all_example"; // String | If true, mark all notifications on this
List statusTypes = Arrays.asList("statusTypes_example"); // List | Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.
String toStatus = "toStatus_example"; // String | Status to mark notifications as, Defaults to read.
try {
- apiInstance.notifyReadList(lastReadAt, all, statusTypes, toStatus);
+ List result = apiInstance.notifyReadList(lastReadAt, all, statusTypes, toStatus);
+ System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationApi#notifyReadList");
e.printStackTrace();
@@ -471,7 +472,7 @@ Name | Type | Description | Notes
### Return type
-null (empty response body)
+[**List<NotificationThread>**](NotificationThread.md)
### Authorization
@@ -484,7 +485,7 @@ null (empty response body)
# **notifyReadRepoList**
-> notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt)
+> List<NotificationThread> notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt)
Mark notification threads as read, pinned or unread on a specific repo
@@ -548,7 +549,8 @@ List statusTypes = Arrays.asList("statusTypes_example"); // List
String toStatus = "toStatus_example"; // String | Status to mark notifications as. Defaults to read.
OffsetDateTime lastReadAt = OffsetDateTime.now(); // OffsetDateTime | Describes the last point that notifications were checked. Anything updated since this time will not be updated.
try {
- apiInstance.notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt);
+ List result = apiInstance.notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt);
+ System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationApi#notifyReadRepoList");
e.printStackTrace();
@@ -568,7 +570,7 @@ Name | Type | Description | Notes
### Return type
-null (empty response body)
+[**List<NotificationThread>**](NotificationThread.md)
### Authorization
@@ -581,7 +583,7 @@ null (empty response body)
# **notifyReadThread**
-> notifyReadThread(id, toStatus)
+> NotificationThread notifyReadThread(id, toStatus)
Mark notification thread as read by ID
@@ -641,7 +643,8 @@ NotificationApi apiInstance = new NotificationApi();
String id = "id_example"; // String | id of notification thread
String toStatus = "read"; // String | Status to mark notifications as
try {
- apiInstance.notifyReadThread(id, toStatus);
+ NotificationThread result = apiInstance.notifyReadThread(id, toStatus);
+ System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationApi#notifyReadThread");
e.printStackTrace();
@@ -657,7 +660,7 @@ Name | Type | Description | Notes
### Return type
-null (empty response body)
+[**NotificationThread**](NotificationThread.md)
### Authorization
diff --git a/docs/NotificationSubject.md b/docs/NotificationSubject.md
index 2bf0622..64b7c10 100644
--- a/docs/NotificationSubject.md
+++ b/docs/NotificationSubject.md
@@ -4,6 +4,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**htmlUrl** | **String** | | [optional]
+**latestCommentHtmlUrl** | **String** | | [optional]
**latestCommentUrl** | **String** | | [optional]
**state** | **String** | | [optional]
**title** | **String** | | [optional]
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index e2ff90b..2ccc545 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -27,6 +27,7 @@ Method | HTTP request | Description
[**orgGetHook**](OrganizationApi.md#orgGetHook) | **GET** /orgs/{org}/hooks/{id} | Get a hook
[**orgGetLabel**](OrganizationApi.md#orgGetLabel) | **GET** /orgs/{org}/labels/{id} | Get a single label
[**orgGetTeam**](OrganizationApi.md#orgGetTeam) | **GET** /teams/{id} | Get a team
+[**orgGetUserPermissions**](OrganizationApi.md#orgGetUserPermissions) | **GET** /users/{username}/orgs/{org}/permissions | Get user permissions in organization
[**orgIsMember**](OrganizationApi.md#orgIsMember) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization
[**orgIsPublicMember**](OrganizationApi.md#orgIsPublicMember) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization
[**orgListCurrentUserOrgs**](OrganizationApi.md#orgListCurrentUserOrgs) | **GET** /user/orgs | List the current user's organizations
@@ -2099,6 +2100,96 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **orgGetUserPermissions**
+> OrganizationPermissions orgGetUserPermissions(username, org)
+
+Get user permissions in 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String username = "username_example"; // String | username of user
+String org = "org_example"; // String | name of the organization
+try {
+ OrganizationPermissions result = apiInstance.orgGetUserPermissions(username, org);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#orgGetUserPermissions");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| username of user |
+ **org** | **String**| name of the organization |
+
+### Return type
+
+[**OrganizationPermissions**](OrganizationPermissions.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
diff --git a/docs/OrganizationPermissions.md b/docs/OrganizationPermissions.md
new file mode 100644
index 0000000..e5a383c
--- /dev/null
+++ b/docs/OrganizationPermissions.md
@@ -0,0 +1,14 @@
+
+# OrganizationPermissions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**canCreateRepository** | **Boolean** | | [optional]
+**canRead** | **Boolean** | | [optional]
+**canWrite** | **Boolean** | | [optional]
+**isAdmin** | **Boolean** | | [optional]
+**isOwner** | **Boolean** | | [optional]
+
+
+
diff --git a/docs/RepoTransfer.md b/docs/RepoTransfer.md
new file mode 100644
index 0000000..27f569d
--- /dev/null
+++ b/docs/RepoTransfer.md
@@ -0,0 +1,12 @@
+
+# RepoTransfer
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**doer** | [**User**](User.md) | | [optional]
+**recipient** | [**User**](User.md) | | [optional]
+**teams** | [**List<Team>**](Team.md) | | [optional]
+
+
+
diff --git a/docs/Repository.md b/docs/Repository.md
index bdee5af..f856b2e 100644
--- a/docs/Repository.md
+++ b/docs/Repository.md
@@ -32,6 +32,7 @@ Name | Type | Description | Notes
**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
**mirror** | **Boolean** | | [optional]
**mirrorInterval** | **String** | | [optional]
+**mirrorUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**name** | **String** | | [optional]
**openIssuesCount** | **Long** | | [optional]
**openPrCounter** | **Long** | | [optional]
@@ -41,6 +42,7 @@ Name | Type | Description | Notes
**permissions** | [**Permission**](Permission.md) | | [optional]
**_private** | **Boolean** | | [optional]
**releaseCounter** | **Long** | | [optional]
+**repoTransfer** | [**RepoTransfer**](RepoTransfer.md) | | [optional]
**size** | **Long** | | [optional]
**sshUrl** | **String** | | [optional]
**starsCount** | **Long** | | [optional]
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index 60ce0b6..2757483 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost/api/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**acceptRepoTransfer**](RepositoryApi.md#acceptRepoTransfer) | **POST** /repos/{owner}/{repo}/transfer/accept | Accept a repo transfer
[**createCurrentUserRepo**](RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
[**createFork**](RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository
[**generateRepo**](RepositoryApi.md#generateRepo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template
@@ -11,6 +12,7 @@ Method | HTTP request | Description
[**getBlob**](RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
[**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
+[**rejectRepoTransfer**](RepositoryApi.md#rejectRepoTransfer) | **POST** /repos/{owner}/{repo}/transfer/reject | Reject a repo transfer
[**repoAddCollaborator**](RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
[**repoAddTeam**](RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository
[**repoAddTopic**](RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
@@ -28,6 +30,7 @@ Method | HTTP request | Description
[**repoCreateReleaseAttachment**](RepositoryApi.md#repoCreateReleaseAttachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
[**repoCreateStatus**](RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
[**repoCreateTag**](RepositoryApi.md#repoCreateTag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository
+[**repoCreateWikiPage**](RepositoryApi.md#repoCreateWikiPage) | **POST** /repos/{owner}/{repo}/wiki/new | Create a wiki page
[**repoDelete**](RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository
[**repoDeleteBranch**](RepositoryApi.md#repoDeleteBranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository
[**repoDeleteBranchProtection**](RepositoryApi.md#repoDeleteBranchProtection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository
@@ -44,9 +47,10 @@ Method | HTTP request | Description
[**repoDeleteTag**](RepositoryApi.md#repoDeleteTag) | **DELETE** /repos/{owner}/{repo}/tags/{tag} | Delete a repository's tag by name
[**repoDeleteTeam**](RepositoryApi.md#repoDeleteTeam) | **DELETE** /repos/{owner}/{repo}/teams/{team} | Delete a team from a repository
[**repoDeleteTopic**](RepositoryApi.md#repoDeleteTopic) | **DELETE** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository
+[**repoDeleteWikiPage**](RepositoryApi.md#repoDeleteWikiPage) | **DELETE** /repos/{owner}/{repo}/wiki/page/{pageName} | Delete a wiki page
[**repoDismissPullReview**](RepositoryApi.md#repoDismissPullReview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals | Dismiss a review for a pull request
-[**repoDownloadPullDiff**](RepositoryApi.md#repoDownloadPullDiff) | **GET** /repos/{owner}/{repo}/pulls/{index}.diff | Get a pull request diff
-[**repoDownloadPullPatch**](RepositoryApi.md#repoDownloadPullPatch) | **GET** /repos/{owner}/{repo}/pulls/{index}.patch | Get a pull request patch file
+[**repoDownloadCommitDiffOrPatch**](RepositoryApi.md#repoDownloadCommitDiffOrPatch) | **GET** /repos/{owner}/{repo}/git/commits/{sha}.{diffType} | Get a commit's diff or patch
+[**repoDownloadPullDiffOrPatch**](RepositoryApi.md#repoDownloadPullDiffOrPatch) | **GET** /repos/{owner}/{repo}/pulls/{index}.{diffType} | Get a pull request diff or patch
[**repoEdit**](RepositoryApi.md#repoEdit) | **PATCH** /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed.
[**repoEditBranchProtection**](RepositoryApi.md#repoEditBranchProtection) | **PATCH** /repos/{owner}/{repo}/branch_protections/{name} | Edit a branch protections for a repository. Only fields that are set will be changed
[**repoEditGitHook**](RepositoryApi.md#repoEditGitHook) | **PATCH** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository
@@ -54,6 +58,7 @@ Method | HTTP request | Description
[**repoEditPullRequest**](RepositoryApi.md#repoEditPullRequest) | **PATCH** /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
[**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
+[**repoEditWikiPage**](RepositoryApi.md#repoEditWikiPage) | **PATCH** /repos/{owner}/{repo}/wiki/page/{pageName} | Edit a wiki page
[**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
@@ -82,6 +87,9 @@ Method | HTTP request | Description
[**repoGetReviewers**](RepositoryApi.md#repoGetReviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo
[**repoGetSingleCommit**](RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
[**repoGetTag**](RepositoryApi.md#repoGetTag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name
+[**repoGetWikiPage**](RepositoryApi.md#repoGetWikiPage) | **GET** /repos/{owner}/{repo}/wiki/page/{pageName} | Get a wiki page
+[**repoGetWikiPageRevisions**](RepositoryApi.md#repoGetWikiPageRevisions) | **GET** /repos/{owner}/{repo}/wiki/revisions/{pageName} | Get revisions of a wiki page
+[**repoGetWikiPages**](RepositoryApi.md#repoGetWikiPages) | **GET** /repos/{owner}/{repo}/wiki/pages | Get all wiki pages
[**repoListAllGitRefs**](RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs
[**repoListBranchProtection**](RepositoryApi.md#repoListBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository
[**repoListBranches**](RepositoryApi.md#repoListBranches) | **GET** /repos/{owner}/{repo}/branches | List a repository's branches
@@ -122,6 +130,96 @@ Method | HTTP request | Description
[**userTrackedTimes**](RepositoryApi.md#userTrackedTimes) | **GET** /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo
+
+# **acceptRepoTransfer**
+> Repository acceptRepoTransfer(owner, repo)
+
+Accept a repo transfer
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo to transfer
+String repo = "repo_example"; // String | name of the repo to transfer
+try {
+ Repository result = apiInstance.acceptRepoTransfer(owner, repo);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#acceptRepoTransfer");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo to transfer |
+ **repo** | **String**| name of the repo to transfer |
+
+### Return type
+
+[**Repository**](Repository.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
# **createCurrentUserRepo**
> Repository createCurrentUserRepo(body)
@@ -765,6 +863,96 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **rejectRepoTransfer**
+> Repository rejectRepoTransfer(owner, repo)
+
+Reject a repo transfer
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo to transfer
+String repo = "repo_example"; // String | name of the repo to transfer
+try {
+ Repository result = apiInstance.rejectRepoTransfer(owner, repo);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#rejectRepoTransfer");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo to transfer |
+ **repo** | **String**| name of the repo to transfer |
+
+### Return type
+
+[**Repository**](Repository.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -2344,6 +2532,98 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
+
+# **repoCreateWikiPage**
+> WikiPage repoCreateWikiPage(owner, repo, body)
+
+Create a wiki page
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+CreateWikiPageOptions body = new CreateWikiPageOptions(); // CreateWikiPageOptions |
+try {
+ WikiPage result = apiInstance.repoCreateWikiPage(owner, repo, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoCreateWikiPage");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **body** | [**CreateWikiPageOptions**](CreateWikiPageOptions.md)| | [optional]
+
+### Return type
+
+[**WikiPage**](WikiPage.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, text/html
+
# **repoDelete**
> repoDelete(owner, repo)
@@ -3807,6 +4087,97 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
+
+# **repoDeleteWikiPage**
+> repoDeleteWikiPage(owner, repo, pageName)
+
+Delete a wiki page
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String pageName = "pageName_example"; // String | name of the page
+try {
+ apiInstance.repoDeleteWikiPage(owner, repo, pageName);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoDeleteWikiPage");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **pageName** | **String**| name of the page |
+
+### 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), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json, text/html
+
# **repoDismissPullReview**
> PullReview repoDismissPullReview(owner, repo, index, id, body)
@@ -3903,11 +4274,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
-
-# **repoDownloadPullDiff**
-> String repoDownloadPullDiff(owner, repo, index)
+
+# **repoDownloadCommitDiffOrPatch**
+> String repoDownloadCommitDiffOrPatch(owner, repo, sha, diffType)
-Get a pull request diff
+Get a commit's diff or patch
### Example
```java
@@ -3964,12 +4335,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 index = 789L; // Long | index of the pull request to get
+String sha = "sha_example"; // String | SHA of the commit to get
+String diffType = "diffType_example"; // String | whether the output is diff or patch
try {
- String result = apiInstance.repoDownloadPullDiff(owner, repo, index);
+ String result = apiInstance.repoDownloadCommitDiffOrPatch(owner, repo, sha, diffType);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDownloadPullDiff");
+ System.err.println("Exception when calling RepositoryApi#repoDownloadCommitDiffOrPatch");
e.printStackTrace();
}
```
@@ -3980,7 +4352,8 @@ 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 |
+ **sha** | **String**| SHA of the commit to get |
+ **diffType** | **String**| whether the output is diff or patch | [enum: diff, patch]
### Return type
@@ -3995,11 +4368,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: text/plain
-
-# **repoDownloadPullPatch**
-> String repoDownloadPullPatch(owner, repo, index)
+
+# **repoDownloadPullDiffOrPatch**
+> String repoDownloadPullDiffOrPatch(owner, repo, index, diffType, binary)
-Get a pull request patch file
+Get a pull request diff or patch
### Example
```java
@@ -4057,11 +4430,13 @@ 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
+String diffType = "diffType_example"; // String | whether the output is diff or patch
+Boolean binary = true; // Boolean | whether to include binary file changes. if true, the diff is applicable with `git apply`
try {
- String result = apiInstance.repoDownloadPullPatch(owner, repo, index);
+ String result = apiInstance.repoDownloadPullDiffOrPatch(owner, repo, index, diffType, binary);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling RepositoryApi#repoDownloadPullPatch");
+ System.err.println("Exception when calling RepositoryApi#repoDownloadPullDiffOrPatch");
e.printStackTrace();
}
```
@@ -4073,6 +4448,8 @@ 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 |
+ **diffType** | **String**| whether the output is diff or patch | [enum: diff, patch]
+ **binary** | **Boolean**| whether to include binary file changes. if true, the diff is applicable with `git apply` | [optional]
### Return type
@@ -4745,6 +5122,100 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+# **repoEditWikiPage**
+> WikiPage repoEditWikiPage(owner, repo, pageName, body)
+
+Edit a wiki page
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String pageName = "pageName_example"; // String | name of the page
+CreateWikiPageOptions body = new CreateWikiPageOptions(); // CreateWikiPageOptions |
+try {
+ WikiPage result = apiInstance.repoEditWikiPage(owner, repo, pageName, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoEditWikiPage");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **pageName** | **String**| name of the page |
+ **body** | [**CreateWikiPageOptions**](CreateWikiPageOptions.md)| | [optional]
+
+### Return type
+
+[**WikiPage**](WikiPage.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, text/html
+
# **repoGet**
> Repository repoGet(owner, repo)
@@ -4837,7 +5308,7 @@ Name | Type | Description | Notes
# **repoGetAllCommits**
-> List<Commit> repoGetAllCommits(owner, repo, sha, page, limit)
+> List<Commit> repoGetAllCommits(owner, repo, sha, path, page, limit)
Get a list of all commits from a repository
@@ -4897,10 +5368,11 @@ 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 or branch to start listing commits from (usually 'master')
+String path = "path_example"; // String | filepath of a file/dir
Integer page = 56; // Integer | page number of results to return (1-based)
-Integer limit = 56; // Integer | page size of results
+Integer limit = 56; // Integer | page size of results (ignored if used with 'path')
try {
- List result = apiInstance.repoGetAllCommits(owner, repo, sha, page, limit);
+ List result = apiInstance.repoGetAllCommits(owner, repo, sha, path, page, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoGetAllCommits");
@@ -4915,8 +5387,9 @@ Name | Type | Description | Notes
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**sha** | **String**| SHA or branch to start listing commits from (usually 'master') | [optional]
+ **path** | **String**| filepath of a file/dir | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
- **limit** | **Integer**| page size of results | [optional]
+ **limit** | **Integer**| page size of results (ignored if used with 'path') | [optional]
### Return type
@@ -7321,6 +7794,286 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoGetWikiPage**
+> WikiPage repoGetWikiPage(owner, repo, pageName)
+
+Get a wiki page
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String pageName = "pageName_example"; // String | name of the page
+try {
+ WikiPage result = apiInstance.repoGetWikiPage(owner, repo, pageName);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoGetWikiPage");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **pageName** | **String**| name of the page |
+
+### Return type
+
+[**WikiPage**](WikiPage.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoGetWikiPageRevisions**
+> WikiCommitList repoGetWikiPageRevisions(owner, repo, pageName, page)
+
+Get revisions of a wiki page
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repo
+String repo = "repo_example"; // String | name of the repo
+String pageName = "pageName_example"; // String | name of the page
+Integer page = 56; // Integer | page number of results to return (1-based)
+try {
+ WikiCommitList result = apiInstance.repoGetWikiPageRevisions(owner, repo, pageName, page);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoGetWikiPageRevisions");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **pageName** | **String**| name of the page |
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+
+### Return type
+
+[**WikiCommitList**](WikiCommitList.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/plain
+ - **Accept**: application/json
+
+
+# **repoGetWikiPages**
+> List<WikiPageMetaData> repoGetWikiPages(owner, repo, page, limit)
+
+Get all wiki pages
+
+### 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: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+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 of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ List result = apiInstance.repoGetWikiPages(owner, repo, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#repoGetWikiPages");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repo |
+ **repo** | **String**| name of the repo |
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**List<WikiPageMetaData>**](WikiPageMetaData.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: application/json, text/plain
@@ -10264,7 +11017,7 @@ Name | Type | Description | Notes
# **repoUpdatePullRequest**
-> repoUpdatePullRequest(owner, repo, index)
+> repoUpdatePullRequest(owner, repo, index, style)
Merge PR's baseBranch into headBranch
@@ -10324,8 +11077,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 get
+String style = "style_example"; // String | how to update pull request
try {
- apiInstance.repoUpdatePullRequest(owner, repo, index);
+ apiInstance.repoUpdatePullRequest(owner, repo, index, style);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoUpdatePullRequest");
e.printStackTrace();
@@ -10339,6 +11093,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 get |
+ **style** | **String**| how to update pull request | [optional] [enum: merge, rebase]
### Return type
diff --git a/docs/Team.md b/docs/Team.md
index 580dde5..f9c9101 100644
--- a/docs/Team.md
+++ b/docs/Team.md
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
**organization** | [**Organization**](Organization.md) | | [optional]
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
**units** | **List<String>** | | [optional]
+**unitsMap** | **Map<String, String>** | | [optional]
diff --git a/docs/TimelineComment.md b/docs/TimelineComment.md
new file mode 100644
index 0000000..7b512e5
--- /dev/null
+++ b/docs/TimelineComment.md
@@ -0,0 +1,38 @@
+
+# TimelineComment
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**assignee** | [**User**](User.md) | | [optional]
+**assigneeTeam** | [**Team**](Team.md) | | [optional]
+**body** | **String** | | [optional]
+**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+**dependentIssue** | [**Issue**](Issue.md) | | [optional]
+**htmlUrl** | **String** | | [optional]
+**id** | **Long** | | [optional]
+**issueUrl** | **String** | | [optional]
+**label** | [**Label**](Label.md) | | [optional]
+**milestone** | [**Milestone**](Milestone.md) | | [optional]
+**newRef** | **String** | | [optional]
+**newTitle** | **String** | | [optional]
+**oldMilestone** | [**Milestone**](Milestone.md) | | [optional]
+**oldProjectId** | **Long** | | [optional]
+**oldRef** | **String** | | [optional]
+**oldTitle** | **String** | | [optional]
+**projectId** | **Long** | | [optional]
+**pullRequestUrl** | **String** | | [optional]
+**refAction** | **String** | | [optional]
+**refComment** | [**Comment**](Comment.md) | | [optional]
+**refCommitSha** | **String** | commit SHA where issue/PR was referenced | [optional]
+**refIssue** | [**Issue**](Issue.md) | | [optional]
+**removedAssignee** | **Boolean** | whether the assignees were removed or added | [optional]
+**resolveDoer** | [**User**](User.md) | | [optional]
+**reviewId** | **Long** | | [optional]
+**trackedTime** | [**TrackedTime**](TrackedTime.md) | | [optional]
+**type** | **String** | | [optional]
+**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+**user** | [**User**](User.md) | | [optional]
+
+
+
diff --git a/docs/WikiCommit.md b/docs/WikiCommit.md
new file mode 100644
index 0000000..5bab920
--- /dev/null
+++ b/docs/WikiCommit.md
@@ -0,0 +1,13 @@
+
+# WikiCommit
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**author** | [**CommitUser**](CommitUser.md) | | [optional]
+**commiter** | [**CommitUser**](CommitUser.md) | | [optional]
+**message** | **String** | | [optional]
+**sha** | **String** | | [optional]
+
+
+
diff --git a/docs/WikiCommitList.md b/docs/WikiCommitList.md
new file mode 100644
index 0000000..09356ed
--- /dev/null
+++ b/docs/WikiCommitList.md
@@ -0,0 +1,11 @@
+
+# WikiCommitList
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**commits** | [**List<WikiCommit>**](WikiCommit.md) | | [optional]
+**count** | **Long** | | [optional]
+
+
+
diff --git a/docs/WikiPage.md b/docs/WikiPage.md
new file mode 100644
index 0000000..70d6d22
--- /dev/null
+++ b/docs/WikiPage.md
@@ -0,0 +1,17 @@
+
+# WikiPage
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**commitCount** | **Long** | | [optional]
+**contentBase64** | **String** | Page content, base64 encoded | [optional]
+**footer** | **String** | | [optional]
+**htmlUrl** | **String** | | [optional]
+**lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional]
+**sidebar** | **String** | | [optional]
+**subUrl** | **String** | | [optional]
+**title** | **String** | | [optional]
+
+
+
diff --git a/docs/WikiPageMetaData.md b/docs/WikiPageMetaData.md
new file mode 100644
index 0000000..e2d4d35
--- /dev/null
+++ b/docs/WikiPageMetaData.md
@@ -0,0 +1,13 @@
+
+# WikiPageMetaData
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**htmlUrl** | **String** | | [optional]
+**lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional]
+**subUrl** | **String** | | [optional]
+**title** | **String** | | [optional]
+
+
+
diff --git a/src/main/java/io/gitea/api/AdminApi.java b/src/main/java/io/gitea/api/AdminApi.java
index d6fd87b..5489d5e 100644
--- a/src/main/java/io/gitea/api/AdminApi.java
+++ b/src/main/java/io/gitea/api/AdminApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/api/IssueApi.java b/src/main/java/io/gitea/api/IssueApi.java
index a4ddcc8..750f15b 100644
--- a/src/main/java/io/gitea/api/IssueApi.java
+++ b/src/main/java/io/gitea/api/IssueApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -46,6 +46,7 @@ import io.gitea.model.Label;
import io.gitea.model.Milestone;
import org.threeten.bp.OffsetDateTime;
import io.gitea.model.Reaction;
+import io.gitea.model.TimelineComment;
import io.gitea.model.TrackedTime;
import io.gitea.model.User;
import io.gitea.model.WatchInfo;
@@ -3998,6 +3999,173 @@ public class IssueApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for issueGetCommentsAndTimeline
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue (required)
+ * @param since if provided, only comments updated since the specified time are returned. (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @param before if provided, only comments updated before the provided time are returned. (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 issueGetCommentsAndTimelineCall(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before, 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}/timeline"
+ .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();
+ if (since != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("since", since));
+ if (page != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
+ if (limit != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit));
+ if (before != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("before", before));
+
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call issueGetCommentsAndTimelineValidateBeforeCall(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before, 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 issueGetCommentsAndTimeline(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling issueGetCommentsAndTimeline(Async)");
+ }
+
+ // verify the required parameter 'index' is set
+ if (index == null) {
+ throw new ApiException("Missing the required parameter 'index' when calling issueGetCommentsAndTimeline(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = issueGetCommentsAndTimelineCall(owner, repo, index, since, page, limit, before, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * List all comments and events on an issue
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue (required)
+ * @param since if provided, only comments updated since the specified time are returned. (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @param before if provided, only comments updated before the provided time are returned. (optional)
+ * @return List<TimelineComment>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public List issueGetCommentsAndTimeline(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before) throws ApiException {
+ ApiResponse> resp = issueGetCommentsAndTimelineWithHttpInfo(owner, repo, index, since, page, limit, before);
+ return resp.getData();
+ }
+
+ /**
+ * List all comments and events on an issue
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue (required)
+ * @param since if provided, only comments updated since the specified time are returned. (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @param before if provided, only comments updated before the provided time are returned. (optional)
+ * @return ApiResponse<List<TimelineComment>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse> issueGetCommentsAndTimelineWithHttpInfo(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before) throws ApiException {
+ com.squareup.okhttp.Call call = issueGetCommentsAndTimelineValidateBeforeCall(owner, repo, index, since, page, limit, before, null, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * List all comments and events on an issue (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param index index of the issue (required)
+ * @param since if provided, only comments updated since the specified time are returned. (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @param before if provided, only comments updated before the provided time are returned. (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 issueGetCommentsAndTimelineAsync(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before, 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 = issueGetCommentsAndTimelineValidateBeforeCall(owner, repo, index, since, page, limit, before, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for issueGetIssue
* @param owner owner of the repo (required)
@@ -5048,11 +5216,11 @@ public class IssueApi {
* @param q search string (optional)
* @param type filter by type (issues / pulls) if set (optional)
* @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional)
- * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)
- * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)
- * @param createdBy filter (issues / pulls) created to (optional)
- * @param assignedBy filter (issues / pulls) assigned to (optional)
- * @param mentionedBy filter (issues / pulls) mentioning to (optional)
+ * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param createdBy Only show items which were created by the the given user (optional)
+ * @param assignedBy Only show items for which the given user is assigned (optional)
+ * @param mentionedBy Only show items in which the given user was mentioned (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param progressListener Progress listener
@@ -5156,11 +5324,11 @@ public class IssueApi {
* @param q search string (optional)
* @param type filter by type (issues / pulls) if set (optional)
* @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional)
- * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)
- * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)
- * @param createdBy filter (issues / pulls) created to (optional)
- * @param assignedBy filter (issues / pulls) assigned to (optional)
- * @param mentionedBy filter (issues / pulls) mentioning to (optional)
+ * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param createdBy Only show items which were created by the the given user (optional)
+ * @param assignedBy Only show items for which the given user is assigned (optional)
+ * @param mentionedBy Only show items in which the given user was mentioned (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return List<Issue>
@@ -5181,11 +5349,11 @@ public class IssueApi {
* @param q search string (optional)
* @param type filter by type (issues / pulls) if set (optional)
* @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional)
- * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)
- * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)
- * @param createdBy filter (issues / pulls) created to (optional)
- * @param assignedBy filter (issues / pulls) assigned to (optional)
- * @param mentionedBy filter (issues / pulls) mentioning to (optional)
+ * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param createdBy Only show items which were created by the the given user (optional)
+ * @param assignedBy Only show items for which the given user is assigned (optional)
+ * @param mentionedBy Only show items in which the given user was mentioned (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return ApiResponse<List<Issue>>
@@ -5207,11 +5375,11 @@ public class IssueApi {
* @param q search string (optional)
* @param type filter by type (issues / pulls) if set (optional)
* @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional)
- * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)
- * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)
- * @param createdBy filter (issues / pulls) created to (optional)
- * @param assignedBy filter (issues / pulls) assigned to (optional)
- * @param mentionedBy filter (issues / pulls) mentioning to (optional)
+ * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional)
+ * @param createdBy Only show items which were created by the the given user (optional)
+ * @param assignedBy Only show items for which the given user is assigned (optional)
+ * @param mentionedBy Only show items in which the given user was mentioned (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param callback The callback to be executed when the API call finishes
diff --git a/src/main/java/io/gitea/api/MiscellaneousApi.java b/src/main/java/io/gitea/api/MiscellaneousApi.java
index 6e9b876..74ab056 100644
--- a/src/main/java/io/gitea/api/MiscellaneousApi.java
+++ b/src/main/java/io/gitea/api/MiscellaneousApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -28,6 +28,7 @@ import java.io.IOException;
import io.gitea.model.MarkdownOption;
+import io.gitea.model.NodeInfo;
import io.gitea.model.ServerVersion;
import java.lang.reflect.Type;
@@ -55,6 +56,119 @@ public class MiscellaneousApi {
this.apiClient = apiClient;
}
+ /**
+ * Build call for getNodeInfo
+ * @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 getNodeInfoCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/nodeinfo";
+
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call getNodeInfoValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+
+ com.squareup.okhttp.Call call = getNodeInfoCall(progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Returns the nodeinfo of the Gitea application
+ *
+ * @return NodeInfo
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public NodeInfo getNodeInfo() throws ApiException {
+ ApiResponse resp = getNodeInfoWithHttpInfo();
+ return resp.getData();
+ }
+
+ /**
+ * Returns the nodeinfo of the Gitea application
+ *
+ * @return ApiResponse<NodeInfo>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse getNodeInfoWithHttpInfo() throws ApiException {
+ com.squareup.okhttp.Call call = getNodeInfoValidateBeforeCall(null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Returns the nodeinfo of the Gitea application (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 getNodeInfoAsync(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 = getNodeInfoValidateBeforeCall(progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for getSigningKey
* @param progressListener Progress listener
diff --git a/src/main/java/io/gitea/api/NotificationApi.java b/src/main/java/io/gitea/api/NotificationApi.java
index 8550c82..7a87984 100644
--- a/src/main/java/io/gitea/api/NotificationApi.java
+++ b/src/main/java/io/gitea/api/NotificationApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -698,10 +698,12 @@ public class NotificationApi {
* @param all If true, mark all notifications on this repo. Default value is false (optional)
* @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)
* @param toStatus Status to mark notifications as, Defaults to read. (optional)
+ * @return List<NotificationThread>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public void notifyReadList(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException {
- notifyReadListWithHttpInfo(lastReadAt, all, statusTypes, toStatus);
+ public List notifyReadList(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException {
+ ApiResponse> resp = notifyReadListWithHttpInfo(lastReadAt, all, statusTypes, toStatus);
+ return resp.getData();
}
/**
@@ -711,12 +713,13 @@ public class NotificationApi {
* @param all If true, mark all notifications on this repo. Default value is false (optional)
* @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)
* @param toStatus Status to mark notifications as, Defaults to read. (optional)
- * @return ApiResponse<Void>
+ * @return ApiResponse<List<NotificationThread>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse notifyReadListWithHttpInfo(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException {
+ public ApiResponse> notifyReadListWithHttpInfo(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException {
com.squareup.okhttp.Call call = notifyReadListValidateBeforeCall(lastReadAt, all, statusTypes, toStatus, null, null);
- return apiClient.execute(call);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
}
/**
@@ -730,7 +733,7 @@ public class NotificationApi {
* @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 notifyReadListAsync(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call notifyReadListAsync(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus, final ApiCallback> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -752,7 +755,8 @@ public class NotificationApi {
}
com.squareup.okhttp.Call call = notifyReadListValidateBeforeCall(lastReadAt, all, statusTypes, toStatus, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
@@ -847,10 +851,12 @@ public class NotificationApi {
* @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)
* @param toStatus Status to mark notifications as. Defaults to read. (optional)
* @param lastReadAt Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)
+ * @return List<NotificationThread>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public void notifyReadRepoList(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
- notifyReadRepoListWithHttpInfo(owner, repo, all, statusTypes, toStatus, lastReadAt);
+ public List notifyReadRepoList(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
+ ApiResponse> resp = notifyReadRepoListWithHttpInfo(owner, repo, all, statusTypes, toStatus, lastReadAt);
+ return resp.getData();
}
/**
@@ -862,12 +868,13 @@ public class NotificationApi {
* @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)
* @param toStatus Status to mark notifications as. Defaults to read. (optional)
* @param lastReadAt Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)
- * @return ApiResponse<Void>
+ * @return ApiResponse<List<NotificationThread>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse notifyReadRepoListWithHttpInfo(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
+ public ApiResponse> notifyReadRepoListWithHttpInfo(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
com.squareup.okhttp.Call call = notifyReadRepoListValidateBeforeCall(owner, repo, all, statusTypes, toStatus, lastReadAt, null, null);
- return apiClient.execute(call);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
}
/**
@@ -883,7 +890,7 @@ public class NotificationApi {
* @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 notifyReadRepoListAsync(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call notifyReadRepoListAsync(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt, final ApiCallback> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -905,7 +912,8 @@ public class NotificationApi {
}
com.squareup.okhttp.Call call = notifyReadRepoListValidateBeforeCall(owner, repo, all, statusTypes, toStatus, lastReadAt, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
@@ -980,10 +988,12 @@ public class NotificationApi {
*
* @param id id of notification thread (required)
* @param toStatus Status to mark notifications as (optional, default to read)
+ * @return NotificationThread
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public void notifyReadThread(String id, String toStatus) throws ApiException {
- notifyReadThreadWithHttpInfo(id, toStatus);
+ public NotificationThread notifyReadThread(String id, String toStatus) throws ApiException {
+ ApiResponse resp = notifyReadThreadWithHttpInfo(id, toStatus);
+ return resp.getData();
}
/**
@@ -991,12 +1001,13 @@ public class NotificationApi {
*
* @param id id of notification thread (required)
* @param toStatus Status to mark notifications as (optional, default to read)
- * @return ApiResponse<Void>
+ * @return ApiResponse<NotificationThread>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse notifyReadThreadWithHttpInfo(String id, String toStatus) throws ApiException {
+ public ApiResponse notifyReadThreadWithHttpInfo(String id, String toStatus) throws ApiException {
com.squareup.okhttp.Call call = notifyReadThreadValidateBeforeCall(id, toStatus, null, null);
- return apiClient.execute(call);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
}
/**
@@ -1008,7 +1019,7 @@ public class NotificationApi {
* @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 notifyReadThreadAsync(String id, String toStatus, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call notifyReadThreadAsync(String id, String toStatus, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1030,7 +1041,8 @@ public class NotificationApi {
}
com.squareup.okhttp.Call call = notifyReadThreadValidateBeforeCall(id, toStatus, 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 6941ebe..a8924c8 100644
--- a/src/main/java/io/gitea/api/OrganizationApi.java
+++ b/src/main/java/io/gitea/api/OrganizationApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -40,6 +40,7 @@ import io.gitea.model.Hook;
import io.gitea.model.InlineResponse200;
import io.gitea.model.Label;
import io.gitea.model.Organization;
+import io.gitea.model.OrganizationPermissions;
import io.gitea.model.Repository;
import io.gitea.model.Team;
import io.gitea.model.User;
@@ -3032,6 +3033,139 @@ public class OrganizationApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for orgGetUserPermissions
+ * @param username username of user (required)
+ * @param org name of the 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 orgGetUserPermissionsCall(String username, String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/users/{username}/orgs/{org}/permissions"
+ .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()))
+ .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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call orgGetUserPermissionsValidateBeforeCall(String username, String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'username' is set
+ if (username == null) {
+ throw new ApiException("Missing the required parameter 'username' when calling orgGetUserPermissions(Async)");
+ }
+
+ // verify the required parameter 'org' is set
+ if (org == null) {
+ throw new ApiException("Missing the required parameter 'org' when calling orgGetUserPermissions(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = orgGetUserPermissionsCall(username, org, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Get user permissions in organization
+ *
+ * @param username username of user (required)
+ * @param org name of the organization (required)
+ * @return OrganizationPermissions
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public OrganizationPermissions orgGetUserPermissions(String username, String org) throws ApiException {
+ ApiResponse resp = orgGetUserPermissionsWithHttpInfo(username, org);
+ return resp.getData();
+ }
+
+ /**
+ * Get user permissions in organization
+ *
+ * @param username username of user (required)
+ * @param org name of the organization (required)
+ * @return ApiResponse<OrganizationPermissions>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse orgGetUserPermissionsWithHttpInfo(String username, String org) throws ApiException {
+ com.squareup.okhttp.Call call = orgGetUserPermissionsValidateBeforeCall(username, org, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Get user permissions in organization (asynchronously)
+ *
+ * @param username username of user (required)
+ * @param org name of the 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 orgGetUserPermissionsAsync(String username, 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 = orgGetUserPermissionsValidateBeforeCall(username, org, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for orgIsMember
* @param org name of the organization (required)
diff --git a/src/main/java/io/gitea/api/RepositoryApi.java b/src/main/java/io/gitea/api/RepositoryApi.java
index c2800fd..e4d22f4 100644
--- a/src/main/java/io/gitea/api/RepositoryApi.java
+++ b/src/main/java/io/gitea/api/RepositoryApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -49,6 +49,7 @@ import io.gitea.model.CreateReleaseOption;
import io.gitea.model.CreateRepoOption;
import io.gitea.model.CreateStatusOption;
import io.gitea.model.CreateTagOption;
+import io.gitea.model.CreateWikiPageOptions;
import io.gitea.model.DeleteFileOptions;
import io.gitea.model.DeployKey;
import io.gitea.model.DismissPullReviewOptions;
@@ -91,6 +92,9 @@ import io.gitea.model.TransferRepoOption;
import io.gitea.model.UpdateFileOptions;
import io.gitea.model.User;
import io.gitea.model.WatchInfo;
+import io.gitea.model.WikiCommitList;
+import io.gitea.model.WikiPage;
+import io.gitea.model.WikiPageMetaData;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -117,6 +121,139 @@ public class RepositoryApi {
this.apiClient = apiClient;
}
+ /**
+ * Build call for acceptRepoTransfer
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (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 acceptRepoTransferCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/transfer/accept"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call acceptRepoTransferValidateBeforeCall(String owner, String repo, 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 acceptRepoTransfer(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling acceptRepoTransfer(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = acceptRepoTransferCall(owner, repo, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Accept a repo transfer
+ *
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (required)
+ * @return Repository
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public Repository acceptRepoTransfer(String owner, String repo) throws ApiException {
+ ApiResponse resp = acceptRepoTransferWithHttpInfo(owner, repo);
+ return resp.getData();
+ }
+
+ /**
+ * Accept a repo transfer
+ *
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (required)
+ * @return ApiResponse<Repository>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse acceptRepoTransferWithHttpInfo(String owner, String repo) throws ApiException {
+ com.squareup.okhttp.Call call = acceptRepoTransferValidateBeforeCall(owner, repo, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Accept a repo transfer (asynchronously)
+ *
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (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 acceptRepoTransferAsync(String owner, String repo, 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 = acceptRepoTransferValidateBeforeCall(owner, repo, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for createCurrentUserRepo
* @param body (optional)
@@ -1100,6 +1237,139 @@ public class RepositoryApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for rejectRepoTransfer
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (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 rejectRepoTransferCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/transfer/reject"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call rejectRepoTransferValidateBeforeCall(String owner, String repo, 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 rejectRepoTransfer(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling rejectRepoTransfer(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = rejectRepoTransferCall(owner, repo, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Reject a repo transfer
+ *
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (required)
+ * @return Repository
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public Repository rejectRepoTransfer(String owner, String repo) throws ApiException {
+ ApiResponse resp = rejectRepoTransferWithHttpInfo(owner, repo);
+ return resp.getData();
+ }
+
+ /**
+ * Reject a repo transfer
+ *
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (required)
+ * @return ApiResponse<Repository>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse rejectRepoTransferWithHttpInfo(String owner, String repo) throws ApiException {
+ com.squareup.okhttp.Call call = rejectRepoTransferValidateBeforeCall(owner, repo, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Reject a repo transfer (asynchronously)
+ *
+ * @param owner owner of the repo to transfer (required)
+ * @param repo name of the repo to transfer (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 rejectRepoTransferAsync(String owner, String repo, 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 = rejectRepoTransferValidateBeforeCall(owner, repo, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for repoAddCollaborator
* @param owner owner of the repo (required)
@@ -3525,6 +3795,143 @@ public class RepositoryApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for repoCreateWikiPage
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param body (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 repoCreateWikiPageCall(String owner, String repo, CreateWikiPageOptions body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = body;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/wiki/new"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json", "text/html"
+ };
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call repoCreateWikiPageValidateBeforeCall(String owner, String repo, CreateWikiPageOptions body, 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 repoCreateWikiPage(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling repoCreateWikiPage(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = repoCreateWikiPageCall(owner, repo, body, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Create a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param body (optional)
+ * @return WikiPage
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public WikiPage repoCreateWikiPage(String owner, String repo, CreateWikiPageOptions body) throws ApiException {
+ ApiResponse resp = repoCreateWikiPageWithHttpInfo(owner, repo, body);
+ return resp.getData();
+ }
+
+ /**
+ * Create a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param body (optional)
+ * @return ApiResponse<WikiPage>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse repoCreateWikiPageWithHttpInfo(String owner, String repo, CreateWikiPageOptions body) throws ApiException {
+ com.squareup.okhttp.Call call = repoCreateWikiPageValidateBeforeCall(owner, repo, body, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Create a wiki page (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param body (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 repoCreateWikiPageAsync(String owner, String repo, CreateWikiPageOptions body, 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 = repoCreateWikiPageValidateBeforeCall(owner, repo, body, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for repoDelete
* @param owner owner of the repo to delete (required)
@@ -5781,6 +6188,145 @@ public class RepositoryApi {
apiClient.executeAsync(call, callback);
return call;
}
+ /**
+ * Build call for repoDeleteWikiPage
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (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 repoDeleteWikiPageCall(String owner, String repo, String pageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/wiki/page/{pageName}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json", "text/html"
+ };
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call repoDeleteWikiPageValidateBeforeCall(String owner, String repo, String pageName, 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 repoDeleteWikiPage(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling repoDeleteWikiPage(Async)");
+ }
+
+ // verify the required parameter 'pageName' is set
+ if (pageName == null) {
+ throw new ApiException("Missing the required parameter 'pageName' when calling repoDeleteWikiPage(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = repoDeleteWikiPageCall(owner, repo, pageName, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Delete a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public void repoDeleteWikiPage(String owner, String repo, String pageName) throws ApiException {
+ repoDeleteWikiPageWithHttpInfo(owner, repo, pageName);
+ }
+
+ /**
+ * Delete a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse repoDeleteWikiPageWithHttpInfo(String owner, String repo, String pageName) throws ApiException {
+ com.squareup.okhttp.Call call = repoDeleteWikiPageValidateBeforeCall(owner, repo, pageName, null, null);
+ return apiClient.execute(call);
+ }
+
+ /**
+ * Delete a wiki page (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (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 repoDeleteWikiPageAsync(String owner, String repo, String pageName, 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 = repoDeleteWikiPageValidateBeforeCall(owner, repo, pageName, progressListener, progressRequestListener);
+ apiClient.executeAsync(call, callback);
+ return call;
+ }
/**
* Build call for repoDismissPullReview
* @param owner owner of the repo (required)
@@ -5944,23 +6490,25 @@ public class RepositoryApi {
return call;
}
/**
- * Build call for repoDownloadPullDiff
+ * Build call for repoDownloadCommitDiffOrPatch
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
- * @param index index of the pull request to get (required)
+ * @param sha SHA of the commit to get (required)
+ * @param diffType whether the output is diff or patch (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 repoDownloadPullDiffCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public com.squareup.okhttp.Call repoDownloadCommitDiffOrPatchCall(String owner, String repo, String sha, String diffType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/repos/{owner}/{repo}/pulls/{index}.diff"
+ String localVarPath = "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}"
.replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
.replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
- .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString()));
+ .replaceAll("\\{" + "sha" + "\\}", apiClient.escapeString(sha.toString()))
+ .replaceAll("\\{" + "diffType" + "\\}", apiClient.escapeString(diffType.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -5998,69 +6546,77 @@ public class RepositoryApi {
}
@SuppressWarnings("rawtypes")
- private com.squareup.okhttp.Call repoDownloadPullDiffValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private com.squareup.okhttp.Call repoDownloadCommitDiffOrPatchValidateBeforeCall(String owner, String repo, String sha, String diffType, 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 repoDownloadPullDiff(Async)");
+ throw new ApiException("Missing the required parameter 'owner' when calling repoDownloadCommitDiffOrPatch(Async)");
}
// verify the required parameter 'repo' is set
if (repo == null) {
- throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadPullDiff(Async)");
+ throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadCommitDiffOrPatch(Async)");
}
- // verify the required parameter 'index' is set
- if (index == null) {
- throw new ApiException("Missing the required parameter 'index' when calling repoDownloadPullDiff(Async)");
+ // verify the required parameter 'sha' is set
+ if (sha == null) {
+ throw new ApiException("Missing the required parameter 'sha' when calling repoDownloadCommitDiffOrPatch(Async)");
+ }
+
+ // verify the required parameter 'diffType' is set
+ if (diffType == null) {
+ throw new ApiException("Missing the required parameter 'diffType' when calling repoDownloadCommitDiffOrPatch(Async)");
}
- com.squareup.okhttp.Call call = repoDownloadPullDiffCall(owner, repo, index, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoDownloadCommitDiffOrPatchCall(owner, repo, sha, diffType, progressListener, progressRequestListener);
return call;
}
/**
- * Get a pull request diff
+ * Get a commit's diff or patch
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
- * @param index index of the pull request to get (required)
+ * @param sha SHA of the commit to get (required)
+ * @param diffType whether the output is diff or patch (required)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public String repoDownloadPullDiff(String owner, String repo, Long index) throws ApiException {
- ApiResponse resp = repoDownloadPullDiffWithHttpInfo(owner, repo, index);
+ public String repoDownloadCommitDiffOrPatch(String owner, String repo, String sha, String diffType) throws ApiException {
+ ApiResponse resp = repoDownloadCommitDiffOrPatchWithHttpInfo(owner, repo, sha, diffType);
return resp.getData();
}
/**
- * Get a pull request diff
+ * Get a commit's diff or patch
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
- * @param index index of the pull request to get (required)
+ * @param sha SHA of the commit to get (required)
+ * @param diffType whether the output is diff or patch (required)
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse repoDownloadPullDiffWithHttpInfo(String owner, String repo, Long index) throws ApiException {
- com.squareup.okhttp.Call call = repoDownloadPullDiffValidateBeforeCall(owner, repo, index, null, null);
+ public ApiResponse repoDownloadCommitDiffOrPatchWithHttpInfo(String owner, String repo, String sha, String diffType) throws ApiException {
+ com.squareup.okhttp.Call call = repoDownloadCommitDiffOrPatchValidateBeforeCall(owner, repo, sha, diffType, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
- * Get a pull request diff (asynchronously)
+ * Get a commit's diff or patch (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
- * @param index index of the pull request to get (required)
+ * @param sha SHA of the commit to get (required)
+ * @param diffType whether the output is diff or patch (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 repoDownloadPullDiffAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call repoDownloadCommitDiffOrPatchAsync(String owner, String repo, String sha, String diffType, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -6081,32 +6637,37 @@ public class RepositoryApi {
};
}
- com.squareup.okhttp.Call call = repoDownloadPullDiffValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoDownloadCommitDiffOrPatchValidateBeforeCall(owner, repo, sha, diffType, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
- * Build call for repoDownloadPullPatch
+ * Build call for repoDownloadPullDiffOrPatch
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param diffType whether the output is diff or patch (required)
+ * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (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 repoDownloadPullPatchCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public com.squareup.okhttp.Call repoDownloadPullDiffOrPatchCall(String owner, String repo, Long index, String diffType, Boolean binary, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/repos/{owner}/{repo}/pulls/{index}.patch"
+ String localVarPath = "/repos/{owner}/{repo}/pulls/{index}.{diffType}"
.replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
.replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
- .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString()));
+ .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString()))
+ .replaceAll("\\{" + "diffType" + "\\}", apiClient.escapeString(diffType.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
+ if (binary != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("binary", binary));
Map localVarHeaderParams = new HashMap();
@@ -6141,69 +6702,80 @@ public class RepositoryApi {
}
@SuppressWarnings("rawtypes")
- private com.squareup.okhttp.Call repoDownloadPullPatchValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private com.squareup.okhttp.Call repoDownloadPullDiffOrPatchValidateBeforeCall(String owner, String repo, Long index, String diffType, Boolean binary, 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 repoDownloadPullPatch(Async)");
+ throw new ApiException("Missing the required parameter 'owner' when calling repoDownloadPullDiffOrPatch(Async)");
}
// verify the required parameter 'repo' is set
if (repo == null) {
- throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadPullPatch(Async)");
+ throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadPullDiffOrPatch(Async)");
}
// verify the required parameter 'index' is set
if (index == null) {
- throw new ApiException("Missing the required parameter 'index' when calling repoDownloadPullPatch(Async)");
+ throw new ApiException("Missing the required parameter 'index' when calling repoDownloadPullDiffOrPatch(Async)");
+ }
+
+ // verify the required parameter 'diffType' is set
+ if (diffType == null) {
+ throw new ApiException("Missing the required parameter 'diffType' when calling repoDownloadPullDiffOrPatch(Async)");
}
- com.squareup.okhttp.Call call = repoDownloadPullPatchCall(owner, repo, index, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoDownloadPullDiffOrPatchCall(owner, repo, index, diffType, binary, progressListener, progressRequestListener);
return call;
}
/**
- * Get a pull request patch file
+ * Get a pull request diff or patch
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param diffType whether the output is diff or patch (required)
+ * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (optional)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public String repoDownloadPullPatch(String owner, String repo, Long index) throws ApiException {
- ApiResponse resp = repoDownloadPullPatchWithHttpInfo(owner, repo, index);
+ public String repoDownloadPullDiffOrPatch(String owner, String repo, Long index, String diffType, Boolean binary) throws ApiException {
+ ApiResponse resp = repoDownloadPullDiffOrPatchWithHttpInfo(owner, repo, index, diffType, binary);
return resp.getData();
}
/**
- * Get a pull request patch file
+ * Get a pull request diff or patch
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param diffType whether the output is diff or patch (required)
+ * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (optional)
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse repoDownloadPullPatchWithHttpInfo(String owner, String repo, Long index) throws ApiException {
- com.squareup.okhttp.Call call = repoDownloadPullPatchValidateBeforeCall(owner, repo, index, null, null);
+ public ApiResponse repoDownloadPullDiffOrPatchWithHttpInfo(String owner, String repo, Long index, String diffType, Boolean binary) throws ApiException {
+ com.squareup.okhttp.Call call = repoDownloadPullDiffOrPatchValidateBeforeCall(owner, repo, index, diffType, binary, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
- * Get a pull request patch file (asynchronously)
+ * Get a pull request diff or patch (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param diffType whether the output is diff or patch (required)
+ * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (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 repoDownloadPullPatchAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call repoDownloadPullDiffOrPatchAsync(String owner, String repo, Long index, String diffType, Boolean binary, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -6224,7 +6796,7 @@ public class RepositoryApi {
};
}
- com.squareup.okhttp.Call call = repoDownloadPullPatchValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoDownloadPullDiffOrPatchValidateBeforeCall(owner, repo, index, diffType, binary, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -7258,6 +7830,153 @@ public class RepositoryApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for repoEditWikiPage
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param body (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 repoEditWikiPageCall(String owner, String repo, String pageName, CreateWikiPageOptions body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = body;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/wiki/page/{pageName}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json", "text/html"
+ };
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call repoEditWikiPageValidateBeforeCall(String owner, String repo, String pageName, CreateWikiPageOptions body, 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 repoEditWikiPage(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling repoEditWikiPage(Async)");
+ }
+
+ // verify the required parameter 'pageName' is set
+ if (pageName == null) {
+ throw new ApiException("Missing the required parameter 'pageName' when calling repoEditWikiPage(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = repoEditWikiPageCall(owner, repo, pageName, body, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Edit a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param body (optional)
+ * @return WikiPage
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public WikiPage repoEditWikiPage(String owner, String repo, String pageName, CreateWikiPageOptions body) throws ApiException {
+ ApiResponse resp = repoEditWikiPageWithHttpInfo(owner, repo, pageName, body);
+ return resp.getData();
+ }
+
+ /**
+ * Edit a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param body (optional)
+ * @return ApiResponse<WikiPage>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse repoEditWikiPageWithHttpInfo(String owner, String repo, String pageName, CreateWikiPageOptions body) throws ApiException {
+ com.squareup.okhttp.Call call = repoEditWikiPageValidateBeforeCall(owner, repo, pageName, body, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Edit a wiki page (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param body (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 repoEditWikiPageAsync(String owner, String repo, String pageName, CreateWikiPageOptions body, 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 = repoEditWikiPageValidateBeforeCall(owner, repo, pageName, body, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for repoGet
* @param owner owner of the repo (required)
@@ -7396,14 +8115,15 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha SHA or branch to start listing commits from (usually 'master') (optional)
+ * @param path filepath of a file/dir (optional)
* @param page page number of results to return (1-based) (optional)
- * @param limit page size of results (optional)
+ * @param limit page size of results (ignored if used with 'path') (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 repoGetAllCommitsCall(String owner, String repo, String sha, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public com.squareup.okhttp.Call repoGetAllCommitsCall(String owner, String repo, String sha, String path, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@@ -7415,6 +8135,8 @@ public class RepositoryApi {
List localVarCollectionQueryParams = new ArrayList();
if (sha != null)
localVarQueryParams.addAll(apiClient.parameterToPair("sha", sha));
+ if (path != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("path", path));
if (page != null)
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
if (limit != null)
@@ -7453,7 +8175,7 @@ public class RepositoryApi {
}
@SuppressWarnings("rawtypes")
- private com.squareup.okhttp.Call repoGetAllCommitsValidateBeforeCall(String owner, String repo, String sha, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private com.squareup.okhttp.Call repoGetAllCommitsValidateBeforeCall(String owner, String repo, String sha, String path, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'owner' is set
if (owner == null) {
@@ -7466,7 +8188,7 @@ public class RepositoryApi {
}
- com.squareup.okhttp.Call call = repoGetAllCommitsCall(owner, repo, sha, page, limit, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoGetAllCommitsCall(owner, repo, sha, path, page, limit, progressListener, progressRequestListener);
return call;
}
@@ -7477,13 +8199,14 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha SHA or branch to start listing commits from (usually 'master') (optional)
+ * @param path filepath of a file/dir (optional)
* @param page page number of results to return (1-based) (optional)
- * @param limit page size of results (optional)
+ * @param limit page size of results (ignored if used with 'path') (optional)
* @return List<Commit>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List repoGetAllCommits(String owner, String repo, String sha, Integer page, Integer limit) throws ApiException {
- ApiResponse> resp = repoGetAllCommitsWithHttpInfo(owner, repo, sha, page, limit);
+ public List repoGetAllCommits(String owner, String repo, String sha, String path, Integer page, Integer limit) throws ApiException {
+ ApiResponse> resp = repoGetAllCommitsWithHttpInfo(owner, repo, sha, path, page, limit);
return resp.getData();
}
@@ -7493,13 +8216,14 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha SHA or branch to start listing commits from (usually 'master') (optional)
+ * @param path filepath of a file/dir (optional)
* @param page page number of results to return (1-based) (optional)
- * @param limit page size of results (optional)
+ * @param limit page size of results (ignored if used with 'path') (optional)
* @return ApiResponse<List<Commit>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> repoGetAllCommitsWithHttpInfo(String owner, String repo, String sha, Integer page, Integer limit) throws ApiException {
- com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, page, limit, null, null);
+ public ApiResponse> repoGetAllCommitsWithHttpInfo(String owner, String repo, String sha, String path, Integer page, Integer limit) throws ApiException {
+ com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, path, page, limit, null, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -7510,13 +8234,14 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha SHA or branch to start listing commits from (usually 'master') (optional)
+ * @param path filepath of a file/dir (optional)
* @param page page number of results to return (1-based) (optional)
- * @param limit page size of results (optional)
+ * @param limit page size of results (ignored if used with 'path') (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 repoGetAllCommitsAsync(String owner, String repo, String sha, Integer page, Integer limit, final ApiCallback> callback) throws ApiException {
+ public com.squareup.okhttp.Call repoGetAllCommitsAsync(String owner, String repo, String sha, String path, Integer page, Integer limit, final ApiCallback> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -7537,7 +8262,7 @@ public class RepositoryApi {
};
}
- com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, page, limit, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, path, page, limit, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -11250,6 +11975,443 @@ public class RepositoryApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for repoGetWikiPage
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (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 repoGetWikiPageCall(String owner, String repo, String pageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/wiki/page/{pageName}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call repoGetWikiPageValidateBeforeCall(String owner, String repo, String pageName, 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 repoGetWikiPage(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling repoGetWikiPage(Async)");
+ }
+
+ // verify the required parameter 'pageName' is set
+ if (pageName == null) {
+ throw new ApiException("Missing the required parameter 'pageName' when calling repoGetWikiPage(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = repoGetWikiPageCall(owner, repo, pageName, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Get a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @return WikiPage
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public WikiPage repoGetWikiPage(String owner, String repo, String pageName) throws ApiException {
+ ApiResponse resp = repoGetWikiPageWithHttpInfo(owner, repo, pageName);
+ return resp.getData();
+ }
+
+ /**
+ * Get a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @return ApiResponse<WikiPage>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse repoGetWikiPageWithHttpInfo(String owner, String repo, String pageName) throws ApiException {
+ com.squareup.okhttp.Call call = repoGetWikiPageValidateBeforeCall(owner, repo, pageName, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Get a wiki page (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (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 repoGetWikiPageAsync(String owner, String repo, String pageName, 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 = repoGetWikiPageValidateBeforeCall(owner, repo, pageName, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
+ /**
+ * Build call for repoGetWikiPageRevisions
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @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 repoGetWikiPageRevisionsCall(String owner, String repo, String pageName, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/wiki/revisions/{pageName}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call repoGetWikiPageRevisionsValidateBeforeCall(String owner, String repo, String pageName, Integer page, 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 repoGetWikiPageRevisions(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling repoGetWikiPageRevisions(Async)");
+ }
+
+ // verify the required parameter 'pageName' is set
+ if (pageName == null) {
+ throw new ApiException("Missing the required parameter 'pageName' when calling repoGetWikiPageRevisions(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = repoGetWikiPageRevisionsCall(owner, repo, pageName, page, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Get revisions of a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @return WikiCommitList
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public WikiCommitList repoGetWikiPageRevisions(String owner, String repo, String pageName, Integer page) throws ApiException {
+ ApiResponse resp = repoGetWikiPageRevisionsWithHttpInfo(owner, repo, pageName, page);
+ return resp.getData();
+ }
+
+ /**
+ * Get revisions of a wiki page
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @return ApiResponse<WikiCommitList>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse repoGetWikiPageRevisionsWithHttpInfo(String owner, String repo, String pageName, Integer page) throws ApiException {
+ com.squareup.okhttp.Call call = repoGetWikiPageRevisionsValidateBeforeCall(owner, repo, pageName, page, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Get revisions of a wiki page (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param pageName name of the page (required)
+ * @param page page number of results to return (1-based) (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 repoGetWikiPageRevisionsAsync(String owner, String repo, String pageName, Integer page, 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 = repoGetWikiPageRevisionsValidateBeforeCall(owner, repo, pageName, page, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
+ /**
+ * Build call for repoGetWikiPages
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (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 repoGetWikiPagesCall(String owner, String repo, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/wiki/pages"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()));
+
+ 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", "TOTPHeader", "Token" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call repoGetWikiPagesValidateBeforeCall(String owner, String repo, Integer page, Integer limit, 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 repoGetWikiPages(Async)");
+ }
+
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling repoGetWikiPages(Async)");
+ }
+
+
+ com.squareup.okhttp.Call call = repoGetWikiPagesCall(owner, repo, page, limit, progressListener, progressRequestListener);
+ return call;
+
+ }
+
+ /**
+ * Get all wiki pages
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return List<WikiPageMetaData>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public List repoGetWikiPages(String owner, String repo, Integer page, Integer limit) throws ApiException {
+ ApiResponse> resp = repoGetWikiPagesWithHttpInfo(owner, repo, page, limit);
+ return resp.getData();
+ }
+
+ /**
+ * Get all wiki pages
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return ApiResponse<List<WikiPageMetaData>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse> repoGetWikiPagesWithHttpInfo(String owner, String repo, Integer page, Integer limit) throws ApiException {
+ com.squareup.okhttp.Call call = repoGetWikiPagesValidateBeforeCall(owner, repo, page, limit, null, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Get all wiki pages (asynchronously)
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (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 repoGetWikiPagesAsync(String owner, String repo, 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 = repoGetWikiPagesValidateBeforeCall(owner, repo, page, limit, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
/**
* Build call for repoListAllGitRefs
* @param owner owner of the repo (required)
@@ -15853,12 +17015,13 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param style how to update pull request (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 repoUpdatePullRequestCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public com.squareup.okhttp.Call repoUpdatePullRequestCall(String owner, String repo, Long index, String style, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@@ -15869,6 +17032,8 @@ public class RepositoryApi {
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
+ if (style != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("style", style));
Map localVarHeaderParams = new HashMap();
@@ -15903,7 +17068,7 @@ public class RepositoryApi {
}
@SuppressWarnings("rawtypes")
- private com.squareup.okhttp.Call repoUpdatePullRequestValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private com.squareup.okhttp.Call repoUpdatePullRequestValidateBeforeCall(String owner, String repo, Long index, String style, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'owner' is set
if (owner == null) {
@@ -15921,7 +17086,7 @@ public class RepositoryApi {
}
- com.squareup.okhttp.Call call = repoUpdatePullRequestCall(owner, repo, index, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoUpdatePullRequestCall(owner, repo, index, style, progressListener, progressRequestListener);
return call;
}
@@ -15932,10 +17097,11 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param style how to update pull request (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public void repoUpdatePullRequest(String owner, String repo, Long index) throws ApiException {
- repoUpdatePullRequestWithHttpInfo(owner, repo, index);
+ public void repoUpdatePullRequest(String owner, String repo, Long index, String style) throws ApiException {
+ repoUpdatePullRequestWithHttpInfo(owner, repo, index, style);
}
/**
@@ -15944,11 +17110,12 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param style how to update pull request (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse repoUpdatePullRequestWithHttpInfo(String owner, String repo, Long index) throws ApiException {
- com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, null, null);
+ public ApiResponse repoUpdatePullRequestWithHttpInfo(String owner, String repo, Long index, String style) throws ApiException {
+ com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, style, null, null);
return apiClient.execute(call);
}
@@ -15958,11 +17125,12 @@ public class RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
+ * @param style how to update pull request (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 repoUpdatePullRequestAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException {
+ public com.squareup.okhttp.Call repoUpdatePullRequestAsync(String owner, String repo, Long index, String style, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -15983,7 +17151,7 @@ public class RepositoryApi {
};
}
- com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener);
+ com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, style, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
diff --git a/src/main/java/io/gitea/api/SettingsApi.java b/src/main/java/io/gitea/api/SettingsApi.java
index 4f070a4..dffa712 100644
--- a/src/main/java/io/gitea/api/SettingsApi.java
+++ b/src/main/java/io/gitea/api/SettingsApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/api/UserApi.java b/src/main/java/io/gitea/api/UserApi.java
index 8cb145f..776dc14 100644
--- a/src/main/java/io/gitea/api/UserApi.java
+++ b/src/main/java/io/gitea/api/UserApi.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/APIError.java b/src/main/java/io/gitea/model/APIError.java
index c9d197c..e46f617 100644
--- a/src/main/java/io/gitea/model/APIError.java
+++ b/src/main/java/io/gitea/model/APIError.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/AccessToken.java b/src/main/java/io/gitea/model/AccessToken.java
index 4d65061..ee2da16 100644
--- a/src/main/java/io/gitea/model/AccessToken.java
+++ b/src/main/java/io/gitea/model/AccessToken.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/AddCollaboratorOption.java b/src/main/java/io/gitea/model/AddCollaboratorOption.java
index 540bd96..52bc8c0 100644
--- a/src/main/java/io/gitea/model/AddCollaboratorOption.java
+++ b/src/main/java/io/gitea/model/AddCollaboratorOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/AddTimeOption.java b/src/main/java/io/gitea/model/AddTimeOption.java
index 3e068ad..c9339a5 100644
--- a/src/main/java/io/gitea/model/AddTimeOption.java
+++ b/src/main/java/io/gitea/model/AddTimeOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/AnnotatedTag.java b/src/main/java/io/gitea/model/AnnotatedTag.java
index de1017c..23441f9 100644
--- a/src/main/java/io/gitea/model/AnnotatedTag.java
+++ b/src/main/java/io/gitea/model/AnnotatedTag.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/AnnotatedTagObject.java b/src/main/java/io/gitea/model/AnnotatedTagObject.java
index d015cb1..70f5d7f 100644
--- a/src/main/java/io/gitea/model/AnnotatedTagObject.java
+++ b/src/main/java/io/gitea/model/AnnotatedTagObject.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Attachment.java b/src/main/java/io/gitea/model/Attachment.java
index e92a6f9..4c8f0fc 100644
--- a/src/main/java/io/gitea/model/Attachment.java
+++ b/src/main/java/io/gitea/model/Attachment.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Branch.java b/src/main/java/io/gitea/model/Branch.java
index b8d8421..c3a2e67 100644
--- a/src/main/java/io/gitea/model/Branch.java
+++ b/src/main/java/io/gitea/model/Branch.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/BranchProtection.java b/src/main/java/io/gitea/model/BranchProtection.java
index fe5acb2..d8ff796 100644
--- a/src/main/java/io/gitea/model/BranchProtection.java
+++ b/src/main/java/io/gitea/model/BranchProtection.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -99,6 +99,9 @@ public class BranchProtection {
@SerializedName("status_check_contexts")
private List statusCheckContexts = null;
+ @SerializedName("unprotected_file_patterns")
+ private String unprotectedFilePatterns = null;
+
@SerializedName("updated_at")
private OffsetDateTime updatedAt = null;
@@ -554,6 +557,24 @@ public class BranchProtection {
this.statusCheckContexts = statusCheckContexts;
}
+ public BranchProtection unprotectedFilePatterns(String unprotectedFilePatterns) {
+ this.unprotectedFilePatterns = unprotectedFilePatterns;
+ return this;
+ }
+
+ /**
+ * Get unprotectedFilePatterns
+ * @return unprotectedFilePatterns
+ **/
+ @ApiModelProperty(value = "")
+ public String getUnprotectedFilePatterns() {
+ return unprotectedFilePatterns;
+ }
+
+ public void setUnprotectedFilePatterns(String unprotectedFilePatterns) {
+ this.unprotectedFilePatterns = unprotectedFilePatterns;
+ }
+
public BranchProtection updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
@@ -604,12 +625,13 @@ public class BranchProtection {
Objects.equals(this.requireSignedCommits, branchProtection.requireSignedCommits) &&
Objects.equals(this.requiredApprovals, branchProtection.requiredApprovals) &&
Objects.equals(this.statusCheckContexts, branchProtection.statusCheckContexts) &&
+ Objects.equals(this.unprotectedFilePatterns, branchProtection.unprotectedFilePatterns) &&
Objects.equals(this.updatedAt, branchProtection.updatedAt);
}
@Override
public int hashCode() {
- return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, createdAt, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, updatedAt);
+ return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, createdAt, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns, updatedAt);
}
@@ -640,6 +662,7 @@ public class BranchProtection {
sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n");
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n");
+ sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/io/gitea/model/CombinedStatus.java b/src/main/java/io/gitea/model/CombinedStatus.java
index 7d6d253..a2233f4 100644
--- a/src/main/java/io/gitea/model/CombinedStatus.java
+++ b/src/main/java/io/gitea/model/CombinedStatus.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Comment.java b/src/main/java/io/gitea/model/Comment.java
index 62838dc..fcba7ef 100644
--- a/src/main/java/io/gitea/model/Comment.java
+++ b/src/main/java/io/gitea/model/Comment.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Commit.java b/src/main/java/io/gitea/model/Commit.java
index 4d4da5f..e38db75 100644
--- a/src/main/java/io/gitea/model/Commit.java
+++ b/src/main/java/io/gitea/model/Commit.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CommitAffectedFiles.java b/src/main/java/io/gitea/model/CommitAffectedFiles.java
index cc78dd4..8559f69 100644
--- a/src/main/java/io/gitea/model/CommitAffectedFiles.java
+++ b/src/main/java/io/gitea/model/CommitAffectedFiles.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CommitDateOptions.java b/src/main/java/io/gitea/model/CommitDateOptions.java
index bdbda8c..e5fd442 100644
--- a/src/main/java/io/gitea/model/CommitDateOptions.java
+++ b/src/main/java/io/gitea/model/CommitDateOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CommitMeta.java b/src/main/java/io/gitea/model/CommitMeta.java
index f281eb8..38db737 100644
--- a/src/main/java/io/gitea/model/CommitMeta.java
+++ b/src/main/java/io/gitea/model/CommitMeta.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CommitStatus.java b/src/main/java/io/gitea/model/CommitStatus.java
index af1735b..56c73d7 100644
--- a/src/main/java/io/gitea/model/CommitStatus.java
+++ b/src/main/java/io/gitea/model/CommitStatus.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CommitUser.java b/src/main/java/io/gitea/model/CommitUser.java
index 1d3450c..6a8adef 100644
--- a/src/main/java/io/gitea/model/CommitUser.java
+++ b/src/main/java/io/gitea/model/CommitUser.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/ContentsResponse.java b/src/main/java/io/gitea/model/ContentsResponse.java
index de35bf1..a2f8bce 100644
--- a/src/main/java/io/gitea/model/ContentsResponse.java
+++ b/src/main/java/io/gitea/model/ContentsResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateAccessTokenOption.java b/src/main/java/io/gitea/model/CreateAccessTokenOption.java
index f1b326f..26d7853 100644
--- a/src/main/java/io/gitea/model/CreateAccessTokenOption.java
+++ b/src/main/java/io/gitea/model/CreateAccessTokenOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateBranchProtectionOption.java b/src/main/java/io/gitea/model/CreateBranchProtectionOption.java
index 47f4ffb..df9f0fa 100644
--- a/src/main/java/io/gitea/model/CreateBranchProtectionOption.java
+++ b/src/main/java/io/gitea/model/CreateBranchProtectionOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -95,6 +95,9 @@ public class CreateBranchProtectionOption {
@SerializedName("status_check_contexts")
private List statusCheckContexts = null;
+ @SerializedName("unprotected_file_patterns")
+ private String unprotectedFilePatterns = null;
+
public CreateBranchProtectionOption approvalsWhitelistTeams(List approvalsWhitelistTeams) {
this.approvalsWhitelistTeams = approvalsWhitelistTeams;
return this;
@@ -529,6 +532,24 @@ public class CreateBranchProtectionOption {
this.statusCheckContexts = statusCheckContexts;
}
+ public CreateBranchProtectionOption unprotectedFilePatterns(String unprotectedFilePatterns) {
+ this.unprotectedFilePatterns = unprotectedFilePatterns;
+ return this;
+ }
+
+ /**
+ * Get unprotectedFilePatterns
+ * @return unprotectedFilePatterns
+ **/
+ @ApiModelProperty(value = "")
+ public String getUnprotectedFilePatterns() {
+ return unprotectedFilePatterns;
+ }
+
+ public void setUnprotectedFilePatterns(String unprotectedFilePatterns) {
+ this.unprotectedFilePatterns = unprotectedFilePatterns;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
@@ -559,12 +580,13 @@ public class CreateBranchProtectionOption {
Objects.equals(this.pushWhitelistUsernames, createBranchProtectionOption.pushWhitelistUsernames) &&
Objects.equals(this.requireSignedCommits, createBranchProtectionOption.requireSignedCommits) &&
Objects.equals(this.requiredApprovals, createBranchProtectionOption.requiredApprovals) &&
- Objects.equals(this.statusCheckContexts, createBranchProtectionOption.statusCheckContexts);
+ Objects.equals(this.statusCheckContexts, createBranchProtectionOption.statusCheckContexts) &&
+ Objects.equals(this.unprotectedFilePatterns, createBranchProtectionOption.unprotectedFilePatterns);
}
@Override
public int hashCode() {
- return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts);
+ return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns);
}
@@ -594,6 +616,7 @@ public class CreateBranchProtectionOption {
sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n");
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n");
+ sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/io/gitea/model/CreateBranchRepoOption.java b/src/main/java/io/gitea/model/CreateBranchRepoOption.java
index 21858c0..c2fcd61 100644
--- a/src/main/java/io/gitea/model/CreateBranchRepoOption.java
+++ b/src/main/java/io/gitea/model/CreateBranchRepoOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateEmailOption.java b/src/main/java/io/gitea/model/CreateEmailOption.java
index fd40491..85b9208 100644
--- a/src/main/java/io/gitea/model/CreateEmailOption.java
+++ b/src/main/java/io/gitea/model/CreateEmailOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateFileOptions.java b/src/main/java/io/gitea/model/CreateFileOptions.java
index 63b1720..71b2326 100644
--- a/src/main/java/io/gitea/model/CreateFileOptions.java
+++ b/src/main/java/io/gitea/model/CreateFileOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateForkOption.java b/src/main/java/io/gitea/model/CreateForkOption.java
index 8fcfeef..8ec5694 100644
--- a/src/main/java/io/gitea/model/CreateForkOption.java
+++ b/src/main/java/io/gitea/model/CreateForkOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -30,9 +30,30 @@ import java.io.IOException;
@ApiModel(description = "CreateForkOption options for creating a fork")
public class CreateForkOption {
+ @SerializedName("name")
+ private String name = null;
+
@SerializedName("organization")
private String organization = null;
+ public CreateForkOption name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * name of the forked repository
+ * @return name
+ **/
+ @ApiModelProperty(value = "name of the forked repository")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
public CreateForkOption organization(String organization) {
this.organization = organization;
return this;
@@ -61,12 +82,13 @@ public class CreateForkOption {
return false;
}
CreateForkOption createForkOption = (CreateForkOption) o;
- return Objects.equals(this.organization, createForkOption.organization);
+ return Objects.equals(this.name, createForkOption.name) &&
+ Objects.equals(this.organization, createForkOption.organization);
}
@Override
public int hashCode() {
- return Objects.hash(organization);
+ return Objects.hash(name, organization);
}
@@ -75,6 +97,7 @@ public class CreateForkOption {
StringBuilder sb = new StringBuilder();
sb.append("class CreateForkOption {\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" organization: ").append(toIndentedString(organization)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/io/gitea/model/CreateGPGKeyOption.java b/src/main/java/io/gitea/model/CreateGPGKeyOption.java
index 27c40b3..ca156de 100644
--- a/src/main/java/io/gitea/model/CreateGPGKeyOption.java
+++ b/src/main/java/io/gitea/model/CreateGPGKeyOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateHookOption.java b/src/main/java/io/gitea/model/CreateHookOption.java
index 04b352a..11c08ed 100644
--- a/src/main/java/io/gitea/model/CreateHookOption.java
+++ b/src/main/java/io/gitea/model/CreateHookOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateHookOptionConfig.java b/src/main/java/io/gitea/model/CreateHookOptionConfig.java
index a8baf3e..98a44d4 100644
--- a/src/main/java/io/gitea/model/CreateHookOptionConfig.java
+++ b/src/main/java/io/gitea/model/CreateHookOptionConfig.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateIssueCommentOption.java b/src/main/java/io/gitea/model/CreateIssueCommentOption.java
index 874f3d3..90f6659 100644
--- a/src/main/java/io/gitea/model/CreateIssueCommentOption.java
+++ b/src/main/java/io/gitea/model/CreateIssueCommentOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateIssueOption.java b/src/main/java/io/gitea/model/CreateIssueOption.java
index 1d6362e..43f88c5 100644
--- a/src/main/java/io/gitea/model/CreateIssueOption.java
+++ b/src/main/java/io/gitea/model/CreateIssueOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateKeyOption.java b/src/main/java/io/gitea/model/CreateKeyOption.java
index 60f0b92..0e2aa25 100644
--- a/src/main/java/io/gitea/model/CreateKeyOption.java
+++ b/src/main/java/io/gitea/model/CreateKeyOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateLabelOption.java b/src/main/java/io/gitea/model/CreateLabelOption.java
index 29a5c9b..91b8c53 100644
--- a/src/main/java/io/gitea/model/CreateLabelOption.java
+++ b/src/main/java/io/gitea/model/CreateLabelOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateMilestoneOption.java b/src/main/java/io/gitea/model/CreateMilestoneOption.java
index d271bc1..a3da9d1 100644
--- a/src/main/java/io/gitea/model/CreateMilestoneOption.java
+++ b/src/main/java/io/gitea/model/CreateMilestoneOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java b/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java
index f286b1a..1551645 100644
--- a/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java
+++ b/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateOrgOption.java b/src/main/java/io/gitea/model/CreateOrgOption.java
index 7416aeb..8cf7406 100644
--- a/src/main/java/io/gitea/model/CreateOrgOption.java
+++ b/src/main/java/io/gitea/model/CreateOrgOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreatePullRequestOption.java b/src/main/java/io/gitea/model/CreatePullRequestOption.java
index 14f369b..760fe99 100644
--- a/src/main/java/io/gitea/model/CreatePullRequestOption.java
+++ b/src/main/java/io/gitea/model/CreatePullRequestOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreatePullReviewComment.java b/src/main/java/io/gitea/model/CreatePullReviewComment.java
index 609677a..53575c6 100644
--- a/src/main/java/io/gitea/model/CreatePullReviewComment.java
+++ b/src/main/java/io/gitea/model/CreatePullReviewComment.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreatePullReviewOptions.java b/src/main/java/io/gitea/model/CreatePullReviewOptions.java
index d1a6f25..6b2539c 100644
--- a/src/main/java/io/gitea/model/CreatePullReviewOptions.java
+++ b/src/main/java/io/gitea/model/CreatePullReviewOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateReleaseOption.java b/src/main/java/io/gitea/model/CreateReleaseOption.java
index 2323d8f..8b6c621 100644
--- a/src/main/java/io/gitea/model/CreateReleaseOption.java
+++ b/src/main/java/io/gitea/model/CreateReleaseOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateRepoOption.java b/src/main/java/io/gitea/model/CreateRepoOption.java
index c581f18..17430bd 100644
--- a/src/main/java/io/gitea/model/CreateRepoOption.java
+++ b/src/main/java/io/gitea/model/CreateRepoOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -120,10 +120,10 @@ public class CreateRepoOption {
}
/**
- * Whether the repository should be auto-intialized?
+ * Whether the repository should be auto-initialized?
* @return autoInit
**/
- @ApiModelProperty(value = "Whether the repository should be auto-intialized?")
+ @ApiModelProperty(value = "Whether the repository should be auto-initialized?")
public Boolean isAutoInit() {
return autoInit;
}
diff --git a/src/main/java/io/gitea/model/CreateStatusOption.java b/src/main/java/io/gitea/model/CreateStatusOption.java
index eee745f..9a63371 100644
--- a/src/main/java/io/gitea/model/CreateStatusOption.java
+++ b/src/main/java/io/gitea/model/CreateStatusOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateTagOption.java b/src/main/java/io/gitea/model/CreateTagOption.java
index 8d27b2f..c4c63aa 100644
--- a/src/main/java/io/gitea/model/CreateTagOption.java
+++ b/src/main/java/io/gitea/model/CreateTagOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/CreateTeamOption.java b/src/main/java/io/gitea/model/CreateTeamOption.java
index 8ee5593..899c36a 100644
--- a/src/main/java/io/gitea/model/CreateTeamOption.java
+++ b/src/main/java/io/gitea/model/CreateTeamOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -24,7 +24,9 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
/**
* CreateTeamOption options for creating a team
@@ -99,6 +101,9 @@ public class CreateTeamOption {
@SerializedName("units")
private List units = null;
+ @SerializedName("units_map")
+ private Map unitsMap = null;
+
public CreateTeamOption canCreateOrgRepo(Boolean canCreateOrgRepo) {
this.canCreateOrgRepo = canCreateOrgRepo;
return this;
@@ -215,6 +220,32 @@ public class CreateTeamOption {
this.units = units;
}
+ public CreateTeamOption unitsMap(Map unitsMap) {
+ this.unitsMap = unitsMap;
+ return this;
+ }
+
+ public CreateTeamOption putUnitsMapItem(String key, String unitsMapItem) {
+ if (this.unitsMap == null) {
+ this.unitsMap = new HashMap();
+ }
+ this.unitsMap.put(key, unitsMapItem);
+ return this;
+ }
+
+ /**
+ * Get unitsMap
+ * @return unitsMap
+ **/
+ @ApiModelProperty(example = "\"{\\\"repo.code\\\":\\\"read\\\",\\\"repo.issues\\\":\\\"write\\\",\\\"repo.ext_issues\\\":\\\"none\\\",\\\"repo.wiki\\\":\\\"admin\\\",\\\"repo.pulls\\\":\\\"owner\\\",\\\"repo.releases\\\":\\\"none\\\",\\\"repo.projects\\\":\\\"none\\\",\\\"repo.ext_wiki\\\":\\\"none\\\"]\"", value = "")
+ public Map getUnitsMap() {
+ return unitsMap;
+ }
+
+ public void setUnitsMap(Map unitsMap) {
+ this.unitsMap = unitsMap;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
@@ -230,12 +261,13 @@ public class CreateTeamOption {
Objects.equals(this.includesAllRepositories, createTeamOption.includesAllRepositories) &&
Objects.equals(this.name, createTeamOption.name) &&
Objects.equals(this.permission, createTeamOption.permission) &&
- Objects.equals(this.units, createTeamOption.units);
+ Objects.equals(this.units, createTeamOption.units) &&
+ Objects.equals(this.unitsMap, createTeamOption.unitsMap);
}
@Override
public int hashCode() {
- return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units);
+ return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units, unitsMap);
}
@@ -250,6 +282,7 @@ public class CreateTeamOption {
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" permission: ").append(toIndentedString(permission)).append("\n");
sb.append(" units: ").append(toIndentedString(units)).append("\n");
+ sb.append(" unitsMap: ").append(toIndentedString(unitsMap)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/io/gitea/model/CreateUserOption.java b/src/main/java/io/gitea/model/CreateUserOption.java
index 480f5e3..54118b3 100644
--- a/src/main/java/io/gitea/model/CreateUserOption.java
+++ b/src/main/java/io/gitea/model/CreateUserOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -45,6 +45,9 @@ public class CreateUserOption {
@SerializedName("password")
private String password = null;
+ @SerializedName("restricted")
+ private Boolean restricted = null;
+
@SerializedName("send_notify")
private Boolean sendNotify = null;
@@ -147,6 +150,24 @@ public class CreateUserOption {
this.password = password;
}
+ public CreateUserOption restricted(Boolean restricted) {
+ this.restricted = restricted;
+ return this;
+ }
+
+ /**
+ * Get restricted
+ * @return restricted
+ **/
+ @ApiModelProperty(value = "")
+ public Boolean isRestricted() {
+ return restricted;
+ }
+
+ public void setRestricted(Boolean restricted) {
+ this.restricted = restricted;
+ }
+
public CreateUserOption sendNotify(Boolean sendNotify) {
this.sendNotify = sendNotify;
return this;
@@ -234,6 +255,7 @@ public class CreateUserOption {
Objects.equals(this.loginName, createUserOption.loginName) &&
Objects.equals(this.mustChangePassword, createUserOption.mustChangePassword) &&
Objects.equals(this.password, createUserOption.password) &&
+ Objects.equals(this.restricted, createUserOption.restricted) &&
Objects.equals(this.sendNotify, createUserOption.sendNotify) &&
Objects.equals(this.sourceId, createUserOption.sourceId) &&
Objects.equals(this.username, createUserOption.username) &&
@@ -242,7 +264,7 @@ public class CreateUserOption {
@Override
public int hashCode() {
- return Objects.hash(email, fullName, loginName, mustChangePassword, password, sendNotify, sourceId, username, visibility);
+ return Objects.hash(email, fullName, loginName, mustChangePassword, password, restricted, sendNotify, sourceId, username, visibility);
}
@@ -256,6 +278,7 @@ public class CreateUserOption {
sb.append(" loginName: ").append(toIndentedString(loginName)).append("\n");
sb.append(" mustChangePassword: ").append(toIndentedString(mustChangePassword)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" restricted: ").append(toIndentedString(restricted)).append("\n");
sb.append(" sendNotify: ").append(toIndentedString(sendNotify)).append("\n");
sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
diff --git a/src/main/java/io/gitea/model/CreateWikiPageOptions.java b/src/main/java/io/gitea/model/CreateWikiPageOptions.java
new file mode 100644
index 0000000..b7ebf7c
--- /dev/null
+++ b/src/main/java/io/gitea/model/CreateWikiPageOptions.java
@@ -0,0 +1,141 @@
+/*
+ * Gitea API.
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: 1.16.8
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+
+package io.gitea.model;
+
+import java.util.Objects;
+import java.util.Arrays;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+
+/**
+ * CreateWikiPageOptions form for creating wiki
+ */
+@ApiModel(description = "CreateWikiPageOptions form for creating wiki")
+
+public class CreateWikiPageOptions {
+ @SerializedName("content_base64")
+ private String contentBase64 = null;
+
+ @SerializedName("message")
+ private String message = null;
+
+ @SerializedName("title")
+ private String title = null;
+
+ public CreateWikiPageOptions contentBase64(String contentBase64) {
+ this.contentBase64 = contentBase64;
+ return this;
+ }
+
+ /**
+ * content must be base64 encoded
+ * @return contentBase64
+ **/
+ @ApiModelProperty(value = "content must be base64 encoded")
+ public String getContentBase64() {
+ return contentBase64;
+ }
+
+ public void setContentBase64(String contentBase64) {
+ this.contentBase64 = contentBase64;
+ }
+
+ public CreateWikiPageOptions message(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * optional commit message summarizing the change
+ * @return message
+ **/
+ @ApiModelProperty(value = "optional commit message summarizing the change")
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public CreateWikiPageOptions title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * page title. leave empty to keep unchanged
+ * @return title
+ **/
+ @ApiModelProperty(value = "page title. leave empty to keep unchanged")
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CreateWikiPageOptions createWikiPageOptions = (CreateWikiPageOptions) o;
+ return Objects.equals(this.contentBase64, createWikiPageOptions.contentBase64) &&
+ Objects.equals(this.message, createWikiPageOptions.message) &&
+ Objects.equals(this.title, createWikiPageOptions.title);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(contentBase64, message, title);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CreateWikiPageOptions {\n");
+
+ sb.append(" contentBase64: ").append(toIndentedString(contentBase64)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/src/main/java/io/gitea/model/Cron.java b/src/main/java/io/gitea/model/Cron.java
index c1086cd..c3b39fb 100644
--- a/src/main/java/io/gitea/model/Cron.java
+++ b/src/main/java/io/gitea/model/Cron.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/DeleteEmailOption.java b/src/main/java/io/gitea/model/DeleteEmailOption.java
index 1b16d1f..1588fa9 100644
--- a/src/main/java/io/gitea/model/DeleteEmailOption.java
+++ b/src/main/java/io/gitea/model/DeleteEmailOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/DeleteFileOptions.java b/src/main/java/io/gitea/model/DeleteFileOptions.java
index 6fb4a8a..759e1b6 100644
--- a/src/main/java/io/gitea/model/DeleteFileOptions.java
+++ b/src/main/java/io/gitea/model/DeleteFileOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/DeployKey.java b/src/main/java/io/gitea/model/DeployKey.java
index e5d54f3..13f27db 100644
--- a/src/main/java/io/gitea/model/DeployKey.java
+++ b/src/main/java/io/gitea/model/DeployKey.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/DismissPullReviewOptions.java b/src/main/java/io/gitea/model/DismissPullReviewOptions.java
index 97f2b30..42cd59b 100644
--- a/src/main/java/io/gitea/model/DismissPullReviewOptions.java
+++ b/src/main/java/io/gitea/model/DismissPullReviewOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditAttachmentOptions.java b/src/main/java/io/gitea/model/EditAttachmentOptions.java
index d67c080..c7ba723 100644
--- a/src/main/java/io/gitea/model/EditAttachmentOptions.java
+++ b/src/main/java/io/gitea/model/EditAttachmentOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditBranchProtectionOption.java b/src/main/java/io/gitea/model/EditBranchProtectionOption.java
index 4b85a1b..f66787c 100644
--- a/src/main/java/io/gitea/model/EditBranchProtectionOption.java
+++ b/src/main/java/io/gitea/model/EditBranchProtectionOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -92,6 +92,9 @@ public class EditBranchProtectionOption {
@SerializedName("status_check_contexts")
private List statusCheckContexts = null;
+ @SerializedName("unprotected_file_patterns")
+ private String unprotectedFilePatterns = null;
+
public EditBranchProtectionOption approvalsWhitelistTeams(List approvalsWhitelistTeams) {
this.approvalsWhitelistTeams = approvalsWhitelistTeams;
return this;
@@ -508,6 +511,24 @@ public class EditBranchProtectionOption {
this.statusCheckContexts = statusCheckContexts;
}
+ public EditBranchProtectionOption unprotectedFilePatterns(String unprotectedFilePatterns) {
+ this.unprotectedFilePatterns = unprotectedFilePatterns;
+ return this;
+ }
+
+ /**
+ * Get unprotectedFilePatterns
+ * @return unprotectedFilePatterns
+ **/
+ @ApiModelProperty(value = "")
+ public String getUnprotectedFilePatterns() {
+ return unprotectedFilePatterns;
+ }
+
+ public void setUnprotectedFilePatterns(String unprotectedFilePatterns) {
+ this.unprotectedFilePatterns = unprotectedFilePatterns;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
@@ -537,12 +558,13 @@ public class EditBranchProtectionOption {
Objects.equals(this.pushWhitelistUsernames, editBranchProtectionOption.pushWhitelistUsernames) &&
Objects.equals(this.requireSignedCommits, editBranchProtectionOption.requireSignedCommits) &&
Objects.equals(this.requiredApprovals, editBranchProtectionOption.requiredApprovals) &&
- Objects.equals(this.statusCheckContexts, editBranchProtectionOption.statusCheckContexts);
+ Objects.equals(this.statusCheckContexts, editBranchProtectionOption.statusCheckContexts) &&
+ Objects.equals(this.unprotectedFilePatterns, editBranchProtectionOption.unprotectedFilePatterns);
}
@Override
public int hashCode() {
- return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts);
+ return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns);
}
@@ -571,6 +593,7 @@ public class EditBranchProtectionOption {
sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n");
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n");
+ sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/io/gitea/model/EditDeadlineOption.java b/src/main/java/io/gitea/model/EditDeadlineOption.java
index 05e3361..16c622a 100644
--- a/src/main/java/io/gitea/model/EditDeadlineOption.java
+++ b/src/main/java/io/gitea/model/EditDeadlineOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditGitHookOption.java b/src/main/java/io/gitea/model/EditGitHookOption.java
index c861739..490fe67 100644
--- a/src/main/java/io/gitea/model/EditGitHookOption.java
+++ b/src/main/java/io/gitea/model/EditGitHookOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditHookOption.java b/src/main/java/io/gitea/model/EditHookOption.java
index 9c1cc1f..701e944 100644
--- a/src/main/java/io/gitea/model/EditHookOption.java
+++ b/src/main/java/io/gitea/model/EditHookOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditIssueCommentOption.java b/src/main/java/io/gitea/model/EditIssueCommentOption.java
index a45b84b..6d46aba 100644
--- a/src/main/java/io/gitea/model/EditIssueCommentOption.java
+++ b/src/main/java/io/gitea/model/EditIssueCommentOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditIssueOption.java b/src/main/java/io/gitea/model/EditIssueOption.java
index caf7bd4..e5b5b68 100644
--- a/src/main/java/io/gitea/model/EditIssueOption.java
+++ b/src/main/java/io/gitea/model/EditIssueOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditLabelOption.java b/src/main/java/io/gitea/model/EditLabelOption.java
index b114384..b5c3db5 100644
--- a/src/main/java/io/gitea/model/EditLabelOption.java
+++ b/src/main/java/io/gitea/model/EditLabelOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditMilestoneOption.java b/src/main/java/io/gitea/model/EditMilestoneOption.java
index 5a89519..f90373e 100644
--- a/src/main/java/io/gitea/model/EditMilestoneOption.java
+++ b/src/main/java/io/gitea/model/EditMilestoneOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditOrgOption.java b/src/main/java/io/gitea/model/EditOrgOption.java
index 444939e..0a751c2 100644
--- a/src/main/java/io/gitea/model/EditOrgOption.java
+++ b/src/main/java/io/gitea/model/EditOrgOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditPullRequestOption.java b/src/main/java/io/gitea/model/EditPullRequestOption.java
index 1227b48..baca161 100644
--- a/src/main/java/io/gitea/model/EditPullRequestOption.java
+++ b/src/main/java/io/gitea/model/EditPullRequestOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditReactionOption.java b/src/main/java/io/gitea/model/EditReactionOption.java
index 000354c..8b465f5 100644
--- a/src/main/java/io/gitea/model/EditReactionOption.java
+++ b/src/main/java/io/gitea/model/EditReactionOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditReleaseOption.java b/src/main/java/io/gitea/model/EditReleaseOption.java
index fa2ed18..61454e0 100644
--- a/src/main/java/io/gitea/model/EditReleaseOption.java
+++ b/src/main/java/io/gitea/model/EditReleaseOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/EditRepoOption.java b/src/main/java/io/gitea/model/EditRepoOption.java
index d36d516..fce63ed 100644
--- a/src/main/java/io/gitea/model/EditRepoOption.java
+++ b/src/main/java/io/gitea/model/EditRepoOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -66,6 +66,9 @@ public class EditRepoOption {
@SerializedName("description")
private String description = null;
+ @SerializedName("enable_prune")
+ private Boolean enablePrune = null;
+
@SerializedName("external_tracker")
private ExternalTracker externalTracker = null;
@@ -303,6 +306,24 @@ public class EditRepoOption {
this.description = description;
}
+ public EditRepoOption enablePrune(Boolean enablePrune) {
+ this.enablePrune = enablePrune;
+ return this;
+ }
+
+ /**
+ * enable prune - remove obsolete remote-tracking references
+ * @return enablePrune
+ **/
+ @ApiModelProperty(value = "enable prune - remove obsolete remote-tracking references")
+ public Boolean isEnablePrune() {
+ return enablePrune;
+ }
+
+ public void setEnablePrune(Boolean enablePrune) {
+ this.enablePrune = enablePrune;
+ }
+
public EditRepoOption externalTracker(ExternalTracker externalTracker) {
this.externalTracker = externalTracker;
return this;
@@ -558,6 +579,7 @@ public class EditRepoOption {
Objects.equals(this.defaultDeleteBranchAfterMerge, editRepoOption.defaultDeleteBranchAfterMerge) &&
Objects.equals(this.defaultMergeStyle, editRepoOption.defaultMergeStyle) &&
Objects.equals(this.description, editRepoOption.description) &&
+ Objects.equals(this.enablePrune, editRepoOption.enablePrune) &&
Objects.equals(this.externalTracker, editRepoOption.externalTracker) &&
Objects.equals(this.externalWiki, editRepoOption.externalWiki) &&
Objects.equals(this.hasIssues, editRepoOption.hasIssues) &&
@@ -575,7 +597,7 @@ public class EditRepoOption {
@Override
public int hashCode() {
- return Objects.hash(allowManualMerge, allowMergeCommits, allowRebase, allowRebaseExplicit, allowSquashMerge, archived, autodetectManualMerge, defaultBranch, defaultDeleteBranchAfterMerge, defaultMergeStyle, description, externalTracker, externalWiki, hasIssues, hasProjects, hasPullRequests, hasWiki, ignoreWhitespaceConflicts, internalTracker, mirrorInterval, name, _private, template, website);
+ return Objects.hash(allowManualMerge, allowMergeCommits, allowRebase, allowRebaseExplicit, allowSquashMerge, archived, autodetectManualMerge, defaultBranch, defaultDeleteBranchAfterMerge, defaultMergeStyle, description, enablePrune, externalTracker, externalWiki, hasIssues, hasProjects, hasPullRequests, hasWiki, ignoreWhitespaceConflicts, internalTracker, mirrorInterval, name, _private, template, website);
}
@@ -595,6 +617,7 @@ public class EditRepoOption {
sb.append(" defaultDeleteBranchAfterMerge: ").append(toIndentedString(defaultDeleteBranchAfterMerge)).append("\n");
sb.append(" defaultMergeStyle: ").append(toIndentedString(defaultMergeStyle)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" enablePrune: ").append(toIndentedString(enablePrune)).append("\n");
sb.append(" externalTracker: ").append(toIndentedString(externalTracker)).append("\n");
sb.append(" externalWiki: ").append(toIndentedString(externalWiki)).append("\n");
sb.append(" hasIssues: ").append(toIndentedString(hasIssues)).append("\n");
diff --git a/src/main/java/io/gitea/model/EditTeamOption.java b/src/main/java/io/gitea/model/EditTeamOption.java
index 7eb8f3f..d83172c 100644
--- a/src/main/java/io/gitea/model/EditTeamOption.java
+++ b/src/main/java/io/gitea/model/EditTeamOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -24,7 +24,9 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
/**
* EditTeamOption options for editing a team
@@ -99,6 +101,9 @@ public class EditTeamOption {
@SerializedName("units")
private List units = null;
+ @SerializedName("units_map")
+ private Map unitsMap = null;
+
public EditTeamOption canCreateOrgRepo(Boolean canCreateOrgRepo) {
this.canCreateOrgRepo = canCreateOrgRepo;
return this;
@@ -215,6 +220,32 @@ public class EditTeamOption {
this.units = units;
}
+ public EditTeamOption unitsMap(Map unitsMap) {
+ this.unitsMap = unitsMap;
+ return this;
+ }
+
+ public EditTeamOption putUnitsMapItem(String key, String unitsMapItem) {
+ if (this.unitsMap == null) {
+ this.unitsMap = new HashMap();
+ }
+ this.unitsMap.put(key, unitsMapItem);
+ return this;
+ }
+
+ /**
+ * Get unitsMap
+ * @return unitsMap
+ **/
+ @ApiModelProperty(example = "\"{\\\"repo.code\\\":\\\"read\\\",\\\"repo.issues\\\":\\\"write\\\",\\\"repo.ext_issues\\\":\\\"none\\\",\\\"repo.wiki\\\":\\\"admin\\\",\\\"repo.pulls\\\":\\\"owner\\\",\\\"repo.releases\\\":\\\"none\\\",\\\"repo.projects\\\":\\\"none\\\",\\\"repo.ext_wiki\\\":\\\"none\\\"]\"", value = "")
+ public Map getUnitsMap() {
+ return unitsMap;
+ }
+
+ public void setUnitsMap(Map unitsMap) {
+ this.unitsMap = unitsMap;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
@@ -230,12 +261,13 @@ public class EditTeamOption {
Objects.equals(this.includesAllRepositories, editTeamOption.includesAllRepositories) &&
Objects.equals(this.name, editTeamOption.name) &&
Objects.equals(this.permission, editTeamOption.permission) &&
- Objects.equals(this.units, editTeamOption.units);
+ Objects.equals(this.units, editTeamOption.units) &&
+ Objects.equals(this.unitsMap, editTeamOption.unitsMap);
}
@Override
public int hashCode() {
- return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units);
+ return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units, unitsMap);
}
@@ -250,6 +282,7 @@ public class EditTeamOption {
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" permission: ").append(toIndentedString(permission)).append("\n");
sb.append(" units: ").append(toIndentedString(units)).append("\n");
+ sb.append(" unitsMap: ").append(toIndentedString(unitsMap)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/io/gitea/model/EditUserOption.java b/src/main/java/io/gitea/model/EditUserOption.java
index 9bf1432..31f93a6 100644
--- a/src/main/java/io/gitea/model/EditUserOption.java
+++ b/src/main/java/io/gitea/model/EditUserOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Email.java b/src/main/java/io/gitea/model/Email.java
index 7b875c8..829877d 100644
--- a/src/main/java/io/gitea/model/Email.java
+++ b/src/main/java/io/gitea/model/Email.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/ExternalTracker.java b/src/main/java/io/gitea/model/ExternalTracker.java
index 74a63da..a8fb3b7 100644
--- a/src/main/java/io/gitea/model/ExternalTracker.java
+++ b/src/main/java/io/gitea/model/ExternalTracker.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/ExternalWiki.java b/src/main/java/io/gitea/model/ExternalWiki.java
index d10117e..bec0e2f 100644
--- a/src/main/java/io/gitea/model/ExternalWiki.java
+++ b/src/main/java/io/gitea/model/ExternalWiki.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/FileCommitResponse.java b/src/main/java/io/gitea/model/FileCommitResponse.java
index 4463bd2..655dd65 100644
--- a/src/main/java/io/gitea/model/FileCommitResponse.java
+++ b/src/main/java/io/gitea/model/FileCommitResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/FileDeleteResponse.java b/src/main/java/io/gitea/model/FileDeleteResponse.java
index 2ff2fe8..ceab05f 100644
--- a/src/main/java/io/gitea/model/FileDeleteResponse.java
+++ b/src/main/java/io/gitea/model/FileDeleteResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/FileLinksResponse.java b/src/main/java/io/gitea/model/FileLinksResponse.java
index 34a1f1e..e643c87 100644
--- a/src/main/java/io/gitea/model/FileLinksResponse.java
+++ b/src/main/java/io/gitea/model/FileLinksResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/FileResponse.java b/src/main/java/io/gitea/model/FileResponse.java
index 0f516f4..0c24d7b 100644
--- a/src/main/java/io/gitea/model/FileResponse.java
+++ b/src/main/java/io/gitea/model/FileResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GPGKey.java b/src/main/java/io/gitea/model/GPGKey.java
index ffe900a..0c4a7b7 100644
--- a/src/main/java/io/gitea/model/GPGKey.java
+++ b/src/main/java/io/gitea/model/GPGKey.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GPGKeyEmail.java b/src/main/java/io/gitea/model/GPGKeyEmail.java
index 1d253e3..cd784a4 100644
--- a/src/main/java/io/gitea/model/GPGKeyEmail.java
+++ b/src/main/java/io/gitea/model/GPGKeyEmail.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GeneralAPISettings.java b/src/main/java/io/gitea/model/GeneralAPISettings.java
index c408361..d53fc2b 100644
--- a/src/main/java/io/gitea/model/GeneralAPISettings.java
+++ b/src/main/java/io/gitea/model/GeneralAPISettings.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GeneralAttachmentSettings.java b/src/main/java/io/gitea/model/GeneralAttachmentSettings.java
index 8dfae25..bc76a1d 100644
--- a/src/main/java/io/gitea/model/GeneralAttachmentSettings.java
+++ b/src/main/java/io/gitea/model/GeneralAttachmentSettings.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GeneralRepoSettings.java b/src/main/java/io/gitea/model/GeneralRepoSettings.java
index d455cae..bd14e19 100644
--- a/src/main/java/io/gitea/model/GeneralRepoSettings.java
+++ b/src/main/java/io/gitea/model/GeneralRepoSettings.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GeneralUISettings.java b/src/main/java/io/gitea/model/GeneralUISettings.java
index 24a9f9a..f041483 100644
--- a/src/main/java/io/gitea/model/GeneralUISettings.java
+++ b/src/main/java/io/gitea/model/GeneralUISettings.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GenerateRepoOption.java b/src/main/java/io/gitea/model/GenerateRepoOption.java
index c29df00..51085bd 100644
--- a/src/main/java/io/gitea/model/GenerateRepoOption.java
+++ b/src/main/java/io/gitea/model/GenerateRepoOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GitBlobResponse.java b/src/main/java/io/gitea/model/GitBlobResponse.java
index a6a816b..f27ef04 100644
--- a/src/main/java/io/gitea/model/GitBlobResponse.java
+++ b/src/main/java/io/gitea/model/GitBlobResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GitEntry.java b/src/main/java/io/gitea/model/GitEntry.java
index bb1f87b..869f087 100644
--- a/src/main/java/io/gitea/model/GitEntry.java
+++ b/src/main/java/io/gitea/model/GitEntry.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GitHook.java b/src/main/java/io/gitea/model/GitHook.java
index 0f57b19..c67320e 100644
--- a/src/main/java/io/gitea/model/GitHook.java
+++ b/src/main/java/io/gitea/model/GitHook.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GitObject.java b/src/main/java/io/gitea/model/GitObject.java
index 1441059..ed15a98 100644
--- a/src/main/java/io/gitea/model/GitObject.java
+++ b/src/main/java/io/gitea/model/GitObject.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/GitTreeResponse.java b/src/main/java/io/gitea/model/GitTreeResponse.java
index ca8e8fb..736ac6f 100644
--- a/src/main/java/io/gitea/model/GitTreeResponse.java
+++ b/src/main/java/io/gitea/model/GitTreeResponse.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Hook.java b/src/main/java/io/gitea/model/Hook.java
index 59caf19..d018afc 100644
--- a/src/main/java/io/gitea/model/Hook.java
+++ b/src/main/java/io/gitea/model/Hook.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Identity.java b/src/main/java/io/gitea/model/Identity.java
index c01449c..73a9361 100644
--- a/src/main/java/io/gitea/model/Identity.java
+++ b/src/main/java/io/gitea/model/Identity.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/InlineResponse200.java b/src/main/java/io/gitea/model/InlineResponse200.java
index 933b3b7..d498784 100644
--- a/src/main/java/io/gitea/model/InlineResponse200.java
+++ b/src/main/java/io/gitea/model/InlineResponse200.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/InlineResponse2001.java b/src/main/java/io/gitea/model/InlineResponse2001.java
index 8ca6924..9650075 100644
--- a/src/main/java/io/gitea/model/InlineResponse2001.java
+++ b/src/main/java/io/gitea/model/InlineResponse2001.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/InternalTracker.java b/src/main/java/io/gitea/model/InternalTracker.java
index 4ec82f1..c634bd2 100644
--- a/src/main/java/io/gitea/model/InternalTracker.java
+++ b/src/main/java/io/gitea/model/InternalTracker.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Issue.java b/src/main/java/io/gitea/model/Issue.java
index a49cbb7..e12cf9e 100644
--- a/src/main/java/io/gitea/model/Issue.java
+++ b/src/main/java/io/gitea/model/Issue.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/IssueDeadline.java b/src/main/java/io/gitea/model/IssueDeadline.java
index 834eb9a..1434049 100644
--- a/src/main/java/io/gitea/model/IssueDeadline.java
+++ b/src/main/java/io/gitea/model/IssueDeadline.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/IssueLabelsOption.java b/src/main/java/io/gitea/model/IssueLabelsOption.java
index 907bad6..6c2ce2f 100644
--- a/src/main/java/io/gitea/model/IssueLabelsOption.java
+++ b/src/main/java/io/gitea/model/IssueLabelsOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/IssueTemplate.java b/src/main/java/io/gitea/model/IssueTemplate.java
index 3f164eb..4a96fe9 100644
--- a/src/main/java/io/gitea/model/IssueTemplate.java
+++ b/src/main/java/io/gitea/model/IssueTemplate.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -47,6 +47,9 @@ public class IssueTemplate {
@SerializedName("name")
private String name = null;
+ @SerializedName("ref")
+ private String ref = null;
+
@SerializedName("title")
private String title = null;
@@ -148,6 +151,24 @@ public class IssueTemplate {
this.name = name;
}
+ public IssueTemplate ref(String ref) {
+ this.ref = ref;
+ return this;
+ }
+
+ /**
+ * Get ref
+ * @return ref
+ **/
+ @ApiModelProperty(value = "")
+ public String getRef() {
+ return ref;
+ }
+
+ public void setRef(String ref) {
+ this.ref = ref;
+ }
+
public IssueTemplate title(String title) {
this.title = title;
return this;
@@ -181,12 +202,13 @@ public class IssueTemplate {
Objects.equals(this.fileName, issueTemplate.fileName) &&
Objects.equals(this.labels, issueTemplate.labels) &&
Objects.equals(this.name, issueTemplate.name) &&
+ Objects.equals(this.ref, issueTemplate.ref) &&
Objects.equals(this.title, issueTemplate.title);
}
@Override
public int hashCode() {
- return Objects.hash(about, content, fileName, labels, name, title);
+ return Objects.hash(about, content, fileName, labels, name, ref, title);
}
@@ -200,6 +222,7 @@ public class IssueTemplate {
sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" ref: ").append(toIndentedString(ref)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/io/gitea/model/Label.java b/src/main/java/io/gitea/model/Label.java
index 356b21b..8fbd532 100644
--- a/src/main/java/io/gitea/model/Label.java
+++ b/src/main/java/io/gitea/model/Label.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/MarkdownOption.java b/src/main/java/io/gitea/model/MarkdownOption.java
index d8f57eb..ab7b338 100644
--- a/src/main/java/io/gitea/model/MarkdownOption.java
+++ b/src/main/java/io/gitea/model/MarkdownOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/MergePullRequestOption.java b/src/main/java/io/gitea/model/MergePullRequestOption.java
index a241d6b..d8630de 100644
--- a/src/main/java/io/gitea/model/MergePullRequestOption.java
+++ b/src/main/java/io/gitea/model/MergePullRequestOption.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -101,6 +101,9 @@ public class MergePullRequestOption {
@SerializedName("force_merge")
private Boolean forceMerge = null;
+ @SerializedName("head_commit_id")
+ private String headCommitId = null;
+
public MergePullRequestOption _do(DoEnum _do) {
this._do = _do;
return this;
@@ -209,6 +212,24 @@ public class MergePullRequestOption {
this.forceMerge = forceMerge;
}
+ public MergePullRequestOption headCommitId(String headCommitId) {
+ this.headCommitId = headCommitId;
+ return this;
+ }
+
+ /**
+ * Get headCommitId
+ * @return headCommitId
+ **/
+ @ApiModelProperty(value = "")
+ public String getHeadCommitId() {
+ return headCommitId;
+ }
+
+ public void setHeadCommitId(String headCommitId) {
+ this.headCommitId = headCommitId;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
@@ -224,12 +245,13 @@ public class MergePullRequestOption {
Objects.equals(this.mergeMessageField, mergePullRequestOption.mergeMessageField) &&
Objects.equals(this.mergeTitleField, mergePullRequestOption.mergeTitleField) &&
Objects.equals(this.deleteBranchAfterMerge, mergePullRequestOption.deleteBranchAfterMerge) &&
- Objects.equals(this.forceMerge, mergePullRequestOption.forceMerge);
+ Objects.equals(this.forceMerge, mergePullRequestOption.forceMerge) &&
+ Objects.equals(this.headCommitId, mergePullRequestOption.headCommitId);
}
@Override
public int hashCode() {
- return Objects.hash(_do, mergeCommitID, mergeMessageField, mergeTitleField, deleteBranchAfterMerge, forceMerge);
+ return Objects.hash(_do, mergeCommitID, mergeMessageField, mergeTitleField, deleteBranchAfterMerge, forceMerge, headCommitId);
}
@@ -244,6 +266,7 @@ public class MergePullRequestOption {
sb.append(" mergeTitleField: ").append(toIndentedString(mergeTitleField)).append("\n");
sb.append(" deleteBranchAfterMerge: ").append(toIndentedString(deleteBranchAfterMerge)).append("\n");
sb.append(" forceMerge: ").append(toIndentedString(forceMerge)).append("\n");
+ sb.append(" headCommitId: ").append(toIndentedString(headCommitId)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/io/gitea/model/MigrateRepoForm.java b/src/main/java/io/gitea/model/MigrateRepoForm.java
index 391ba6d..3592036 100644
--- a/src/main/java/io/gitea/model/MigrateRepoForm.java
+++ b/src/main/java/io/gitea/model/MigrateRepoForm.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/MigrateRepoOptions.java b/src/main/java/io/gitea/model/MigrateRepoOptions.java
index 749ab73..7abe9c9 100644
--- a/src/main/java/io/gitea/model/MigrateRepoOptions.java
+++ b/src/main/java/io/gitea/model/MigrateRepoOptions.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/Milestone.java b/src/main/java/io/gitea/model/Milestone.java
index 46800b1..8c2d876 100644
--- a/src/main/java/io/gitea/model/Milestone.java
+++ b/src/main/java/io/gitea/model/Milestone.java
@@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
- * OpenAPI spec version: 1.16.0-SNAPSHOT
+ * OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/src/main/java/io/gitea/model/NodeInfo.java b/src/main/java/io/gitea/model/NodeInfo.java
new file mode 100644
index 0000000..7646e3d
--- /dev/null
+++ b/src/main/java/io/gitea/model/NodeInfo.java
@@ -0,0 +1,246 @@
+/*
+ * Gitea API.
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: 1.16.8
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+
+package io.gitea.model;
+
+import java.util.Objects;
+import java.util.Arrays;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.gitea.model.NodeInfoServices;
+import io.gitea.model.NodeInfoSoftware;
+import io.gitea.model.NodeInfoUsage;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
+ */
+@ApiModel(description = "NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks")
+
+public class NodeInfo {
+ @SerializedName("metadata")
+ private Object metadata = null;
+
+ @SerializedName("openRegistrations")
+ private Boolean openRegistrations = null;
+
+ @SerializedName("protocols")
+ private List protocols = null;
+
+ @SerializedName("services")
+ private NodeInfoServices services = null;
+
+ @SerializedName("software")
+ private NodeInfoSoftware software = null;
+
+ @SerializedName("usage")
+ private NodeInfoUsage usage = null;
+
+ @SerializedName("version")
+ private String version = null;
+
+ public NodeInfo metadata(Object metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get metadata
+ * @return metadata
+ **/
+ @ApiModelProperty(value = "")
+ public Object getMetadata() {
+ return metadata;
+ }
+
+ public void setMetadata(Object metadata) {
+ this.metadata = metadata;
+ }
+
+ public NodeInfo openRegistrations(Boolean openRegistrations) {
+ this.openRegistrations = openRegistrations;
+ return this;
+ }
+
+ /**
+ * Get openRegistrations
+ * @return openRegistrations
+ **/
+ @ApiModelProperty(value = "")
+ public Boolean isOpenRegistrations() {
+ return openRegistrations;
+ }
+
+ public void setOpenRegistrations(Boolean openRegistrations) {
+ this.openRegistrations = openRegistrations;
+ }
+
+ public NodeInfo protocols(List protocols) {
+ this.protocols = protocols;
+ return this;
+ }
+
+ public NodeInfo addProtocolsItem(String protocolsItem) {
+ if (this.protocols == null) {
+ this.protocols = new ArrayList