prepare for release of 1.16.8
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
313b7ee872
commit
7ff9f492db
|
|
@ -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]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ Name | Type | Description | Notes
|
|||
**requireSignedCommits** | **Boolean** | | [optional]
|
||||
**requiredApprovals** | **Long** | | [optional]
|
||||
**statusCheckContexts** | **List<String>** | | [optional]
|
||||
**unprotectedFilePatterns** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||
**name** | **String** | |
|
||||
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
|
||||
**units** | **List<String>** | | [optional]
|
||||
**unitsMap** | **Map<String, String>** | | [optional]
|
||||
|
||||
|
||||
<a name="PermissionEnum"></a>
|
||||
|
|
|
|||
|
|
@ -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** | |
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -24,6 +24,7 @@ Name | Type | Description | Notes
|
|||
**requireSignedCommits** | **Boolean** | | [optional]
|
||||
**requiredApprovals** | **Long** | | [optional]
|
||||
**statusCheckContexts** | **List<String>** | | [optional]
|
||||
**unprotectedFilePatterns** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||
**name** | **String** | |
|
||||
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
|
||||
**units** | **List<String>** | | [optional]
|
||||
**unitsMap** | **Map<String, String>** | | [optional]
|
||||
|
||||
|
||||
<a name="PermissionEnum"></a>
|
||||
|
|
|
|||
121
docs/IssueApi.md
121
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
|
||||
|
||||
<a name="issueGetCommentsAndTimeline"></a>
|
||||
# **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<TimelineComment> 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]
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|||
**fileName** | **String** | | [optional]
|
||||
**labels** | **List<String>** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**ref** | **String** | | [optional]
|
||||
**title** | **String** | | [optional]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||
**mergeTitleField** | **String** | | [optional]
|
||||
**deleteBranchAfterMerge** | **Boolean** | | [optional]
|
||||
**forceMerge** | **Boolean** | | [optional]
|
||||
**headCommitId** | **String** | | [optional]
|
||||
|
||||
|
||||
<a name="DoEnum"></a>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
<a name="getNodeInfo"></a>
|
||||
# **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
|
||||
|
||||
<a name="getSigningKey"></a>
|
||||
# **getSigningKey**
|
||||
> String getSigningKey()
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# NodeInfoServices
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**inbound** | **List<String>** | | [optional]
|
||||
**outbound** | **List<String>** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
# NodeInfoSoftware
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**homepage** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**repository** | **String** | | [optional]
|
||||
**version** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# NodeInfoUsage
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**localComments** | **Long** | | [optional]
|
||||
**localPosts** | **Long** | | [optional]
|
||||
**users** | [**NodeInfoUsageUsers**](NodeInfoUsageUsers.md) | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# NodeInfoUsageUsers
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**activeHalfyear** | **Long** | | [optional]
|
||||
**activeMonth** | **Long** | | [optional]
|
||||
**total** | **Long** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -391,7 +391,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
<a name="notifyReadList"></a>
|
||||
# **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<String> statusTypes = Arrays.asList("statusTypes_example"); // List<String> | 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<NotificationThread> 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)
|
|||
|
||||
<a name="notifyReadRepoList"></a>
|
||||
# **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<String> statusTypes = Arrays.asList("statusTypes_example"); // List<String>
|
|||
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<NotificationThread> 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)
|
|||
|
||||
<a name="notifyReadThread"></a>
|
||||
# **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
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
**latestCommentHtmlUrl** | **String** | | [optional]
|
||||
**latestCommentUrl** | **String** | | [optional]
|
||||
**state** | **String** | | [optional]
|
||||
**title** | **String** | | [optional]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
<a name="orgGetUserPermissions"></a>
|
||||
# **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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
<a name="acceptRepoTransfer"></a>
|
||||
# **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
|
||||
|
||||
<a name="createCurrentUserRepo"></a>
|
||||
# **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
|
||||
|
||||
<a name="rejectRepoTransfer"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoCreateWikiPage"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoDelete"></a>
|
||||
# **repoDelete**
|
||||
> repoDelete(owner, repo)
|
||||
|
|
@ -3807,6 +4087,97 @@ null (empty response body)
|
|||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="repoDeleteWikiPage"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoDismissPullReview"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoDownloadPullDiff"></a>
|
||||
# **repoDownloadPullDiff**
|
||||
> String repoDownloadPullDiff(owner, repo, index)
|
||||
<a name="repoDownloadCommitDiffOrPatch"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoDownloadPullPatch"></a>
|
||||
# **repoDownloadPullPatch**
|
||||
> String repoDownloadPullPatch(owner, repo, index)
|
||||
<a name="repoDownloadPullDiffOrPatch"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoEditWikiPage"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoGet"></a>
|
||||
# **repoGet**
|
||||
> Repository repoGet(owner, repo)
|
||||
|
|
@ -4837,7 +5308,7 @@ Name | Type | Description | Notes
|
|||
|
||||
<a name="repoGetAllCommits"></a>
|
||||
# **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<Commit> result = apiInstance.repoGetAllCommits(owner, repo, sha, page, limit);
|
||||
List<Commit> 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
|
||||
|
||||
<a name="repoGetWikiPage"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoGetWikiPageRevisions"></a>
|
||||
# **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
|
||||
|
||||
<a name="repoGetWikiPages"></a>
|
||||
# **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<WikiPageMetaData> 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
|
|||
|
||||
<a name="repoUpdatePullRequest"></a>
|
||||
# **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
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
||||
<a name="PermissionEnum"></a>
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# WikiCommitList
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**commits** | [**List<WikiCommit>**](WikiCommit.md) | | [optional]
|
||||
**count** | **Long** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
# WikiPageMetaData
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
**lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional]
|
||||
**subUrl** | **String** | | [optional]
|
||||
**title** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
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<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
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<TimelineComment> issueGetCommentsAndTimeline(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before) throws ApiException {
|
||||
ApiResponse<List<TimelineComment>> 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<List<TimelineComment>> 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<List<TimelineComment>>(){}.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<List<TimelineComment>> 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<List<TimelineComment>>(){}.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
|
||||
|
|
|
|||
|
|
@ -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<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
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<NodeInfo> 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<NodeInfo> getNodeInfoWithHttpInfo() throws ApiException {
|
||||
com.squareup.okhttp.Call call = getNodeInfoValidateBeforeCall(null, null);
|
||||
Type localVarReturnType = new TypeToken<NodeInfo>(){}.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<NodeInfo> 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<NodeInfo>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for getSigningKey
|
||||
* @param progressListener Progress listener
|
||||
|
|
|
|||
|
|
@ -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<String> statusTypes, String toStatus) throws ApiException {
|
||||
notifyReadListWithHttpInfo(lastReadAt, all, statusTypes, toStatus);
|
||||
public List<NotificationThread> notifyReadList(OffsetDateTime lastReadAt, String all, List<String> statusTypes, String toStatus) throws ApiException {
|
||||
ApiResponse<List<NotificationThread>> 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<Void> notifyReadListWithHttpInfo(OffsetDateTime lastReadAt, String all, List<String> statusTypes, String toStatus) throws ApiException {
|
||||
public ApiResponse<List<NotificationThread>> notifyReadListWithHttpInfo(OffsetDateTime lastReadAt, String all, List<String> 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<List<NotificationThread>>(){}.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<String> statusTypes, String toStatus, final ApiCallback<Void> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call notifyReadListAsync(OffsetDateTime lastReadAt, String all, List<String> statusTypes, String toStatus, final ApiCallback<List<NotificationThread>> 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<List<NotificationThread>>(){}.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<String> statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
|
||||
notifyReadRepoListWithHttpInfo(owner, repo, all, statusTypes, toStatus, lastReadAt);
|
||||
public List<NotificationThread> notifyReadRepoList(String owner, String repo, String all, List<String> statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
|
||||
ApiResponse<List<NotificationThread>> 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<Void> notifyReadRepoListWithHttpInfo(String owner, String repo, String all, List<String> statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException {
|
||||
public ApiResponse<List<NotificationThread>> notifyReadRepoListWithHttpInfo(String owner, String repo, String all, List<String> 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<List<NotificationThread>>(){}.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<String> statusTypes, String toStatus, OffsetDateTime lastReadAt, final ApiCallback<Void> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call notifyReadRepoListAsync(String owner, String repo, String all, List<String> statusTypes, String toStatus, OffsetDateTime lastReadAt, final ApiCallback<List<NotificationThread>> 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<List<NotificationThread>>(){}.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<NotificationThread> 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<Void> notifyReadThreadWithHttpInfo(String id, String toStatus) throws ApiException {
|
||||
public ApiResponse<NotificationThread> 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<NotificationThread>(){}.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<Void> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call notifyReadThreadAsync(String id, String toStatus, final ApiCallback<NotificationThread> 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<NotificationThread>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
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<OrganizationPermissions> 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<OrganizationPermissions> orgGetUserPermissionsWithHttpInfo(String username, String org) throws ApiException {
|
||||
com.squareup.okhttp.Call call = orgGetUserPermissionsValidateBeforeCall(username, org, null, null);
|
||||
Type localVarReturnType = new TypeToken<OrganizationPermissions>(){}.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<OrganizationPermissions> 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<OrganizationPermissions>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgIsMember
|
||||
* @param org name of the organization (required)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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<String> 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();
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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<String> statusCheckContexts = null;
|
||||
|
||||
@SerializedName("unprotected_file_patterns")
|
||||
private String unprotectedFilePatterns = null;
|
||||
|
||||
public CreateBranchProtectionOption approvalsWhitelistTeams(List<String> 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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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<String> units = null;
|
||||
|
||||
@SerializedName("units_map")
|
||||
private Map<String, String> 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<String, String> unitsMap) {
|
||||
this.unitsMap = unitsMap;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CreateTeamOption putUnitsMapItem(String key, String unitsMapItem) {
|
||||
if (this.unitsMap == null) {
|
||||
this.unitsMap = new HashMap<String, String>();
|
||||
}
|
||||
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<String, String> getUnitsMap() {
|
||||
return unitsMap;
|
||||
}
|
||||
|
||||
public void setUnitsMap(Map<String, String> 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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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 ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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<String> statusCheckContexts = null;
|
||||
|
||||
@SerializedName("unprotected_file_patterns")
|
||||
private String unprotectedFilePatterns = null;
|
||||
|
||||
public EditBranchProtectionOption approvalsWhitelistTeams(List<String> 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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue