diff --git a/docs/BranchProtection.md b/docs/BranchProtection.md index 240499a..2fefe65 100644 --- a/docs/BranchProtection.md +++ b/docs/BranchProtection.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **requireSignedCommits** | **Boolean** | | [optional] **requiredApprovals** | **Long** | | [optional] **statusCheckContexts** | **List<String>** | | [optional] +**unprotectedFilePatterns** | **String** | | [optional] **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] diff --git a/docs/CreateBranchProtectionOption.md b/docs/CreateBranchProtectionOption.md index 88777fe..97a4015 100644 --- a/docs/CreateBranchProtectionOption.md +++ b/docs/CreateBranchProtectionOption.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **requireSignedCommits** | **Boolean** | | [optional] **requiredApprovals** | **Long** | | [optional] **statusCheckContexts** | **List<String>** | | [optional] +**unprotectedFilePatterns** | **String** | | [optional] diff --git a/docs/CreateForkOption.md b/docs/CreateForkOption.md index b0519a3..2385282 100644 --- a/docs/CreateForkOption.md +++ b/docs/CreateForkOption.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | name of the forked repository | [optional] **organization** | **String** | organization name, if forking into an organization | [optional] diff --git a/docs/CreateRepoOption.md b/docs/CreateRepoOption.md index bfc44e0..8287f8b 100644 --- a/docs/CreateRepoOption.md +++ b/docs/CreateRepoOption.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional] +**autoInit** | **Boolean** | Whether the repository should be auto-initialized? | [optional] **defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional] **description** | **String** | Description of the repository to create | [optional] **gitignores** | **String** | Gitignores to use | [optional] diff --git a/docs/CreateTeamOption.md b/docs/CreateTeamOption.md index 1af07e2..6678757 100644 --- a/docs/CreateTeamOption.md +++ b/docs/CreateTeamOption.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **String** | | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] **units** | **List<String>** | | [optional] +**unitsMap** | **Map<String, String>** | | [optional] diff --git a/docs/CreateUserOption.md b/docs/CreateUserOption.md index c2efed0..c5f9e11 100644 --- a/docs/CreateUserOption.md +++ b/docs/CreateUserOption.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **loginName** | **String** | | [optional] **mustChangePassword** | **Boolean** | | [optional] **password** | **String** | | +**restricted** | **Boolean** | | [optional] **sendNotify** | **Boolean** | | [optional] **sourceId** | **Long** | | [optional] **username** | **String** | | diff --git a/docs/CreateWikiPageOptions.md b/docs/CreateWikiPageOptions.md new file mode 100644 index 0000000..012d2c3 --- /dev/null +++ b/docs/CreateWikiPageOptions.md @@ -0,0 +1,12 @@ + +# CreateWikiPageOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contentBase64** | **String** | content must be base64 encoded | [optional] +**message** | **String** | optional commit message summarizing the change | [optional] +**title** | **String** | page title. leave empty to keep unchanged | [optional] + + + diff --git a/docs/EditBranchProtectionOption.md b/docs/EditBranchProtectionOption.md index 61a71bf..a3ece34 100644 --- a/docs/EditBranchProtectionOption.md +++ b/docs/EditBranchProtectionOption.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **requireSignedCommits** | **Boolean** | | [optional] **requiredApprovals** | **Long** | | [optional] **statusCheckContexts** | **List<String>** | | [optional] +**unprotectedFilePatterns** | **String** | | [optional] diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md index 49c7bd7..e182276 100644 --- a/docs/EditRepoOption.md +++ b/docs/EditRepoOption.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **defaultDeleteBranchAfterMerge** | **Boolean** | set to `true` to delete pr branch after merge by default | [optional] **defaultMergeStyle** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`. | [optional] **description** | **String** | a short description of the repository. | [optional] +**enablePrune** | **Boolean** | enable prune - remove obsolete remote-tracking references | [optional] **externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional] **externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional] **hasIssues** | **Boolean** | either `true` to enable issues for this repository or `false` to disable them. | [optional] diff --git a/docs/EditTeamOption.md b/docs/EditTeamOption.md index cc1434c..bd699f9 100644 --- a/docs/EditTeamOption.md +++ b/docs/EditTeamOption.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **String** | | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] **units** | **List<String>** | | [optional] +**unitsMap** | **Map<String, String>** | | [optional] diff --git a/docs/IssueApi.md b/docs/IssueApi.md index 93b7e24..10c5ebc 100644 --- a/docs/IssueApi.md +++ b/docs/IssueApi.md @@ -31,6 +31,7 @@ Method | HTTP request | Description [**issueGetComment**](IssueApi.md#issueGetComment) | **GET** /repos/{owner}/{repo}/issues/comments/{id} | Get a comment [**issueGetCommentReactions**](IssueApi.md#issueGetCommentReactions) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue [**issueGetComments**](IssueApi.md#issueGetComments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue +[**issueGetCommentsAndTimeline**](IssueApi.md#issueGetCommentsAndTimeline) | **GET** /repos/{owner}/{repo}/issues/{index}/timeline | List all comments and events on an issue [**issueGetIssue**](IssueApi.md#issueGetIssue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get an issue [**issueGetIssueReactions**](IssueApi.md#issueGetIssueReactions) | **GET** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue [**issueGetLabel**](IssueApi.md#issueGetLabel) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label @@ -2556,6 +2557,106 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **issueGetCommentsAndTimeline** +> List<TimelineComment> issueGetCommentsAndTimeline(owner, repo, index, since, page, limit, before) + +List all comments and events on an issue + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | if provided, only comments updated since the specified time are returned. +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results +OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | if provided, only comments updated before the provided time are returned. +try { + List result = apiInstance.issueGetCommentsAndTimeline(owner, repo, index, since, page, limit, before); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueGetCommentsAndTimeline"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + **since** | **OffsetDateTime**| if provided, only comments updated since the specified time are returned. | [optional] + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] + **before** | **OffsetDateTime**| if provided, only comments updated before the provided time are returned. | [optional] + +### Return type + +[**List<TimelineComment>**](TimelineComment.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: application/json, text/plain @@ -3287,11 +3388,11 @@ String labels = "labels_example"; // String | comma separated list of labels. Fe String q = "q_example"; // String | search string String type = "type_example"; // String | filter by type (issues / pulls) if set String milestones = "milestones_example"; // String | comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded -OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | Only show notifications updated after the given time. This is a timestamp in RFC 3339 format -OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | Only show notifications updated before the given time. This is a timestamp in RFC 3339 format -String createdBy = "createdBy_example"; // String | filter (issues / pulls) created to -String assignedBy = "assignedBy_example"; // String | filter (issues / pulls) assigned to -String mentionedBy = "mentionedBy_example"; // String | filter (issues / pulls) mentioning to +OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | Only show items updated after the given time. This is a timestamp in RFC 3339 format +OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | Only show items updated before the given time. This is a timestamp in RFC 3339 format +String createdBy = "createdBy_example"; // String | Only show items which were created by the the given user +String assignedBy = "assignedBy_example"; // String | Only show items for which the given user is assigned +String mentionedBy = "mentionedBy_example"; // String | Only show items in which the given user was mentioned Integer page = 56; // Integer | page number of results to return (1-based) Integer limit = 56; // Integer | page size of results try { @@ -3314,11 +3415,11 @@ Name | Type | Description | Notes **q** | **String**| search string | [optional] **type** | **String**| filter by type (issues / pulls) if set | [optional] [enum: issues, pulls] **milestones** | **String**| comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded | [optional] - **since** | **OffsetDateTime**| Only show notifications updated after the given time. This is a timestamp in RFC 3339 format | [optional] - **before** | **OffsetDateTime**| Only show notifications updated before the given time. This is a timestamp in RFC 3339 format | [optional] - **createdBy** | **String**| filter (issues / pulls) created to | [optional] - **assignedBy** | **String**| filter (issues / pulls) assigned to | [optional] - **mentionedBy** | **String**| filter (issues / pulls) mentioning to | [optional] + **since** | **OffsetDateTime**| Only show items updated after the given time. This is a timestamp in RFC 3339 format | [optional] + **before** | **OffsetDateTime**| Only show items updated before the given time. This is a timestamp in RFC 3339 format | [optional] + **createdBy** | **String**| Only show items which were created by the the given user | [optional] + **assignedBy** | **String**| Only show items for which the given user is assigned | [optional] + **mentionedBy** | **String**| Only show items in which the given user was mentioned | [optional] **page** | **Integer**| page number of results to return (1-based) | [optional] **limit** | **Integer**| page size of results | [optional] diff --git a/docs/IssueTemplate.md b/docs/IssueTemplate.md index b0ec2df..f18d615 100644 --- a/docs/IssueTemplate.md +++ b/docs/IssueTemplate.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **fileName** | **String** | | [optional] **labels** | **List<String>** | | [optional] **name** | **String** | | [optional] +**ref** | **String** | | [optional] **title** | **String** | | [optional] diff --git a/docs/MergePullRequestOption.md b/docs/MergePullRequestOption.md index 56167fb..baae655 100644 --- a/docs/MergePullRequestOption.md +++ b/docs/MergePullRequestOption.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **mergeTitleField** | **String** | | [optional] **deleteBranchAfterMerge** | **Boolean** | | [optional] **forceMerge** | **Boolean** | | [optional] +**headCommitId** | **String** | | [optional] diff --git a/docs/MiscellaneousApi.md b/docs/MiscellaneousApi.md index b4830e2..5d8bec9 100644 --- a/docs/MiscellaneousApi.md +++ b/docs/MiscellaneousApi.md @@ -4,12 +4,97 @@ All URIs are relative to *http://localhost/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**getNodeInfo**](MiscellaneousApi.md#getNodeInfo) | **GET** /nodeinfo | Returns the nodeinfo of the Gitea application [**getSigningKey**](MiscellaneousApi.md#getSigningKey) | **GET** /signing-key.gpg | Get default signing-key.gpg [**getVersion**](MiscellaneousApi.md#getVersion) | **GET** /version | Returns the version of the Gitea application [**renderMarkdown**](MiscellaneousApi.md#renderMarkdown) | **POST** /markdown | Render a markdown document as HTML [**renderMarkdownRaw**](MiscellaneousApi.md#renderMarkdownRaw) | **POST** /markdown/raw | Render raw markdown as HTML + +# **getNodeInfo** +> NodeInfo getNodeInfo() + +Returns the nodeinfo of the Gitea application + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.MiscellaneousApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +MiscellaneousApi apiInstance = new MiscellaneousApi(); +try { + NodeInfo result = apiInstance.getNodeInfo(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MiscellaneousApi#getNodeInfo"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NodeInfo**](NodeInfo.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + # **getSigningKey** > String getSigningKey() diff --git a/docs/NodeInfo.md b/docs/NodeInfo.md new file mode 100644 index 0000000..f8c0f8f --- /dev/null +++ b/docs/NodeInfo.md @@ -0,0 +1,16 @@ + +# NodeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | **Object** | | [optional] +**openRegistrations** | **Boolean** | | [optional] +**protocols** | **List<String>** | | [optional] +**services** | [**NodeInfoServices**](NodeInfoServices.md) | | [optional] +**software** | [**NodeInfoSoftware**](NodeInfoSoftware.md) | | [optional] +**usage** | [**NodeInfoUsage**](NodeInfoUsage.md) | | [optional] +**version** | **String** | | [optional] + + + diff --git a/docs/NodeInfoServices.md b/docs/NodeInfoServices.md new file mode 100644 index 0000000..4f32318 --- /dev/null +++ b/docs/NodeInfoServices.md @@ -0,0 +1,11 @@ + +# NodeInfoServices + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inbound** | **List<String>** | | [optional] +**outbound** | **List<String>** | | [optional] + + + diff --git a/docs/NodeInfoSoftware.md b/docs/NodeInfoSoftware.md new file mode 100644 index 0000000..795a2cf --- /dev/null +++ b/docs/NodeInfoSoftware.md @@ -0,0 +1,13 @@ + +# NodeInfoSoftware + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**homepage** | **String** | | [optional] +**name** | **String** | | [optional] +**repository** | **String** | | [optional] +**version** | **String** | | [optional] + + + diff --git a/docs/NodeInfoUsage.md b/docs/NodeInfoUsage.md new file mode 100644 index 0000000..1ec3d46 --- /dev/null +++ b/docs/NodeInfoUsage.md @@ -0,0 +1,12 @@ + +# NodeInfoUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**localComments** | **Long** | | [optional] +**localPosts** | **Long** | | [optional] +**users** | [**NodeInfoUsageUsers**](NodeInfoUsageUsers.md) | | [optional] + + + diff --git a/docs/NodeInfoUsageUsers.md b/docs/NodeInfoUsageUsers.md new file mode 100644 index 0000000..7878160 --- /dev/null +++ b/docs/NodeInfoUsageUsers.md @@ -0,0 +1,12 @@ + +# NodeInfoUsageUsers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activeHalfyear** | **Long** | | [optional] +**activeMonth** | **Long** | | [optional] +**total** | **Long** | | [optional] + + + diff --git a/docs/NotificationApi.md b/docs/NotificationApi.md index ddf4c31..45a5f50 100644 --- a/docs/NotificationApi.md +++ b/docs/NotificationApi.md @@ -391,7 +391,7 @@ This endpoint does not need any parameter. # **notifyReadList** -> notifyReadList(lastReadAt, all, statusTypes, toStatus) +> List<NotificationThread> notifyReadList(lastReadAt, all, statusTypes, toStatus) Mark notification threads as read, pinned or unread @@ -453,7 +453,8 @@ String all = "all_example"; // String | If true, mark all notifications on this List statusTypes = Arrays.asList("statusTypes_example"); // List | Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. String toStatus = "toStatus_example"; // String | Status to mark notifications as, Defaults to read. try { - apiInstance.notifyReadList(lastReadAt, all, statusTypes, toStatus); + List result = apiInstance.notifyReadList(lastReadAt, all, statusTypes, toStatus); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationApi#notifyReadList"); e.printStackTrace(); @@ -471,7 +472,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +[**List<NotificationThread>**](NotificationThread.md) ### Authorization @@ -484,7 +485,7 @@ null (empty response body) # **notifyReadRepoList** -> notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt) +> List<NotificationThread> notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt) Mark notification threads as read, pinned or unread on a specific repo @@ -548,7 +549,8 @@ List statusTypes = Arrays.asList("statusTypes_example"); // List String toStatus = "toStatus_example"; // String | Status to mark notifications as. Defaults to read. OffsetDateTime lastReadAt = OffsetDateTime.now(); // OffsetDateTime | Describes the last point that notifications were checked. Anything updated since this time will not be updated. try { - apiInstance.notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt); + List result = apiInstance.notifyReadRepoList(owner, repo, all, statusTypes, toStatus, lastReadAt); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationApi#notifyReadRepoList"); e.printStackTrace(); @@ -568,7 +570,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +[**List<NotificationThread>**](NotificationThread.md) ### Authorization @@ -581,7 +583,7 @@ null (empty response body) # **notifyReadThread** -> notifyReadThread(id, toStatus) +> NotificationThread notifyReadThread(id, toStatus) Mark notification thread as read by ID @@ -641,7 +643,8 @@ NotificationApi apiInstance = new NotificationApi(); String id = "id_example"; // String | id of notification thread String toStatus = "read"; // String | Status to mark notifications as try { - apiInstance.notifyReadThread(id, toStatus); + NotificationThread result = apiInstance.notifyReadThread(id, toStatus); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationApi#notifyReadThread"); e.printStackTrace(); @@ -657,7 +660,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +[**NotificationThread**](NotificationThread.md) ### Authorization diff --git a/docs/NotificationSubject.md b/docs/NotificationSubject.md index 2bf0622..64b7c10 100644 --- a/docs/NotificationSubject.md +++ b/docs/NotificationSubject.md @@ -4,6 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**htmlUrl** | **String** | | [optional] +**latestCommentHtmlUrl** | **String** | | [optional] **latestCommentUrl** | **String** | | [optional] **state** | **String** | | [optional] **title** | **String** | | [optional] diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index e2ff90b..2ccc545 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -27,6 +27,7 @@ Method | HTTP request | Description [**orgGetHook**](OrganizationApi.md#orgGetHook) | **GET** /orgs/{org}/hooks/{id} | Get a hook [**orgGetLabel**](OrganizationApi.md#orgGetLabel) | **GET** /orgs/{org}/labels/{id} | Get a single label [**orgGetTeam**](OrganizationApi.md#orgGetTeam) | **GET** /teams/{id} | Get a team +[**orgGetUserPermissions**](OrganizationApi.md#orgGetUserPermissions) | **GET** /users/{username}/orgs/{org}/permissions | Get user permissions in organization [**orgIsMember**](OrganizationApi.md#orgIsMember) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization [**orgIsPublicMember**](OrganizationApi.md#orgIsPublicMember) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization [**orgListCurrentUserOrgs**](OrganizationApi.md#orgListCurrentUserOrgs) | **GET** /user/orgs | List the current user's organizations @@ -2099,6 +2100,96 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **orgGetUserPermissions** +> OrganizationPermissions orgGetUserPermissions(username, org) + +Get user permissions in organization + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.OrganizationApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +OrganizationApi apiInstance = new OrganizationApi(); +String username = "username_example"; // String | username of user +String org = "org_example"; // String | name of the organization +try { + OrganizationPermissions result = apiInstance.orgGetUserPermissions(username, org); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#orgGetUserPermissions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username of user | + **org** | **String**| name of the organization | + +### Return type + +[**OrganizationPermissions**](OrganizationPermissions.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: application/json, text/plain diff --git a/docs/OrganizationPermissions.md b/docs/OrganizationPermissions.md new file mode 100644 index 0000000..e5a383c --- /dev/null +++ b/docs/OrganizationPermissions.md @@ -0,0 +1,14 @@ + +# OrganizationPermissions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canCreateRepository** | **Boolean** | | [optional] +**canRead** | **Boolean** | | [optional] +**canWrite** | **Boolean** | | [optional] +**isAdmin** | **Boolean** | | [optional] +**isOwner** | **Boolean** | | [optional] + + + diff --git a/docs/RepoTransfer.md b/docs/RepoTransfer.md new file mode 100644 index 0000000..27f569d --- /dev/null +++ b/docs/RepoTransfer.md @@ -0,0 +1,12 @@ + +# RepoTransfer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**doer** | [**User**](User.md) | | [optional] +**recipient** | [**User**](User.md) | | [optional] +**teams** | [**List<Team>**](Team.md) | | [optional] + + + diff --git a/docs/Repository.md b/docs/Repository.md index bdee5af..f856b2e 100644 --- a/docs/Repository.md +++ b/docs/Repository.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional] **mirror** | **Boolean** | | [optional] **mirrorInterval** | **String** | | [optional] +**mirrorUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **name** | **String** | | [optional] **openIssuesCount** | **Long** | | [optional] **openPrCounter** | **Long** | | [optional] @@ -41,6 +42,7 @@ Name | Type | Description | Notes **permissions** | [**Permission**](Permission.md) | | [optional] **_private** | **Boolean** | | [optional] **releaseCounter** | **Long** | | [optional] +**repoTransfer** | [**RepoTransfer**](RepoTransfer.md) | | [optional] **size** | **Long** | | [optional] **sshUrl** | **String** | | [optional] **starsCount** | **Long** | | [optional] diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 60ce0b6..2757483 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -4,6 +4,7 @@ All URIs are relative to *http://localhost/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**acceptRepoTransfer**](RepositoryApi.md#acceptRepoTransfer) | **POST** /repos/{owner}/{repo}/transfer/accept | Accept a repo transfer [**createCurrentUserRepo**](RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository [**createFork**](RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository [**generateRepo**](RepositoryApi.md#generateRepo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template @@ -11,6 +12,7 @@ Method | HTTP request | Description [**getBlob**](RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository. [**getTree**](RepositoryApi.md#getTree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository. [**listForks**](RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository's forks +[**rejectRepoTransfer**](RepositoryApi.md#rejectRepoTransfer) | **POST** /repos/{owner}/{repo}/transfer/reject | Reject a repo transfer [**repoAddCollaborator**](RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository [**repoAddTeam**](RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository [**repoAddTopic**](RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository @@ -28,6 +30,7 @@ Method | HTTP request | Description [**repoCreateReleaseAttachment**](RepositoryApi.md#repoCreateReleaseAttachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment [**repoCreateStatus**](RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status [**repoCreateTag**](RepositoryApi.md#repoCreateTag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository +[**repoCreateWikiPage**](RepositoryApi.md#repoCreateWikiPage) | **POST** /repos/{owner}/{repo}/wiki/new | Create a wiki page [**repoDelete**](RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository [**repoDeleteBranch**](RepositoryApi.md#repoDeleteBranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository [**repoDeleteBranchProtection**](RepositoryApi.md#repoDeleteBranchProtection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository @@ -44,9 +47,10 @@ Method | HTTP request | Description [**repoDeleteTag**](RepositoryApi.md#repoDeleteTag) | **DELETE** /repos/{owner}/{repo}/tags/{tag} | Delete a repository's tag by name [**repoDeleteTeam**](RepositoryApi.md#repoDeleteTeam) | **DELETE** /repos/{owner}/{repo}/teams/{team} | Delete a team from a repository [**repoDeleteTopic**](RepositoryApi.md#repoDeleteTopic) | **DELETE** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository +[**repoDeleteWikiPage**](RepositoryApi.md#repoDeleteWikiPage) | **DELETE** /repos/{owner}/{repo}/wiki/page/{pageName} | Delete a wiki page [**repoDismissPullReview**](RepositoryApi.md#repoDismissPullReview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals | Dismiss a review for a pull request -[**repoDownloadPullDiff**](RepositoryApi.md#repoDownloadPullDiff) | **GET** /repos/{owner}/{repo}/pulls/{index}.diff | Get a pull request diff -[**repoDownloadPullPatch**](RepositoryApi.md#repoDownloadPullPatch) | **GET** /repos/{owner}/{repo}/pulls/{index}.patch | Get a pull request patch file +[**repoDownloadCommitDiffOrPatch**](RepositoryApi.md#repoDownloadCommitDiffOrPatch) | **GET** /repos/{owner}/{repo}/git/commits/{sha}.{diffType} | Get a commit's diff or patch +[**repoDownloadPullDiffOrPatch**](RepositoryApi.md#repoDownloadPullDiffOrPatch) | **GET** /repos/{owner}/{repo}/pulls/{index}.{diffType} | Get a pull request diff or patch [**repoEdit**](RepositoryApi.md#repoEdit) | **PATCH** /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed. [**repoEditBranchProtection**](RepositoryApi.md#repoEditBranchProtection) | **PATCH** /repos/{owner}/{repo}/branch_protections/{name} | Edit a branch protections for a repository. Only fields that are set will be changed [**repoEditGitHook**](RepositoryApi.md#repoEditGitHook) | **PATCH** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository @@ -54,6 +58,7 @@ Method | HTTP request | Description [**repoEditPullRequest**](RepositoryApi.md#repoEditPullRequest) | **PATCH** /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored. [**repoEditRelease**](RepositoryApi.md#repoEditRelease) | **PATCH** /repos/{owner}/{repo}/releases/{id} | Update a release [**repoEditReleaseAttachment**](RepositoryApi.md#repoEditReleaseAttachment) | **PATCH** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment +[**repoEditWikiPage**](RepositoryApi.md#repoEditWikiPage) | **PATCH** /repos/{owner}/{repo}/wiki/page/{pageName} | Edit a wiki page [**repoGet**](RepositoryApi.md#repoGet) | **GET** /repos/{owner}/{repo} | Get a repository [**repoGetAllCommits**](RepositoryApi.md#repoGetAllCommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository [**repoGetArchive**](RepositoryApi.md#repoGetArchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository @@ -82,6 +87,9 @@ Method | HTTP request | Description [**repoGetReviewers**](RepositoryApi.md#repoGetReviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo [**repoGetSingleCommit**](RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository [**repoGetTag**](RepositoryApi.md#repoGetTag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name +[**repoGetWikiPage**](RepositoryApi.md#repoGetWikiPage) | **GET** /repos/{owner}/{repo}/wiki/page/{pageName} | Get a wiki page +[**repoGetWikiPageRevisions**](RepositoryApi.md#repoGetWikiPageRevisions) | **GET** /repos/{owner}/{repo}/wiki/revisions/{pageName} | Get revisions of a wiki page +[**repoGetWikiPages**](RepositoryApi.md#repoGetWikiPages) | **GET** /repos/{owner}/{repo}/wiki/pages | Get all wiki pages [**repoListAllGitRefs**](RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs [**repoListBranchProtection**](RepositoryApi.md#repoListBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository [**repoListBranches**](RepositoryApi.md#repoListBranches) | **GET** /repos/{owner}/{repo}/branches | List a repository's branches @@ -122,6 +130,96 @@ Method | HTTP request | Description [**userTrackedTimes**](RepositoryApi.md#userTrackedTimes) | **GET** /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo + +# **acceptRepoTransfer** +> Repository acceptRepoTransfer(owner, repo) + +Accept a repo transfer + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo to transfer +String repo = "repo_example"; // String | name of the repo to transfer +try { + Repository result = apiInstance.acceptRepoTransfer(owner, repo); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#acceptRepoTransfer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo to transfer | + **repo** | **String**| name of the repo to transfer | + +### Return type + +[**Repository**](Repository.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + # **createCurrentUserRepo** > Repository createCurrentUserRepo(body) @@ -765,6 +863,96 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **rejectRepoTransfer** +> Repository rejectRepoTransfer(owner, repo) + +Reject a repo transfer + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo to transfer +String repo = "repo_example"; // String | name of the repo to transfer +try { + Repository result = apiInstance.rejectRepoTransfer(owner, repo); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#rejectRepoTransfer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo to transfer | + **repo** | **String**| name of the repo to transfer | + +### Return type + +[**Repository**](Repository.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: application/json, text/plain @@ -2344,6 +2532,98 @@ Name | Type | Description | Notes - **Content-Type**: application/json, text/plain - **Accept**: application/json + +# **repoCreateWikiPage** +> WikiPage repoCreateWikiPage(owner, repo, body) + +Create a wiki page + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +CreateWikiPageOptions body = new CreateWikiPageOptions(); // CreateWikiPageOptions | +try { + WikiPage result = apiInstance.repoCreateWikiPage(owner, repo, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoCreateWikiPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **body** | [**CreateWikiPageOptions**](CreateWikiPageOptions.md)| | [optional] + +### Return type + +[**WikiPage**](WikiPage.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, text/html + # **repoDelete** > repoDelete(owner, repo) @@ -3807,6 +4087,97 @@ null (empty response body) - **Content-Type**: application/json, text/plain - **Accept**: application/json + +# **repoDeleteWikiPage** +> repoDeleteWikiPage(owner, repo, pageName) + +Delete a wiki page + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String pageName = "pageName_example"; // String | name of the page +try { + apiInstance.repoDeleteWikiPage(owner, repo, pageName); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoDeleteWikiPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **pageName** | **String**| name of the page | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json, text/html + # **repoDismissPullReview** > PullReview repoDismissPullReview(owner, repo, index, id, body) @@ -3903,11 +4274,11 @@ Name | Type | Description | Notes - **Content-Type**: application/json, text/plain - **Accept**: application/json - -# **repoDownloadPullDiff** -> String repoDownloadPullDiff(owner, repo, index) + +# **repoDownloadCommitDiffOrPatch** +> String repoDownloadCommitDiffOrPatch(owner, repo, sha, diffType) -Get a pull request diff +Get a commit's diff or patch ### Example ```java @@ -3964,12 +4335,13 @@ Token.setApiKey("YOUR API KEY"); RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long index = 789L; // Long | index of the pull request to get +String sha = "sha_example"; // String | SHA of the commit to get +String diffType = "diffType_example"; // String | whether the output is diff or patch try { - String result = apiInstance.repoDownloadPullDiff(owner, repo, index); + String result = apiInstance.repoDownloadCommitDiffOrPatch(owner, repo, sha, diffType); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling RepositoryApi#repoDownloadPullDiff"); + System.err.println("Exception when calling RepositoryApi#repoDownloadCommitDiffOrPatch"); e.printStackTrace(); } ``` @@ -3980,7 +4352,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **index** | **Long**| index of the pull request to get | + **sha** | **String**| SHA of the commit to get | + **diffType** | **String**| whether the output is diff or patch | [enum: diff, patch] ### Return type @@ -3995,11 +4368,11 @@ Name | Type | Description | Notes - **Content-Type**: application/json, text/plain - **Accept**: text/plain - -# **repoDownloadPullPatch** -> String repoDownloadPullPatch(owner, repo, index) + +# **repoDownloadPullDiffOrPatch** +> String repoDownloadPullDiffOrPatch(owner, repo, index, diffType, binary) -Get a pull request patch file +Get a pull request diff or patch ### Example ```java @@ -4057,11 +4430,13 @@ RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo Long index = 789L; // Long | index of the pull request to get +String diffType = "diffType_example"; // String | whether the output is diff or patch +Boolean binary = true; // Boolean | whether to include binary file changes. if true, the diff is applicable with `git apply` try { - String result = apiInstance.repoDownloadPullPatch(owner, repo, index); + String result = apiInstance.repoDownloadPullDiffOrPatch(owner, repo, index, diffType, binary); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling RepositoryApi#repoDownloadPullPatch"); + System.err.println("Exception when calling RepositoryApi#repoDownloadPullDiffOrPatch"); e.printStackTrace(); } ``` @@ -4073,6 +4448,8 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **index** | **Long**| index of the pull request to get | + **diffType** | **String**| whether the output is diff or patch | [enum: diff, patch] + **binary** | **Boolean**| whether to include binary file changes. if true, the diff is applicable with `git apply` | [optional] ### Return type @@ -4745,6 +5122,100 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json + +# **repoEditWikiPage** +> WikiPage repoEditWikiPage(owner, repo, pageName, body) + +Edit a wiki page + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String pageName = "pageName_example"; // String | name of the page +CreateWikiPageOptions body = new CreateWikiPageOptions(); // CreateWikiPageOptions | +try { + WikiPage result = apiInstance.repoEditWikiPage(owner, repo, pageName, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoEditWikiPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **pageName** | **String**| name of the page | + **body** | [**CreateWikiPageOptions**](CreateWikiPageOptions.md)| | [optional] + +### Return type + +[**WikiPage**](WikiPage.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, text/html + # **repoGet** > Repository repoGet(owner, repo) @@ -4837,7 +5308,7 @@ Name | Type | Description | Notes # **repoGetAllCommits** -> List<Commit> repoGetAllCommits(owner, repo, sha, page, limit) +> List<Commit> repoGetAllCommits(owner, repo, sha, path, page, limit) Get a list of all commits from a repository @@ -4897,10 +5368,11 @@ RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo String sha = "sha_example"; // String | SHA or branch to start listing commits from (usually 'master') +String path = "path_example"; // String | filepath of a file/dir Integer page = 56; // Integer | page number of results to return (1-based) -Integer limit = 56; // Integer | page size of results +Integer limit = 56; // Integer | page size of results (ignored if used with 'path') try { - List result = apiInstance.repoGetAllCommits(owner, repo, sha, page, limit); + List result = apiInstance.repoGetAllCommits(owner, repo, sha, path, page, limit); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RepositoryApi#repoGetAllCommits"); @@ -4915,8 +5387,9 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **sha** | **String**| SHA or branch to start listing commits from (usually 'master') | [optional] + **path** | **String**| filepath of a file/dir | [optional] **page** | **Integer**| page number of results to return (1-based) | [optional] - **limit** | **Integer**| page size of results | [optional] + **limit** | **Integer**| page size of results (ignored if used with 'path') | [optional] ### Return type @@ -7321,6 +7794,286 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **repoGetWikiPage** +> WikiPage repoGetWikiPage(owner, repo, pageName) + +Get a wiki page + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String pageName = "pageName_example"; // String | name of the page +try { + WikiPage result = apiInstance.repoGetWikiPage(owner, repo, pageName); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoGetWikiPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **pageName** | **String**| name of the page | + +### Return type + +[**WikiPage**](WikiPage.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **repoGetWikiPageRevisions** +> WikiCommitList repoGetWikiPageRevisions(owner, repo, pageName, page) + +Get revisions of a wiki page + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String pageName = "pageName_example"; // String | name of the page +Integer page = 56; // Integer | page number of results to return (1-based) +try { + WikiCommitList result = apiInstance.repoGetWikiPageRevisions(owner, repo, pageName, page); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoGetWikiPageRevisions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **pageName** | **String**| name of the page | + **page** | **Integer**| page number of results to return (1-based) | [optional] + +### Return type + +[**WikiCommitList**](WikiCommitList.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **repoGetWikiPages** +> List<WikiPageMetaData> repoGetWikiPages(owner, repo, page, limit) + +Get all wiki pages + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results +try { + List result = apiInstance.repoGetWikiPages(owner, repo, page, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoGetWikiPages"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] + +### Return type + +[**List<WikiPageMetaData>**](WikiPageMetaData.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: application/json, text/plain @@ -10264,7 +11017,7 @@ Name | Type | Description | Notes # **repoUpdatePullRequest** -> repoUpdatePullRequest(owner, repo, index) +> repoUpdatePullRequest(owner, repo, index, style) Merge PR's baseBranch into headBranch @@ -10324,8 +11077,9 @@ RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo Long index = 789L; // Long | index of the pull request to get +String style = "style_example"; // String | how to update pull request try { - apiInstance.repoUpdatePullRequest(owner, repo, index); + apiInstance.repoUpdatePullRequest(owner, repo, index, style); } catch (ApiException e) { System.err.println("Exception when calling RepositoryApi#repoUpdatePullRequest"); e.printStackTrace(); @@ -10339,6 +11093,7 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **index** | **Long**| index of the pull request to get | + **style** | **String**| how to update pull request | [optional] [enum: merge, rebase] ### Return type diff --git a/docs/Team.md b/docs/Team.md index 580dde5..f9c9101 100644 --- a/docs/Team.md +++ b/docs/Team.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **organization** | [**Organization**](Organization.md) | | [optional] **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] **units** | **List<String>** | | [optional] +**unitsMap** | **Map<String, String>** | | [optional] diff --git a/docs/TimelineComment.md b/docs/TimelineComment.md new file mode 100644 index 0000000..7b512e5 --- /dev/null +++ b/docs/TimelineComment.md @@ -0,0 +1,38 @@ + +# TimelineComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | [**User**](User.md) | | [optional] +**assigneeTeam** | [**Team**](Team.md) | | [optional] +**body** | **String** | | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**dependentIssue** | [**Issue**](Issue.md) | | [optional] +**htmlUrl** | **String** | | [optional] +**id** | **Long** | | [optional] +**issueUrl** | **String** | | [optional] +**label** | [**Label**](Label.md) | | [optional] +**milestone** | [**Milestone**](Milestone.md) | | [optional] +**newRef** | **String** | | [optional] +**newTitle** | **String** | | [optional] +**oldMilestone** | [**Milestone**](Milestone.md) | | [optional] +**oldProjectId** | **Long** | | [optional] +**oldRef** | **String** | | [optional] +**oldTitle** | **String** | | [optional] +**projectId** | **Long** | | [optional] +**pullRequestUrl** | **String** | | [optional] +**refAction** | **String** | | [optional] +**refComment** | [**Comment**](Comment.md) | | [optional] +**refCommitSha** | **String** | commit SHA where issue/PR was referenced | [optional] +**refIssue** | [**Issue**](Issue.md) | | [optional] +**removedAssignee** | **Boolean** | whether the assignees were removed or added | [optional] +**resolveDoer** | [**User**](User.md) | | [optional] +**reviewId** | **Long** | | [optional] +**trackedTime** | [**TrackedTime**](TrackedTime.md) | | [optional] +**type** | **String** | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**user** | [**User**](User.md) | | [optional] + + + diff --git a/docs/WikiCommit.md b/docs/WikiCommit.md new file mode 100644 index 0000000..5bab920 --- /dev/null +++ b/docs/WikiCommit.md @@ -0,0 +1,13 @@ + +# WikiCommit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author** | [**CommitUser**](CommitUser.md) | | [optional] +**commiter** | [**CommitUser**](CommitUser.md) | | [optional] +**message** | **String** | | [optional] +**sha** | **String** | | [optional] + + + diff --git a/docs/WikiCommitList.md b/docs/WikiCommitList.md new file mode 100644 index 0000000..09356ed --- /dev/null +++ b/docs/WikiCommitList.md @@ -0,0 +1,11 @@ + +# WikiCommitList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commits** | [**List<WikiCommit>**](WikiCommit.md) | | [optional] +**count** | **Long** | | [optional] + + + diff --git a/docs/WikiPage.md b/docs/WikiPage.md new file mode 100644 index 0000000..70d6d22 --- /dev/null +++ b/docs/WikiPage.md @@ -0,0 +1,17 @@ + +# WikiPage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commitCount** | **Long** | | [optional] +**contentBase64** | **String** | Page content, base64 encoded | [optional] +**footer** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional] +**sidebar** | **String** | | [optional] +**subUrl** | **String** | | [optional] +**title** | **String** | | [optional] + + + diff --git a/docs/WikiPageMetaData.md b/docs/WikiPageMetaData.md new file mode 100644 index 0000000..e2d4d35 --- /dev/null +++ b/docs/WikiPageMetaData.md @@ -0,0 +1,13 @@ + +# WikiPageMetaData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**htmlUrl** | **String** | | [optional] +**lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional] +**subUrl** | **String** | | [optional] +**title** | **String** | | [optional] + + + diff --git a/src/main/java/io/gitea/api/AdminApi.java b/src/main/java/io/gitea/api/AdminApi.java index d6fd87b..5489d5e 100644 --- a/src/main/java/io/gitea/api/AdminApi.java +++ b/src/main/java/io/gitea/api/AdminApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/api/IssueApi.java b/src/main/java/io/gitea/api/IssueApi.java index a4ddcc8..750f15b 100644 --- a/src/main/java/io/gitea/api/IssueApi.java +++ b/src/main/java/io/gitea/api/IssueApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -46,6 +46,7 @@ import io.gitea.model.Label; import io.gitea.model.Milestone; import org.threeten.bp.OffsetDateTime; import io.gitea.model.Reaction; +import io.gitea.model.TimelineComment; import io.gitea.model.TrackedTime; import io.gitea.model.User; import io.gitea.model.WatchInfo; @@ -3998,6 +3999,173 @@ public class IssueApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for issueGetCommentsAndTimeline + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param index index of the issue (required) + * @param since if provided, only comments updated since the specified time are returned. (optional) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @param before if provided, only comments updated before the provided time are returned. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call issueGetCommentsAndTimelineCall(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/issues/{index}/timeline" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) + .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (since != null) + localVarQueryParams.addAll(apiClient.parameterToPair("since", since)); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (before != null) + localVarQueryParams.addAll(apiClient.parameterToPair("before", before)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call issueGetCommentsAndTimelineValidateBeforeCall(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling issueGetCommentsAndTimeline(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling issueGetCommentsAndTimeline(Async)"); + } + + // verify the required parameter 'index' is set + if (index == null) { + throw new ApiException("Missing the required parameter 'index' when calling issueGetCommentsAndTimeline(Async)"); + } + + + com.squareup.okhttp.Call call = issueGetCommentsAndTimelineCall(owner, repo, index, since, page, limit, before, progressListener, progressRequestListener); + return call; + + } + + /** + * List all comments and events on an issue + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param index index of the issue (required) + * @param since if provided, only comments updated since the specified time are returned. (optional) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @param before if provided, only comments updated before the provided time are returned. (optional) + * @return List<TimelineComment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List issueGetCommentsAndTimeline(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before) throws ApiException { + ApiResponse> resp = issueGetCommentsAndTimelineWithHttpInfo(owner, repo, index, since, page, limit, before); + return resp.getData(); + } + + /** + * List all comments and events on an issue + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param index index of the issue (required) + * @param since if provided, only comments updated since the specified time are returned. (optional) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @param before if provided, only comments updated before the provided time are returned. (optional) + * @return ApiResponse<List<TimelineComment>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> issueGetCommentsAndTimelineWithHttpInfo(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before) throws ApiException { + com.squareup.okhttp.Call call = issueGetCommentsAndTimelineValidateBeforeCall(owner, repo, index, since, page, limit, before, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List all comments and events on an issue (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param index index of the issue (required) + * @param since if provided, only comments updated since the specified time are returned. (optional) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @param before if provided, only comments updated before the provided time are returned. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call issueGetCommentsAndTimelineAsync(String owner, String repo, Long index, OffsetDateTime since, Integer page, Integer limit, OffsetDateTime before, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = issueGetCommentsAndTimelineValidateBeforeCall(owner, repo, index, since, page, limit, before, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for issueGetIssue * @param owner owner of the repo (required) @@ -5048,11 +5216,11 @@ public class IssueApi { * @param q search string (optional) * @param type filter by type (issues / pulls) if set (optional) * @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional) - * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional) - * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional) - * @param createdBy filter (issues / pulls) created to (optional) - * @param assignedBy filter (issues / pulls) assigned to (optional) - * @param mentionedBy filter (issues / pulls) mentioning to (optional) + * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional) + * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional) + * @param createdBy Only show items which were created by the the given user (optional) + * @param assignedBy Only show items for which the given user is assigned (optional) + * @param mentionedBy Only show items in which the given user was mentioned (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @param progressListener Progress listener @@ -5156,11 +5324,11 @@ public class IssueApi { * @param q search string (optional) * @param type filter by type (issues / pulls) if set (optional) * @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional) - * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional) - * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional) - * @param createdBy filter (issues / pulls) created to (optional) - * @param assignedBy filter (issues / pulls) assigned to (optional) - * @param mentionedBy filter (issues / pulls) mentioning to (optional) + * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional) + * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional) + * @param createdBy Only show items which were created by the the given user (optional) + * @param assignedBy Only show items for which the given user is assigned (optional) + * @param mentionedBy Only show items in which the given user was mentioned (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @return List<Issue> @@ -5181,11 +5349,11 @@ public class IssueApi { * @param q search string (optional) * @param type filter by type (issues / pulls) if set (optional) * @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional) - * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional) - * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional) - * @param createdBy filter (issues / pulls) created to (optional) - * @param assignedBy filter (issues / pulls) assigned to (optional) - * @param mentionedBy filter (issues / pulls) mentioning to (optional) + * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional) + * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional) + * @param createdBy Only show items which were created by the the given user (optional) + * @param assignedBy Only show items for which the given user is assigned (optional) + * @param mentionedBy Only show items in which the given user was mentioned (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @return ApiResponse<List<Issue>> @@ -5207,11 +5375,11 @@ public class IssueApi { * @param q search string (optional) * @param type filter by type (issues / pulls) if set (optional) * @param milestones comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional) - * @param since Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional) - * @param before Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional) - * @param createdBy filter (issues / pulls) created to (optional) - * @param assignedBy filter (issues / pulls) assigned to (optional) - * @param mentionedBy filter (issues / pulls) mentioning to (optional) + * @param since Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional) + * @param before Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional) + * @param createdBy Only show items which were created by the the given user (optional) + * @param assignedBy Only show items for which the given user is assigned (optional) + * @param mentionedBy Only show items in which the given user was mentioned (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @param callback The callback to be executed when the API call finishes diff --git a/src/main/java/io/gitea/api/MiscellaneousApi.java b/src/main/java/io/gitea/api/MiscellaneousApi.java index 6e9b876..74ab056 100644 --- a/src/main/java/io/gitea/api/MiscellaneousApi.java +++ b/src/main/java/io/gitea/api/MiscellaneousApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,6 +28,7 @@ import java.io.IOException; import io.gitea.model.MarkdownOption; +import io.gitea.model.NodeInfo; import io.gitea.model.ServerVersion; import java.lang.reflect.Type; @@ -55,6 +56,119 @@ public class MiscellaneousApi { this.apiClient = apiClient; } + /** + * Build call for getNodeInfo + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getNodeInfoCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/nodeinfo"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getNodeInfoValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getNodeInfoCall(progressListener, progressRequestListener); + return call; + + } + + /** + * Returns the nodeinfo of the Gitea application + * + * @return NodeInfo + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public NodeInfo getNodeInfo() throws ApiException { + ApiResponse resp = getNodeInfoWithHttpInfo(); + return resp.getData(); + } + + /** + * Returns the nodeinfo of the Gitea application + * + * @return ApiResponse<NodeInfo> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getNodeInfoWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getNodeInfoValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Returns the nodeinfo of the Gitea application (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getNodeInfoAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getNodeInfoValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for getSigningKey * @param progressListener Progress listener diff --git a/src/main/java/io/gitea/api/NotificationApi.java b/src/main/java/io/gitea/api/NotificationApi.java index 8550c82..7a87984 100644 --- a/src/main/java/io/gitea/api/NotificationApi.java +++ b/src/main/java/io/gitea/api/NotificationApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -698,10 +698,12 @@ public class NotificationApi { * @param all If true, mark all notifications on this repo. Default value is false (optional) * @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional) * @param toStatus Status to mark notifications as, Defaults to read. (optional) + * @return List<NotificationThread> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void notifyReadList(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException { - notifyReadListWithHttpInfo(lastReadAt, all, statusTypes, toStatus); + public List notifyReadList(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException { + ApiResponse> resp = notifyReadListWithHttpInfo(lastReadAt, all, statusTypes, toStatus); + return resp.getData(); } /** @@ -711,12 +713,13 @@ public class NotificationApi { * @param all If true, mark all notifications on this repo. Default value is false (optional) * @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional) * @param toStatus Status to mark notifications as, Defaults to read. (optional) - * @return ApiResponse<Void> + * @return ApiResponse<List<NotificationThread>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse notifyReadListWithHttpInfo(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException { + public ApiResponse> notifyReadListWithHttpInfo(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus) throws ApiException { com.squareup.okhttp.Call call = notifyReadListValidateBeforeCall(lastReadAt, all, statusTypes, toStatus, null, null); - return apiClient.execute(call); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); } /** @@ -730,7 +733,7 @@ public class NotificationApi { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call notifyReadListAsync(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call notifyReadListAsync(OffsetDateTime lastReadAt, String all, List statusTypes, String toStatus, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -752,7 +755,8 @@ public class NotificationApi { } com.squareup.okhttp.Call call = notifyReadListValidateBeforeCall(lastReadAt, all, statusTypes, toStatus, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** @@ -847,10 +851,12 @@ public class NotificationApi { * @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional) * @param toStatus Status to mark notifications as. Defaults to read. (optional) * @param lastReadAt Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional) + * @return List<NotificationThread> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void notifyReadRepoList(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException { - notifyReadRepoListWithHttpInfo(owner, repo, all, statusTypes, toStatus, lastReadAt); + public List notifyReadRepoList(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException { + ApiResponse> resp = notifyReadRepoListWithHttpInfo(owner, repo, all, statusTypes, toStatus, lastReadAt); + return resp.getData(); } /** @@ -862,12 +868,13 @@ public class NotificationApi { * @param statusTypes Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional) * @param toStatus Status to mark notifications as. Defaults to read. (optional) * @param lastReadAt Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional) - * @return ApiResponse<Void> + * @return ApiResponse<List<NotificationThread>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse notifyReadRepoListWithHttpInfo(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException { + public ApiResponse> notifyReadRepoListWithHttpInfo(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt) throws ApiException { com.squareup.okhttp.Call call = notifyReadRepoListValidateBeforeCall(owner, repo, all, statusTypes, toStatus, lastReadAt, null, null); - return apiClient.execute(call); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); } /** @@ -883,7 +890,7 @@ public class NotificationApi { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call notifyReadRepoListAsync(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call notifyReadRepoListAsync(String owner, String repo, String all, List statusTypes, String toStatus, OffsetDateTime lastReadAt, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -905,7 +912,8 @@ public class NotificationApi { } com.squareup.okhttp.Call call = notifyReadRepoListValidateBeforeCall(owner, repo, all, statusTypes, toStatus, lastReadAt, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** @@ -980,10 +988,12 @@ public class NotificationApi { * * @param id id of notification thread (required) * @param toStatus Status to mark notifications as (optional, default to read) + * @return NotificationThread * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void notifyReadThread(String id, String toStatus) throws ApiException { - notifyReadThreadWithHttpInfo(id, toStatus); + public NotificationThread notifyReadThread(String id, String toStatus) throws ApiException { + ApiResponse resp = notifyReadThreadWithHttpInfo(id, toStatus); + return resp.getData(); } /** @@ -991,12 +1001,13 @@ public class NotificationApi { * * @param id id of notification thread (required) * @param toStatus Status to mark notifications as (optional, default to read) - * @return ApiResponse<Void> + * @return ApiResponse<NotificationThread> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse notifyReadThreadWithHttpInfo(String id, String toStatus) throws ApiException { + public ApiResponse notifyReadThreadWithHttpInfo(String id, String toStatus) throws ApiException { com.squareup.okhttp.Call call = notifyReadThreadValidateBeforeCall(id, toStatus, null, null); - return apiClient.execute(call); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); } /** @@ -1008,7 +1019,7 @@ public class NotificationApi { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call notifyReadThreadAsync(String id, String toStatus, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call notifyReadThreadAsync(String id, String toStatus, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1030,7 +1041,8 @@ public class NotificationApi { } com.squareup.okhttp.Call call = notifyReadThreadValidateBeforeCall(id, toStatus, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } } diff --git a/src/main/java/io/gitea/api/OrganizationApi.java b/src/main/java/io/gitea/api/OrganizationApi.java index 6941ebe..a8924c8 100644 --- a/src/main/java/io/gitea/api/OrganizationApi.java +++ b/src/main/java/io/gitea/api/OrganizationApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -40,6 +40,7 @@ import io.gitea.model.Hook; import io.gitea.model.InlineResponse200; import io.gitea.model.Label; import io.gitea.model.Organization; +import io.gitea.model.OrganizationPermissions; import io.gitea.model.Repository; import io.gitea.model.Team; import io.gitea.model.User; @@ -3032,6 +3033,139 @@ public class OrganizationApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for orgGetUserPermissions + * @param username username of user (required) + * @param org name of the organization (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call orgGetUserPermissionsCall(String username, String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}/orgs/{org}/permissions" + .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())) + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call orgGetUserPermissionsValidateBeforeCall(String username, String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling orgGetUserPermissions(Async)"); + } + + // verify the required parameter 'org' is set + if (org == null) { + throw new ApiException("Missing the required parameter 'org' when calling orgGetUserPermissions(Async)"); + } + + + com.squareup.okhttp.Call call = orgGetUserPermissionsCall(username, org, progressListener, progressRequestListener); + return call; + + } + + /** + * Get user permissions in organization + * + * @param username username of user (required) + * @param org name of the organization (required) + * @return OrganizationPermissions + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public OrganizationPermissions orgGetUserPermissions(String username, String org) throws ApiException { + ApiResponse resp = orgGetUserPermissionsWithHttpInfo(username, org); + return resp.getData(); + } + + /** + * Get user permissions in organization + * + * @param username username of user (required) + * @param org name of the organization (required) + * @return ApiResponse<OrganizationPermissions> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgGetUserPermissionsWithHttpInfo(String username, String org) throws ApiException { + com.squareup.okhttp.Call call = orgGetUserPermissionsValidateBeforeCall(username, org, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get user permissions in organization (asynchronously) + * + * @param username username of user (required) + * @param org name of the organization (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call orgGetUserPermissionsAsync(String username, String org, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = orgGetUserPermissionsValidateBeforeCall(username, org, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for orgIsMember * @param org name of the organization (required) diff --git a/src/main/java/io/gitea/api/RepositoryApi.java b/src/main/java/io/gitea/api/RepositoryApi.java index c2800fd..e4d22f4 100644 --- a/src/main/java/io/gitea/api/RepositoryApi.java +++ b/src/main/java/io/gitea/api/RepositoryApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -49,6 +49,7 @@ import io.gitea.model.CreateReleaseOption; import io.gitea.model.CreateRepoOption; import io.gitea.model.CreateStatusOption; import io.gitea.model.CreateTagOption; +import io.gitea.model.CreateWikiPageOptions; import io.gitea.model.DeleteFileOptions; import io.gitea.model.DeployKey; import io.gitea.model.DismissPullReviewOptions; @@ -91,6 +92,9 @@ import io.gitea.model.TransferRepoOption; import io.gitea.model.UpdateFileOptions; import io.gitea.model.User; import io.gitea.model.WatchInfo; +import io.gitea.model.WikiCommitList; +import io.gitea.model.WikiPage; +import io.gitea.model.WikiPageMetaData; import java.lang.reflect.Type; import java.util.ArrayList; @@ -117,6 +121,139 @@ public class RepositoryApi { this.apiClient = apiClient; } + /** + * Build call for acceptRepoTransfer + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call acceptRepoTransferCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/transfer/accept" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call acceptRepoTransferValidateBeforeCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling acceptRepoTransfer(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling acceptRepoTransfer(Async)"); + } + + + com.squareup.okhttp.Call call = acceptRepoTransferCall(owner, repo, progressListener, progressRequestListener); + return call; + + } + + /** + * Accept a repo transfer + * + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @return Repository + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public Repository acceptRepoTransfer(String owner, String repo) throws ApiException { + ApiResponse resp = acceptRepoTransferWithHttpInfo(owner, repo); + return resp.getData(); + } + + /** + * Accept a repo transfer + * + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @return ApiResponse<Repository> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse acceptRepoTransferWithHttpInfo(String owner, String repo) throws ApiException { + com.squareup.okhttp.Call call = acceptRepoTransferValidateBeforeCall(owner, repo, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Accept a repo transfer (asynchronously) + * + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call acceptRepoTransferAsync(String owner, String repo, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = acceptRepoTransferValidateBeforeCall(owner, repo, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for createCurrentUserRepo * @param body (optional) @@ -1100,6 +1237,139 @@ public class RepositoryApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for rejectRepoTransfer + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call rejectRepoTransferCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/transfer/reject" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call rejectRepoTransferValidateBeforeCall(String owner, String repo, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling rejectRepoTransfer(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling rejectRepoTransfer(Async)"); + } + + + com.squareup.okhttp.Call call = rejectRepoTransferCall(owner, repo, progressListener, progressRequestListener); + return call; + + } + + /** + * Reject a repo transfer + * + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @return Repository + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public Repository rejectRepoTransfer(String owner, String repo) throws ApiException { + ApiResponse resp = rejectRepoTransferWithHttpInfo(owner, repo); + return resp.getData(); + } + + /** + * Reject a repo transfer + * + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @return ApiResponse<Repository> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse rejectRepoTransferWithHttpInfo(String owner, String repo) throws ApiException { + com.squareup.okhttp.Call call = rejectRepoTransferValidateBeforeCall(owner, repo, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Reject a repo transfer (asynchronously) + * + * @param owner owner of the repo to transfer (required) + * @param repo name of the repo to transfer (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call rejectRepoTransferAsync(String owner, String repo, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = rejectRepoTransferValidateBeforeCall(owner, repo, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for repoAddCollaborator * @param owner owner of the repo (required) @@ -3525,6 +3795,143 @@ public class RepositoryApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for repoCreateWikiPage + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param body (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call repoCreateWikiPageCall(String owner, String repo, CreateWikiPageOptions body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/wiki/new" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "text/html" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call repoCreateWikiPageValidateBeforeCall(String owner, String repo, CreateWikiPageOptions body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling repoCreateWikiPage(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoCreateWikiPage(Async)"); + } + + + com.squareup.okhttp.Call call = repoCreateWikiPageCall(owner, repo, body, progressListener, progressRequestListener); + return call; + + } + + /** + * Create a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param body (optional) + * @return WikiPage + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public WikiPage repoCreateWikiPage(String owner, String repo, CreateWikiPageOptions body) throws ApiException { + ApiResponse resp = repoCreateWikiPageWithHttpInfo(owner, repo, body); + return resp.getData(); + } + + /** + * Create a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param body (optional) + * @return ApiResponse<WikiPage> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse repoCreateWikiPageWithHttpInfo(String owner, String repo, CreateWikiPageOptions body) throws ApiException { + com.squareup.okhttp.Call call = repoCreateWikiPageValidateBeforeCall(owner, repo, body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a wiki page (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param body (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call repoCreateWikiPageAsync(String owner, String repo, CreateWikiPageOptions body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = repoCreateWikiPageValidateBeforeCall(owner, repo, body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for repoDelete * @param owner owner of the repo to delete (required) @@ -5781,6 +6188,145 @@ public class RepositoryApi { apiClient.executeAsync(call, callback); return call; } + /** + * Build call for repoDeleteWikiPage + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call repoDeleteWikiPageCall(String owner, String repo, String pageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/wiki/page/{pageName}" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) + .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "text/html" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call repoDeleteWikiPageValidateBeforeCall(String owner, String repo, String pageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling repoDeleteWikiPage(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoDeleteWikiPage(Async)"); + } + + // verify the required parameter 'pageName' is set + if (pageName == null) { + throw new ApiException("Missing the required parameter 'pageName' when calling repoDeleteWikiPage(Async)"); + } + + + com.squareup.okhttp.Call call = repoDeleteWikiPageCall(owner, repo, pageName, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void repoDeleteWikiPage(String owner, String repo, String pageName) throws ApiException { + repoDeleteWikiPageWithHttpInfo(owner, repo, pageName); + } + + /** + * Delete a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse repoDeleteWikiPageWithHttpInfo(String owner, String repo, String pageName) throws ApiException { + com.squareup.okhttp.Call call = repoDeleteWikiPageValidateBeforeCall(owner, repo, pageName, null, null); + return apiClient.execute(call); + } + + /** + * Delete a wiki page (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call repoDeleteWikiPageAsync(String owner, String repo, String pageName, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = repoDeleteWikiPageValidateBeforeCall(owner, repo, pageName, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } /** * Build call for repoDismissPullReview * @param owner owner of the repo (required) @@ -5944,23 +6490,25 @@ public class RepositoryApi { return call; } /** - * Build call for repoDownloadPullDiff + * Build call for repoDownloadCommitDiffOrPatch * @param owner owner of the repo (required) * @param repo name of the repo (required) - * @param index index of the pull request to get (required) + * @param sha SHA of the commit to get (required) + * @param diffType whether the output is diff or patch (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call repoDownloadPullDiffCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call repoDownloadCommitDiffOrPatchCall(String owner, String repo, String sha, String diffType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{repo}/pulls/{index}.diff" + String localVarPath = "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) - .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString())); + .replaceAll("\\{" + "sha" + "\\}", apiClient.escapeString(sha.toString())) + .replaceAll("\\{" + "diffType" + "\\}", apiClient.escapeString(diffType.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5998,69 +6546,77 @@ public class RepositoryApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call repoDownloadPullDiffValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call repoDownloadCommitDiffOrPatchValidateBeforeCall(String owner, String repo, String sha, String diffType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'owner' is set if (owner == null) { - throw new ApiException("Missing the required parameter 'owner' when calling repoDownloadPullDiff(Async)"); + throw new ApiException("Missing the required parameter 'owner' when calling repoDownloadCommitDiffOrPatch(Async)"); } // verify the required parameter 'repo' is set if (repo == null) { - throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadPullDiff(Async)"); + throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadCommitDiffOrPatch(Async)"); } - // verify the required parameter 'index' is set - if (index == null) { - throw new ApiException("Missing the required parameter 'index' when calling repoDownloadPullDiff(Async)"); + // verify the required parameter 'sha' is set + if (sha == null) { + throw new ApiException("Missing the required parameter 'sha' when calling repoDownloadCommitDiffOrPatch(Async)"); + } + + // verify the required parameter 'diffType' is set + if (diffType == null) { + throw new ApiException("Missing the required parameter 'diffType' when calling repoDownloadCommitDiffOrPatch(Async)"); } - com.squareup.okhttp.Call call = repoDownloadPullDiffCall(owner, repo, index, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoDownloadCommitDiffOrPatchCall(owner, repo, sha, diffType, progressListener, progressRequestListener); return call; } /** - * Get a pull request diff + * Get a commit's diff or patch * * @param owner owner of the repo (required) * @param repo name of the repo (required) - * @param index index of the pull request to get (required) + * @param sha SHA of the commit to get (required) + * @param diffType whether the output is diff or patch (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public String repoDownloadPullDiff(String owner, String repo, Long index) throws ApiException { - ApiResponse resp = repoDownloadPullDiffWithHttpInfo(owner, repo, index); + public String repoDownloadCommitDiffOrPatch(String owner, String repo, String sha, String diffType) throws ApiException { + ApiResponse resp = repoDownloadCommitDiffOrPatchWithHttpInfo(owner, repo, sha, diffType); return resp.getData(); } /** - * Get a pull request diff + * Get a commit's diff or patch * * @param owner owner of the repo (required) * @param repo name of the repo (required) - * @param index index of the pull request to get (required) + * @param sha SHA of the commit to get (required) + * @param diffType whether the output is diff or patch (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse repoDownloadPullDiffWithHttpInfo(String owner, String repo, Long index) throws ApiException { - com.squareup.okhttp.Call call = repoDownloadPullDiffValidateBeforeCall(owner, repo, index, null, null); + public ApiResponse repoDownloadCommitDiffOrPatchWithHttpInfo(String owner, String repo, String sha, String diffType) throws ApiException { + com.squareup.okhttp.Call call = repoDownloadCommitDiffOrPatchValidateBeforeCall(owner, repo, sha, diffType, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get a pull request diff (asynchronously) + * Get a commit's diff or patch (asynchronously) * * @param owner owner of the repo (required) * @param repo name of the repo (required) - * @param index index of the pull request to get (required) + * @param sha SHA of the commit to get (required) + * @param diffType whether the output is diff or patch (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call repoDownloadPullDiffAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call repoDownloadCommitDiffOrPatchAsync(String owner, String repo, String sha, String diffType, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6081,32 +6637,37 @@ public class RepositoryApi { }; } - com.squareup.okhttp.Call call = repoDownloadPullDiffValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoDownloadCommitDiffOrPatchValidateBeforeCall(owner, repo, sha, diffType, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for repoDownloadPullPatch + * Build call for repoDownloadPullDiffOrPatch * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param diffType whether the output is diff or patch (required) + * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call repoDownloadPullPatchCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call repoDownloadPullDiffOrPatchCall(String owner, String repo, Long index, String diffType, Boolean binary, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{repo}/pulls/{index}.patch" + String localVarPath = "/repos/{owner}/{repo}/pulls/{index}.{diffType}" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) - .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString())); + .replaceAll("\\{" + "index" + "\\}", apiClient.escapeString(index.toString())) + .replaceAll("\\{" + "diffType" + "\\}", apiClient.escapeString(diffType.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (binary != null) + localVarQueryParams.addAll(apiClient.parameterToPair("binary", binary)); Map localVarHeaderParams = new HashMap(); @@ -6141,69 +6702,80 @@ public class RepositoryApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call repoDownloadPullPatchValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call repoDownloadPullDiffOrPatchValidateBeforeCall(String owner, String repo, Long index, String diffType, Boolean binary, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'owner' is set if (owner == null) { - throw new ApiException("Missing the required parameter 'owner' when calling repoDownloadPullPatch(Async)"); + throw new ApiException("Missing the required parameter 'owner' when calling repoDownloadPullDiffOrPatch(Async)"); } // verify the required parameter 'repo' is set if (repo == null) { - throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadPullPatch(Async)"); + throw new ApiException("Missing the required parameter 'repo' when calling repoDownloadPullDiffOrPatch(Async)"); } // verify the required parameter 'index' is set if (index == null) { - throw new ApiException("Missing the required parameter 'index' when calling repoDownloadPullPatch(Async)"); + throw new ApiException("Missing the required parameter 'index' when calling repoDownloadPullDiffOrPatch(Async)"); + } + + // verify the required parameter 'diffType' is set + if (diffType == null) { + throw new ApiException("Missing the required parameter 'diffType' when calling repoDownloadPullDiffOrPatch(Async)"); } - com.squareup.okhttp.Call call = repoDownloadPullPatchCall(owner, repo, index, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoDownloadPullDiffOrPatchCall(owner, repo, index, diffType, binary, progressListener, progressRequestListener); return call; } /** - * Get a pull request patch file + * Get a pull request diff or patch * * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param diffType whether the output is diff or patch (required) + * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public String repoDownloadPullPatch(String owner, String repo, Long index) throws ApiException { - ApiResponse resp = repoDownloadPullPatchWithHttpInfo(owner, repo, index); + public String repoDownloadPullDiffOrPatch(String owner, String repo, Long index, String diffType, Boolean binary) throws ApiException { + ApiResponse resp = repoDownloadPullDiffOrPatchWithHttpInfo(owner, repo, index, diffType, binary); return resp.getData(); } /** - * Get a pull request patch file + * Get a pull request diff or patch * * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param diffType whether the output is diff or patch (required) + * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse repoDownloadPullPatchWithHttpInfo(String owner, String repo, Long index) throws ApiException { - com.squareup.okhttp.Call call = repoDownloadPullPatchValidateBeforeCall(owner, repo, index, null, null); + public ApiResponse repoDownloadPullDiffOrPatchWithHttpInfo(String owner, String repo, Long index, String diffType, Boolean binary) throws ApiException { + com.squareup.okhttp.Call call = repoDownloadPullDiffOrPatchValidateBeforeCall(owner, repo, index, diffType, binary, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get a pull request patch file (asynchronously) + * Get a pull request diff or patch (asynchronously) * * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param diffType whether the output is diff or patch (required) + * @param binary whether to include binary file changes. if true, the diff is applicable with `git apply` (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call repoDownloadPullPatchAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call repoDownloadPullDiffOrPatchAsync(String owner, String repo, Long index, String diffType, Boolean binary, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6224,7 +6796,7 @@ public class RepositoryApi { }; } - com.squareup.okhttp.Call call = repoDownloadPullPatchValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoDownloadPullDiffOrPatchValidateBeforeCall(owner, repo, index, diffType, binary, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -7258,6 +7830,153 @@ public class RepositoryApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for repoEditWikiPage + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param body (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call repoEditWikiPageCall(String owner, String repo, String pageName, CreateWikiPageOptions body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/wiki/page/{pageName}" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) + .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "text/html" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call repoEditWikiPageValidateBeforeCall(String owner, String repo, String pageName, CreateWikiPageOptions body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling repoEditWikiPage(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoEditWikiPage(Async)"); + } + + // verify the required parameter 'pageName' is set + if (pageName == null) { + throw new ApiException("Missing the required parameter 'pageName' when calling repoEditWikiPage(Async)"); + } + + + com.squareup.okhttp.Call call = repoEditWikiPageCall(owner, repo, pageName, body, progressListener, progressRequestListener); + return call; + + } + + /** + * Edit a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param body (optional) + * @return WikiPage + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public WikiPage repoEditWikiPage(String owner, String repo, String pageName, CreateWikiPageOptions body) throws ApiException { + ApiResponse resp = repoEditWikiPageWithHttpInfo(owner, repo, pageName, body); + return resp.getData(); + } + + /** + * Edit a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param body (optional) + * @return ApiResponse<WikiPage> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse repoEditWikiPageWithHttpInfo(String owner, String repo, String pageName, CreateWikiPageOptions body) throws ApiException { + com.squareup.okhttp.Call call = repoEditWikiPageValidateBeforeCall(owner, repo, pageName, body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Edit a wiki page (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param body (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call repoEditWikiPageAsync(String owner, String repo, String pageName, CreateWikiPageOptions body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = repoEditWikiPageValidateBeforeCall(owner, repo, pageName, body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for repoGet * @param owner owner of the repo (required) @@ -7396,14 +8115,15 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param sha SHA or branch to start listing commits from (usually 'master') (optional) + * @param path filepath of a file/dir (optional) * @param page page number of results to return (1-based) (optional) - * @param limit page size of results (optional) + * @param limit page size of results (ignored if used with 'path') (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call repoGetAllCommitsCall(String owner, String repo, String sha, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call repoGetAllCommitsCall(String owner, String repo, String sha, String path, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7415,6 +8135,8 @@ public class RepositoryApi { List localVarCollectionQueryParams = new ArrayList(); if (sha != null) localVarQueryParams.addAll(apiClient.parameterToPair("sha", sha)); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); if (page != null) localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (limit != null) @@ -7453,7 +8175,7 @@ public class RepositoryApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call repoGetAllCommitsValidateBeforeCall(String owner, String repo, String sha, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call repoGetAllCommitsValidateBeforeCall(String owner, String repo, String sha, String path, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'owner' is set if (owner == null) { @@ -7466,7 +8188,7 @@ public class RepositoryApi { } - com.squareup.okhttp.Call call = repoGetAllCommitsCall(owner, repo, sha, page, limit, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoGetAllCommitsCall(owner, repo, sha, path, page, limit, progressListener, progressRequestListener); return call; } @@ -7477,13 +8199,14 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param sha SHA or branch to start listing commits from (usually 'master') (optional) + * @param path filepath of a file/dir (optional) * @param page page number of results to return (1-based) (optional) - * @param limit page size of results (optional) + * @param limit page size of results (ignored if used with 'path') (optional) * @return List<Commit> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List repoGetAllCommits(String owner, String repo, String sha, Integer page, Integer limit) throws ApiException { - ApiResponse> resp = repoGetAllCommitsWithHttpInfo(owner, repo, sha, page, limit); + public List repoGetAllCommits(String owner, String repo, String sha, String path, Integer page, Integer limit) throws ApiException { + ApiResponse> resp = repoGetAllCommitsWithHttpInfo(owner, repo, sha, path, page, limit); return resp.getData(); } @@ -7493,13 +8216,14 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param sha SHA or branch to start listing commits from (usually 'master') (optional) + * @param path filepath of a file/dir (optional) * @param page page number of results to return (1-based) (optional) - * @param limit page size of results (optional) + * @param limit page size of results (ignored if used with 'path') (optional) * @return ApiResponse<List<Commit>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> repoGetAllCommitsWithHttpInfo(String owner, String repo, String sha, Integer page, Integer limit) throws ApiException { - com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, page, limit, null, null); + public ApiResponse> repoGetAllCommitsWithHttpInfo(String owner, String repo, String sha, String path, Integer page, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, path, page, limit, null, null); Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -7510,13 +8234,14 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param sha SHA or branch to start listing commits from (usually 'master') (optional) + * @param path filepath of a file/dir (optional) * @param page page number of results to return (1-based) (optional) - * @param limit page size of results (optional) + * @param limit page size of results (ignored if used with 'path') (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call repoGetAllCommitsAsync(String owner, String repo, String sha, Integer page, Integer limit, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call repoGetAllCommitsAsync(String owner, String repo, String sha, String path, Integer page, Integer limit, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7537,7 +8262,7 @@ public class RepositoryApi { }; } - com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, page, limit, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoGetAllCommitsValidateBeforeCall(owner, repo, sha, path, page, limit, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -11250,6 +11975,443 @@ public class RepositoryApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for repoGetWikiPage + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call repoGetWikiPageCall(String owner, String repo, String pageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/wiki/page/{pageName}" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) + .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call repoGetWikiPageValidateBeforeCall(String owner, String repo, String pageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling repoGetWikiPage(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoGetWikiPage(Async)"); + } + + // verify the required parameter 'pageName' is set + if (pageName == null) { + throw new ApiException("Missing the required parameter 'pageName' when calling repoGetWikiPage(Async)"); + } + + + com.squareup.okhttp.Call call = repoGetWikiPageCall(owner, repo, pageName, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @return WikiPage + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public WikiPage repoGetWikiPage(String owner, String repo, String pageName) throws ApiException { + ApiResponse resp = repoGetWikiPageWithHttpInfo(owner, repo, pageName); + return resp.getData(); + } + + /** + * Get a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @return ApiResponse<WikiPage> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse repoGetWikiPageWithHttpInfo(String owner, String repo, String pageName) throws ApiException { + com.squareup.okhttp.Call call = repoGetWikiPageValidateBeforeCall(owner, repo, pageName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a wiki page (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call repoGetWikiPageAsync(String owner, String repo, String pageName, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = repoGetWikiPageValidateBeforeCall(owner, repo, pageName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for repoGetWikiPageRevisions + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param page page number of results to return (1-based) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call repoGetWikiPageRevisionsCall(String owner, String repo, String pageName, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/wiki/revisions/{pageName}" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) + .replaceAll("\\{" + "pageName" + "\\}", apiClient.escapeString(pageName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call repoGetWikiPageRevisionsValidateBeforeCall(String owner, String repo, String pageName, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling repoGetWikiPageRevisions(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoGetWikiPageRevisions(Async)"); + } + + // verify the required parameter 'pageName' is set + if (pageName == null) { + throw new ApiException("Missing the required parameter 'pageName' when calling repoGetWikiPageRevisions(Async)"); + } + + + com.squareup.okhttp.Call call = repoGetWikiPageRevisionsCall(owner, repo, pageName, page, progressListener, progressRequestListener); + return call; + + } + + /** + * Get revisions of a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param page page number of results to return (1-based) (optional) + * @return WikiCommitList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public WikiCommitList repoGetWikiPageRevisions(String owner, String repo, String pageName, Integer page) throws ApiException { + ApiResponse resp = repoGetWikiPageRevisionsWithHttpInfo(owner, repo, pageName, page); + return resp.getData(); + } + + /** + * Get revisions of a wiki page + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param page page number of results to return (1-based) (optional) + * @return ApiResponse<WikiCommitList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse repoGetWikiPageRevisionsWithHttpInfo(String owner, String repo, String pageName, Integer page) throws ApiException { + com.squareup.okhttp.Call call = repoGetWikiPageRevisionsValidateBeforeCall(owner, repo, pageName, page, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get revisions of a wiki page (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param pageName name of the page (required) + * @param page page number of results to return (1-based) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call repoGetWikiPageRevisionsAsync(String owner, String repo, String pageName, Integer page, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = repoGetWikiPageRevisionsValidateBeforeCall(owner, repo, pageName, page, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for repoGetWikiPages + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call repoGetWikiPagesCall(String owner, String repo, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/wiki/pages" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call repoGetWikiPagesValidateBeforeCall(String owner, String repo, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'owner' is set + if (owner == null) { + throw new ApiException("Missing the required parameter 'owner' when calling repoGetWikiPages(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoGetWikiPages(Async)"); + } + + + com.squareup.okhttp.Call call = repoGetWikiPagesCall(owner, repo, page, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * Get all wiki pages + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @return List<WikiPageMetaData> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List repoGetWikiPages(String owner, String repo, Integer page, Integer limit) throws ApiException { + ApiResponse> resp = repoGetWikiPagesWithHttpInfo(owner, repo, page, limit); + return resp.getData(); + } + + /** + * Get all wiki pages + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @return ApiResponse<List<WikiPageMetaData>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> repoGetWikiPagesWithHttpInfo(String owner, String repo, Integer page, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = repoGetWikiPagesValidateBeforeCall(owner, repo, page, limit, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get all wiki pages (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call repoGetWikiPagesAsync(String owner, String repo, Integer page, Integer limit, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = repoGetWikiPagesValidateBeforeCall(owner, repo, page, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for repoListAllGitRefs * @param owner owner of the repo (required) @@ -15853,12 +17015,13 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param style how to update pull request (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call repoUpdatePullRequestCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call repoUpdatePullRequestCall(String owner, String repo, Long index, String style, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15869,6 +17032,8 @@ public class RepositoryApi { List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (style != null) + localVarQueryParams.addAll(apiClient.parameterToPair("style", style)); Map localVarHeaderParams = new HashMap(); @@ -15903,7 +17068,7 @@ public class RepositoryApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call repoUpdatePullRequestValidateBeforeCall(String owner, String repo, Long index, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call repoUpdatePullRequestValidateBeforeCall(String owner, String repo, Long index, String style, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'owner' is set if (owner == null) { @@ -15921,7 +17086,7 @@ public class RepositoryApi { } - com.squareup.okhttp.Call call = repoUpdatePullRequestCall(owner, repo, index, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoUpdatePullRequestCall(owner, repo, index, style, progressListener, progressRequestListener); return call; } @@ -15932,10 +17097,11 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param style how to update pull request (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void repoUpdatePullRequest(String owner, String repo, Long index) throws ApiException { - repoUpdatePullRequestWithHttpInfo(owner, repo, index); + public void repoUpdatePullRequest(String owner, String repo, Long index, String style) throws ApiException { + repoUpdatePullRequestWithHttpInfo(owner, repo, index, style); } /** @@ -15944,11 +17110,12 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param style how to update pull request (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse repoUpdatePullRequestWithHttpInfo(String owner, String repo, Long index) throws ApiException { - com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, null, null); + public ApiResponse repoUpdatePullRequestWithHttpInfo(String owner, String repo, Long index, String style) throws ApiException { + com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, style, null, null); return apiClient.execute(call); } @@ -15958,11 +17125,12 @@ public class RepositoryApi { * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param index index of the pull request to get (required) + * @param style how to update pull request (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call repoUpdatePullRequestAsync(String owner, String repo, Long index, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call repoUpdatePullRequestAsync(String owner, String repo, Long index, String style, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15983,7 +17151,7 @@ public class RepositoryApi { }; } - com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoUpdatePullRequestValidateBeforeCall(owner, repo, index, style, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/src/main/java/io/gitea/api/SettingsApi.java b/src/main/java/io/gitea/api/SettingsApi.java index 4f070a4..dffa712 100644 --- a/src/main/java/io/gitea/api/SettingsApi.java +++ b/src/main/java/io/gitea/api/SettingsApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/api/UserApi.java b/src/main/java/io/gitea/api/UserApi.java index 8cb145f..776dc14 100644 --- a/src/main/java/io/gitea/api/UserApi.java +++ b/src/main/java/io/gitea/api/UserApi.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/APIError.java b/src/main/java/io/gitea/model/APIError.java index c9d197c..e46f617 100644 --- a/src/main/java/io/gitea/model/APIError.java +++ b/src/main/java/io/gitea/model/APIError.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/AccessToken.java b/src/main/java/io/gitea/model/AccessToken.java index 4d65061..ee2da16 100644 --- a/src/main/java/io/gitea/model/AccessToken.java +++ b/src/main/java/io/gitea/model/AccessToken.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/AddCollaboratorOption.java b/src/main/java/io/gitea/model/AddCollaboratorOption.java index 540bd96..52bc8c0 100644 --- a/src/main/java/io/gitea/model/AddCollaboratorOption.java +++ b/src/main/java/io/gitea/model/AddCollaboratorOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/AddTimeOption.java b/src/main/java/io/gitea/model/AddTimeOption.java index 3e068ad..c9339a5 100644 --- a/src/main/java/io/gitea/model/AddTimeOption.java +++ b/src/main/java/io/gitea/model/AddTimeOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/AnnotatedTag.java b/src/main/java/io/gitea/model/AnnotatedTag.java index de1017c..23441f9 100644 --- a/src/main/java/io/gitea/model/AnnotatedTag.java +++ b/src/main/java/io/gitea/model/AnnotatedTag.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/AnnotatedTagObject.java b/src/main/java/io/gitea/model/AnnotatedTagObject.java index d015cb1..70f5d7f 100644 --- a/src/main/java/io/gitea/model/AnnotatedTagObject.java +++ b/src/main/java/io/gitea/model/AnnotatedTagObject.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Attachment.java b/src/main/java/io/gitea/model/Attachment.java index e92a6f9..4c8f0fc 100644 --- a/src/main/java/io/gitea/model/Attachment.java +++ b/src/main/java/io/gitea/model/Attachment.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Branch.java b/src/main/java/io/gitea/model/Branch.java index b8d8421..c3a2e67 100644 --- a/src/main/java/io/gitea/model/Branch.java +++ b/src/main/java/io/gitea/model/Branch.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/BranchProtection.java b/src/main/java/io/gitea/model/BranchProtection.java index fe5acb2..d8ff796 100644 --- a/src/main/java/io/gitea/model/BranchProtection.java +++ b/src/main/java/io/gitea/model/BranchProtection.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -99,6 +99,9 @@ public class BranchProtection { @SerializedName("status_check_contexts") private List statusCheckContexts = null; + @SerializedName("unprotected_file_patterns") + private String unprotectedFilePatterns = null; + @SerializedName("updated_at") private OffsetDateTime updatedAt = null; @@ -554,6 +557,24 @@ public class BranchProtection { this.statusCheckContexts = statusCheckContexts; } + public BranchProtection unprotectedFilePatterns(String unprotectedFilePatterns) { + this.unprotectedFilePatterns = unprotectedFilePatterns; + return this; + } + + /** + * Get unprotectedFilePatterns + * @return unprotectedFilePatterns + **/ + @ApiModelProperty(value = "") + public String getUnprotectedFilePatterns() { + return unprotectedFilePatterns; + } + + public void setUnprotectedFilePatterns(String unprotectedFilePatterns) { + this.unprotectedFilePatterns = unprotectedFilePatterns; + } + public BranchProtection updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; @@ -604,12 +625,13 @@ public class BranchProtection { Objects.equals(this.requireSignedCommits, branchProtection.requireSignedCommits) && Objects.equals(this.requiredApprovals, branchProtection.requiredApprovals) && Objects.equals(this.statusCheckContexts, branchProtection.statusCheckContexts) && + Objects.equals(this.unprotectedFilePatterns, branchProtection.unprotectedFilePatterns) && Objects.equals(this.updatedAt, branchProtection.updatedAt); } @Override public int hashCode() { - return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, createdAt, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, updatedAt); + return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, createdAt, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns, updatedAt); } @@ -640,6 +662,7 @@ public class BranchProtection { sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n"); sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n"); sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n"); + sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/io/gitea/model/CombinedStatus.java b/src/main/java/io/gitea/model/CombinedStatus.java index 7d6d253..a2233f4 100644 --- a/src/main/java/io/gitea/model/CombinedStatus.java +++ b/src/main/java/io/gitea/model/CombinedStatus.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Comment.java b/src/main/java/io/gitea/model/Comment.java index 62838dc..fcba7ef 100644 --- a/src/main/java/io/gitea/model/Comment.java +++ b/src/main/java/io/gitea/model/Comment.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Commit.java b/src/main/java/io/gitea/model/Commit.java index 4d4da5f..e38db75 100644 --- a/src/main/java/io/gitea/model/Commit.java +++ b/src/main/java/io/gitea/model/Commit.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CommitAffectedFiles.java b/src/main/java/io/gitea/model/CommitAffectedFiles.java index cc78dd4..8559f69 100644 --- a/src/main/java/io/gitea/model/CommitAffectedFiles.java +++ b/src/main/java/io/gitea/model/CommitAffectedFiles.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CommitDateOptions.java b/src/main/java/io/gitea/model/CommitDateOptions.java index bdbda8c..e5fd442 100644 --- a/src/main/java/io/gitea/model/CommitDateOptions.java +++ b/src/main/java/io/gitea/model/CommitDateOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CommitMeta.java b/src/main/java/io/gitea/model/CommitMeta.java index f281eb8..38db737 100644 --- a/src/main/java/io/gitea/model/CommitMeta.java +++ b/src/main/java/io/gitea/model/CommitMeta.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CommitStatus.java b/src/main/java/io/gitea/model/CommitStatus.java index af1735b..56c73d7 100644 --- a/src/main/java/io/gitea/model/CommitStatus.java +++ b/src/main/java/io/gitea/model/CommitStatus.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CommitUser.java b/src/main/java/io/gitea/model/CommitUser.java index 1d3450c..6a8adef 100644 --- a/src/main/java/io/gitea/model/CommitUser.java +++ b/src/main/java/io/gitea/model/CommitUser.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/ContentsResponse.java b/src/main/java/io/gitea/model/ContentsResponse.java index de35bf1..a2f8bce 100644 --- a/src/main/java/io/gitea/model/ContentsResponse.java +++ b/src/main/java/io/gitea/model/ContentsResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateAccessTokenOption.java b/src/main/java/io/gitea/model/CreateAccessTokenOption.java index f1b326f..26d7853 100644 --- a/src/main/java/io/gitea/model/CreateAccessTokenOption.java +++ b/src/main/java/io/gitea/model/CreateAccessTokenOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateBranchProtectionOption.java b/src/main/java/io/gitea/model/CreateBranchProtectionOption.java index 47f4ffb..df9f0fa 100644 --- a/src/main/java/io/gitea/model/CreateBranchProtectionOption.java +++ b/src/main/java/io/gitea/model/CreateBranchProtectionOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -95,6 +95,9 @@ public class CreateBranchProtectionOption { @SerializedName("status_check_contexts") private List statusCheckContexts = null; + @SerializedName("unprotected_file_patterns") + private String unprotectedFilePatterns = null; + public CreateBranchProtectionOption approvalsWhitelistTeams(List approvalsWhitelistTeams) { this.approvalsWhitelistTeams = approvalsWhitelistTeams; return this; @@ -529,6 +532,24 @@ public class CreateBranchProtectionOption { this.statusCheckContexts = statusCheckContexts; } + public CreateBranchProtectionOption unprotectedFilePatterns(String unprotectedFilePatterns) { + this.unprotectedFilePatterns = unprotectedFilePatterns; + return this; + } + + /** + * Get unprotectedFilePatterns + * @return unprotectedFilePatterns + **/ + @ApiModelProperty(value = "") + public String getUnprotectedFilePatterns() { + return unprotectedFilePatterns; + } + + public void setUnprotectedFilePatterns(String unprotectedFilePatterns) { + this.unprotectedFilePatterns = unprotectedFilePatterns; + } + @Override public boolean equals(java.lang.Object o) { @@ -559,12 +580,13 @@ public class CreateBranchProtectionOption { Objects.equals(this.pushWhitelistUsernames, createBranchProtectionOption.pushWhitelistUsernames) && Objects.equals(this.requireSignedCommits, createBranchProtectionOption.requireSignedCommits) && Objects.equals(this.requiredApprovals, createBranchProtectionOption.requiredApprovals) && - Objects.equals(this.statusCheckContexts, createBranchProtectionOption.statusCheckContexts); + Objects.equals(this.statusCheckContexts, createBranchProtectionOption.statusCheckContexts) && + Objects.equals(this.unprotectedFilePatterns, createBranchProtectionOption.unprotectedFilePatterns); } @Override public int hashCode() { - return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts); + return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns); } @@ -594,6 +616,7 @@ public class CreateBranchProtectionOption { sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n"); sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n"); sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n"); + sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/gitea/model/CreateBranchRepoOption.java b/src/main/java/io/gitea/model/CreateBranchRepoOption.java index 21858c0..c2fcd61 100644 --- a/src/main/java/io/gitea/model/CreateBranchRepoOption.java +++ b/src/main/java/io/gitea/model/CreateBranchRepoOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateEmailOption.java b/src/main/java/io/gitea/model/CreateEmailOption.java index fd40491..85b9208 100644 --- a/src/main/java/io/gitea/model/CreateEmailOption.java +++ b/src/main/java/io/gitea/model/CreateEmailOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateFileOptions.java b/src/main/java/io/gitea/model/CreateFileOptions.java index 63b1720..71b2326 100644 --- a/src/main/java/io/gitea/model/CreateFileOptions.java +++ b/src/main/java/io/gitea/model/CreateFileOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateForkOption.java b/src/main/java/io/gitea/model/CreateForkOption.java index 8fcfeef..8ec5694 100644 --- a/src/main/java/io/gitea/model/CreateForkOption.java +++ b/src/main/java/io/gitea/model/CreateForkOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -30,9 +30,30 @@ import java.io.IOException; @ApiModel(description = "CreateForkOption options for creating a fork") public class CreateForkOption { + @SerializedName("name") + private String name = null; + @SerializedName("organization") private String organization = null; + public CreateForkOption name(String name) { + this.name = name; + return this; + } + + /** + * name of the forked repository + * @return name + **/ + @ApiModelProperty(value = "name of the forked repository") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public CreateForkOption organization(String organization) { this.organization = organization; return this; @@ -61,12 +82,13 @@ public class CreateForkOption { return false; } CreateForkOption createForkOption = (CreateForkOption) o; - return Objects.equals(this.organization, createForkOption.organization); + return Objects.equals(this.name, createForkOption.name) && + Objects.equals(this.organization, createForkOption.organization); } @Override public int hashCode() { - return Objects.hash(organization); + return Objects.hash(name, organization); } @@ -75,6 +97,7 @@ public class CreateForkOption { StringBuilder sb = new StringBuilder(); sb.append("class CreateForkOption {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" organization: ").append(toIndentedString(organization)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/io/gitea/model/CreateGPGKeyOption.java b/src/main/java/io/gitea/model/CreateGPGKeyOption.java index 27c40b3..ca156de 100644 --- a/src/main/java/io/gitea/model/CreateGPGKeyOption.java +++ b/src/main/java/io/gitea/model/CreateGPGKeyOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateHookOption.java b/src/main/java/io/gitea/model/CreateHookOption.java index 04b352a..11c08ed 100644 --- a/src/main/java/io/gitea/model/CreateHookOption.java +++ b/src/main/java/io/gitea/model/CreateHookOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateHookOptionConfig.java b/src/main/java/io/gitea/model/CreateHookOptionConfig.java index a8baf3e..98a44d4 100644 --- a/src/main/java/io/gitea/model/CreateHookOptionConfig.java +++ b/src/main/java/io/gitea/model/CreateHookOptionConfig.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateIssueCommentOption.java b/src/main/java/io/gitea/model/CreateIssueCommentOption.java index 874f3d3..90f6659 100644 --- a/src/main/java/io/gitea/model/CreateIssueCommentOption.java +++ b/src/main/java/io/gitea/model/CreateIssueCommentOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateIssueOption.java b/src/main/java/io/gitea/model/CreateIssueOption.java index 1d6362e..43f88c5 100644 --- a/src/main/java/io/gitea/model/CreateIssueOption.java +++ b/src/main/java/io/gitea/model/CreateIssueOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateKeyOption.java b/src/main/java/io/gitea/model/CreateKeyOption.java index 60f0b92..0e2aa25 100644 --- a/src/main/java/io/gitea/model/CreateKeyOption.java +++ b/src/main/java/io/gitea/model/CreateKeyOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateLabelOption.java b/src/main/java/io/gitea/model/CreateLabelOption.java index 29a5c9b..91b8c53 100644 --- a/src/main/java/io/gitea/model/CreateLabelOption.java +++ b/src/main/java/io/gitea/model/CreateLabelOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateMilestoneOption.java b/src/main/java/io/gitea/model/CreateMilestoneOption.java index d271bc1..a3da9d1 100644 --- a/src/main/java/io/gitea/model/CreateMilestoneOption.java +++ b/src/main/java/io/gitea/model/CreateMilestoneOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java b/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java index f286b1a..1551645 100644 --- a/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java +++ b/src/main/java/io/gitea/model/CreateOAuth2ApplicationOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateOrgOption.java b/src/main/java/io/gitea/model/CreateOrgOption.java index 7416aeb..8cf7406 100644 --- a/src/main/java/io/gitea/model/CreateOrgOption.java +++ b/src/main/java/io/gitea/model/CreateOrgOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreatePullRequestOption.java b/src/main/java/io/gitea/model/CreatePullRequestOption.java index 14f369b..760fe99 100644 --- a/src/main/java/io/gitea/model/CreatePullRequestOption.java +++ b/src/main/java/io/gitea/model/CreatePullRequestOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreatePullReviewComment.java b/src/main/java/io/gitea/model/CreatePullReviewComment.java index 609677a..53575c6 100644 --- a/src/main/java/io/gitea/model/CreatePullReviewComment.java +++ b/src/main/java/io/gitea/model/CreatePullReviewComment.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreatePullReviewOptions.java b/src/main/java/io/gitea/model/CreatePullReviewOptions.java index d1a6f25..6b2539c 100644 --- a/src/main/java/io/gitea/model/CreatePullReviewOptions.java +++ b/src/main/java/io/gitea/model/CreatePullReviewOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateReleaseOption.java b/src/main/java/io/gitea/model/CreateReleaseOption.java index 2323d8f..8b6c621 100644 --- a/src/main/java/io/gitea/model/CreateReleaseOption.java +++ b/src/main/java/io/gitea/model/CreateReleaseOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateRepoOption.java b/src/main/java/io/gitea/model/CreateRepoOption.java index c581f18..17430bd 100644 --- a/src/main/java/io/gitea/model/CreateRepoOption.java +++ b/src/main/java/io/gitea/model/CreateRepoOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -120,10 +120,10 @@ public class CreateRepoOption { } /** - * Whether the repository should be auto-intialized? + * Whether the repository should be auto-initialized? * @return autoInit **/ - @ApiModelProperty(value = "Whether the repository should be auto-intialized?") + @ApiModelProperty(value = "Whether the repository should be auto-initialized?") public Boolean isAutoInit() { return autoInit; } diff --git a/src/main/java/io/gitea/model/CreateStatusOption.java b/src/main/java/io/gitea/model/CreateStatusOption.java index eee745f..9a63371 100644 --- a/src/main/java/io/gitea/model/CreateStatusOption.java +++ b/src/main/java/io/gitea/model/CreateStatusOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateTagOption.java b/src/main/java/io/gitea/model/CreateTagOption.java index 8d27b2f..c4c63aa 100644 --- a/src/main/java/io/gitea/model/CreateTagOption.java +++ b/src/main/java/io/gitea/model/CreateTagOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateTeamOption.java b/src/main/java/io/gitea/model/CreateTeamOption.java index 8ee5593..899c36a 100644 --- a/src/main/java/io/gitea/model/CreateTeamOption.java +++ b/src/main/java/io/gitea/model/CreateTeamOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -24,7 +24,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; /** * CreateTeamOption options for creating a team @@ -99,6 +101,9 @@ public class CreateTeamOption { @SerializedName("units") private List units = null; + @SerializedName("units_map") + private Map unitsMap = null; + public CreateTeamOption canCreateOrgRepo(Boolean canCreateOrgRepo) { this.canCreateOrgRepo = canCreateOrgRepo; return this; @@ -215,6 +220,32 @@ public class CreateTeamOption { this.units = units; } + public CreateTeamOption unitsMap(Map unitsMap) { + this.unitsMap = unitsMap; + return this; + } + + public CreateTeamOption putUnitsMapItem(String key, String unitsMapItem) { + if (this.unitsMap == null) { + this.unitsMap = new HashMap(); + } + this.unitsMap.put(key, unitsMapItem); + return this; + } + + /** + * Get unitsMap + * @return unitsMap + **/ + @ApiModelProperty(example = "\"{\\\"repo.code\\\":\\\"read\\\",\\\"repo.issues\\\":\\\"write\\\",\\\"repo.ext_issues\\\":\\\"none\\\",\\\"repo.wiki\\\":\\\"admin\\\",\\\"repo.pulls\\\":\\\"owner\\\",\\\"repo.releases\\\":\\\"none\\\",\\\"repo.projects\\\":\\\"none\\\",\\\"repo.ext_wiki\\\":\\\"none\\\"]\"", value = "") + public Map getUnitsMap() { + return unitsMap; + } + + public void setUnitsMap(Map unitsMap) { + this.unitsMap = unitsMap; + } + @Override public boolean equals(java.lang.Object o) { @@ -230,12 +261,13 @@ public class CreateTeamOption { Objects.equals(this.includesAllRepositories, createTeamOption.includesAllRepositories) && Objects.equals(this.name, createTeamOption.name) && Objects.equals(this.permission, createTeamOption.permission) && - Objects.equals(this.units, createTeamOption.units); + Objects.equals(this.units, createTeamOption.units) && + Objects.equals(this.unitsMap, createTeamOption.unitsMap); } @Override public int hashCode() { - return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units); + return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units, unitsMap); } @@ -250,6 +282,7 @@ public class CreateTeamOption { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" unitsMap: ").append(toIndentedString(unitsMap)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/gitea/model/CreateUserOption.java b/src/main/java/io/gitea/model/CreateUserOption.java index 480f5e3..54118b3 100644 --- a/src/main/java/io/gitea/model/CreateUserOption.java +++ b/src/main/java/io/gitea/model/CreateUserOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -45,6 +45,9 @@ public class CreateUserOption { @SerializedName("password") private String password = null; + @SerializedName("restricted") + private Boolean restricted = null; + @SerializedName("send_notify") private Boolean sendNotify = null; @@ -147,6 +150,24 @@ public class CreateUserOption { this.password = password; } + public CreateUserOption restricted(Boolean restricted) { + this.restricted = restricted; + return this; + } + + /** + * Get restricted + * @return restricted + **/ + @ApiModelProperty(value = "") + public Boolean isRestricted() { + return restricted; + } + + public void setRestricted(Boolean restricted) { + this.restricted = restricted; + } + public CreateUserOption sendNotify(Boolean sendNotify) { this.sendNotify = sendNotify; return this; @@ -234,6 +255,7 @@ public class CreateUserOption { Objects.equals(this.loginName, createUserOption.loginName) && Objects.equals(this.mustChangePassword, createUserOption.mustChangePassword) && Objects.equals(this.password, createUserOption.password) && + Objects.equals(this.restricted, createUserOption.restricted) && Objects.equals(this.sendNotify, createUserOption.sendNotify) && Objects.equals(this.sourceId, createUserOption.sourceId) && Objects.equals(this.username, createUserOption.username) && @@ -242,7 +264,7 @@ public class CreateUserOption { @Override public int hashCode() { - return Objects.hash(email, fullName, loginName, mustChangePassword, password, sendNotify, sourceId, username, visibility); + return Objects.hash(email, fullName, loginName, mustChangePassword, password, restricted, sendNotify, sourceId, username, visibility); } @@ -256,6 +278,7 @@ public class CreateUserOption { sb.append(" loginName: ").append(toIndentedString(loginName)).append("\n"); sb.append(" mustChangePassword: ").append(toIndentedString(mustChangePassword)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" restricted: ").append(toIndentedString(restricted)).append("\n"); sb.append(" sendNotify: ").append(toIndentedString(sendNotify)).append("\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); diff --git a/src/main/java/io/gitea/model/CreateWikiPageOptions.java b/src/main/java/io/gitea/model/CreateWikiPageOptions.java new file mode 100644 index 0000000..b7ebf7c --- /dev/null +++ b/src/main/java/io/gitea/model/CreateWikiPageOptions.java @@ -0,0 +1,141 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * CreateWikiPageOptions form for creating wiki + */ +@ApiModel(description = "CreateWikiPageOptions form for creating wiki") + +public class CreateWikiPageOptions { + @SerializedName("content_base64") + private String contentBase64 = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("title") + private String title = null; + + public CreateWikiPageOptions contentBase64(String contentBase64) { + this.contentBase64 = contentBase64; + return this; + } + + /** + * content must be base64 encoded + * @return contentBase64 + **/ + @ApiModelProperty(value = "content must be base64 encoded") + public String getContentBase64() { + return contentBase64; + } + + public void setContentBase64(String contentBase64) { + this.contentBase64 = contentBase64; + } + + public CreateWikiPageOptions message(String message) { + this.message = message; + return this; + } + + /** + * optional commit message summarizing the change + * @return message + **/ + @ApiModelProperty(value = "optional commit message summarizing the change") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public CreateWikiPageOptions title(String title) { + this.title = title; + return this; + } + + /** + * page title. leave empty to keep unchanged + * @return title + **/ + @ApiModelProperty(value = "page title. leave empty to keep unchanged") + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWikiPageOptions createWikiPageOptions = (CreateWikiPageOptions) o; + return Objects.equals(this.contentBase64, createWikiPageOptions.contentBase64) && + Objects.equals(this.message, createWikiPageOptions.message) && + Objects.equals(this.title, createWikiPageOptions.title); + } + + @Override + public int hashCode() { + return Objects.hash(contentBase64, message, title); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWikiPageOptions {\n"); + + sb.append(" contentBase64: ").append(toIndentedString(contentBase64)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/Cron.java b/src/main/java/io/gitea/model/Cron.java index c1086cd..c3b39fb 100644 --- a/src/main/java/io/gitea/model/Cron.java +++ b/src/main/java/io/gitea/model/Cron.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/DeleteEmailOption.java b/src/main/java/io/gitea/model/DeleteEmailOption.java index 1b16d1f..1588fa9 100644 --- a/src/main/java/io/gitea/model/DeleteEmailOption.java +++ b/src/main/java/io/gitea/model/DeleteEmailOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/DeleteFileOptions.java b/src/main/java/io/gitea/model/DeleteFileOptions.java index 6fb4a8a..759e1b6 100644 --- a/src/main/java/io/gitea/model/DeleteFileOptions.java +++ b/src/main/java/io/gitea/model/DeleteFileOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/DeployKey.java b/src/main/java/io/gitea/model/DeployKey.java index e5d54f3..13f27db 100644 --- a/src/main/java/io/gitea/model/DeployKey.java +++ b/src/main/java/io/gitea/model/DeployKey.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/DismissPullReviewOptions.java b/src/main/java/io/gitea/model/DismissPullReviewOptions.java index 97f2b30..42cd59b 100644 --- a/src/main/java/io/gitea/model/DismissPullReviewOptions.java +++ b/src/main/java/io/gitea/model/DismissPullReviewOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditAttachmentOptions.java b/src/main/java/io/gitea/model/EditAttachmentOptions.java index d67c080..c7ba723 100644 --- a/src/main/java/io/gitea/model/EditAttachmentOptions.java +++ b/src/main/java/io/gitea/model/EditAttachmentOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditBranchProtectionOption.java b/src/main/java/io/gitea/model/EditBranchProtectionOption.java index 4b85a1b..f66787c 100644 --- a/src/main/java/io/gitea/model/EditBranchProtectionOption.java +++ b/src/main/java/io/gitea/model/EditBranchProtectionOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -92,6 +92,9 @@ public class EditBranchProtectionOption { @SerializedName("status_check_contexts") private List statusCheckContexts = null; + @SerializedName("unprotected_file_patterns") + private String unprotectedFilePatterns = null; + public EditBranchProtectionOption approvalsWhitelistTeams(List approvalsWhitelistTeams) { this.approvalsWhitelistTeams = approvalsWhitelistTeams; return this; @@ -508,6 +511,24 @@ public class EditBranchProtectionOption { this.statusCheckContexts = statusCheckContexts; } + public EditBranchProtectionOption unprotectedFilePatterns(String unprotectedFilePatterns) { + this.unprotectedFilePatterns = unprotectedFilePatterns; + return this; + } + + /** + * Get unprotectedFilePatterns + * @return unprotectedFilePatterns + **/ + @ApiModelProperty(value = "") + public String getUnprotectedFilePatterns() { + return unprotectedFilePatterns; + } + + public void setUnprotectedFilePatterns(String unprotectedFilePatterns) { + this.unprotectedFilePatterns = unprotectedFilePatterns; + } + @Override public boolean equals(java.lang.Object o) { @@ -537,12 +558,13 @@ public class EditBranchProtectionOption { Objects.equals(this.pushWhitelistUsernames, editBranchProtectionOption.pushWhitelistUsernames) && Objects.equals(this.requireSignedCommits, editBranchProtectionOption.requireSignedCommits) && Objects.equals(this.requiredApprovals, editBranchProtectionOption.requiredApprovals) && - Objects.equals(this.statusCheckContexts, editBranchProtectionOption.statusCheckContexts); + Objects.equals(this.statusCheckContexts, editBranchProtectionOption.statusCheckContexts) && + Objects.equals(this.unprotectedFilePatterns, editBranchProtectionOption.unprotectedFilePatterns); } @Override public int hashCode() { - return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts); + return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns); } @@ -571,6 +593,7 @@ public class EditBranchProtectionOption { sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n"); sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n"); sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n"); + sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/gitea/model/EditDeadlineOption.java b/src/main/java/io/gitea/model/EditDeadlineOption.java index 05e3361..16c622a 100644 --- a/src/main/java/io/gitea/model/EditDeadlineOption.java +++ b/src/main/java/io/gitea/model/EditDeadlineOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditGitHookOption.java b/src/main/java/io/gitea/model/EditGitHookOption.java index c861739..490fe67 100644 --- a/src/main/java/io/gitea/model/EditGitHookOption.java +++ b/src/main/java/io/gitea/model/EditGitHookOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditHookOption.java b/src/main/java/io/gitea/model/EditHookOption.java index 9c1cc1f..701e944 100644 --- a/src/main/java/io/gitea/model/EditHookOption.java +++ b/src/main/java/io/gitea/model/EditHookOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditIssueCommentOption.java b/src/main/java/io/gitea/model/EditIssueCommentOption.java index a45b84b..6d46aba 100644 --- a/src/main/java/io/gitea/model/EditIssueCommentOption.java +++ b/src/main/java/io/gitea/model/EditIssueCommentOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditIssueOption.java b/src/main/java/io/gitea/model/EditIssueOption.java index caf7bd4..e5b5b68 100644 --- a/src/main/java/io/gitea/model/EditIssueOption.java +++ b/src/main/java/io/gitea/model/EditIssueOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditLabelOption.java b/src/main/java/io/gitea/model/EditLabelOption.java index b114384..b5c3db5 100644 --- a/src/main/java/io/gitea/model/EditLabelOption.java +++ b/src/main/java/io/gitea/model/EditLabelOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditMilestoneOption.java b/src/main/java/io/gitea/model/EditMilestoneOption.java index 5a89519..f90373e 100644 --- a/src/main/java/io/gitea/model/EditMilestoneOption.java +++ b/src/main/java/io/gitea/model/EditMilestoneOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditOrgOption.java b/src/main/java/io/gitea/model/EditOrgOption.java index 444939e..0a751c2 100644 --- a/src/main/java/io/gitea/model/EditOrgOption.java +++ b/src/main/java/io/gitea/model/EditOrgOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditPullRequestOption.java b/src/main/java/io/gitea/model/EditPullRequestOption.java index 1227b48..baca161 100644 --- a/src/main/java/io/gitea/model/EditPullRequestOption.java +++ b/src/main/java/io/gitea/model/EditPullRequestOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditReactionOption.java b/src/main/java/io/gitea/model/EditReactionOption.java index 000354c..8b465f5 100644 --- a/src/main/java/io/gitea/model/EditReactionOption.java +++ b/src/main/java/io/gitea/model/EditReactionOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditReleaseOption.java b/src/main/java/io/gitea/model/EditReleaseOption.java index fa2ed18..61454e0 100644 --- a/src/main/java/io/gitea/model/EditReleaseOption.java +++ b/src/main/java/io/gitea/model/EditReleaseOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditRepoOption.java b/src/main/java/io/gitea/model/EditRepoOption.java index d36d516..fce63ed 100644 --- a/src/main/java/io/gitea/model/EditRepoOption.java +++ b/src/main/java/io/gitea/model/EditRepoOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -66,6 +66,9 @@ public class EditRepoOption { @SerializedName("description") private String description = null; + @SerializedName("enable_prune") + private Boolean enablePrune = null; + @SerializedName("external_tracker") private ExternalTracker externalTracker = null; @@ -303,6 +306,24 @@ public class EditRepoOption { this.description = description; } + public EditRepoOption enablePrune(Boolean enablePrune) { + this.enablePrune = enablePrune; + return this; + } + + /** + * enable prune - remove obsolete remote-tracking references + * @return enablePrune + **/ + @ApiModelProperty(value = "enable prune - remove obsolete remote-tracking references") + public Boolean isEnablePrune() { + return enablePrune; + } + + public void setEnablePrune(Boolean enablePrune) { + this.enablePrune = enablePrune; + } + public EditRepoOption externalTracker(ExternalTracker externalTracker) { this.externalTracker = externalTracker; return this; @@ -558,6 +579,7 @@ public class EditRepoOption { Objects.equals(this.defaultDeleteBranchAfterMerge, editRepoOption.defaultDeleteBranchAfterMerge) && Objects.equals(this.defaultMergeStyle, editRepoOption.defaultMergeStyle) && Objects.equals(this.description, editRepoOption.description) && + Objects.equals(this.enablePrune, editRepoOption.enablePrune) && Objects.equals(this.externalTracker, editRepoOption.externalTracker) && Objects.equals(this.externalWiki, editRepoOption.externalWiki) && Objects.equals(this.hasIssues, editRepoOption.hasIssues) && @@ -575,7 +597,7 @@ public class EditRepoOption { @Override public int hashCode() { - return Objects.hash(allowManualMerge, allowMergeCommits, allowRebase, allowRebaseExplicit, allowSquashMerge, archived, autodetectManualMerge, defaultBranch, defaultDeleteBranchAfterMerge, defaultMergeStyle, description, externalTracker, externalWiki, hasIssues, hasProjects, hasPullRequests, hasWiki, ignoreWhitespaceConflicts, internalTracker, mirrorInterval, name, _private, template, website); + return Objects.hash(allowManualMerge, allowMergeCommits, allowRebase, allowRebaseExplicit, allowSquashMerge, archived, autodetectManualMerge, defaultBranch, defaultDeleteBranchAfterMerge, defaultMergeStyle, description, enablePrune, externalTracker, externalWiki, hasIssues, hasProjects, hasPullRequests, hasWiki, ignoreWhitespaceConflicts, internalTracker, mirrorInterval, name, _private, template, website); } @@ -595,6 +617,7 @@ public class EditRepoOption { sb.append(" defaultDeleteBranchAfterMerge: ").append(toIndentedString(defaultDeleteBranchAfterMerge)).append("\n"); sb.append(" defaultMergeStyle: ").append(toIndentedString(defaultMergeStyle)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" enablePrune: ").append(toIndentedString(enablePrune)).append("\n"); sb.append(" externalTracker: ").append(toIndentedString(externalTracker)).append("\n"); sb.append(" externalWiki: ").append(toIndentedString(externalWiki)).append("\n"); sb.append(" hasIssues: ").append(toIndentedString(hasIssues)).append("\n"); diff --git a/src/main/java/io/gitea/model/EditTeamOption.java b/src/main/java/io/gitea/model/EditTeamOption.java index 7eb8f3f..d83172c 100644 --- a/src/main/java/io/gitea/model/EditTeamOption.java +++ b/src/main/java/io/gitea/model/EditTeamOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -24,7 +24,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; /** * EditTeamOption options for editing a team @@ -99,6 +101,9 @@ public class EditTeamOption { @SerializedName("units") private List units = null; + @SerializedName("units_map") + private Map unitsMap = null; + public EditTeamOption canCreateOrgRepo(Boolean canCreateOrgRepo) { this.canCreateOrgRepo = canCreateOrgRepo; return this; @@ -215,6 +220,32 @@ public class EditTeamOption { this.units = units; } + public EditTeamOption unitsMap(Map unitsMap) { + this.unitsMap = unitsMap; + return this; + } + + public EditTeamOption putUnitsMapItem(String key, String unitsMapItem) { + if (this.unitsMap == null) { + this.unitsMap = new HashMap(); + } + this.unitsMap.put(key, unitsMapItem); + return this; + } + + /** + * Get unitsMap + * @return unitsMap + **/ + @ApiModelProperty(example = "\"{\\\"repo.code\\\":\\\"read\\\",\\\"repo.issues\\\":\\\"write\\\",\\\"repo.ext_issues\\\":\\\"none\\\",\\\"repo.wiki\\\":\\\"admin\\\",\\\"repo.pulls\\\":\\\"owner\\\",\\\"repo.releases\\\":\\\"none\\\",\\\"repo.projects\\\":\\\"none\\\",\\\"repo.ext_wiki\\\":\\\"none\\\"]\"", value = "") + public Map getUnitsMap() { + return unitsMap; + } + + public void setUnitsMap(Map unitsMap) { + this.unitsMap = unitsMap; + } + @Override public boolean equals(java.lang.Object o) { @@ -230,12 +261,13 @@ public class EditTeamOption { Objects.equals(this.includesAllRepositories, editTeamOption.includesAllRepositories) && Objects.equals(this.name, editTeamOption.name) && Objects.equals(this.permission, editTeamOption.permission) && - Objects.equals(this.units, editTeamOption.units); + Objects.equals(this.units, editTeamOption.units) && + Objects.equals(this.unitsMap, editTeamOption.unitsMap); } @Override public int hashCode() { - return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units); + return Objects.hash(canCreateOrgRepo, description, includesAllRepositories, name, permission, units, unitsMap); } @@ -250,6 +282,7 @@ public class EditTeamOption { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" unitsMap: ").append(toIndentedString(unitsMap)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/gitea/model/EditUserOption.java b/src/main/java/io/gitea/model/EditUserOption.java index 9bf1432..31f93a6 100644 --- a/src/main/java/io/gitea/model/EditUserOption.java +++ b/src/main/java/io/gitea/model/EditUserOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Email.java b/src/main/java/io/gitea/model/Email.java index 7b875c8..829877d 100644 --- a/src/main/java/io/gitea/model/Email.java +++ b/src/main/java/io/gitea/model/Email.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/ExternalTracker.java b/src/main/java/io/gitea/model/ExternalTracker.java index 74a63da..a8fb3b7 100644 --- a/src/main/java/io/gitea/model/ExternalTracker.java +++ b/src/main/java/io/gitea/model/ExternalTracker.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/ExternalWiki.java b/src/main/java/io/gitea/model/ExternalWiki.java index d10117e..bec0e2f 100644 --- a/src/main/java/io/gitea/model/ExternalWiki.java +++ b/src/main/java/io/gitea/model/ExternalWiki.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/FileCommitResponse.java b/src/main/java/io/gitea/model/FileCommitResponse.java index 4463bd2..655dd65 100644 --- a/src/main/java/io/gitea/model/FileCommitResponse.java +++ b/src/main/java/io/gitea/model/FileCommitResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/FileDeleteResponse.java b/src/main/java/io/gitea/model/FileDeleteResponse.java index 2ff2fe8..ceab05f 100644 --- a/src/main/java/io/gitea/model/FileDeleteResponse.java +++ b/src/main/java/io/gitea/model/FileDeleteResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/FileLinksResponse.java b/src/main/java/io/gitea/model/FileLinksResponse.java index 34a1f1e..e643c87 100644 --- a/src/main/java/io/gitea/model/FileLinksResponse.java +++ b/src/main/java/io/gitea/model/FileLinksResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/FileResponse.java b/src/main/java/io/gitea/model/FileResponse.java index 0f516f4..0c24d7b 100644 --- a/src/main/java/io/gitea/model/FileResponse.java +++ b/src/main/java/io/gitea/model/FileResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GPGKey.java b/src/main/java/io/gitea/model/GPGKey.java index ffe900a..0c4a7b7 100644 --- a/src/main/java/io/gitea/model/GPGKey.java +++ b/src/main/java/io/gitea/model/GPGKey.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GPGKeyEmail.java b/src/main/java/io/gitea/model/GPGKeyEmail.java index 1d253e3..cd784a4 100644 --- a/src/main/java/io/gitea/model/GPGKeyEmail.java +++ b/src/main/java/io/gitea/model/GPGKeyEmail.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GeneralAPISettings.java b/src/main/java/io/gitea/model/GeneralAPISettings.java index c408361..d53fc2b 100644 --- a/src/main/java/io/gitea/model/GeneralAPISettings.java +++ b/src/main/java/io/gitea/model/GeneralAPISettings.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GeneralAttachmentSettings.java b/src/main/java/io/gitea/model/GeneralAttachmentSettings.java index 8dfae25..bc76a1d 100644 --- a/src/main/java/io/gitea/model/GeneralAttachmentSettings.java +++ b/src/main/java/io/gitea/model/GeneralAttachmentSettings.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GeneralRepoSettings.java b/src/main/java/io/gitea/model/GeneralRepoSettings.java index d455cae..bd14e19 100644 --- a/src/main/java/io/gitea/model/GeneralRepoSettings.java +++ b/src/main/java/io/gitea/model/GeneralRepoSettings.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GeneralUISettings.java b/src/main/java/io/gitea/model/GeneralUISettings.java index 24a9f9a..f041483 100644 --- a/src/main/java/io/gitea/model/GeneralUISettings.java +++ b/src/main/java/io/gitea/model/GeneralUISettings.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GenerateRepoOption.java b/src/main/java/io/gitea/model/GenerateRepoOption.java index c29df00..51085bd 100644 --- a/src/main/java/io/gitea/model/GenerateRepoOption.java +++ b/src/main/java/io/gitea/model/GenerateRepoOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GitBlobResponse.java b/src/main/java/io/gitea/model/GitBlobResponse.java index a6a816b..f27ef04 100644 --- a/src/main/java/io/gitea/model/GitBlobResponse.java +++ b/src/main/java/io/gitea/model/GitBlobResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GitEntry.java b/src/main/java/io/gitea/model/GitEntry.java index bb1f87b..869f087 100644 --- a/src/main/java/io/gitea/model/GitEntry.java +++ b/src/main/java/io/gitea/model/GitEntry.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GitHook.java b/src/main/java/io/gitea/model/GitHook.java index 0f57b19..c67320e 100644 --- a/src/main/java/io/gitea/model/GitHook.java +++ b/src/main/java/io/gitea/model/GitHook.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GitObject.java b/src/main/java/io/gitea/model/GitObject.java index 1441059..ed15a98 100644 --- a/src/main/java/io/gitea/model/GitObject.java +++ b/src/main/java/io/gitea/model/GitObject.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/GitTreeResponse.java b/src/main/java/io/gitea/model/GitTreeResponse.java index ca8e8fb..736ac6f 100644 --- a/src/main/java/io/gitea/model/GitTreeResponse.java +++ b/src/main/java/io/gitea/model/GitTreeResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Hook.java b/src/main/java/io/gitea/model/Hook.java index 59caf19..d018afc 100644 --- a/src/main/java/io/gitea/model/Hook.java +++ b/src/main/java/io/gitea/model/Hook.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Identity.java b/src/main/java/io/gitea/model/Identity.java index c01449c..73a9361 100644 --- a/src/main/java/io/gitea/model/Identity.java +++ b/src/main/java/io/gitea/model/Identity.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/InlineResponse200.java b/src/main/java/io/gitea/model/InlineResponse200.java index 933b3b7..d498784 100644 --- a/src/main/java/io/gitea/model/InlineResponse200.java +++ b/src/main/java/io/gitea/model/InlineResponse200.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/InlineResponse2001.java b/src/main/java/io/gitea/model/InlineResponse2001.java index 8ca6924..9650075 100644 --- a/src/main/java/io/gitea/model/InlineResponse2001.java +++ b/src/main/java/io/gitea/model/InlineResponse2001.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/InternalTracker.java b/src/main/java/io/gitea/model/InternalTracker.java index 4ec82f1..c634bd2 100644 --- a/src/main/java/io/gitea/model/InternalTracker.java +++ b/src/main/java/io/gitea/model/InternalTracker.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Issue.java b/src/main/java/io/gitea/model/Issue.java index a49cbb7..e12cf9e 100644 --- a/src/main/java/io/gitea/model/Issue.java +++ b/src/main/java/io/gitea/model/Issue.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/IssueDeadline.java b/src/main/java/io/gitea/model/IssueDeadline.java index 834eb9a..1434049 100644 --- a/src/main/java/io/gitea/model/IssueDeadline.java +++ b/src/main/java/io/gitea/model/IssueDeadline.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/IssueLabelsOption.java b/src/main/java/io/gitea/model/IssueLabelsOption.java index 907bad6..6c2ce2f 100644 --- a/src/main/java/io/gitea/model/IssueLabelsOption.java +++ b/src/main/java/io/gitea/model/IssueLabelsOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/IssueTemplate.java b/src/main/java/io/gitea/model/IssueTemplate.java index 3f164eb..4a96fe9 100644 --- a/src/main/java/io/gitea/model/IssueTemplate.java +++ b/src/main/java/io/gitea/model/IssueTemplate.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -47,6 +47,9 @@ public class IssueTemplate { @SerializedName("name") private String name = null; + @SerializedName("ref") + private String ref = null; + @SerializedName("title") private String title = null; @@ -148,6 +151,24 @@ public class IssueTemplate { this.name = name; } + public IssueTemplate ref(String ref) { + this.ref = ref; + return this; + } + + /** + * Get ref + * @return ref + **/ + @ApiModelProperty(value = "") + public String getRef() { + return ref; + } + + public void setRef(String ref) { + this.ref = ref; + } + public IssueTemplate title(String title) { this.title = title; return this; @@ -181,12 +202,13 @@ public class IssueTemplate { Objects.equals(this.fileName, issueTemplate.fileName) && Objects.equals(this.labels, issueTemplate.labels) && Objects.equals(this.name, issueTemplate.name) && + Objects.equals(this.ref, issueTemplate.ref) && Objects.equals(this.title, issueTemplate.title); } @Override public int hashCode() { - return Objects.hash(about, content, fileName, labels, name, title); + return Objects.hash(about, content, fileName, labels, name, ref, title); } @@ -200,6 +222,7 @@ public class IssueTemplate { sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ref: ").append(toIndentedString(ref)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/io/gitea/model/Label.java b/src/main/java/io/gitea/model/Label.java index 356b21b..8fbd532 100644 --- a/src/main/java/io/gitea/model/Label.java +++ b/src/main/java/io/gitea/model/Label.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/MarkdownOption.java b/src/main/java/io/gitea/model/MarkdownOption.java index d8f57eb..ab7b338 100644 --- a/src/main/java/io/gitea/model/MarkdownOption.java +++ b/src/main/java/io/gitea/model/MarkdownOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/MergePullRequestOption.java b/src/main/java/io/gitea/model/MergePullRequestOption.java index a241d6b..d8630de 100644 --- a/src/main/java/io/gitea/model/MergePullRequestOption.java +++ b/src/main/java/io/gitea/model/MergePullRequestOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -101,6 +101,9 @@ public class MergePullRequestOption { @SerializedName("force_merge") private Boolean forceMerge = null; + @SerializedName("head_commit_id") + private String headCommitId = null; + public MergePullRequestOption _do(DoEnum _do) { this._do = _do; return this; @@ -209,6 +212,24 @@ public class MergePullRequestOption { this.forceMerge = forceMerge; } + public MergePullRequestOption headCommitId(String headCommitId) { + this.headCommitId = headCommitId; + return this; + } + + /** + * Get headCommitId + * @return headCommitId + **/ + @ApiModelProperty(value = "") + public String getHeadCommitId() { + return headCommitId; + } + + public void setHeadCommitId(String headCommitId) { + this.headCommitId = headCommitId; + } + @Override public boolean equals(java.lang.Object o) { @@ -224,12 +245,13 @@ public class MergePullRequestOption { Objects.equals(this.mergeMessageField, mergePullRequestOption.mergeMessageField) && Objects.equals(this.mergeTitleField, mergePullRequestOption.mergeTitleField) && Objects.equals(this.deleteBranchAfterMerge, mergePullRequestOption.deleteBranchAfterMerge) && - Objects.equals(this.forceMerge, mergePullRequestOption.forceMerge); + Objects.equals(this.forceMerge, mergePullRequestOption.forceMerge) && + Objects.equals(this.headCommitId, mergePullRequestOption.headCommitId); } @Override public int hashCode() { - return Objects.hash(_do, mergeCommitID, mergeMessageField, mergeTitleField, deleteBranchAfterMerge, forceMerge); + return Objects.hash(_do, mergeCommitID, mergeMessageField, mergeTitleField, deleteBranchAfterMerge, forceMerge, headCommitId); } @@ -244,6 +266,7 @@ public class MergePullRequestOption { sb.append(" mergeTitleField: ").append(toIndentedString(mergeTitleField)).append("\n"); sb.append(" deleteBranchAfterMerge: ").append(toIndentedString(deleteBranchAfterMerge)).append("\n"); sb.append(" forceMerge: ").append(toIndentedString(forceMerge)).append("\n"); + sb.append(" headCommitId: ").append(toIndentedString(headCommitId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/gitea/model/MigrateRepoForm.java b/src/main/java/io/gitea/model/MigrateRepoForm.java index 391ba6d..3592036 100644 --- a/src/main/java/io/gitea/model/MigrateRepoForm.java +++ b/src/main/java/io/gitea/model/MigrateRepoForm.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/MigrateRepoOptions.java b/src/main/java/io/gitea/model/MigrateRepoOptions.java index 749ab73..7abe9c9 100644 --- a/src/main/java/io/gitea/model/MigrateRepoOptions.java +++ b/src/main/java/io/gitea/model/MigrateRepoOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Milestone.java b/src/main/java/io/gitea/model/Milestone.java index 46800b1..8c2d876 100644 --- a/src/main/java/io/gitea/model/Milestone.java +++ b/src/main/java/io/gitea/model/Milestone.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/NodeInfo.java b/src/main/java/io/gitea/model/NodeInfo.java new file mode 100644 index 0000000..7646e3d --- /dev/null +++ b/src/main/java/io/gitea/model/NodeInfo.java @@ -0,0 +1,246 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.NodeInfoServices; +import io.gitea.model.NodeInfoSoftware; +import io.gitea.model.NodeInfoUsage; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks + */ +@ApiModel(description = "NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks") + +public class NodeInfo { + @SerializedName("metadata") + private Object metadata = null; + + @SerializedName("openRegistrations") + private Boolean openRegistrations = null; + + @SerializedName("protocols") + private List protocols = null; + + @SerializedName("services") + private NodeInfoServices services = null; + + @SerializedName("software") + private NodeInfoSoftware software = null; + + @SerializedName("usage") + private NodeInfoUsage usage = null; + + @SerializedName("version") + private String version = null; + + public NodeInfo metadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @ApiModelProperty(value = "") + public Object getMetadata() { + return metadata; + } + + public void setMetadata(Object metadata) { + this.metadata = metadata; + } + + public NodeInfo openRegistrations(Boolean openRegistrations) { + this.openRegistrations = openRegistrations; + return this; + } + + /** + * Get openRegistrations + * @return openRegistrations + **/ + @ApiModelProperty(value = "") + public Boolean isOpenRegistrations() { + return openRegistrations; + } + + public void setOpenRegistrations(Boolean openRegistrations) { + this.openRegistrations = openRegistrations; + } + + public NodeInfo protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public NodeInfo addProtocolsItem(String protocolsItem) { + if (this.protocols == null) { + this.protocols = new ArrayList(); + } + this.protocols.add(protocolsItem); + return this; + } + + /** + * Get protocols + * @return protocols + **/ + @ApiModelProperty(value = "") + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public NodeInfo services(NodeInfoServices services) { + this.services = services; + return this; + } + + /** + * Get services + * @return services + **/ + @ApiModelProperty(value = "") + public NodeInfoServices getServices() { + return services; + } + + public void setServices(NodeInfoServices services) { + this.services = services; + } + + public NodeInfo software(NodeInfoSoftware software) { + this.software = software; + return this; + } + + /** + * Get software + * @return software + **/ + @ApiModelProperty(value = "") + public NodeInfoSoftware getSoftware() { + return software; + } + + public void setSoftware(NodeInfoSoftware software) { + this.software = software; + } + + public NodeInfo usage(NodeInfoUsage usage) { + this.usage = usage; + return this; + } + + /** + * Get usage + * @return usage + **/ + @ApiModelProperty(value = "") + public NodeInfoUsage getUsage() { + return usage; + } + + public void setUsage(NodeInfoUsage usage) { + this.usage = usage; + } + + public NodeInfo version(String version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + **/ + @ApiModelProperty(value = "") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeInfo nodeInfo = (NodeInfo) o; + return Objects.equals(this.metadata, nodeInfo.metadata) && + Objects.equals(this.openRegistrations, nodeInfo.openRegistrations) && + Objects.equals(this.protocols, nodeInfo.protocols) && + Objects.equals(this.services, nodeInfo.services) && + Objects.equals(this.software, nodeInfo.software) && + Objects.equals(this.usage, nodeInfo.usage) && + Objects.equals(this.version, nodeInfo.version); + } + + @Override + public int hashCode() { + return Objects.hash(metadata, openRegistrations, protocols, services, software, usage, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeInfo {\n"); + + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" openRegistrations: ").append(toIndentedString(openRegistrations)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" services: ").append(toIndentedString(services)).append("\n"); + sb.append(" software: ").append(toIndentedString(software)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/NodeInfoServices.java b/src/main/java/io/gitea/model/NodeInfoServices.java new file mode 100644 index 0000000..5616d96 --- /dev/null +++ b/src/main/java/io/gitea/model/NodeInfoServices.java @@ -0,0 +1,136 @@ +/* + * 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; +import java.util.ArrayList; +import java.util.List; + +/** + * NodeInfoServices contains the third party sites this server can connect to via their application API + */ +@ApiModel(description = "NodeInfoServices contains the third party sites this server can connect to via their application API") + +public class NodeInfoServices { + @SerializedName("inbound") + private List inbound = null; + + @SerializedName("outbound") + private List outbound = null; + + public NodeInfoServices inbound(List inbound) { + this.inbound = inbound; + return this; + } + + public NodeInfoServices addInboundItem(String inboundItem) { + if (this.inbound == null) { + this.inbound = new ArrayList(); + } + this.inbound.add(inboundItem); + return this; + } + + /** + * Get inbound + * @return inbound + **/ + @ApiModelProperty(value = "") + public List getInbound() { + return inbound; + } + + public void setInbound(List inbound) { + this.inbound = inbound; + } + + public NodeInfoServices outbound(List outbound) { + this.outbound = outbound; + return this; + } + + public NodeInfoServices addOutboundItem(String outboundItem) { + if (this.outbound == null) { + this.outbound = new ArrayList(); + } + this.outbound.add(outboundItem); + return this; + } + + /** + * Get outbound + * @return outbound + **/ + @ApiModelProperty(value = "") + public List getOutbound() { + return outbound; + } + + public void setOutbound(List outbound) { + this.outbound = outbound; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeInfoServices nodeInfoServices = (NodeInfoServices) o; + return Objects.equals(this.inbound, nodeInfoServices.inbound) && + Objects.equals(this.outbound, nodeInfoServices.outbound); + } + + @Override + public int hashCode() { + return Objects.hash(inbound, outbound); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeInfoServices {\n"); + + sb.append(" inbound: ").append(toIndentedString(inbound)).append("\n"); + sb.append(" outbound: ").append(toIndentedString(outbound)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/NodeInfoSoftware.java b/src/main/java/io/gitea/model/NodeInfoSoftware.java new file mode 100644 index 0000000..a8e9698 --- /dev/null +++ b/src/main/java/io/gitea/model/NodeInfoSoftware.java @@ -0,0 +1,164 @@ +/* + * 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; + +/** + * NodeInfoSoftware contains Metadata about server software in use + */ +@ApiModel(description = "NodeInfoSoftware contains Metadata about server software in use") + +public class NodeInfoSoftware { + @SerializedName("homepage") + private String homepage = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("repository") + private String repository = null; + + @SerializedName("version") + private String version = null; + + public NodeInfoSoftware homepage(String homepage) { + this.homepage = homepage; + return this; + } + + /** + * Get homepage + * @return homepage + **/ + @ApiModelProperty(value = "") + public String getHomepage() { + return homepage; + } + + public void setHomepage(String homepage) { + this.homepage = homepage; + } + + public NodeInfoSoftware name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public NodeInfoSoftware repository(String repository) { + this.repository = repository; + return this; + } + + /** + * Get repository + * @return repository + **/ + @ApiModelProperty(value = "") + public String getRepository() { + return repository; + } + + public void setRepository(String repository) { + this.repository = repository; + } + + public NodeInfoSoftware version(String version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + **/ + @ApiModelProperty(value = "") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeInfoSoftware nodeInfoSoftware = (NodeInfoSoftware) o; + return Objects.equals(this.homepage, nodeInfoSoftware.homepage) && + Objects.equals(this.name, nodeInfoSoftware.name) && + Objects.equals(this.repository, nodeInfoSoftware.repository) && + Objects.equals(this.version, nodeInfoSoftware.version); + } + + @Override + public int hashCode() { + return Objects.hash(homepage, name, repository, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeInfoSoftware {\n"); + + sb.append(" homepage: ").append(toIndentedString(homepage)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/NodeInfoUsage.java b/src/main/java/io/gitea/model/NodeInfoUsage.java new file mode 100644 index 0000000..e0575b8 --- /dev/null +++ b/src/main/java/io/gitea/model/NodeInfoUsage.java @@ -0,0 +1,142 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.NodeInfoUsageUsers; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * NodeInfoUsage contains usage statistics for this server + */ +@ApiModel(description = "NodeInfoUsage contains usage statistics for this server") + +public class NodeInfoUsage { + @SerializedName("localComments") + private Long localComments = null; + + @SerializedName("localPosts") + private Long localPosts = null; + + @SerializedName("users") + private NodeInfoUsageUsers users = null; + + public NodeInfoUsage localComments(Long localComments) { + this.localComments = localComments; + return this; + } + + /** + * Get localComments + * @return localComments + **/ + @ApiModelProperty(value = "") + public Long getLocalComments() { + return localComments; + } + + public void setLocalComments(Long localComments) { + this.localComments = localComments; + } + + public NodeInfoUsage localPosts(Long localPosts) { + this.localPosts = localPosts; + return this; + } + + /** + * Get localPosts + * @return localPosts + **/ + @ApiModelProperty(value = "") + public Long getLocalPosts() { + return localPosts; + } + + public void setLocalPosts(Long localPosts) { + this.localPosts = localPosts; + } + + public NodeInfoUsage users(NodeInfoUsageUsers users) { + this.users = users; + return this; + } + + /** + * Get users + * @return users + **/ + @ApiModelProperty(value = "") + public NodeInfoUsageUsers getUsers() { + return users; + } + + public void setUsers(NodeInfoUsageUsers users) { + this.users = users; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeInfoUsage nodeInfoUsage = (NodeInfoUsage) o; + return Objects.equals(this.localComments, nodeInfoUsage.localComments) && + Objects.equals(this.localPosts, nodeInfoUsage.localPosts) && + Objects.equals(this.users, nodeInfoUsage.users); + } + + @Override + public int hashCode() { + return Objects.hash(localComments, localPosts, users); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeInfoUsage {\n"); + + sb.append(" localComments: ").append(toIndentedString(localComments)).append("\n"); + sb.append(" localPosts: ").append(toIndentedString(localPosts)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/NodeInfoUsageUsers.java b/src/main/java/io/gitea/model/NodeInfoUsageUsers.java new file mode 100644 index 0000000..10503b7 --- /dev/null +++ b/src/main/java/io/gitea/model/NodeInfoUsageUsers.java @@ -0,0 +1,141 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * NodeInfoUsageUsers contains statistics about the users of this server + */ +@ApiModel(description = "NodeInfoUsageUsers contains statistics about the users of this server") + +public class NodeInfoUsageUsers { + @SerializedName("activeHalfyear") + private Long activeHalfyear = null; + + @SerializedName("activeMonth") + private Long activeMonth = null; + + @SerializedName("total") + private Long total = null; + + public NodeInfoUsageUsers activeHalfyear(Long activeHalfyear) { + this.activeHalfyear = activeHalfyear; + return this; + } + + /** + * Get activeHalfyear + * @return activeHalfyear + **/ + @ApiModelProperty(value = "") + public Long getActiveHalfyear() { + return activeHalfyear; + } + + public void setActiveHalfyear(Long activeHalfyear) { + this.activeHalfyear = activeHalfyear; + } + + public NodeInfoUsageUsers activeMonth(Long activeMonth) { + this.activeMonth = activeMonth; + return this; + } + + /** + * Get activeMonth + * @return activeMonth + **/ + @ApiModelProperty(value = "") + public Long getActiveMonth() { + return activeMonth; + } + + public void setActiveMonth(Long activeMonth) { + this.activeMonth = activeMonth; + } + + public NodeInfoUsageUsers total(Long total) { + this.total = total; + return this; + } + + /** + * Get total + * @return total + **/ + @ApiModelProperty(value = "") + public Long getTotal() { + return total; + } + + public void setTotal(Long total) { + this.total = total; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeInfoUsageUsers nodeInfoUsageUsers = (NodeInfoUsageUsers) o; + return Objects.equals(this.activeHalfyear, nodeInfoUsageUsers.activeHalfyear) && + Objects.equals(this.activeMonth, nodeInfoUsageUsers.activeMonth) && + Objects.equals(this.total, nodeInfoUsageUsers.total); + } + + @Override + public int hashCode() { + return Objects.hash(activeHalfyear, activeMonth, total); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeInfoUsageUsers {\n"); + + sb.append(" activeHalfyear: ").append(toIndentedString(activeHalfyear)).append("\n"); + sb.append(" activeMonth: ").append(toIndentedString(activeMonth)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/Note.java b/src/main/java/io/gitea/model/Note.java index 500e14f..4a27e7e 100644 --- a/src/main/java/io/gitea/model/Note.java +++ b/src/main/java/io/gitea/model/Note.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/NotificationCount.java b/src/main/java/io/gitea/model/NotificationCount.java index db01ed0..efb7e5e 100644 --- a/src/main/java/io/gitea/model/NotificationCount.java +++ b/src/main/java/io/gitea/model/NotificationCount.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/NotificationSubject.java b/src/main/java/io/gitea/model/NotificationSubject.java index d8c4666..56357ac 100644 --- a/src/main/java/io/gitea/model/NotificationSubject.java +++ b/src/main/java/io/gitea/model/NotificationSubject.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -30,6 +30,12 @@ import java.io.IOException; @ApiModel(description = "NotificationSubject contains the notification subject (Issue/Pull/Commit)") public class NotificationSubject { + @SerializedName("html_url") + private String htmlUrl = null; + + @SerializedName("latest_comment_html_url") + private String latestCommentHtmlUrl = null; + @SerializedName("latest_comment_url") private String latestCommentUrl = null; @@ -45,6 +51,42 @@ public class NotificationSubject { @SerializedName("url") private String url = null; + public NotificationSubject htmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + return this; + } + + /** + * Get htmlUrl + * @return htmlUrl + **/ + @ApiModelProperty(value = "") + public String getHtmlUrl() { + return htmlUrl; + } + + public void setHtmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + } + + public NotificationSubject latestCommentHtmlUrl(String latestCommentHtmlUrl) { + this.latestCommentHtmlUrl = latestCommentHtmlUrl; + return this; + } + + /** + * Get latestCommentHtmlUrl + * @return latestCommentHtmlUrl + **/ + @ApiModelProperty(value = "") + public String getLatestCommentHtmlUrl() { + return latestCommentHtmlUrl; + } + + public void setLatestCommentHtmlUrl(String latestCommentHtmlUrl) { + this.latestCommentHtmlUrl = latestCommentHtmlUrl; + } + public NotificationSubject latestCommentUrl(String latestCommentUrl) { this.latestCommentUrl = latestCommentUrl; return this; @@ -145,7 +187,9 @@ public class NotificationSubject { return false; } NotificationSubject notificationSubject = (NotificationSubject) o; - return Objects.equals(this.latestCommentUrl, notificationSubject.latestCommentUrl) && + return Objects.equals(this.htmlUrl, notificationSubject.htmlUrl) && + Objects.equals(this.latestCommentHtmlUrl, notificationSubject.latestCommentHtmlUrl) && + Objects.equals(this.latestCommentUrl, notificationSubject.latestCommentUrl) && Objects.equals(this.state, notificationSubject.state) && Objects.equals(this.title, notificationSubject.title) && Objects.equals(this.type, notificationSubject.type) && @@ -154,7 +198,7 @@ public class NotificationSubject { @Override public int hashCode() { - return Objects.hash(latestCommentUrl, state, title, type, url); + return Objects.hash(htmlUrl, latestCommentHtmlUrl, latestCommentUrl, state, title, type, url); } @@ -163,6 +207,8 @@ public class NotificationSubject { StringBuilder sb = new StringBuilder(); sb.append("class NotificationSubject {\n"); + sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n"); + sb.append(" latestCommentHtmlUrl: ").append(toIndentedString(latestCommentHtmlUrl)).append("\n"); sb.append(" latestCommentUrl: ").append(toIndentedString(latestCommentUrl)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); diff --git a/src/main/java/io/gitea/model/NotificationThread.java b/src/main/java/io/gitea/model/NotificationThread.java index fe012c1..81b4144 100644 --- a/src/main/java/io/gitea/model/NotificationThread.java +++ b/src/main/java/io/gitea/model/NotificationThread.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/OAuth2Application.java b/src/main/java/io/gitea/model/OAuth2Application.java index 4f92f2d..f834226 100644 --- a/src/main/java/io/gitea/model/OAuth2Application.java +++ b/src/main/java/io/gitea/model/OAuth2Application.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Organization.java b/src/main/java/io/gitea/model/Organization.java index 14cf092..4d7c1f2 100644 --- a/src/main/java/io/gitea/model/Organization.java +++ b/src/main/java/io/gitea/model/Organization.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/OrganizationPermissions.java b/src/main/java/io/gitea/model/OrganizationPermissions.java new file mode 100644 index 0000000..a72a1b2 --- /dev/null +++ b/src/main/java/io/gitea/model/OrganizationPermissions.java @@ -0,0 +1,187 @@ +/* + * 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; + +/** + * OrganizationPermissions list different users permissions on an organization + */ +@ApiModel(description = "OrganizationPermissions list different users permissions on an organization") + +public class OrganizationPermissions { + @SerializedName("can_create_repository") + private Boolean canCreateRepository = null; + + @SerializedName("can_read") + private Boolean canRead = null; + + @SerializedName("can_write") + private Boolean canWrite = null; + + @SerializedName("is_admin") + private Boolean isAdmin = null; + + @SerializedName("is_owner") + private Boolean isOwner = null; + + public OrganizationPermissions canCreateRepository(Boolean canCreateRepository) { + this.canCreateRepository = canCreateRepository; + return this; + } + + /** + * Get canCreateRepository + * @return canCreateRepository + **/ + @ApiModelProperty(value = "") + public Boolean isCanCreateRepository() { + return canCreateRepository; + } + + public void setCanCreateRepository(Boolean canCreateRepository) { + this.canCreateRepository = canCreateRepository; + } + + public OrganizationPermissions canRead(Boolean canRead) { + this.canRead = canRead; + return this; + } + + /** + * Get canRead + * @return canRead + **/ + @ApiModelProperty(value = "") + public Boolean isCanRead() { + return canRead; + } + + public void setCanRead(Boolean canRead) { + this.canRead = canRead; + } + + public OrganizationPermissions canWrite(Boolean canWrite) { + this.canWrite = canWrite; + return this; + } + + /** + * Get canWrite + * @return canWrite + **/ + @ApiModelProperty(value = "") + public Boolean isCanWrite() { + return canWrite; + } + + public void setCanWrite(Boolean canWrite) { + this.canWrite = canWrite; + } + + public OrganizationPermissions isAdmin(Boolean isAdmin) { + this.isAdmin = isAdmin; + return this; + } + + /** + * Get isAdmin + * @return isAdmin + **/ + @ApiModelProperty(value = "") + public Boolean isIsAdmin() { + return isAdmin; + } + + public void setIsAdmin(Boolean isAdmin) { + this.isAdmin = isAdmin; + } + + public OrganizationPermissions isOwner(Boolean isOwner) { + this.isOwner = isOwner; + return this; + } + + /** + * Get isOwner + * @return isOwner + **/ + @ApiModelProperty(value = "") + public Boolean isIsOwner() { + return isOwner; + } + + public void setIsOwner(Boolean isOwner) { + this.isOwner = isOwner; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationPermissions organizationPermissions = (OrganizationPermissions) o; + return Objects.equals(this.canCreateRepository, organizationPermissions.canCreateRepository) && + Objects.equals(this.canRead, organizationPermissions.canRead) && + Objects.equals(this.canWrite, organizationPermissions.canWrite) && + Objects.equals(this.isAdmin, organizationPermissions.isAdmin) && + Objects.equals(this.isOwner, organizationPermissions.isOwner); + } + + @Override + public int hashCode() { + return Objects.hash(canCreateRepository, canRead, canWrite, isAdmin, isOwner); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationPermissions {\n"); + + sb.append(" canCreateRepository: ").append(toIndentedString(canCreateRepository)).append("\n"); + sb.append(" canRead: ").append(toIndentedString(canRead)).append("\n"); + sb.append(" canWrite: ").append(toIndentedString(canWrite)).append("\n"); + sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); + sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/PRBranchInfo.java b/src/main/java/io/gitea/model/PRBranchInfo.java index a34930d..d21f151 100644 --- a/src/main/java/io/gitea/model/PRBranchInfo.java +++ b/src/main/java/io/gitea/model/PRBranchInfo.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PayloadCommit.java b/src/main/java/io/gitea/model/PayloadCommit.java index 856b199..c1d10e6 100644 --- a/src/main/java/io/gitea/model/PayloadCommit.java +++ b/src/main/java/io/gitea/model/PayloadCommit.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PayloadCommitVerification.java b/src/main/java/io/gitea/model/PayloadCommitVerification.java index 6989c60..0f5cfa8 100644 --- a/src/main/java/io/gitea/model/PayloadCommitVerification.java +++ b/src/main/java/io/gitea/model/PayloadCommitVerification.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PayloadUser.java b/src/main/java/io/gitea/model/PayloadUser.java index 57d83b8..54a5144 100644 --- a/src/main/java/io/gitea/model/PayloadUser.java +++ b/src/main/java/io/gitea/model/PayloadUser.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Permission.java b/src/main/java/io/gitea/model/Permission.java index 8dc938d..79b5fbd 100644 --- a/src/main/java/io/gitea/model/Permission.java +++ b/src/main/java/io/gitea/model/Permission.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PublicKey.java b/src/main/java/io/gitea/model/PublicKey.java index 007877e..e817745 100644 --- a/src/main/java/io/gitea/model/PublicKey.java +++ b/src/main/java/io/gitea/model/PublicKey.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PullRequest.java b/src/main/java/io/gitea/model/PullRequest.java index 33ecab9..c3467dd 100644 --- a/src/main/java/io/gitea/model/PullRequest.java +++ b/src/main/java/io/gitea/model/PullRequest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PullRequestMeta.java b/src/main/java/io/gitea/model/PullRequestMeta.java index ab477de..71cc82a 100644 --- a/src/main/java/io/gitea/model/PullRequestMeta.java +++ b/src/main/java/io/gitea/model/PullRequestMeta.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PullReview.java b/src/main/java/io/gitea/model/PullReview.java index a812ea7..1f79aa7 100644 --- a/src/main/java/io/gitea/model/PullReview.java +++ b/src/main/java/io/gitea/model/PullReview.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PullReviewComment.java b/src/main/java/io/gitea/model/PullReviewComment.java index 813e630..54b2fd5 100644 --- a/src/main/java/io/gitea/model/PullReviewComment.java +++ b/src/main/java/io/gitea/model/PullReviewComment.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PullReviewRequestOptions.java b/src/main/java/io/gitea/model/PullReviewRequestOptions.java index dd2348b..a258dad 100644 --- a/src/main/java/io/gitea/model/PullReviewRequestOptions.java +++ b/src/main/java/io/gitea/model/PullReviewRequestOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Reaction.java b/src/main/java/io/gitea/model/Reaction.java index f00b6d7..0468d8c 100644 --- a/src/main/java/io/gitea/model/Reaction.java +++ b/src/main/java/io/gitea/model/Reaction.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Reference.java b/src/main/java/io/gitea/model/Reference.java index 4684ce3..629fa07 100644 --- a/src/main/java/io/gitea/model/Reference.java +++ b/src/main/java/io/gitea/model/Reference.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Release.java b/src/main/java/io/gitea/model/Release.java index af1c69d..9ec8b54 100644 --- a/src/main/java/io/gitea/model/Release.java +++ b/src/main/java/io/gitea/model/Release.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/RepoCommit.java b/src/main/java/io/gitea/model/RepoCommit.java index af28054..9c49d69 100644 --- a/src/main/java/io/gitea/model/RepoCommit.java +++ b/src/main/java/io/gitea/model/RepoCommit.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/RepoTopicOptions.java b/src/main/java/io/gitea/model/RepoTopicOptions.java index 6faac58..45afe50 100644 --- a/src/main/java/io/gitea/model/RepoTopicOptions.java +++ b/src/main/java/io/gitea/model/RepoTopicOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/RepoTransfer.java b/src/main/java/io/gitea/model/RepoTransfer.java new file mode 100644 index 0000000..b377b09 --- /dev/null +++ b/src/main/java/io/gitea/model/RepoTransfer.java @@ -0,0 +1,153 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.Team; +import io.gitea.model.User; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * RepoTransfer represents a pending repo transfer + */ +@ApiModel(description = "RepoTransfer represents a pending repo transfer") + +public class RepoTransfer { + @SerializedName("doer") + private User doer = null; + + @SerializedName("recipient") + private User recipient = null; + + @SerializedName("teams") + private List teams = null; + + public RepoTransfer doer(User doer) { + this.doer = doer; + return this; + } + + /** + * Get doer + * @return doer + **/ + @ApiModelProperty(value = "") + public User getDoer() { + return doer; + } + + public void setDoer(User doer) { + this.doer = doer; + } + + public RepoTransfer recipient(User recipient) { + this.recipient = recipient; + return this; + } + + /** + * Get recipient + * @return recipient + **/ + @ApiModelProperty(value = "") + public User getRecipient() { + return recipient; + } + + public void setRecipient(User recipient) { + this.recipient = recipient; + } + + public RepoTransfer teams(List teams) { + this.teams = teams; + return this; + } + + public RepoTransfer addTeamsItem(Team teamsItem) { + if (this.teams == null) { + this.teams = new ArrayList(); + } + this.teams.add(teamsItem); + return this; + } + + /** + * Get teams + * @return teams + **/ + @ApiModelProperty(value = "") + public List getTeams() { + return teams; + } + + public void setTeams(List teams) { + this.teams = teams; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepoTransfer repoTransfer = (RepoTransfer) o; + return Objects.equals(this.doer, repoTransfer.doer) && + Objects.equals(this.recipient, repoTransfer.recipient) && + Objects.equals(this.teams, repoTransfer.teams); + } + + @Override + public int hashCode() { + return Objects.hash(doer, recipient, teams); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RepoTransfer {\n"); + + sb.append(" doer: ").append(toIndentedString(doer)).append("\n"); + sb.append(" recipient: ").append(toIndentedString(recipient)).append("\n"); + sb.append(" teams: ").append(toIndentedString(teams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/Repository.java b/src/main/java/io/gitea/model/Repository.java index e8debc7..10bf77d 100644 --- a/src/main/java/io/gitea/model/Repository.java +++ b/src/main/java/io/gitea/model/Repository.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -24,6 +24,7 @@ import io.gitea.model.ExternalTracker; import io.gitea.model.ExternalWiki; import io.gitea.model.InternalTracker; import io.gitea.model.Permission; +import io.gitea.model.RepoTransfer; import io.gitea.model.Repository; import io.gitea.model.User; import io.swagger.annotations.ApiModel; @@ -121,6 +122,9 @@ public class Repository { @SerializedName("mirror_interval") private String mirrorInterval = null; + @SerializedName("mirror_updated") + private OffsetDateTime mirrorUpdated = null; + @SerializedName("name") private String name = null; @@ -148,6 +152,9 @@ public class Repository { @SerializedName("release_counter") private Long releaseCounter = null; + @SerializedName("repo_transfer") + private RepoTransfer repoTransfer = null; + @SerializedName("size") private Long size = null; @@ -673,6 +680,24 @@ public class Repository { this.mirrorInterval = mirrorInterval; } + public Repository mirrorUpdated(OffsetDateTime mirrorUpdated) { + this.mirrorUpdated = mirrorUpdated; + return this; + } + + /** + * Get mirrorUpdated + * @return mirrorUpdated + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getMirrorUpdated() { + return mirrorUpdated; + } + + public void setMirrorUpdated(OffsetDateTime mirrorUpdated) { + this.mirrorUpdated = mirrorUpdated; + } + public Repository name(String name) { this.name = name; return this; @@ -835,6 +860,24 @@ public class Repository { this.releaseCounter = releaseCounter; } + public Repository repoTransfer(RepoTransfer repoTransfer) { + this.repoTransfer = repoTransfer; + return this; + } + + /** + * Get repoTransfer + * @return repoTransfer + **/ + @ApiModelProperty(value = "") + public RepoTransfer getRepoTransfer() { + return repoTransfer; + } + + public void setRepoTransfer(RepoTransfer repoTransfer) { + this.repoTransfer = repoTransfer; + } + public Repository size(Long size) { this.size = size; return this; @@ -999,6 +1042,7 @@ public class Repository { Objects.equals(this.internalTracker, repository.internalTracker) && Objects.equals(this.mirror, repository.mirror) && Objects.equals(this.mirrorInterval, repository.mirrorInterval) && + Objects.equals(this.mirrorUpdated, repository.mirrorUpdated) && Objects.equals(this.name, repository.name) && Objects.equals(this.openIssuesCount, repository.openIssuesCount) && Objects.equals(this.openPrCounter, repository.openPrCounter) && @@ -1008,6 +1052,7 @@ public class Repository { Objects.equals(this.permissions, repository.permissions) && Objects.equals(this._private, repository._private) && Objects.equals(this.releaseCounter, repository.releaseCounter) && + Objects.equals(this.repoTransfer, repository.repoTransfer) && Objects.equals(this.size, repository.size) && Objects.equals(this.sshUrl, repository.sshUrl) && Objects.equals(this.starsCount, repository.starsCount) && @@ -1019,7 +1064,7 @@ public class Repository { @Override public int hashCode() { - return Objects.hash(allowMergeCommits, allowRebase, allowRebaseExplicit, allowSquashMerge, archived, avatarUrl, cloneUrl, createdAt, defaultBranch, defaultMergeStyle, description, empty, externalTracker, externalWiki, fork, forksCount, fullName, hasIssues, hasProjects, hasPullRequests, hasWiki, htmlUrl, id, ignoreWhitespaceConflicts, internal, internalTracker, mirror, mirrorInterval, name, openIssuesCount, openPrCounter, originalUrl, owner, parent, permissions, _private, releaseCounter, size, sshUrl, starsCount, template, updatedAt, watchersCount, website); + return Objects.hash(allowMergeCommits, allowRebase, allowRebaseExplicit, allowSquashMerge, archived, avatarUrl, cloneUrl, createdAt, defaultBranch, defaultMergeStyle, description, empty, externalTracker, externalWiki, fork, forksCount, fullName, hasIssues, hasProjects, hasPullRequests, hasWiki, htmlUrl, id, ignoreWhitespaceConflicts, internal, internalTracker, mirror, mirrorInterval, mirrorUpdated, name, openIssuesCount, openPrCounter, originalUrl, owner, parent, permissions, _private, releaseCounter, repoTransfer, size, sshUrl, starsCount, template, updatedAt, watchersCount, website); } @@ -1056,6 +1101,7 @@ public class Repository { sb.append(" internalTracker: ").append(toIndentedString(internalTracker)).append("\n"); sb.append(" mirror: ").append(toIndentedString(mirror)).append("\n"); sb.append(" mirrorInterval: ").append(toIndentedString(mirrorInterval)).append("\n"); + sb.append(" mirrorUpdated: ").append(toIndentedString(mirrorUpdated)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" openIssuesCount: ").append(toIndentedString(openIssuesCount)).append("\n"); sb.append(" openPrCounter: ").append(toIndentedString(openPrCounter)).append("\n"); @@ -1065,6 +1111,7 @@ public class Repository { sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); sb.append(" _private: ").append(toIndentedString(_private)).append("\n"); sb.append(" releaseCounter: ").append(toIndentedString(releaseCounter)).append("\n"); + sb.append(" repoTransfer: ").append(toIndentedString(repoTransfer)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" sshUrl: ").append(toIndentedString(sshUrl)).append("\n"); sb.append(" starsCount: ").append(toIndentedString(starsCount)).append("\n"); diff --git a/src/main/java/io/gitea/model/RepositoryMeta.java b/src/main/java/io/gitea/model/RepositoryMeta.java index 7b2814c..01903a6 100644 --- a/src/main/java/io/gitea/model/RepositoryMeta.java +++ b/src/main/java/io/gitea/model/RepositoryMeta.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/SearchResults.java b/src/main/java/io/gitea/model/SearchResults.java index bfbaeee..ff51501 100644 --- a/src/main/java/io/gitea/model/SearchResults.java +++ b/src/main/java/io/gitea/model/SearchResults.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/ServerVersion.java b/src/main/java/io/gitea/model/ServerVersion.java index 32581ac..66be4fb 100644 --- a/src/main/java/io/gitea/model/ServerVersion.java +++ b/src/main/java/io/gitea/model/ServerVersion.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/StopWatch.java b/src/main/java/io/gitea/model/StopWatch.java index f1ee848..6b3de0b 100644 --- a/src/main/java/io/gitea/model/StopWatch.java +++ b/src/main/java/io/gitea/model/StopWatch.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/SubmitPullReviewOptions.java b/src/main/java/io/gitea/model/SubmitPullReviewOptions.java index af2ba83..882596d 100644 --- a/src/main/java/io/gitea/model/SubmitPullReviewOptions.java +++ b/src/main/java/io/gitea/model/SubmitPullReviewOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Tag.java b/src/main/java/io/gitea/model/Tag.java index 4d4ab17..a9fc604 100644 --- a/src/main/java/io/gitea/model/Tag.java +++ b/src/main/java/io/gitea/model/Tag.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Team.java b/src/main/java/io/gitea/model/Team.java index b3c2034..2a4c8e1 100644 --- a/src/main/java/io/gitea/model/Team.java +++ b/src/main/java/io/gitea/model/Team.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,7 +25,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; /** * Team represents a team in an organization @@ -110,6 +112,9 @@ public class Team { @SerializedName("units") private List units = null; + @SerializedName("units_map") + private Map unitsMap = null; + public Team canCreateOrgRepo(Boolean canCreateOrgRepo) { this.canCreateOrgRepo = canCreateOrgRepo; return this; @@ -262,6 +267,32 @@ public class Team { this.units = units; } + public Team unitsMap(Map unitsMap) { + this.unitsMap = unitsMap; + return this; + } + + public Team putUnitsMapItem(String key, String unitsMapItem) { + if (this.unitsMap == null) { + this.unitsMap = new HashMap(); + } + this.unitsMap.put(key, unitsMapItem); + return this; + } + + /** + * Get unitsMap + * @return unitsMap + **/ + @ApiModelProperty(example = "\"{\\\"repo.code\\\":\\\"read\\\",\\\"repo.issues\\\":\\\"write\\\",\\\"repo.ext_issues\\\":\\\"none\\\",\\\"repo.wiki\\\":\\\"admin\\\",\\\"repo.pulls\\\":\\\"owner\\\",\\\"repo.releases\\\":\\\"none\\\",\\\"repo.projects\\\":\\\"none\\\",\\\"repo.ext_wiki\\\":\\\"none\\\"]\"", value = "") + public Map getUnitsMap() { + return unitsMap; + } + + public void setUnitsMap(Map unitsMap) { + this.unitsMap = unitsMap; + } + @Override public boolean equals(java.lang.Object o) { @@ -279,12 +310,13 @@ public class Team { Objects.equals(this.name, team.name) && Objects.equals(this.organization, team.organization) && Objects.equals(this.permission, team.permission) && - Objects.equals(this.units, team.units); + Objects.equals(this.units, team.units) && + Objects.equals(this.unitsMap, team.unitsMap); } @Override public int hashCode() { - return Objects.hash(canCreateOrgRepo, description, id, includesAllRepositories, name, organization, permission, units); + return Objects.hash(canCreateOrgRepo, description, id, includesAllRepositories, name, organization, permission, units, unitsMap); } @@ -301,6 +333,7 @@ public class Team { sb.append(" organization: ").append(toIndentedString(organization)).append("\n"); sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" unitsMap: ").append(toIndentedString(unitsMap)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/gitea/model/TimelineComment.java b/src/main/java/io/gitea/model/TimelineComment.java new file mode 100644 index 0000000..b9d7325 --- /dev/null +++ b/src/main/java/io/gitea/model/TimelineComment.java @@ -0,0 +1,747 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.Comment; +import io.gitea.model.Issue; +import io.gitea.model.Label; +import io.gitea.model.Milestone; +import io.gitea.model.Team; +import io.gitea.model.TrackedTime; +import io.gitea.model.User; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * TimelineComment represents a timeline comment (comment of any type) on a commit or issue + */ +@ApiModel(description = "TimelineComment represents a timeline comment (comment of any type) on a commit or issue") + +public class TimelineComment { + @SerializedName("assignee") + private User assignee = null; + + @SerializedName("assignee_team") + private Team assigneeTeam = null; + + @SerializedName("body") + private String body = null; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + @SerializedName("dependent_issue") + private Issue dependentIssue = null; + + @SerializedName("html_url") + private String htmlUrl = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("issue_url") + private String issueUrl = null; + + @SerializedName("label") + private Label label = null; + + @SerializedName("milestone") + private Milestone milestone = null; + + @SerializedName("new_ref") + private String newRef = null; + + @SerializedName("new_title") + private String newTitle = null; + + @SerializedName("old_milestone") + private Milestone oldMilestone = null; + + @SerializedName("old_project_id") + private Long oldProjectId = null; + + @SerializedName("old_ref") + private String oldRef = null; + + @SerializedName("old_title") + private String oldTitle = null; + + @SerializedName("project_id") + private Long projectId = null; + + @SerializedName("pull_request_url") + private String pullRequestUrl = null; + + @SerializedName("ref_action") + private String refAction = null; + + @SerializedName("ref_comment") + private Comment refComment = null; + + @SerializedName("ref_commit_sha") + private String refCommitSha = null; + + @SerializedName("ref_issue") + private Issue refIssue = null; + + @SerializedName("removed_assignee") + private Boolean removedAssignee = null; + + @SerializedName("resolve_doer") + private User resolveDoer = null; + + @SerializedName("review_id") + private Long reviewId = null; + + @SerializedName("tracked_time") + private TrackedTime trackedTime = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("updated_at") + private OffsetDateTime updatedAt = null; + + @SerializedName("user") + private User user = null; + + public TimelineComment assignee(User assignee) { + this.assignee = assignee; + return this; + } + + /** + * Get assignee + * @return assignee + **/ + @ApiModelProperty(value = "") + public User getAssignee() { + return assignee; + } + + public void setAssignee(User assignee) { + this.assignee = assignee; + } + + public TimelineComment assigneeTeam(Team assigneeTeam) { + this.assigneeTeam = assigneeTeam; + return this; + } + + /** + * Get assigneeTeam + * @return assigneeTeam + **/ + @ApiModelProperty(value = "") + public Team getAssigneeTeam() { + return assigneeTeam; + } + + public void setAssigneeTeam(Team assigneeTeam) { + this.assigneeTeam = assigneeTeam; + } + + public TimelineComment body(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + **/ + @ApiModelProperty(value = "") + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + public TimelineComment createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + public TimelineComment dependentIssue(Issue dependentIssue) { + this.dependentIssue = dependentIssue; + return this; + } + + /** + * Get dependentIssue + * @return dependentIssue + **/ + @ApiModelProperty(value = "") + public Issue getDependentIssue() { + return dependentIssue; + } + + public void setDependentIssue(Issue dependentIssue) { + this.dependentIssue = dependentIssue; + } + + public TimelineComment htmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + return this; + } + + /** + * Get htmlUrl + * @return htmlUrl + **/ + @ApiModelProperty(value = "") + public String getHtmlUrl() { + return htmlUrl; + } + + public void setHtmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + } + + public TimelineComment id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public TimelineComment issueUrl(String issueUrl) { + this.issueUrl = issueUrl; + return this; + } + + /** + * Get issueUrl + * @return issueUrl + **/ + @ApiModelProperty(value = "") + public String getIssueUrl() { + return issueUrl; + } + + public void setIssueUrl(String issueUrl) { + this.issueUrl = issueUrl; + } + + public TimelineComment label(Label label) { + this.label = label; + return this; + } + + /** + * Get label + * @return label + **/ + @ApiModelProperty(value = "") + public Label getLabel() { + return label; + } + + public void setLabel(Label label) { + this.label = label; + } + + public TimelineComment milestone(Milestone milestone) { + this.milestone = milestone; + return this; + } + + /** + * Get milestone + * @return milestone + **/ + @ApiModelProperty(value = "") + public Milestone getMilestone() { + return milestone; + } + + public void setMilestone(Milestone milestone) { + this.milestone = milestone; + } + + public TimelineComment newRef(String newRef) { + this.newRef = newRef; + return this; + } + + /** + * Get newRef + * @return newRef + **/ + @ApiModelProperty(value = "") + public String getNewRef() { + return newRef; + } + + public void setNewRef(String newRef) { + this.newRef = newRef; + } + + public TimelineComment newTitle(String newTitle) { + this.newTitle = newTitle; + return this; + } + + /** + * Get newTitle + * @return newTitle + **/ + @ApiModelProperty(value = "") + public String getNewTitle() { + return newTitle; + } + + public void setNewTitle(String newTitle) { + this.newTitle = newTitle; + } + + public TimelineComment oldMilestone(Milestone oldMilestone) { + this.oldMilestone = oldMilestone; + return this; + } + + /** + * Get oldMilestone + * @return oldMilestone + **/ + @ApiModelProperty(value = "") + public Milestone getOldMilestone() { + return oldMilestone; + } + + public void setOldMilestone(Milestone oldMilestone) { + this.oldMilestone = oldMilestone; + } + + public TimelineComment oldProjectId(Long oldProjectId) { + this.oldProjectId = oldProjectId; + return this; + } + + /** + * Get oldProjectId + * @return oldProjectId + **/ + @ApiModelProperty(value = "") + public Long getOldProjectId() { + return oldProjectId; + } + + public void setOldProjectId(Long oldProjectId) { + this.oldProjectId = oldProjectId; + } + + public TimelineComment oldRef(String oldRef) { + this.oldRef = oldRef; + return this; + } + + /** + * Get oldRef + * @return oldRef + **/ + @ApiModelProperty(value = "") + public String getOldRef() { + return oldRef; + } + + public void setOldRef(String oldRef) { + this.oldRef = oldRef; + } + + public TimelineComment oldTitle(String oldTitle) { + this.oldTitle = oldTitle; + return this; + } + + /** + * Get oldTitle + * @return oldTitle + **/ + @ApiModelProperty(value = "") + public String getOldTitle() { + return oldTitle; + } + + public void setOldTitle(String oldTitle) { + this.oldTitle = oldTitle; + } + + public TimelineComment projectId(Long projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + **/ + @ApiModelProperty(value = "") + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public TimelineComment pullRequestUrl(String pullRequestUrl) { + this.pullRequestUrl = pullRequestUrl; + return this; + } + + /** + * Get pullRequestUrl + * @return pullRequestUrl + **/ + @ApiModelProperty(value = "") + public String getPullRequestUrl() { + return pullRequestUrl; + } + + public void setPullRequestUrl(String pullRequestUrl) { + this.pullRequestUrl = pullRequestUrl; + } + + public TimelineComment refAction(String refAction) { + this.refAction = refAction; + return this; + } + + /** + * Get refAction + * @return refAction + **/ + @ApiModelProperty(value = "") + public String getRefAction() { + return refAction; + } + + public void setRefAction(String refAction) { + this.refAction = refAction; + } + + public TimelineComment refComment(Comment refComment) { + this.refComment = refComment; + return this; + } + + /** + * Get refComment + * @return refComment + **/ + @ApiModelProperty(value = "") + public Comment getRefComment() { + return refComment; + } + + public void setRefComment(Comment refComment) { + this.refComment = refComment; + } + + public TimelineComment refCommitSha(String refCommitSha) { + this.refCommitSha = refCommitSha; + return this; + } + + /** + * commit SHA where issue/PR was referenced + * @return refCommitSha + **/ + @ApiModelProperty(value = "commit SHA where issue/PR was referenced") + public String getRefCommitSha() { + return refCommitSha; + } + + public void setRefCommitSha(String refCommitSha) { + this.refCommitSha = refCommitSha; + } + + public TimelineComment refIssue(Issue refIssue) { + this.refIssue = refIssue; + return this; + } + + /** + * Get refIssue + * @return refIssue + **/ + @ApiModelProperty(value = "") + public Issue getRefIssue() { + return refIssue; + } + + public void setRefIssue(Issue refIssue) { + this.refIssue = refIssue; + } + + public TimelineComment removedAssignee(Boolean removedAssignee) { + this.removedAssignee = removedAssignee; + return this; + } + + /** + * whether the assignees were removed or added + * @return removedAssignee + **/ + @ApiModelProperty(value = "whether the assignees were removed or added") + public Boolean isRemovedAssignee() { + return removedAssignee; + } + + public void setRemovedAssignee(Boolean removedAssignee) { + this.removedAssignee = removedAssignee; + } + + public TimelineComment resolveDoer(User resolveDoer) { + this.resolveDoer = resolveDoer; + return this; + } + + /** + * Get resolveDoer + * @return resolveDoer + **/ + @ApiModelProperty(value = "") + public User getResolveDoer() { + return resolveDoer; + } + + public void setResolveDoer(User resolveDoer) { + this.resolveDoer = resolveDoer; + } + + public TimelineComment reviewId(Long reviewId) { + this.reviewId = reviewId; + return this; + } + + /** + * Get reviewId + * @return reviewId + **/ + @ApiModelProperty(value = "") + public Long getReviewId() { + return reviewId; + } + + public void setReviewId(Long reviewId) { + this.reviewId = reviewId; + } + + public TimelineComment trackedTime(TrackedTime trackedTime) { + this.trackedTime = trackedTime; + return this; + } + + /** + * Get trackedTime + * @return trackedTime + **/ + @ApiModelProperty(value = "") + public TrackedTime getTrackedTime() { + return trackedTime; + } + + public void setTrackedTime(TrackedTime trackedTime) { + this.trackedTime = trackedTime; + } + + public TimelineComment type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public TimelineComment updatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + public TimelineComment user(User user) { + this.user = user; + return this; + } + + /** + * Get user + * @return user + **/ + @ApiModelProperty(value = "") + public User getUser() { + return user; + } + + public void setUser(User user) { + this.user = user; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TimelineComment timelineComment = (TimelineComment) o; + return Objects.equals(this.assignee, timelineComment.assignee) && + Objects.equals(this.assigneeTeam, timelineComment.assigneeTeam) && + Objects.equals(this.body, timelineComment.body) && + Objects.equals(this.createdAt, timelineComment.createdAt) && + Objects.equals(this.dependentIssue, timelineComment.dependentIssue) && + Objects.equals(this.htmlUrl, timelineComment.htmlUrl) && + Objects.equals(this.id, timelineComment.id) && + Objects.equals(this.issueUrl, timelineComment.issueUrl) && + Objects.equals(this.label, timelineComment.label) && + Objects.equals(this.milestone, timelineComment.milestone) && + Objects.equals(this.newRef, timelineComment.newRef) && + Objects.equals(this.newTitle, timelineComment.newTitle) && + Objects.equals(this.oldMilestone, timelineComment.oldMilestone) && + Objects.equals(this.oldProjectId, timelineComment.oldProjectId) && + Objects.equals(this.oldRef, timelineComment.oldRef) && + Objects.equals(this.oldTitle, timelineComment.oldTitle) && + Objects.equals(this.projectId, timelineComment.projectId) && + Objects.equals(this.pullRequestUrl, timelineComment.pullRequestUrl) && + Objects.equals(this.refAction, timelineComment.refAction) && + Objects.equals(this.refComment, timelineComment.refComment) && + Objects.equals(this.refCommitSha, timelineComment.refCommitSha) && + Objects.equals(this.refIssue, timelineComment.refIssue) && + Objects.equals(this.removedAssignee, timelineComment.removedAssignee) && + Objects.equals(this.resolveDoer, timelineComment.resolveDoer) && + Objects.equals(this.reviewId, timelineComment.reviewId) && + Objects.equals(this.trackedTime, timelineComment.trackedTime) && + Objects.equals(this.type, timelineComment.type) && + Objects.equals(this.updatedAt, timelineComment.updatedAt) && + Objects.equals(this.user, timelineComment.user); + } + + @Override + public int hashCode() { + return Objects.hash(assignee, assigneeTeam, body, createdAt, dependentIssue, htmlUrl, id, issueUrl, label, milestone, newRef, newTitle, oldMilestone, oldProjectId, oldRef, oldTitle, projectId, pullRequestUrl, refAction, refComment, refCommitSha, refIssue, removedAssignee, resolveDoer, reviewId, trackedTime, type, updatedAt, user); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TimelineComment {\n"); + + sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n"); + sb.append(" assigneeTeam: ").append(toIndentedString(assigneeTeam)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" dependentIssue: ").append(toIndentedString(dependentIssue)).append("\n"); + sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" issueUrl: ").append(toIndentedString(issueUrl)).append("\n"); + sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" milestone: ").append(toIndentedString(milestone)).append("\n"); + sb.append(" newRef: ").append(toIndentedString(newRef)).append("\n"); + sb.append(" newTitle: ").append(toIndentedString(newTitle)).append("\n"); + sb.append(" oldMilestone: ").append(toIndentedString(oldMilestone)).append("\n"); + sb.append(" oldProjectId: ").append(toIndentedString(oldProjectId)).append("\n"); + sb.append(" oldRef: ").append(toIndentedString(oldRef)).append("\n"); + sb.append(" oldTitle: ").append(toIndentedString(oldTitle)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" pullRequestUrl: ").append(toIndentedString(pullRequestUrl)).append("\n"); + sb.append(" refAction: ").append(toIndentedString(refAction)).append("\n"); + sb.append(" refComment: ").append(toIndentedString(refComment)).append("\n"); + sb.append(" refCommitSha: ").append(toIndentedString(refCommitSha)).append("\n"); + sb.append(" refIssue: ").append(toIndentedString(refIssue)).append("\n"); + sb.append(" removedAssignee: ").append(toIndentedString(removedAssignee)).append("\n"); + sb.append(" resolveDoer: ").append(toIndentedString(resolveDoer)).append("\n"); + sb.append(" reviewId: ").append(toIndentedString(reviewId)).append("\n"); + sb.append(" trackedTime: ").append(toIndentedString(trackedTime)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/TopicName.java b/src/main/java/io/gitea/model/TopicName.java index 6f53dc3..77a7353 100644 --- a/src/main/java/io/gitea/model/TopicName.java +++ b/src/main/java/io/gitea/model/TopicName.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/TopicResponse.java b/src/main/java/io/gitea/model/TopicResponse.java index 7d5a047..1cf6857 100644 --- a/src/main/java/io/gitea/model/TopicResponse.java +++ b/src/main/java/io/gitea/model/TopicResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/TrackedTime.java b/src/main/java/io/gitea/model/TrackedTime.java index 6911a50..1e67af9 100644 --- a/src/main/java/io/gitea/model/TrackedTime.java +++ b/src/main/java/io/gitea/model/TrackedTime.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/TransferRepoOption.java b/src/main/java/io/gitea/model/TransferRepoOption.java index cba45f7..1dec873 100644 --- a/src/main/java/io/gitea/model/TransferRepoOption.java +++ b/src/main/java/io/gitea/model/TransferRepoOption.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/UpdateFileOptions.java b/src/main/java/io/gitea/model/UpdateFileOptions.java index de1395e..88eca67 100644 --- a/src/main/java/io/gitea/model/UpdateFileOptions.java +++ b/src/main/java/io/gitea/model/UpdateFileOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/User.java b/src/main/java/io/gitea/model/User.java index 1eb0df6..c4679d6 100644 --- a/src/main/java/io/gitea/model/User.java +++ b/src/main/java/io/gitea/model/User.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/UserHeatmapData.java b/src/main/java/io/gitea/model/UserHeatmapData.java index a037256..1c90c0f 100644 --- a/src/main/java/io/gitea/model/UserHeatmapData.java +++ b/src/main/java/io/gitea/model/UserHeatmapData.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/UserSettings.java b/src/main/java/io/gitea/model/UserSettings.java index 6a13942..d54352b 100644 --- a/src/main/java/io/gitea/model/UserSettings.java +++ b/src/main/java/io/gitea/model/UserSettings.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/UserSettingsOptions.java b/src/main/java/io/gitea/model/UserSettingsOptions.java index caf339b..6463fb0 100644 --- a/src/main/java/io/gitea/model/UserSettingsOptions.java +++ b/src/main/java/io/gitea/model/UserSettingsOptions.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/WatchInfo.java b/src/main/java/io/gitea/model/WatchInfo.java index d7547d6..ce86988 100644 --- a/src/main/java/io/gitea/model/WatchInfo.java +++ b/src/main/java/io/gitea/model/WatchInfo.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/WikiCommit.java b/src/main/java/io/gitea/model/WikiCommit.java new file mode 100644 index 0000000..a5931f5 --- /dev/null +++ b/src/main/java/io/gitea/model/WikiCommit.java @@ -0,0 +1,165 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.CommitUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WikiCommit page commit/revision + */ +@ApiModel(description = "WikiCommit page commit/revision") + +public class WikiCommit { + @SerializedName("author") + private CommitUser author = null; + + @SerializedName("commiter") + private CommitUser commiter = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("sha") + private String sha = null; + + public WikiCommit author(CommitUser author) { + this.author = author; + return this; + } + + /** + * Get author + * @return author + **/ + @ApiModelProperty(value = "") + public CommitUser getAuthor() { + return author; + } + + public void setAuthor(CommitUser author) { + this.author = author; + } + + public WikiCommit commiter(CommitUser commiter) { + this.commiter = commiter; + return this; + } + + /** + * Get commiter + * @return commiter + **/ + @ApiModelProperty(value = "") + public CommitUser getCommiter() { + return commiter; + } + + public void setCommiter(CommitUser commiter) { + this.commiter = commiter; + } + + public WikiCommit message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public WikiCommit sha(String sha) { + this.sha = sha; + return this; + } + + /** + * Get sha + * @return sha + **/ + @ApiModelProperty(value = "") + public String getSha() { + return sha; + } + + public void setSha(String sha) { + this.sha = sha; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WikiCommit wikiCommit = (WikiCommit) o; + return Objects.equals(this.author, wikiCommit.author) && + Objects.equals(this.commiter, wikiCommit.commiter) && + Objects.equals(this.message, wikiCommit.message) && + Objects.equals(this.sha, wikiCommit.sha); + } + + @Override + public int hashCode() { + return Objects.hash(author, commiter, message, sha); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WikiCommit {\n"); + + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" commiter: ").append(toIndentedString(commiter)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" sha: ").append(toIndentedString(sha)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/WikiCommitList.java b/src/main/java/io/gitea/model/WikiCommitList.java new file mode 100644 index 0000000..4fe524f --- /dev/null +++ b/src/main/java/io/gitea/model/WikiCommitList.java @@ -0,0 +1,129 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.WikiCommit; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * WikiCommitList commit/revision list + */ +@ApiModel(description = "WikiCommitList commit/revision list") + +public class WikiCommitList { + @SerializedName("commits") + private List commits = null; + + @SerializedName("count") + private Long count = null; + + public WikiCommitList commits(List commits) { + this.commits = commits; + return this; + } + + public WikiCommitList addCommitsItem(WikiCommit commitsItem) { + if (this.commits == null) { + this.commits = new ArrayList(); + } + this.commits.add(commitsItem); + return this; + } + + /** + * Get commits + * @return commits + **/ + @ApiModelProperty(value = "") + public List getCommits() { + return commits; + } + + public void setCommits(List commits) { + this.commits = commits; + } + + public WikiCommitList count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WikiCommitList wikiCommitList = (WikiCommitList) o; + return Objects.equals(this.commits, wikiCommitList.commits) && + Objects.equals(this.count, wikiCommitList.count); + } + + @Override + public int hashCode() { + return Objects.hash(commits, count); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WikiCommitList {\n"); + + sb.append(" commits: ").append(toIndentedString(commits)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/WikiPage.java b/src/main/java/io/gitea/model/WikiPage.java new file mode 100644 index 0000000..c34c70a --- /dev/null +++ b/src/main/java/io/gitea/model/WikiPage.java @@ -0,0 +1,257 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.WikiCommit; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WikiPage a wiki page + */ +@ApiModel(description = "WikiPage a wiki page") + +public class WikiPage { + @SerializedName("commit_count") + private Long commitCount = null; + + @SerializedName("content_base64") + private String contentBase64 = null; + + @SerializedName("footer") + private String footer = null; + + @SerializedName("html_url") + private String htmlUrl = null; + + @SerializedName("last_commit") + private WikiCommit lastCommit = null; + + @SerializedName("sidebar") + private String sidebar = null; + + @SerializedName("sub_url") + private String subUrl = null; + + @SerializedName("title") + private String title = null; + + public WikiPage commitCount(Long commitCount) { + this.commitCount = commitCount; + return this; + } + + /** + * Get commitCount + * @return commitCount + **/ + @ApiModelProperty(value = "") + public Long getCommitCount() { + return commitCount; + } + + public void setCommitCount(Long commitCount) { + this.commitCount = commitCount; + } + + public WikiPage contentBase64(String contentBase64) { + this.contentBase64 = contentBase64; + return this; + } + + /** + * Page content, base64 encoded + * @return contentBase64 + **/ + @ApiModelProperty(value = "Page content, base64 encoded") + public String getContentBase64() { + return contentBase64; + } + + public void setContentBase64(String contentBase64) { + this.contentBase64 = contentBase64; + } + + public WikiPage footer(String footer) { + this.footer = footer; + return this; + } + + /** + * Get footer + * @return footer + **/ + @ApiModelProperty(value = "") + public String getFooter() { + return footer; + } + + public void setFooter(String footer) { + this.footer = footer; + } + + public WikiPage htmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + return this; + } + + /** + * Get htmlUrl + * @return htmlUrl + **/ + @ApiModelProperty(value = "") + public String getHtmlUrl() { + return htmlUrl; + } + + public void setHtmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + } + + public WikiPage lastCommit(WikiCommit lastCommit) { + this.lastCommit = lastCommit; + return this; + } + + /** + * Get lastCommit + * @return lastCommit + **/ + @ApiModelProperty(value = "") + public WikiCommit getLastCommit() { + return lastCommit; + } + + public void setLastCommit(WikiCommit lastCommit) { + this.lastCommit = lastCommit; + } + + public WikiPage sidebar(String sidebar) { + this.sidebar = sidebar; + return this; + } + + /** + * Get sidebar + * @return sidebar + **/ + @ApiModelProperty(value = "") + public String getSidebar() { + return sidebar; + } + + public void setSidebar(String sidebar) { + this.sidebar = sidebar; + } + + public WikiPage subUrl(String subUrl) { + this.subUrl = subUrl; + return this; + } + + /** + * Get subUrl + * @return subUrl + **/ + @ApiModelProperty(value = "") + public String getSubUrl() { + return subUrl; + } + + public void setSubUrl(String subUrl) { + this.subUrl = subUrl; + } + + public WikiPage title(String title) { + this.title = title; + return this; + } + + /** + * Get title + * @return title + **/ + @ApiModelProperty(value = "") + 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; + } + WikiPage wikiPage = (WikiPage) o; + return Objects.equals(this.commitCount, wikiPage.commitCount) && + Objects.equals(this.contentBase64, wikiPage.contentBase64) && + Objects.equals(this.footer, wikiPage.footer) && + Objects.equals(this.htmlUrl, wikiPage.htmlUrl) && + Objects.equals(this.lastCommit, wikiPage.lastCommit) && + Objects.equals(this.sidebar, wikiPage.sidebar) && + Objects.equals(this.subUrl, wikiPage.subUrl) && + Objects.equals(this.title, wikiPage.title); + } + + @Override + public int hashCode() { + return Objects.hash(commitCount, contentBase64, footer, htmlUrl, lastCommit, sidebar, subUrl, title); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WikiPage {\n"); + + sb.append(" commitCount: ").append(toIndentedString(commitCount)).append("\n"); + sb.append(" contentBase64: ").append(toIndentedString(contentBase64)).append("\n"); + sb.append(" footer: ").append(toIndentedString(footer)).append("\n"); + sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n"); + sb.append(" lastCommit: ").append(toIndentedString(lastCommit)).append("\n"); + sb.append(" sidebar: ").append(toIndentedString(sidebar)).append("\n"); + sb.append(" subUrl: ").append(toIndentedString(subUrl)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/gitea/model/WikiPageMetaData.java b/src/main/java/io/gitea/model/WikiPageMetaData.java new file mode 100644 index 0000000..c95f512 --- /dev/null +++ b/src/main/java/io/gitea/model/WikiPageMetaData.java @@ -0,0 +1,165 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.8 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.gitea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gitea.model.WikiCommit; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WikiPageMetaData wiki page meta information + */ +@ApiModel(description = "WikiPageMetaData wiki page meta information") + +public class WikiPageMetaData { + @SerializedName("html_url") + private String htmlUrl = null; + + @SerializedName("last_commit") + private WikiCommit lastCommit = null; + + @SerializedName("sub_url") + private String subUrl = null; + + @SerializedName("title") + private String title = null; + + public WikiPageMetaData htmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + return this; + } + + /** + * Get htmlUrl + * @return htmlUrl + **/ + @ApiModelProperty(value = "") + public String getHtmlUrl() { + return htmlUrl; + } + + public void setHtmlUrl(String htmlUrl) { + this.htmlUrl = htmlUrl; + } + + public WikiPageMetaData lastCommit(WikiCommit lastCommit) { + this.lastCommit = lastCommit; + return this; + } + + /** + * Get lastCommit + * @return lastCommit + **/ + @ApiModelProperty(value = "") + public WikiCommit getLastCommit() { + return lastCommit; + } + + public void setLastCommit(WikiCommit lastCommit) { + this.lastCommit = lastCommit; + } + + public WikiPageMetaData subUrl(String subUrl) { + this.subUrl = subUrl; + return this; + } + + /** + * Get subUrl + * @return subUrl + **/ + @ApiModelProperty(value = "") + public String getSubUrl() { + return subUrl; + } + + public void setSubUrl(String subUrl) { + this.subUrl = subUrl; + } + + public WikiPageMetaData title(String title) { + this.title = title; + return this; + } + + /** + * Get title + * @return title + **/ + @ApiModelProperty(value = "") + 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; + } + WikiPageMetaData wikiPageMetaData = (WikiPageMetaData) o; + return Objects.equals(this.htmlUrl, wikiPageMetaData.htmlUrl) && + Objects.equals(this.lastCommit, wikiPageMetaData.lastCommit) && + Objects.equals(this.subUrl, wikiPageMetaData.subUrl) && + Objects.equals(this.title, wikiPageMetaData.title); + } + + @Override + public int hashCode() { + return Objects.hash(htmlUrl, lastCommit, subUrl, title); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WikiPageMetaData {\n"); + + sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n"); + sb.append(" lastCommit: ").append(toIndentedString(lastCommit)).append("\n"); + sb.append(" subUrl: ").append(toIndentedString(subUrl)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/test/java/io/gitea/api/RepositoryApiTest.java b/src/test/java/io/gitea/api/RepositoryApiTest.java index fdec06e..1177ac2 100644 --- a/src/test/java/io/gitea/api/RepositoryApiTest.java +++ b/src/test/java/io/gitea/api/RepositoryApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.16.0-SNAPSHOT + * OpenAPI spec version: 1.16.8 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -36,6 +36,7 @@ import io.gitea.model.CreateReleaseOption; import io.gitea.model.CreateRepoOption; import io.gitea.model.CreateStatusOption; import io.gitea.model.CreateTagOption; +import io.gitea.model.CreateWikiPageOptions; import io.gitea.model.DeleteFileOptions; import io.gitea.model.DeployKey; import io.gitea.model.DismissPullReviewOptions; @@ -78,6 +79,9 @@ import io.gitea.model.TransferRepoOption; import io.gitea.model.UpdateFileOptions; import io.gitea.model.User; import io.gitea.model.WatchInfo; +import io.gitea.model.WikiCommitList; +import io.gitea.model.WikiPage; +import io.gitea.model.WikiPageMetaData; import org.junit.Test; import org.junit.Ignore; @@ -95,6 +99,23 @@ public class RepositoryApiTest { private final RepositoryApi api = new RepositoryApi(); + /** + * Accept a repo transfer + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void acceptRepoTransferTest() throws ApiException { + String owner = null; + String repo = null; + Repository response = api.acceptRepoTransfer(owner, repo); + + // TODO: test validations + } + /** * Create a repository * @@ -223,6 +244,23 @@ public class RepositoryApiTest { // TODO: test validations } + /** + * Reject a repo transfer + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void rejectRepoTransferTest() throws ApiException { + String owner = null; + String repo = null; + Repository response = api.rejectRepoTransfer(owner, repo); + + // TODO: test validations + } + /** * Add a collaborator to a repository * @@ -536,6 +574,24 @@ public class RepositoryApiTest { // TODO: test validations } + /** + * Create a wiki page + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoCreateWikiPageTest() throws ApiException { + String owner = null; + String repo = null; + CreateWikiPageOptions body = null; + WikiPage response = api.repoCreateWikiPage(owner, repo, body); + + // TODO: test validations + } + /** * Delete a repository * @@ -827,6 +883,24 @@ public class RepositoryApiTest { // TODO: test validations } + /** + * Delete a wiki page + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoDeleteWikiPageTest() throws ApiException { + String owner = null; + String repo = null; + String pageName = null; + api.repoDeleteWikiPage(owner, repo, pageName); + + // TODO: test validations + } + /** * Dismiss a review for a pull request * @@ -848,7 +922,7 @@ public class RepositoryApiTest { } /** - * Get a pull request diff + * Get a commit's diff or patch * * * @@ -856,17 +930,18 @@ public class RepositoryApiTest { * if the Api call fails */ @Test - public void repoDownloadPullDiffTest() throws ApiException { + public void repoDownloadCommitDiffOrPatchTest() throws ApiException { String owner = null; String repo = null; - Long index = null; - String response = api.repoDownloadPullDiff(owner, repo, index); + String sha = null; + String diffType = null; + String response = api.repoDownloadCommitDiffOrPatch(owner, repo, sha, diffType); // TODO: test validations } /** - * Get a pull request patch file + * Get a pull request diff or patch * * * @@ -874,11 +949,13 @@ public class RepositoryApiTest { * if the Api call fails */ @Test - public void repoDownloadPullPatchTest() throws ApiException { + public void repoDownloadPullDiffOrPatchTest() throws ApiException { String owner = null; String repo = null; Long index = null; - String response = api.repoDownloadPullPatch(owner, repo, index); + String diffType = null; + Boolean binary = null; + String response = api.repoDownloadPullDiffOrPatch(owner, repo, index, diffType, binary); // TODO: test validations } @@ -1016,6 +1093,25 @@ public class RepositoryApiTest { // TODO: test validations } + /** + * Edit a wiki page + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoEditWikiPageTest() throws ApiException { + String owner = null; + String repo = null; + String pageName = null; + CreateWikiPageOptions body = null; + WikiPage response = api.repoEditWikiPage(owner, repo, pageName, body); + + // TODO: test validations + } + /** * Get a repository * @@ -1046,9 +1142,10 @@ public class RepositoryApiTest { String owner = null; String repo = null; String sha = null; + String path = null; Integer page = null; Integer limit = null; - List response = api.repoGetAllCommits(owner, repo, sha, page, limit); + List response = api.repoGetAllCommits(owner, repo, sha, path, page, limit); // TODO: test validations } @@ -1524,6 +1621,62 @@ public class RepositoryApiTest { // TODO: test validations } + /** + * Get a wiki page + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoGetWikiPageTest() throws ApiException { + String owner = null; + String repo = null; + String pageName = null; + WikiPage response = api.repoGetWikiPage(owner, repo, pageName); + + // TODO: test validations + } + + /** + * Get revisions of a wiki page + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoGetWikiPageRevisionsTest() throws ApiException { + String owner = null; + String repo = null; + String pageName = null; + Integer page = null; + WikiCommitList response = api.repoGetWikiPageRevisions(owner, repo, pageName, page); + + // TODO: test validations + } + + /** + * Get all wiki pages + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoGetWikiPagesTest() throws ApiException { + String owner = null; + String repo = null; + Integer page = null; + Integer limit = null; + List response = api.repoGetWikiPages(owner, repo, page, limit); + + // TODO: test validations + } + /** * Get specified ref or filtered repository's refs * @@ -2139,7 +2292,8 @@ public class RepositoryApiTest { String owner = null; String repo = null; Long index = null; - api.repoUpdatePullRequest(owner, repo, index); + String style = null; + api.repoUpdatePullRequest(owner, repo, index, style); // TODO: test validations } diff --git a/swagger.v1.json b/swagger.v1.json index e6e9c06..6a4a11d 100644 --- a/swagger.v1.json +++ b/swagger.v1.json @@ -19,7 +19,7 @@ "name": "MIT", "url": "http://opensource.org/licenses/MIT" }, - "version": "1.16.0-SNAPSHOT" + "version": "1.16.8" }, "basePath": "/api/v1", "paths": { @@ -615,6 +615,23 @@ } } }, + "/nodeinfo": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "miscellaneous" + ], + "summary": "Returns the nodeinfo of the Gitea application", + "operationId": "getNodeInfo", + "responses": { + "200": { + "$ref": "#/responses/NodeInfo" + } + } + } + }, "/notifications": { "get": { "consumes": [ @@ -739,7 +756,7 @@ ], "responses": { "205": { - "$ref": "#/responses/empty" + "$ref": "#/responses/NotificationThreadList" } } } @@ -822,7 +839,7 @@ ], "responses": { "205": { - "$ref": "#/responses/empty" + "$ref": "#/responses/NotificationThread" }, "403": { "$ref": "#/responses/forbidden" @@ -2933,6 +2950,12 @@ "name": "sha", "in": "query" }, + { + "type": "string", + "description": "filepath of a file/dir", + "name": "path", + "in": "query" + }, { "type": "integer", "description": "page number of results to return (1-based)", @@ -2941,7 +2964,7 @@ }, { "type": "integer", - "description": "page size of results", + "description": "page size of results (ignored if used with 'path')", "name": "limit", "in": "query" } @@ -3486,6 +3509,9 @@ "403": { "$ref": "#/responses/forbidden" }, + "409": { + "description": "The repository with the same name already exists." + }, "422": { "$ref": "#/responses/validationError" } @@ -3581,6 +3607,60 @@ } } }, + "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}": { + "get": { + "produces": [ + "text/plain" + ], + "tags": [ + "repository" + ], + "summary": "Get a commit's diff or patch", + "operationId": "repoDownloadCommitDiffOrPatch", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "SHA of the commit to get", + "name": "sha", + "in": "path", + "required": true + }, + { + "enum": [ + "diff", + "patch" + ], + "type": "string", + "description": "whether the output is diff or patch", + "name": "diffType", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/string" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, "/repos/{owner}/{repo}/git/notes/{sha}": { "get": { "produces": [ @@ -4334,32 +4414,32 @@ { "type": "string", "format": "date-time", - "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format", + "description": "Only show items updated after the given time. This is a timestamp in RFC 3339 format", "name": "since", "in": "query" }, { "type": "string", "format": "date-time", - "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format", + "description": "Only show items updated before the given time. This is a timestamp in RFC 3339 format", "name": "before", "in": "query" }, { "type": "string", - "description": "filter (issues / pulls) created to", + "description": "Only show items which were created by the the given user", "name": "created_by", "in": "query" }, { "type": "string", - "description": "filter (issues / pulls) assigned to", + "description": "Only show items for which the given user is assigned", "name": "assigned_by", "in": "query" }, { "type": "string", - "description": "filter (issues / pulls) mentioning to", + "description": "Only show items in which the given user was mentioned", "name": "mentioned_by", "in": "query" }, @@ -5977,6 +6057,73 @@ } } }, + "/repos/{owner}/{repo}/issues/{index}/timeline": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "issue" + ], + "summary": "List all comments and events on an issue", + "operationId": "issueGetCommentsAndTimeline", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "integer", + "format": "int64", + "description": "index of the issue", + "name": "index", + "in": "path", + "required": true + }, + { + "type": "string", + "format": "date-time", + "description": "if provided, only comments updated since the specified time are returned.", + "name": "since", + "in": "query" + }, + { + "type": "integer", + "description": "page number of results to return (1-based)", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "page size of results", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "format": "date-time", + "description": "if provided, only comments updated before the provided time are returned.", + "name": "before", + "in": "query" + } + ], + "responses": { + "200": { + "$ref": "#/responses/TimelineList" + } + } + } + }, "/repos/{owner}/{repo}/issues/{index}/times": { "get": { "produces": [ @@ -7058,7 +7205,7 @@ ], "responses": { "205": { - "$ref": "#/responses/empty" + "$ref": "#/responses/NotificationThreadList" } } } @@ -7303,7 +7450,7 @@ } } }, - "/repos/{owner}/{repo}/pulls/{index}.diff": { + "/repos/{owner}/{repo}/pulls/{index}.{diffType}": { "get": { "produces": [ "text/plain" @@ -7311,8 +7458,8 @@ "tags": [ "repository" ], - "summary": "Get a pull request diff", - "operationId": "repoDownloadPullDiff", + "summary": "Get a pull request diff or patch", + "operationId": "repoDownloadPullDiffOrPatch", "parameters": [ { "type": "string", @@ -7335,50 +7482,23 @@ "name": "index", "in": "path", "required": true - } - ], - "responses": { - "200": { - "$ref": "#/responses/string" }, - "404": { - "$ref": "#/responses/notFound" - } - } - } - }, - "/repos/{owner}/{repo}/pulls/{index}.patch": { - "get": { - "produces": [ - "text/plain" - ], - "tags": [ - "repository" - ], - "summary": "Get a pull request patch file", - "operationId": "repoDownloadPullPatch", - "parameters": [ { + "enum": [ + "diff", + "patch" + ], "type": "string", - "description": "owner of the repo", - "name": "owner", + "description": "whether the output is diff or patch", + "name": "diffType", "in": "path", "required": true }, { - "type": "string", - "description": "name of the repo", - "name": "repo", - "in": "path", - "required": true - }, - { - "type": "integer", - "format": "int64", - "description": "index of the pull request to get", - "name": "index", - "in": "path", - "required": true + "type": "boolean", + "description": "whether to include binary file changes. if true, the diff is applicable with `git apply`", + "name": "binary", + "in": "query" } ], "responses": { @@ -8128,6 +8248,16 @@ "name": "index", "in": "path", "required": true + }, + { + "enum": [ + "merge", + "rebase" + ], + "type": "string", + "description": "how to update pull request", + "name": "style", + "in": "query" } ], "responses": { @@ -9835,6 +9965,362 @@ } } }, + "/repos/{owner}/{repo}/transfer/accept": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Accept a repo transfer", + "operationId": "acceptRepoTransfer", + "parameters": [ + { + "type": "string", + "description": "owner of the repo to transfer", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo to transfer", + "name": "repo", + "in": "path", + "required": true + } + ], + "responses": { + "202": { + "$ref": "#/responses/Repository" + }, + "403": { + "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, + "/repos/{owner}/{repo}/transfer/reject": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Reject a repo transfer", + "operationId": "rejectRepoTransfer", + "parameters": [ + { + "type": "string", + "description": "owner of the repo to transfer", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo to transfer", + "name": "repo", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/Repository" + }, + "403": { + "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, + "/repos/{owner}/{repo}/wiki/new": { + "post": { + "consumes": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Create a wiki page", + "operationId": "repoCreateWikiPage", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/CreateWikiPageOptions" + } + } + ], + "responses": { + "201": { + "$ref": "#/responses/WikiPage" + }, + "400": { + "$ref": "#/responses/error" + }, + "403": { + "$ref": "#/responses/forbidden" + } + } + } + }, + "/repos/{owner}/{repo}/wiki/page/{pageName}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Get a wiki page", + "operationId": "repoGetWikiPage", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the page", + "name": "pageName", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/WikiPage" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + }, + "delete": { + "tags": [ + "repository" + ], + "summary": "Delete a wiki page", + "operationId": "repoDeleteWikiPage", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the page", + "name": "pageName", + "in": "path", + "required": true + } + ], + "responses": { + "204": { + "$ref": "#/responses/empty" + }, + "403": { + "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + }, + "patch": { + "consumes": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Edit a wiki page", + "operationId": "repoEditWikiPage", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the page", + "name": "pageName", + "in": "path", + "required": true + }, + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/CreateWikiPageOptions" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/WikiPage" + }, + "400": { + "$ref": "#/responses/error" + }, + "403": { + "$ref": "#/responses/forbidden" + } + } + } + }, + "/repos/{owner}/{repo}/wiki/pages": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Get all wiki pages", + "operationId": "repoGetWikiPages", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "page number of results to return (1-based)", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "page size of results", + "name": "limit", + "in": "query" + } + ], + "responses": { + "200": { + "$ref": "#/responses/WikiPageList" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, + "/repos/{owner}/{repo}/wiki/revisions/{pageName}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Get revisions of a wiki page", + "operationId": "repoGetWikiPageRevisions", + "parameters": [ + { + "type": "string", + "description": "owner of the repo", + "name": "owner", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repo", + "name": "repo", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the page", + "name": "pageName", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "page number of results to return (1-based)", + "name": "page", + "in": "query" + } + ], + "responses": { + "200": { + "$ref": "#/responses/WikiCommitList" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, "/repos/{template_owner}/{template_repo}/generate": { "post": { "consumes": [ @@ -11802,6 +12288,45 @@ } } }, + "/users/{username}/orgs/{org}/permissions": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "organization" + ], + "summary": "Get user permissions in organization", + "operationId": "orgGetUserPermissions", + "parameters": [ + { + "type": "string", + "description": "username of user", + "name": "username", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the organization", + "name": "org", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/OrganizationPermissions" + }, + "403": { + "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, "/users/{username}/repos": { "get": { "produces": [ @@ -12377,6 +12902,10 @@ }, "x-go-name": "StatusCheckContexts" }, + "unprotected_file_patterns": { + "type": "string", + "x-go-name": "UnprotectedFilePatterns" + }, "updated_at": { "type": "string", "format": "date-time", @@ -12824,6 +13353,10 @@ "type": "string" }, "x-go-name": "StatusCheckContexts" + }, + "unprotected_file_patterns": { + "type": "string", + "x-go-name": "UnprotectedFilePatterns" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" @@ -12913,6 +13446,11 @@ "description": "CreateForkOption options for creating a fork", "type": "object", "properties": { + "name": { + "description": "name of the forked repository", + "type": "string", + "x-go-name": "Name" + }, "organization": { "description": "organization name, if forking into an organization", "type": "string", @@ -13355,7 +13893,7 @@ ], "properties": { "auto_init": { - "description": "Whether the repository should be auto-intialized?", + "description": "Whether the repository should be auto-initialized?", "type": "boolean", "x-go-name": "AutoInit" }, @@ -13511,6 +14049,14 @@ "repo.projects", "repo.ext_wiki" ] + }, + "units_map": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-go-name": "UnitsMap", + "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\"]" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" @@ -13545,6 +14091,10 @@ "type": "string", "x-go-name": "Password" }, + "restricted": { + "type": "boolean", + "x-go-name": "Restricted" + }, "send_notify": { "type": "boolean", "x-go-name": "SendNotify" @@ -13565,6 +14115,28 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "CreateWikiPageOptions": { + "description": "CreateWikiPageOptions form for creating wiki", + "type": "object", + "properties": { + "content_base64": { + "description": "content must be base64 encoded", + "type": "string", + "x-go-name": "ContentBase64" + }, + "message": { + "description": "optional commit message summarizing the change", + "type": "string", + "x-go-name": "Message" + }, + "title": { + "description": "page title. leave empty to keep unchanged", + "type": "string", + "x-go-name": "Title" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "Cron": { "description": "Cron represents a Cron task", "type": "object", @@ -13826,6 +14398,10 @@ "type": "string" }, "x-go-name": "StatusCheckContexts" + }, + "unprotected_file_patterns": { + "type": "string", + "x-go-name": "UnprotectedFilePatterns" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" @@ -14185,6 +14761,11 @@ "type": "string", "x-go-name": "Description" }, + "enable_prune": { + "description": "enable prune - remove obsolete remote-tracking references", + "type": "boolean", + "x-go-name": "EnablePrune" + }, "external_tracker": { "$ref": "#/definitions/ExternalTracker" }, @@ -14296,6 +14877,14 @@ "repo.projects", "repo.ext_wiki" ] + }, + "units_map": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-go-name": "UnitsMap", + "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\"]" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" @@ -15173,6 +15762,10 @@ "type": "string", "x-go-name": "Name" }, + "ref": { + "type": "string", + "x-go-name": "Ref" + }, "title": { "type": "string", "x-go-name": "Title" @@ -15265,6 +15858,10 @@ "force_merge": { "type": "boolean", "x-go-name": "ForceMerge" + }, + "head_commit_id": { + "type": "string", + "x-go-name": "HeadCommitID" } }, "x-go-name": "MergePullRequestForm", @@ -15511,6 +16108,127 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "NodeInfo": { + "description": "NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks", + "type": "object", + "properties": { + "metadata": { + "type": "object", + "x-go-name": "Metadata" + }, + "openRegistrations": { + "type": "boolean", + "x-go-name": "OpenRegistrations" + }, + "protocols": { + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "Protocols" + }, + "services": { + "$ref": "#/definitions/NodeInfoServices" + }, + "software": { + "$ref": "#/definitions/NodeInfoSoftware" + }, + "usage": { + "$ref": "#/definitions/NodeInfoUsage" + }, + "version": { + "type": "string", + "x-go-name": "Version" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "NodeInfoServices": { + "description": "NodeInfoServices contains the third party sites this server can connect to via their application API", + "type": "object", + "properties": { + "inbound": { + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "Inbound" + }, + "outbound": { + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "Outbound" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "NodeInfoSoftware": { + "description": "NodeInfoSoftware contains Metadata about server software in use", + "type": "object", + "properties": { + "homepage": { + "type": "string", + "x-go-name": "Homepage" + }, + "name": { + "type": "string", + "x-go-name": "Name" + }, + "repository": { + "type": "string", + "x-go-name": "Repository" + }, + "version": { + "type": "string", + "x-go-name": "Version" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "NodeInfoUsage": { + "description": "NodeInfoUsage contains usage statistics for this server", + "type": "object", + "properties": { + "localComments": { + "type": "integer", + "format": "int64", + "x-go-name": "LocalComments" + }, + "localPosts": { + "type": "integer", + "format": "int64", + "x-go-name": "LocalPosts" + }, + "users": { + "$ref": "#/definitions/NodeInfoUsageUsers" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "NodeInfoUsageUsers": { + "description": "NodeInfoUsageUsers contains statistics about the users of this server", + "type": "object", + "properties": { + "activeHalfyear": { + "type": "integer", + "format": "int64", + "x-go-name": "ActiveHalfyear" + }, + "activeMonth": { + "type": "integer", + "format": "int64", + "x-go-name": "ActiveMonth" + }, + "total": { + "type": "integer", + "format": "int64", + "x-go-name": "Total" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "Note": { "description": "Note contains information related to a git note", "type": "object", @@ -15541,6 +16259,14 @@ "description": "NotificationSubject contains the notification subject (Issue/Pull/Commit)", "type": "object", "properties": { + "html_url": { + "type": "string", + "x-go-name": "HTMLURL" + }, + "latest_comment_html_url": { + "type": "string", + "x-go-name": "LatestCommentHTMLURL" + }, "latest_comment_url": { "type": "string", "x-go-name": "LatestCommentURL" @@ -15682,6 +16408,33 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "OrganizationPermissions": { + "description": "OrganizationPermissions list different users permissions on an organization", + "type": "object", + "properties": { + "can_create_repository": { + "type": "boolean", + "x-go-name": "CanCreateRepository" + }, + "can_read": { + "type": "boolean", + "x-go-name": "CanRead" + }, + "can_write": { + "type": "boolean", + "x-go-name": "CanWrite" + }, + "is_admin": { + "type": "boolean", + "x-go-name": "IsAdmin" + }, + "is_owner": { + "type": "boolean", + "x-go-name": "IsOwner" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "PRBranchInfo": { "description": "PRBranchInfo information about a branch", "type": "object", @@ -16315,6 +17068,26 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "RepoTransfer": { + "description": "RepoTransfer represents a pending repo transfer", + "type": "object", + "properties": { + "doer": { + "$ref": "#/definitions/User" + }, + "recipient": { + "$ref": "#/definitions/User" + }, + "teams": { + "type": "array", + "items": { + "$ref": "#/definitions/Team" + }, + "x-go-name": "Teams" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "Repository": { "description": "Repository represents a repository", "type": "object", @@ -16431,6 +17204,11 @@ "type": "string", "x-go-name": "MirrorInterval" }, + "mirror_updated": { + "type": "string", + "format": "date-time", + "x-go-name": "MirrorUpdated" + }, "name": { "type": "string", "x-go-name": "Name" @@ -16467,6 +17245,9 @@ "format": "int64", "x-go-name": "Releases" }, + "repo_transfer": { + "$ref": "#/definitions/RepoTransfer" + }, "size": { "type": "integer", "format": "int64", @@ -16702,6 +17483,14 @@ "repo.projects", "repo.ext_wiki" ] + }, + "units_map": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-go-name": "UnitsMap", + "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\"]" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" @@ -16712,6 +17501,126 @@ "format": "int64", "x-go-package": "code.gitea.io/gitea/modules/timeutil" }, + "TimelineComment": { + "description": "TimelineComment represents a timeline comment (comment of any type) on a commit or issue", + "type": "object", + "properties": { + "assignee": { + "$ref": "#/definitions/User" + }, + "assignee_team": { + "$ref": "#/definitions/Team" + }, + "body": { + "type": "string", + "x-go-name": "Body" + }, + "created_at": { + "type": "string", + "format": "date-time", + "x-go-name": "Created" + }, + "dependent_issue": { + "$ref": "#/definitions/Issue" + }, + "html_url": { + "type": "string", + "x-go-name": "HTMLURL" + }, + "id": { + "type": "integer", + "format": "int64", + "x-go-name": "ID" + }, + "issue_url": { + "type": "string", + "x-go-name": "IssueURL" + }, + "label": { + "$ref": "#/definitions/Label" + }, + "milestone": { + "$ref": "#/definitions/Milestone" + }, + "new_ref": { + "type": "string", + "x-go-name": "NewRef" + }, + "new_title": { + "type": "string", + "x-go-name": "NewTitle" + }, + "old_milestone": { + "$ref": "#/definitions/Milestone" + }, + "old_project_id": { + "type": "integer", + "format": "int64", + "x-go-name": "OldProjectID" + }, + "old_ref": { + "type": "string", + "x-go-name": "OldRef" + }, + "old_title": { + "type": "string", + "x-go-name": "OldTitle" + }, + "project_id": { + "type": "integer", + "format": "int64", + "x-go-name": "ProjectID" + }, + "pull_request_url": { + "type": "string", + "x-go-name": "PRURL" + }, + "ref_action": { + "type": "string", + "x-go-name": "RefAction" + }, + "ref_comment": { + "$ref": "#/definitions/Comment" + }, + "ref_commit_sha": { + "description": "commit SHA where issue/PR was referenced", + "type": "string", + "x-go-name": "RefCommitSHA" + }, + "ref_issue": { + "$ref": "#/definitions/Issue" + }, + "removed_assignee": { + "description": "whether the assignees were removed or added", + "type": "boolean", + "x-go-name": "RemovedAssignee" + }, + "resolve_doer": { + "$ref": "#/definitions/User" + }, + "review_id": { + "type": "integer", + "format": "int64", + "x-go-name": "ReviewID" + }, + "tracked_time": { + "$ref": "#/definitions/TrackedTime" + }, + "type": { + "type": "string", + "x-go-name": "Type" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "x-go-name": "Updated" + }, + "user": { + "$ref": "#/definitions/User" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "TopicName": { "description": "TopicName a list of repo topic names", "type": "object", @@ -17115,6 +18024,108 @@ } }, "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "WikiCommit": { + "description": "WikiCommit page commit/revision", + "type": "object", + "properties": { + "author": { + "$ref": "#/definitions/CommitUser" + }, + "commiter": { + "$ref": "#/definitions/CommitUser" + }, + "message": { + "type": "string", + "x-go-name": "Message" + }, + "sha": { + "type": "string", + "x-go-name": "ID" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "WikiCommitList": { + "description": "WikiCommitList commit/revision list", + "type": "object", + "properties": { + "commits": { + "type": "array", + "items": { + "$ref": "#/definitions/WikiCommit" + }, + "x-go-name": "WikiCommits" + }, + "count": { + "type": "integer", + "format": "int64", + "x-go-name": "Count" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "WikiPage": { + "description": "WikiPage a wiki page", + "type": "object", + "properties": { + "commit_count": { + "type": "integer", + "format": "int64", + "x-go-name": "CommitCount" + }, + "content_base64": { + "description": "Page content, base64 encoded", + "type": "string", + "x-go-name": "ContentBase64" + }, + "footer": { + "type": "string", + "x-go-name": "Footer" + }, + "html_url": { + "type": "string", + "x-go-name": "HTMLURL" + }, + "last_commit": { + "$ref": "#/definitions/WikiCommit" + }, + "sidebar": { + "type": "string", + "x-go-name": "Sidebar" + }, + "sub_url": { + "type": "string", + "x-go-name": "SubURL" + }, + "title": { + "type": "string", + "x-go-name": "Title" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, + "WikiPageMetaData": { + "description": "WikiPageMetaData wiki page meta information", + "type": "object", + "properties": { + "html_url": { + "type": "string", + "x-go-name": "HTMLURL" + }, + "last_commit": { + "$ref": "#/definitions/WikiCommit" + }, + "sub_url": { + "type": "string", + "x-go-name": "SubURL" + }, + "title": { + "type": "string", + "x-go-name": "Title" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" } }, "responses": { @@ -17484,6 +18495,12 @@ } } }, + "NodeInfo": { + "description": "NodeInfo", + "schema": { + "$ref": "#/definitions/NodeInfo" + } + }, "Note": { "description": "Note", "schema": { @@ -17541,6 +18558,12 @@ } } }, + "OrganizationPermissions": { + "description": "OrganizationPermissions", + "schema": { + "$ref": "#/definitions/OrganizationPermissions" + } + }, "PublicKey": { "description": "PublicKey", "schema": { @@ -17727,6 +18750,15 @@ } } }, + "TimelineList": { + "description": "TimelineList", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TimelineComment" + } + } + }, "TopicListResponse": { "description": "TopicListResponse", "schema": { @@ -17796,6 +18828,27 @@ "$ref": "#/definitions/WatchInfo" } }, + "WikiCommitList": { + "description": "WikiCommitList", + "schema": { + "$ref": "#/definitions/WikiCommitList" + } + }, + "WikiPage": { + "description": "WikiPage", + "schema": { + "$ref": "#/definitions/WikiPage" + } + }, + "WikiPageList": { + "description": "WikiPageList", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/WikiPageMetaData" + } + } + }, "conflict": { "description": "APIConflict is a conflict empty response" }, @@ -17844,7 +18897,7 @@ "parameterBodies": { "description": "parameterBodies", "schema": { - "$ref": "#/definitions/UserSettingsOptions" + "$ref": "#/definitions/CreateWikiPageOptions" } }, "redirect": {