diff --git a/.project b/.project index 2a18d71..d8be907 100644 --- a/.project +++ b/.project @@ -2,21 +2,33 @@ java-gitea-api - + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + org.eclipse.jdt.core.javanature org.eclipse.buildship.core.gradleprojectnature - - - org.eclipse.jdt.core.javabuilder - - - - org.eclipse.buildship.core.gradleprojectbuilder - - - - - + + + 1629303551481 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs index e889521..e479558 100644 --- a/.settings/org.eclipse.buildship.core.prefs +++ b/.settings/org.eclipse.buildship.core.prefs @@ -1,2 +1,13 @@ +arguments= +auto.sync=false +build.scans.enabled=false +connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) connection.project.dir= eclipse.preferences.version=1 +gradle.user.home= +java.home= +jvm.arguments= +offline.mode=false +override.workspace.settings=false +show.console.view=false +show.executions.view=false diff --git a/README.md b/README.md index ba34f99..b8d6435 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # java-gitea-api Gitea API. -- API version: 1.14.0&#43;dev-803-gf1da46622 +- API version: 1.16.0-SNAPSHOT This documentation describes the Gitea API. @@ -37,9 +37,9 @@ Add this dependency to your project's POM: ```xml - io.gitea + com.github.zeripath java-gitea-api - 1.14.0-SNAPSHOT + 1.16.0-SNAPSHOT compile ``` @@ -49,7 +49,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.swagger:swagger-java-client:1.0.0" +compile "com.github.zeripath:java-gitea-api:1.16.0-SNAPSHOT" ``` ### Others @@ -62,7 +62,7 @@ mvn clean package Then manually install the following JARs: -* `target/swagger-java-client-1.0.0.jar` +* `target/java-gitea-api-1.16.0-SNAPSHOT.jar` * `target/lib/*.jar` ## Getting Started @@ -83,7 +83,8 @@ public class AdminApiExample { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - + defaultClient.setBasePath("https://your-gitea-url/"); + // Configure API key authorization: AccessToken ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); AccessToken.setApiKey("YOUR API KEY"); @@ -258,13 +259,14 @@ Class | Method | HTTP request | Description *OrganizationApi* | [**teamSearch**](docs/OrganizationApi.md#teamSearch) | **GET** /orgs/{org}/teams/search | Search for teams within an organization *RepositoryApi* | [**createCurrentUserRepo**](docs/RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository *RepositoryApi* | [**createFork**](docs/RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository +*RepositoryApi* | [**generateRepo**](docs/RepositoryApi.md#generateRepo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template +*RepositoryApi* | [**getAnnotatedTag**](docs/RepositoryApi.md#getAnnotatedTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags) *RepositoryApi* | [**getBlob**](docs/RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository. -*RepositoryApi* | [**getTag**](docs/RepositoryApi.md#getTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags) *RepositoryApi* | [**getTree**](docs/RepositoryApi.md#getTree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository. *RepositoryApi* | [**listForks**](docs/RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository's forks *RepositoryApi* | [**repoAddCollaborator**](docs/RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository *RepositoryApi* | [**repoAddTeam**](docs/RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository -*RepositoryApi* | [**repoAddTopc**](docs/RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository +*RepositoryApi* | [**repoAddTopic**](docs/RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository *RepositoryApi* | [**repoCheckCollaborator**](docs/RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository *RepositoryApi* | [**repoCheckTeam**](docs/RepositoryApi.md#repoCheckTeam) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository *RepositoryApi* | [**repoCreateBranch**](docs/RepositoryApi.md#repoCreateBranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch @@ -278,6 +280,7 @@ Class | Method | HTTP request | Description *RepositoryApi* | [**repoCreateRelease**](docs/RepositoryApi.md#repoCreateRelease) | **POST** /repos/{owner}/{repo}/releases | Create a release *RepositoryApi* | [**repoCreateReleaseAttachment**](docs/RepositoryApi.md#repoCreateReleaseAttachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment *RepositoryApi* | [**repoCreateStatus**](docs/RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status +*RepositoryApi* | [**repoCreateTag**](docs/RepositoryApi.md#repoCreateTag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository *RepositoryApi* | [**repoDelete**](docs/RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository *RepositoryApi* | [**repoDeleteBranch**](docs/RepositoryApi.md#repoDeleteBranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository *RepositoryApi* | [**repoDeleteBranchProtection**](docs/RepositoryApi.md#repoDeleteBranchProtection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository @@ -307,6 +310,7 @@ Class | Method | HTTP request | Description *RepositoryApi* | [**repoGet**](docs/RepositoryApi.md#repoGet) | **GET** /repos/{owner}/{repo} | Get a repository *RepositoryApi* | [**repoGetAllCommits**](docs/RepositoryApi.md#repoGetAllCommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository *RepositoryApi* | [**repoGetArchive**](docs/RepositoryApi.md#repoGetArchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository +*RepositoryApi* | [**repoGetAssignees**](docs/RepositoryApi.md#repoGetAssignees) | **GET** /repos/{owner}/{repo}/assignees | Return all users that have write access and can be assigned to issues *RepositoryApi* | [**repoGetBranch**](docs/RepositoryApi.md#repoGetBranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection *RepositoryApi* | [**repoGetBranchProtection**](docs/RepositoryApi.md#repoGetBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository *RepositoryApi* | [**repoGetByID**](docs/RepositoryApi.md#repoGetByID) | **GET** /repositories/{id} | Get a repository by id @@ -319,14 +323,18 @@ Class | Method | HTTP request | Description *RepositoryApi* | [**repoGetIssueTemplates**](docs/RepositoryApi.md#repoGetIssueTemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository *RepositoryApi* | [**repoGetKey**](docs/RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id *RepositoryApi* | [**repoGetLanguages**](docs/RepositoryApi.md#repoGetLanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written +*RepositoryApi* | [**repoGetNote**](docs/RepositoryApi.md#repoGetNote) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository *RepositoryApi* | [**repoGetPullRequest**](docs/RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request +*RepositoryApi* | [**repoGetPullRequestCommits**](docs/RepositoryApi.md#repoGetPullRequestCommits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request *RepositoryApi* | [**repoGetPullReview**](docs/RepositoryApi.md#repoGetPullReview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request *RepositoryApi* | [**repoGetPullReviewComments**](docs/RepositoryApi.md#repoGetPullReviewComments) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request *RepositoryApi* | [**repoGetRawFile**](docs/RepositoryApi.md#repoGetRawFile) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository *RepositoryApi* | [**repoGetRelease**](docs/RepositoryApi.md#repoGetRelease) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release *RepositoryApi* | [**repoGetReleaseAttachment**](docs/RepositoryApi.md#repoGetReleaseAttachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment *RepositoryApi* | [**repoGetReleaseByTag**](docs/RepositoryApi.md#repoGetReleaseByTag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name +*RepositoryApi* | [**repoGetReviewers**](docs/RepositoryApi.md#repoGetReviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo *RepositoryApi* | [**repoGetSingleCommit**](docs/RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository +*RepositoryApi* | [**repoGetTag**](docs/RepositoryApi.md#repoGetTag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name *RepositoryApi* | [**repoListAllGitRefs**](docs/RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs *RepositoryApi* | [**repoListBranchProtection**](docs/RepositoryApi.md#repoListBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository *RepositoryApi* | [**repoListBranches**](docs/RepositoryApi.md#repoListBranches) | **GET** /repos/{owner}/{repo}/branches | List a repository's branches @@ -370,6 +378,9 @@ Class | Method | HTTP request | Description *SettingsApi* | [**getGeneralRepositorySettings**](docs/SettingsApi.md#getGeneralRepositorySettings) | **GET** /settings/repository | Get instance's global settings for repositories *SettingsApi* | [**getGeneralUISettings**](docs/SettingsApi.md#getGeneralUISettings) | **GET** /settings/ui | Get instance's global settings for ui *UserApi* | [**createCurrentUserRepo**](docs/UserApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository +*UserApi* | [**getUserSettings**](docs/UserApi.md#getUserSettings) | **GET** /user/settings | Get user settings +*UserApi* | [**getVerificationToken**](docs/UserApi.md#getVerificationToken) | **GET** /user/gpg_key_token | Get a Token to verify +*UserApi* | [**updateUserSettings**](docs/UserApi.md#updateUserSettings) | **PATCH** /user/settings | Update user settings *UserApi* | [**userAddEmail**](docs/UserApi.md#userAddEmail) | **POST** /user/emails | Add email addresses *UserApi* | [**userCheckFollowing**](docs/UserApi.md#userCheckFollowing) | **GET** /users/{follower}/following/{followee} | Check if one user is following another user *UserApi* | [**userCreateOAuth2Application**](docs/UserApi.md#userCreateOAuth2Application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application @@ -386,7 +397,7 @@ Class | Method | HTTP request | Description *UserApi* | [**userCurrentListFollowing**](docs/UserApi.md#userCurrentListFollowing) | **GET** /user/following | List the users that the authenticated user is following *UserApi* | [**userCurrentListGPGKeys**](docs/UserApi.md#userCurrentListGPGKeys) | **GET** /user/gpg_keys | List the authenticated user's GPG keys *UserApi* | [**userCurrentListKeys**](docs/UserApi.md#userCurrentListKeys) | **GET** /user/keys | List the authenticated user's public keys -*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns or has access to +*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns *UserApi* | [**userCurrentListStarred**](docs/UserApi.md#userCurrentListStarred) | **GET** /user/starred | The repos that the authenticated user has starred *UserApi* | [**userCurrentListSubscriptions**](docs/UserApi.md#userCurrentListSubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user *UserApi* | [**userCurrentPostGPGKey**](docs/UserApi.md#userCurrentPostGPGKey) | **POST** /user/gpg_keys | Create a GPG key @@ -415,6 +426,7 @@ Class | Method | HTTP request | Description *UserApi* | [**userListTeams**](docs/UserApi.md#userListTeams) | **GET** /user/teams | List all the teams a user belongs to *UserApi* | [**userSearch**](docs/UserApi.md#userSearch) | **GET** /users/search | Search for users *UserApi* | [**userUpdateOAuth2Application**](docs/UserApi.md#userUpdateOAuth2Application) | **PATCH** /user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret +*UserApi* | [**userVerifyGPGKey**](docs/UserApi.md#userVerifyGPGKey) | **POST** /user/gpg_key_verify | Verify a GPG key ## Documentation for Models @@ -437,6 +449,7 @@ Class | Method | HTTP request | Description - [CommitStatus](docs/CommitStatus.md) - [CommitUser](docs/CommitUser.md) - [ContentsResponse](docs/ContentsResponse.md) + - [CreateAccessTokenOption](docs/CreateAccessTokenOption.md) - [CreateBranchProtectionOption](docs/CreateBranchProtectionOption.md) - [CreateBranchRepoOption](docs/CreateBranchRepoOption.md) - [CreateEmailOption](docs/CreateEmailOption.md) @@ -458,6 +471,7 @@ Class | Method | HTTP request | Description - [CreateReleaseOption](docs/CreateReleaseOption.md) - [CreateRepoOption](docs/CreateRepoOption.md) - [CreateStatusOption](docs/CreateStatusOption.md) + - [CreateTagOption](docs/CreateTagOption.md) - [CreateTeamOption](docs/CreateTeamOption.md) - [CreateUserOption](docs/CreateUserOption.md) - [Cron](docs/Cron.md) @@ -494,6 +508,7 @@ Class | Method | HTTP request | Description - [GeneralAttachmentSettings](docs/GeneralAttachmentSettings.md) - [GeneralRepoSettings](docs/GeneralRepoSettings.md) - [GeneralUISettings](docs/GeneralUISettings.md) + - [GenerateRepoOption](docs/GenerateRepoOption.md) - [GitBlobResponse](docs/GitBlobResponse.md) - [GitEntry](docs/GitEntry.md) - [GitHook](docs/GitHook.md) @@ -514,6 +529,7 @@ Class | Method | HTTP request | Description - [MigrateRepoForm](docs/MigrateRepoForm.md) - [MigrateRepoOptions](docs/MigrateRepoOptions.md) - [Milestone](docs/Milestone.md) + - [Note](docs/Note.md) - [NotificationCount](docs/NotificationCount.md) - [NotificationSubject](docs/NotificationSubject.md) - [NotificationThread](docs/NotificationThread.md) @@ -550,6 +566,8 @@ Class | Method | HTTP request | Description - [UpdateFileOptions](docs/UpdateFileOptions.md) - [User](docs/User.md) - [UserHeatmapData](docs/UserHeatmapData.md) + - [UserSettings](docs/UserSettings.md) + - [UserSettingsOptions](docs/UserSettingsOptions.md) - [WatchInfo](docs/WatchInfo.md) diff --git a/docs/CreateAccessTokenOption.md b/docs/CreateAccessTokenOption.md new file mode 100644 index 0000000..c9deb3a --- /dev/null +++ b/docs/CreateAccessTokenOption.md @@ -0,0 +1,10 @@ + +# CreateAccessTokenOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] + + + diff --git a/docs/CreateHookOption.md b/docs/CreateHookOption.md index 16addda..f41767b 100644 --- a/docs/CreateHookOption.md +++ b/docs/CreateHookOption.md @@ -23,6 +23,7 @@ MSTEAMS | "msteams" SLACK | "slack" TELEGRAM | "telegram" FEISHU | "feishu" +WECHATWORK | "wechatwork" diff --git a/docs/IssueApi.md b/docs/IssueApi.md index d14233f..93b7e24 100644 --- a/docs/IssueApi.md +++ b/docs/IssueApi.md @@ -3897,7 +3897,7 @@ null (empty response body) # **issueSearchIssues** -> List<Issue> issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit) +> List<Issue> issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit) Search for issues across the repositories that the user has access to @@ -3966,10 +3966,12 @@ Boolean assigned = true; // Boolean | filter (issues / pulls) assigned to you, d Boolean created = true; // Boolean | filter (issues / pulls) created by you, default is false Boolean mentioned = true; // Boolean | filter (issues / pulls) mentioning you, default is false Boolean reviewRequested = true; // Boolean | filter pulls requesting your review, default is false +String owner = "owner_example"; // String | filter by owner +String team = "team_example"; // String | filter by team (requires organization owner parameter to be provided) Integer page = 56; // Integer | page number of results to return (1-based) Integer limit = 56; // Integer | page size of results try { - List result = apiInstance.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit); + List result = apiInstance.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IssueApi#issueSearchIssues"); @@ -3993,6 +3995,8 @@ Name | Type | Description | Notes **created** | **Boolean**| filter (issues / pulls) created by you, default is false | [optional] **mentioned** | **Boolean**| filter (issues / pulls) mentioning you, default is false | [optional] **reviewRequested** | **Boolean**| filter pulls requesting your review, default is false | [optional] + **owner** | **String**| filter by owner | [optional] + **team** | **String**| filter by team (requires organization owner parameter to be provided) | [optional] **page** | **Integer**| page number of results to return (1-based) | [optional] **limit** | **Integer**| page size of results | [optional] diff --git a/docs/Note.md b/docs/Note.md new file mode 100644 index 0000000..2694175 --- /dev/null +++ b/docs/Note.md @@ -0,0 +1,11 @@ + +# Note + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commit** | [**Commit**](Commit.md) | | [optional] +**message** | **String** | | [optional] + + + diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 2666bd9..60ce0b6 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description [**listForks**](RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository's forks [**repoAddCollaborator**](RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository [**repoAddTeam**](RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository -[**repoAddTopc**](RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository +[**repoAddTopic**](RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository [**repoCheckCollaborator**](RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository [**repoCheckTeam**](RepositoryApi.md#repoCheckTeam) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository [**repoCreateBranch**](RepositoryApi.md#repoCreateBranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch @@ -70,6 +70,7 @@ Method | HTTP request | Description [**repoGetIssueTemplates**](RepositoryApi.md#repoGetIssueTemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository [**repoGetKey**](RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id [**repoGetLanguages**](RepositoryApi.md#repoGetLanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written +[**repoGetNote**](RepositoryApi.md#repoGetNote) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository [**repoGetPullRequest**](RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request [**repoGetPullRequestCommits**](RepositoryApi.md#repoGetPullRequestCommits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request [**repoGetPullReview**](RepositoryApi.md#repoGetPullReview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request @@ -953,9 +954,9 @@ null (empty response body) - **Content-Type**: application/json, text/plain - **Accept**: application/json - -# **repoAddTopc** -> repoAddTopc(owner, repo, topic) + +# **repoAddTopic** +> repoAddTopic(owner, repo, topic) Add a topic to a repository @@ -1016,9 +1017,9 @@ String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo String topic = "topic_example"; // String | name of the topic to add try { - apiInstance.repoAddTopc(owner, repo, topic); + apiInstance.repoAddTopic(owner, repo, topic); } catch (ApiException e) { - System.err.println("Exception when calling RepositoryApi#repoAddTopc"); + System.err.println("Exception when calling RepositoryApi#repoAddTopic"); e.printStackTrace(); } ``` @@ -6207,6 +6208,98 @@ 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 + + +# **repoGetNote** +> Note repoGetNote(owner, repo, sha) + +Get a note corresponding to a single commit from a repository + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: 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 sha = "sha_example"; // String | a git ref or commit sha +try { + Note result = apiInstance.repoGetNote(owner, repo, sha); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoGetNote"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **sha** | **String**| a git ref or commit sha | + +### Return type + +[**Note**](Note.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/UserApi.md b/docs/UserApi.md index d9a8b2d..a82ecd9 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -24,7 +24,7 @@ Method | HTTP request | Description [**userCurrentListFollowing**](UserApi.md#userCurrentListFollowing) | **GET** /user/following | List the users that the authenticated user is following [**userCurrentListGPGKeys**](UserApi.md#userCurrentListGPGKeys) | **GET** /user/gpg_keys | List the authenticated user's GPG keys [**userCurrentListKeys**](UserApi.md#userCurrentListKeys) | **GET** /user/keys | List the authenticated user's public keys -[**userCurrentListRepos**](UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns or has access to +[**userCurrentListRepos**](UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns [**userCurrentListStarred**](UserApi.md#userCurrentListStarred) | **GET** /user/starred | The repos that the authenticated user has starred [**userCurrentListSubscriptions**](UserApi.md#userCurrentListSubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user [**userCurrentPostGPGKey**](UserApi.md#userCurrentPostGPGKey) | **POST** /user/gpg_keys | Create a GPG key @@ -667,7 +667,7 @@ Name | Type | Description | Notes # **userCreateToken** -> AccessToken userCreateToken(username, accessTokenName) +> AccessToken userCreateToken(username, userCreateToken) Create an access token @@ -725,9 +725,9 @@ Token.setApiKey("YOUR API KEY"); UserApi apiInstance = new UserApi(); String username = "username_example"; // String | username of user -AccessTokenName accessTokenName = new AccessTokenName(); // AccessTokenName | +CreateAccessTokenOption userCreateToken = new CreateAccessTokenOption(); // CreateAccessTokenOption | try { - AccessToken result = apiInstance.userCreateToken(username, accessTokenName); + AccessToken result = apiInstance.userCreateToken(username, userCreateToken); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#userCreateToken"); @@ -740,7 +740,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| username of user | - **accessTokenName** | [**AccessTokenName**](AccessTokenName.md)| | [optional] + **userCreateToken** | [**CreateAccessTokenOption**](CreateAccessTokenOption.md)| | [optional] ### Return type @@ -1823,7 +1823,7 @@ Name | Type | Description | Notes # **userCurrentListRepos** > List<Repository> userCurrentListRepos(page, limit) -List the repos that the authenticated user owns or has access to +List the repos that the authenticated user owns ### Example ```java diff --git a/pom.xml b/pom.xml index f8b42e2..df25c31 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ java-gitea-api jar java-gitea-api - 1.15.0-SNAPSHOT + 1.16.0-SNAPSHOT https://github.com/zeripath/java-gitea-api Swagger Java Client for Gitea @@ -54,9 +54,13 @@ true true true - false + true + README.md true + java-gitea-api + com.github.zeripath + ${project.version} diff --git a/src/main/java/io/gitea/ApiCallback.java b/src/main/java/io/gitea/ApiCallback.java index a035279..73d0614 100644 --- a/src/main/java/io/gitea/ApiCallback.java +++ b/src/main/java/io/gitea/ApiCallback.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/ApiClient.java b/src/main/java/io/gitea/ApiClient.java index a1c20f0..6f15eea 100644 --- a/src/main/java/io/gitea/ApiClient.java +++ b/src/main/java/io/gitea/ApiClient.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -87,7 +87,7 @@ public class ApiClient { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/1.0.0/java"); + setUserAgent("Swagger-Codegen/1.16.0-SNAPSHOT/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/src/main/java/io/gitea/ApiException.java b/src/main/java/io/gitea/ApiException.java index 2fe9dad..7d9fd7b 100644 --- a/src/main/java/io/gitea/ApiException.java +++ b/src/main/java/io/gitea/ApiException.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -16,7 +16,7 @@ package io.gitea; import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00") + public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/io/gitea/ApiResponse.java b/src/main/java/io/gitea/ApiResponse.java index 4574e72..3177638 100644 --- a/src/main/java/io/gitea/ApiResponse.java +++ b/src/main/java/io/gitea/ApiResponse.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/Configuration.java b/src/main/java/io/gitea/Configuration.java index 219aacf..18548be 100644 --- a/src/main/java/io/gitea/Configuration.java +++ b/src/main/java/io/gitea/Configuration.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package io.gitea; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00") + public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/io/gitea/GzipRequestInterceptor.java b/src/main/java/io/gitea/GzipRequestInterceptor.java index d1117c9..5206cc5 100644 --- a/src/main/java/io/gitea/GzipRequestInterceptor.java +++ b/src/main/java/io/gitea/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/JSON.java b/src/main/java/io/gitea/JSON.java index 38b1523..f771649 100644 --- a/src/main/java/io/gitea/JSON.java +++ b/src/main/java/io/gitea/JSON.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/Pair.java b/src/main/java/io/gitea/Pair.java index 360997c..b028919 100644 --- a/src/main/java/io/gitea/Pair.java +++ b/src/main/java/io/gitea/Pair.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package io.gitea; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00") + public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/io/gitea/ProgressRequestBody.java b/src/main/java/io/gitea/ProgressRequestBody.java index d75c3a2..325935e 100644 --- a/src/main/java/io/gitea/ProgressRequestBody.java +++ b/src/main/java/io/gitea/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/ProgressResponseBody.java b/src/main/java/io/gitea/ProgressResponseBody.java index dff32ff..85edac9 100644 --- a/src/main/java/io/gitea/ProgressResponseBody.java +++ b/src/main/java/io/gitea/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/StringUtil.java b/src/main/java/io/gitea/StringUtil.java index 4cda5be..a1dbd5d 100644 --- a/src/main/java/io/gitea/StringUtil.java +++ b/src/main/java/io/gitea/StringUtil.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package io.gitea; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00") + public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/io/gitea/api/AdminApi.java b/src/main/java/io/gitea/api/AdminApi.java index 50ab6cc..d6fd87b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e01aa5a..a4ddcc8 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -6132,6 +6132,8 @@ public class IssueApi { * @param created filter (issues / pulls) created by you, default is false (optional) * @param mentioned filter (issues / pulls) mentioning you, default is false (optional) * @param reviewRequested filter pulls requesting your review, default is false (optional) + * @param owner filter by owner (optional) + * @param team filter by team (requires organization owner parameter to be provided) (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @param progressListener Progress listener @@ -6139,7 +6141,7 @@ public class IssueApi { * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call issueSearchIssuesCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call issueSearchIssuesCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -6171,6 +6173,10 @@ public class IssueApi { localVarQueryParams.addAll(apiClient.parameterToPair("mentioned", mentioned)); if (reviewRequested != null) localVarQueryParams.addAll(apiClient.parameterToPair("review_requested", reviewRequested)); + if (owner != null) + localVarQueryParams.addAll(apiClient.parameterToPair("owner", owner)); + if (team != null) + localVarQueryParams.addAll(apiClient.parameterToPair("team", team)); if (page != null) localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (limit != null) @@ -6209,10 +6215,10 @@ public class IssueApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call issueSearchIssuesValidateBeforeCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call issueSearchIssuesValidateBeforeCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = issueSearchIssuesCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = issueSearchIssuesCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit, progressListener, progressRequestListener); return call; } @@ -6232,13 +6238,15 @@ public class IssueApi { * @param created filter (issues / pulls) created by you, default is false (optional) * @param mentioned filter (issues / pulls) mentioning you, default is false (optional) * @param reviewRequested filter pulls requesting your review, default is false (optional) + * @param owner filter by owner (optional) + * @param team filter by team (requires organization owner parameter to be provided) (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @return List<Issue> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List issueSearchIssues(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit) throws ApiException { - ApiResponse> resp = issueSearchIssuesWithHttpInfo(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit); + public List issueSearchIssues(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit) throws ApiException { + ApiResponse> resp = issueSearchIssuesWithHttpInfo(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit); return resp.getData(); } @@ -6257,13 +6265,15 @@ public class IssueApi { * @param created filter (issues / pulls) created by you, default is false (optional) * @param mentioned filter (issues / pulls) mentioning you, default is false (optional) * @param reviewRequested filter pulls requesting your review, default is false (optional) + * @param owner filter by owner (optional) + * @param team filter by team (requires organization owner parameter to be provided) (optional) * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) * @return ApiResponse<List<Issue>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> issueSearchIssuesWithHttpInfo(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit) throws ApiException { - com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit, null, null); + public ApiResponse> issueSearchIssuesWithHttpInfo(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit, null, null); Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -6283,13 +6293,15 @@ public class IssueApi { * @param created filter (issues / pulls) created by you, default is false (optional) * @param mentioned filter (issues / pulls) mentioning you, default is false (optional) * @param reviewRequested filter pulls requesting your review, default is false (optional) + * @param owner filter by owner (optional) + * @param team filter by team (requires organization owner parameter to be provided) (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 * @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 issueSearchIssuesAsync(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call issueSearchIssuesAsync(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6310,7 +6322,7 @@ public class IssueApi { }; } - com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/src/main/java/io/gitea/api/MiscellaneousApi.java b/src/main/java/io/gitea/api/MiscellaneousApi.java index 2529742..6e9b876 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/api/NotificationApi.java b/src/main/java/io/gitea/api/NotificationApi.java index 22d630c..8550c82 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/api/OrganizationApi.java b/src/main/java/io/gitea/api/OrganizationApi.java index ca7953e..6941ebe 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/api/RepositoryApi.java b/src/main/java/io/gitea/api/RepositoryApi.java index 3592e58..c2800fd 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -70,6 +70,7 @@ import io.gitea.model.Hook; import io.gitea.model.IssueTemplate; import io.gitea.model.MergePullRequestOption; import io.gitea.model.MigrateRepoOptions; +import io.gitea.model.Note; import org.threeten.bp.OffsetDateTime; import io.gitea.model.PullRequest; import io.gitea.model.PullReview; @@ -1382,7 +1383,7 @@ public class RepositoryApi { return call; } /** - * Build call for repoAddTopc + * Build call for repoAddTopic * @param owner owner of the repo (required) * @param repo name of the repo (required) * @param topic name of the topic to add (required) @@ -1391,7 +1392,7 @@ public class RepositoryApi { * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call repoAddTopcCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call repoAddTopicCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1436,25 +1437,25 @@ public class RepositoryApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call repoAddTopcValidateBeforeCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call repoAddTopicValidateBeforeCall(String owner, String repo, String topic, 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 repoAddTopc(Async)"); + throw new ApiException("Missing the required parameter 'owner' when calling repoAddTopic(Async)"); } // verify the required parameter 'repo' is set if (repo == null) { - throw new ApiException("Missing the required parameter 'repo' when calling repoAddTopc(Async)"); + throw new ApiException("Missing the required parameter 'repo' when calling repoAddTopic(Async)"); } // verify the required parameter 'topic' is set if (topic == null) { - throw new ApiException("Missing the required parameter 'topic' when calling repoAddTopc(Async)"); + throw new ApiException("Missing the required parameter 'topic' when calling repoAddTopic(Async)"); } - com.squareup.okhttp.Call call = repoAddTopcCall(owner, repo, topic, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoAddTopicCall(owner, repo, topic, progressListener, progressRequestListener); return call; } @@ -1467,8 +1468,8 @@ public class RepositoryApi { * @param topic name of the topic to add (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void repoAddTopc(String owner, String repo, String topic) throws ApiException { - repoAddTopcWithHttpInfo(owner, repo, topic); + public void repoAddTopic(String owner, String repo, String topic) throws ApiException { + repoAddTopicWithHttpInfo(owner, repo, topic); } /** @@ -1480,8 +1481,8 @@ public class RepositoryApi { * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse repoAddTopcWithHttpInfo(String owner, String repo, String topic) throws ApiException { - com.squareup.okhttp.Call call = repoAddTopcValidateBeforeCall(owner, repo, topic, null, null); + public ApiResponse repoAddTopicWithHttpInfo(String owner, String repo, String topic) throws ApiException { + com.squareup.okhttp.Call call = repoAddTopicValidateBeforeCall(owner, repo, topic, null, null); return apiClient.execute(call); } @@ -1495,7 +1496,7 @@ public class RepositoryApi { * @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 repoAddTopcAsync(String owner, String repo, String topic, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call repoAddTopicAsync(String owner, String repo, String topic, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1516,7 +1517,7 @@ public class RepositoryApi { }; } - com.squareup.okhttp.Call call = repoAddTopcValidateBeforeCall(owner, repo, topic, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = repoAddTopicValidateBeforeCall(owner, repo, topic, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } @@ -9499,6 +9500,149 @@ public class RepositoryApi { apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for repoGetNote + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param sha a git ref or commit sha (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 repoGetNoteCall(String owner, String repo, String sha, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{repo}/git/notes/{sha}" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())) + .replaceAll("\\{" + "sha" + "\\}", apiClient.escapeString(sha.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 repoGetNoteValidateBeforeCall(String owner, String repo, String sha, 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 repoGetNote(Async)"); + } + + // verify the required parameter 'repo' is set + if (repo == null) { + throw new ApiException("Missing the required parameter 'repo' when calling repoGetNote(Async)"); + } + + // verify the required parameter 'sha' is set + if (sha == null) { + throw new ApiException("Missing the required parameter 'sha' when calling repoGetNote(Async)"); + } + + + com.squareup.okhttp.Call call = repoGetNoteCall(owner, repo, sha, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a note corresponding to a single commit from a repository + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param sha a git ref or commit sha (required) + * @return Note + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public Note repoGetNote(String owner, String repo, String sha) throws ApiException { + ApiResponse resp = repoGetNoteWithHttpInfo(owner, repo, sha); + return resp.getData(); + } + + /** + * Get a note corresponding to a single commit from a repository + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param sha a git ref or commit sha (required) + * @return ApiResponse<Note> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse repoGetNoteWithHttpInfo(String owner, String repo, String sha) throws ApiException { + com.squareup.okhttp.Call call = repoGetNoteValidateBeforeCall(owner, repo, sha, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a note corresponding to a single commit from a repository (asynchronously) + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param sha a git ref or commit sha (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 repoGetNoteAsync(String owner, String repo, String sha, 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 = repoGetNoteValidateBeforeCall(owner, repo, sha, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for repoGetPullRequest * @param owner owner of the repo (required) diff --git a/src/main/java/io/gitea/api/SettingsApi.java b/src/main/java/io/gitea/api/SettingsApi.java index f03a71f..4f070a4 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 85c1029..8cb145f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,7 +28,7 @@ import java.io.IOException; import io.gitea.model.AccessToken; -import io.gitea.model.AccessTokenName; +import io.gitea.model.CreateAccessTokenOption; import io.gitea.model.CreateEmailOption; import io.gitea.model.CreateGPGKeyOption; import io.gitea.model.CreateKeyOption; @@ -906,14 +906,14 @@ public class UserApi { /** * Build call for userCreateToken * @param username username of user (required) - * @param accessTokenName (optional) + * @param userCreateToken (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 userCreateTokenCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = accessTokenName; + public com.squareup.okhttp.Call userCreateTokenCall(String username, CreateAccessTokenOption userCreateToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = userCreateToken; // create path and map variables String localVarPath = "/users/{username}/tokens" @@ -955,7 +955,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String username, CreateAccessTokenOption userCreateToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'username' is set if (username == null) { @@ -963,7 +963,7 @@ public class UserApi { } - com.squareup.okhttp.Call call = userCreateTokenCall(username, accessTokenName, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = userCreateTokenCall(username, userCreateToken, progressListener, progressRequestListener); return call; } @@ -972,12 +972,12 @@ public class UserApi { * Create an access token * * @param username username of user (required) - * @param accessTokenName (optional) + * @param userCreateToken (optional) * @return AccessToken * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AccessToken userCreateToken(String username, AccessTokenName accessTokenName) throws ApiException { - ApiResponse resp = userCreateTokenWithHttpInfo(username, accessTokenName); + public AccessToken userCreateToken(String username, CreateAccessTokenOption userCreateToken) throws ApiException { + ApiResponse resp = userCreateTokenWithHttpInfo(username, userCreateToken); return resp.getData(); } @@ -985,12 +985,12 @@ public class UserApi { * Create an access token * * @param username username of user (required) - * @param accessTokenName (optional) + * @param userCreateToken (optional) * @return ApiResponse<AccessToken> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse userCreateTokenWithHttpInfo(String username, AccessTokenName accessTokenName) throws ApiException { - com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, null, null); + public ApiResponse userCreateTokenWithHttpInfo(String username, CreateAccessTokenOption userCreateToken) throws ApiException { + com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, userCreateToken, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -999,12 +999,12 @@ public class UserApi { * Create an access token (asynchronously) * * @param username username of user (required) - * @param accessTokenName (optional) + * @param userCreateToken (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 userCreateTokenAsync(String username, AccessTokenName accessTokenName, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call userCreateTokenAsync(String username, CreateAccessTokenOption userCreateToken, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1025,7 +1025,7 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, userCreateToken, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -2580,7 +2580,7 @@ public class UserApi { } /** - * List the repos that the authenticated user owns or has access to + * List the repos that the authenticated user owns * * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) @@ -2593,7 +2593,7 @@ public class UserApi { } /** - * List the repos that the authenticated user owns or has access to + * List the repos that the authenticated user owns * * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) @@ -2607,7 +2607,7 @@ public class UserApi { } /** - * List the repos that the authenticated user owns or has access to (asynchronously) + * List the repos that the authenticated user owns (asynchronously) * * @param page page number of results to return (1-based) (optional) * @param limit page size of results (optional) diff --git a/src/main/java/io/gitea/auth/ApiKeyAuth.java b/src/main/java/io/gitea/auth/ApiKeyAuth.java index 43f3fcd..2460faf 100644 --- a/src/main/java/io/gitea/auth/ApiKeyAuth.java +++ b/src/main/java/io/gitea/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -18,7 +18,7 @@ import io.gitea.Pair; import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00") + public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/io/gitea/auth/Authentication.java b/src/main/java/io/gitea/auth/Authentication.java index 838f76b..7ae502e 100644 --- a/src/main/java/io/gitea/auth/Authentication.java +++ b/src/main/java/io/gitea/auth/Authentication.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/auth/HttpBasicAuth.java b/src/main/java/io/gitea/auth/HttpBasicAuth.java index 19c3abf..bc72b45 100644 --- a/src/main/java/io/gitea/auth/HttpBasicAuth.java +++ b/src/main/java/io/gitea/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/auth/OAuth.java b/src/main/java/io/gitea/auth/OAuth.java index e2de21b..67a19d5 100644 --- a/src/main/java/io/gitea/auth/OAuth.java +++ b/src/main/java/io/gitea/auth/OAuth.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -18,7 +18,7 @@ import io.gitea.Pair; import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00") + public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/io/gitea/auth/OAuthFlow.java b/src/main/java/io/gitea/auth/OAuthFlow.java index e08b8a8..770b133 100644 --- a/src/main/java/io/gitea/auth/OAuthFlow.java +++ b/src/main/java/io/gitea/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.14.0+dev-803-gf1da46622 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 0a089e1..c9d197c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 ea9ec20..4d65061 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 97fa2f9..540bd96 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 9329301..3e068ad 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 824e92f..de1017c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e9bfd70..d015cb1 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 ff44f53..e92a6f9 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 616def3..b8d8421 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 8956c83..fe5acb2 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CombinedStatus.java b/src/main/java/io/gitea/model/CombinedStatus.java index 8d3a60f..7d6d253 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e7e7c2b..62838dc 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 935d92f..4d4da5f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7632338..cc78dd4 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 76df6e1..bdbda8c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7197d06..f281eb8 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 26418a9..af1735b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 cc2acb1..1d3450c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 ffd71af..de35bf1 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/AccessTokenName.java b/src/main/java/io/gitea/model/CreateAccessTokenOption.java similarity index 76% rename from src/main/java/io/gitea/model/AccessTokenName.java rename to src/main/java/io/gitea/model/CreateAccessTokenOption.java index 155fd85..f1b326f 100644 --- a/src/main/java/io/gitea/model/AccessTokenName.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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,14 +25,15 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** - * AccessTokenName + * CreateAccessTokenOption options when create access token */ +@ApiModel(description = "CreateAccessTokenOption options when create access token") -public class AccessTokenName { +public class CreateAccessTokenOption { @SerializedName("name") private String name = null; - public AccessTokenName name(String name) { + public CreateAccessTokenOption name(String name) { this.name = name; return this; } @@ -41,7 +42,7 @@ public class AccessTokenName { * Get name * @return name **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(value = "") public String getName() { return name; } @@ -59,8 +60,8 @@ public class AccessTokenName { if (o == null || getClass() != o.getClass()) { return false; } - AccessTokenName accessTokenName = (AccessTokenName) o; - return Objects.equals(this.name, accessTokenName.name); + CreateAccessTokenOption createAccessTokenOption = (CreateAccessTokenOption) o; + return Objects.equals(this.name, createAccessTokenOption.name); } @Override @@ -72,7 +73,7 @@ public class AccessTokenName { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AccessTokenName {\n"); + sb.append("class CreateAccessTokenOption {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/src/main/java/io/gitea/model/CreateBranchProtectionOption.java b/src/main/java/io/gitea/model/CreateBranchProtectionOption.java index e34e41c..47f4ffb 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateBranchRepoOption.java b/src/main/java/io/gitea/model/CreateBranchRepoOption.java index fb52325..21858c0 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e683f65..fd40491 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 2cfecda..63b1720 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e94ac1f..8fcfeef 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateGPGKeyOption.java b/src/main/java/io/gitea/model/CreateGPGKeyOption.java index d1bc4b9..27c40b3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 1541a72..04b352a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -64,7 +64,9 @@ public class CreateHookOption { TELEGRAM("telegram"), - FEISHU("feishu"); + FEISHU("feishu"), + + WECHATWORK("wechatwork"); private String value; diff --git a/src/main/java/io/gitea/model/CreateHookOptionConfig.java b/src/main/java/io/gitea/model/CreateHookOptionConfig.java index bbf5f86..a8baf3e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 c073dc7..874f3d3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a10d769..1d6362e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 51aa442..60f0b92 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a42a3ac..29a5c9b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 0bcfde3..d271bc1 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 5c67ebb..f286b1a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 069300e..7416aeb 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e13aaf5..14f369b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7164882..609677a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7588a2f..d1a6f25 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e859cbe..2323d8f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 8855d62..c581f18 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateStatusOption.java b/src/main/java/io/gitea/model/CreateStatusOption.java index f27b7bd..eee745f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 5d78b46..8d27b2f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 37fb04c..8ee5593 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/CreateUserOption.java b/src/main/java/io/gitea/model/CreateUserOption.java index 367207a..480f5e3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Cron.java b/src/main/java/io/gitea/model/Cron.java index c5333cd..c1086cd 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 9b79fa6..1b16d1f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 210d2b6..6fb4a8a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 700f77a..e5d54f3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 80c4ac7..97f2b30 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7f853e9..d67c080 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 237b0f5..4b85a1b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditDeadlineOption.java b/src/main/java/io/gitea/model/EditDeadlineOption.java index 136069e..05e3361 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 aa7db5f..c861739 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 6e754a4..9c1cc1f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 1d4fdfe..a45b84b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e0a200a..caf7bd4 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 d7fb40a..b114384 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a0fc7cf..5a89519 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a57d3d6..444939e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 28a562f..1227b48 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 35145f2..000354c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 379fba5..fa2ed18 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e42dc1d..d36d516 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditTeamOption.java b/src/main/java/io/gitea/model/EditTeamOption.java index 11d74b3..7eb8f3f 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/EditUserOption.java b/src/main/java/io/gitea/model/EditUserOption.java index fd3aad9..9bf1432 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 fb4d3cc..7b875c8 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 f97d17b..74a63da 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 831f407..d10117e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 b39c312..4463bd2 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a8cc90b..2ff2fe8 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 d499cd5..34a1f1e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 8adbec0..0f516f4 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 128b53e..ffe900a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 01ce68e..1d253e3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 059a6bd..c408361 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a8e6077..8dfae25 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 8937fa5..d455cae 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 227e508..24a9f9a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 9077954..c29df00 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 ab84146..a6a816b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 979dd0e..bb1f87b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 1c9184e..0f57b19 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 cc960d0..1441059 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7650c3f..ca8e8fb 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 ad0adc6..59caf19 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 7778065..c01449c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 b2df3f3..933b3b7 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 356f5f0..8ca6924 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 c3b94b0..4ec82f1 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 00592bd..a49cbb7 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 83b4f67..834eb9a 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 4a736ec..907bad6 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 547658f..3f164eb 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Label.java b/src/main/java/io/gitea/model/Label.java index c822968..356b21b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 444609c..d8f57eb 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 8a2fcea..a241d6b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/MigrateRepoForm.java b/src/main/java/io/gitea/model/MigrateRepoForm.java index 48a3d53..391ba6d 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 3a5f8d8..749ab73 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e400ade..46800b1 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Note.java b/src/main/java/io/gitea/model/Note.java new file mode 100644 index 0000000..500e14f --- /dev/null +++ b/src/main/java/io/gitea/model/Note.java @@ -0,0 +1,119 @@ +/* + * Gitea API. + * This documentation describes the Gitea API. + * + * OpenAPI spec version: 1.16.0-SNAPSHOT + * + * + * 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.Commit; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Note contains information related to a git note + */ +@ApiModel(description = "Note contains information related to a git note") + +public class Note { + @SerializedName("commit") + private Commit commit = null; + + @SerializedName("message") + private String message = null; + + public Note commit(Commit commit) { + this.commit = commit; + return this; + } + + /** + * Get commit + * @return commit + **/ + @ApiModelProperty(value = "") + public Commit getCommit() { + return commit; + } + + public void setCommit(Commit commit) { + this.commit = commit; + } + + public Note 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; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Note note = (Note) o; + return Objects.equals(this.commit, note.commit) && + Objects.equals(this.message, note.message); + } + + @Override + public int hashCode() { + return Objects.hash(commit, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Note {\n"); + + sb.append(" commit: ").append(toIndentedString(commit)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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/NotificationCount.java b/src/main/java/io/gitea/model/NotificationCount.java index 8c68e28..db01ed0 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 5dda2cd..d8c4666 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/NotificationThread.java b/src/main/java/io/gitea/model/NotificationThread.java index 3f5a7de..fe012c1 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a1e34c0..4f92f2d 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 c801744..14cf092 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/PRBranchInfo.java b/src/main/java/io/gitea/model/PRBranchInfo.java index b9ee7dd..a34930d 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 47f78ac..856b199 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 86bd81d..6989c60 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 4a28084..57d83b8 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 40dab19..8dc938d 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 912545e..007877e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 17a81ea..33ecab9 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 c585258..ab477de 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 2c8d052..a812ea7 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 3a655f2..813e630 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 6bd5835..dd2348b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 e2de77d..f00b6d7 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 9d8c785..4684ce3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 3c284cd..af1c69d 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 2f44698..af28054 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 a9ff1ee..6faac58 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Repository.java b/src/main/java/io/gitea/model/Repository.java index eeab4a7..e8debc7 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/RepositoryMeta.java b/src/main/java/io/gitea/model/RepositoryMeta.java index df3bb57..7b2814c 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 c204552..bfbaeee 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 eb9b2b6..32581ac 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/Status.java b/src/main/java/io/gitea/model/Status.java deleted file mode 100644 index d4d2a96..0000000 --- a/src/main/java/io/gitea/model/Status.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Gitea API. - * This documentation describes the Gitea API. - * - * OpenAPI spec version: 1.1.1 - * - * - * 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.User; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.threeten.bp.OffsetDateTime; - -/** - * Status holds a single Status of a single Commit - */ -@ApiModel(description = "Status holds a single Status of a single Commit") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-15T10:08:30.717+03:00") -public class Status { - @SerializedName("context") - private String context = null; - - @SerializedName("created_at") - private OffsetDateTime createdAt = null; - - @SerializedName("creator") - private User creator = null; - - @SerializedName("description") - private String description = null; - - @SerializedName("id") - private Long id = null; - - @SerializedName("status") - private String status = null; - - @SerializedName("target_url") - private String targetUrl = null; - - @SerializedName("updated_at") - private OffsetDateTime updatedAt = null; - - @SerializedName("url") - private String url = null; - - public Status context(String context) { - this.context = context; - return this; - } - - /** - * Get context - * @return context - **/ - @ApiModelProperty(value = "") - public String getContext() { - return context; - } - - public void setContext(String context) { - this.context = context; - } - - public Status 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 Status creator(User creator) { - this.creator = creator; - return this; - } - - /** - * Get creator - * @return creator - **/ - @ApiModelProperty(value = "") - public User getCreator() { - return creator; - } - - public void setCreator(User creator) { - this.creator = creator; - } - - public Status description(String description) { - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @ApiModelProperty(value = "") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Status 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 Status status(String status) { - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @ApiModelProperty(value = "") - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public Status targetUrl(String targetUrl) { - this.targetUrl = targetUrl; - return this; - } - - /** - * Get targetUrl - * @return targetUrl - **/ - @ApiModelProperty(value = "") - public String getTargetUrl() { - return targetUrl; - } - - public void setTargetUrl(String targetUrl) { - this.targetUrl = targetUrl; - } - - public Status 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 Status url(String url) { - this.url = url; - return this; - } - - /** - * Get url - * @return url - **/ - @ApiModelProperty(value = "") - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Status status = (Status) o; - return Objects.equals(this.context, status.context) && - Objects.equals(this.createdAt, status.createdAt) && - Objects.equals(this.creator, status.creator) && - Objects.equals(this.description, status.description) && - Objects.equals(this.id, status.id) && - Objects.equals(this.status, status.status) && - Objects.equals(this.targetUrl, status.targetUrl) && - Objects.equals(this.updatedAt, status.updatedAt) && - Objects.equals(this.url, status.url); - } - - @Override - public int hashCode() { - return Objects.hash(context, createdAt, creator, description, id, status, targetUrl, updatedAt, url); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Status {\n"); - - sb.append(" context: ").append(toIndentedString(context)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" targetUrl: ").append(toIndentedString(targetUrl)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).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/StopWatch.java b/src/main/java/io/gitea/model/StopWatch.java index c9b03e5..f1ee848 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 397b2a4..af2ba83 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 62909a1..4d4ab17 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 4cee4bd..b3c2034 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/gitea/model/TopicName.java b/src/main/java/io/gitea/model/TopicName.java index e4b2971..6f53dc3 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 79048c8..7d5a047 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 52cd086..6911a50 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 21d73fb..cba45f7 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 54c3c0a..de1395e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 6959b6a..1eb0df6 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 4cc5b96..a037256 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 6401634..6a13942 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 73a3636..caf339b 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * 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 24f1873..d7547d6 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/gitea/api/AdminApiTest.java b/src/test/java/io/gitea/api/AdminApiTest.java index 051bb98..5932c76 100644 --- a/src/test/java/io/gitea/api/AdminApiTest.java +++ b/src/test/java/io/gitea/api/AdminApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/gitea/api/IssueApiTest.java b/src/test/java/io/gitea/api/IssueApiTest.java index 0b83205..ec291ce 100644 --- a/src/test/java/io/gitea/api/IssueApiTest.java +++ b/src/test/java/io/gitea/api/IssueApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -855,9 +855,11 @@ public class IssueApiTest { Boolean created = null; Boolean mentioned = null; Boolean reviewRequested = null; + String owner = null; + String team = null; Integer page = null; Integer limit = null; - List response = api.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit); + List response = api.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit); // TODO: test validations } diff --git a/src/test/java/io/gitea/api/MiscellaneousApiTest.java b/src/test/java/io/gitea/api/MiscellaneousApiTest.java index 5b180bd..ffb986b 100644 --- a/src/test/java/io/gitea/api/MiscellaneousApiTest.java +++ b/src/test/java/io/gitea/api/MiscellaneousApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/gitea/api/NotificationApiTest.java b/src/test/java/io/gitea/api/NotificationApiTest.java index d49ad82..6426fde 100644 --- a/src/test/java/io/gitea/api/NotificationApiTest.java +++ b/src/test/java/io/gitea/api/NotificationApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/gitea/api/OrganizationApiTest.java b/src/test/java/io/gitea/api/OrganizationApiTest.java index b24db19..35e4fbb 100644 --- a/src/test/java/io/gitea/api/OrganizationApiTest.java +++ b/src/test/java/io/gitea/api/OrganizationApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/gitea/api/RepositoryApiTest.java b/src/test/java/io/gitea/api/RepositoryApiTest.java index 804e935..fdec06e 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.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -57,6 +57,7 @@ import io.gitea.model.Hook; import io.gitea.model.IssueTemplate; import io.gitea.model.MergePullRequestOption; import io.gitea.model.MigrateRepoOptions; +import io.gitea.model.Note; import org.threeten.bp.OffsetDateTime; import io.gitea.model.PullRequest; import io.gitea.model.PullReview; @@ -268,11 +269,11 @@ public class RepositoryApiTest { * if the Api call fails */ @Test - public void repoAddTopcTest() throws ApiException { + public void repoAddTopicTest() throws ApiException { String owner = null; String repo = null; String topic = null; - api.repoAddTopc(owner, repo, topic); + api.repoAddTopic(owner, repo, topic); // TODO: test validations } @@ -1302,6 +1303,24 @@ public class RepositoryApiTest { // TODO: test validations } + /** + * Get a note corresponding to a single commit from a repository + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void repoGetNoteTest() throws ApiException { + String owner = null; + String repo = null; + String sha = null; + Note response = api.repoGetNote(owner, repo, sha); + + // TODO: test validations + } + /** * Get a pull request * diff --git a/src/test/java/io/gitea/api/SettingsApiTest.java b/src/test/java/io/gitea/api/SettingsApiTest.java index d2961e0..ffaff19 100644 --- a/src/test/java/io/gitea/api/SettingsApiTest.java +++ b/src/test/java/io/gitea/api/SettingsApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/gitea/api/UserApiTest.java b/src/test/java/io/gitea/api/UserApiTest.java index 735314e..3d478a8 100644 --- a/src/test/java/io/gitea/api/UserApiTest.java +++ b/src/test/java/io/gitea/api/UserApiTest.java @@ -2,7 +2,7 @@ * Gitea API. * This documentation describes the Gitea API. * - * OpenAPI spec version: 1.15.0-rc2 + * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,7 +15,7 @@ package io.gitea.api; import io.gitea.ApiException; import io.gitea.model.AccessToken; -import io.gitea.model.AccessTokenName; +import io.gitea.model.CreateAccessTokenOption; import io.gitea.model.CreateEmailOption; import io.gitea.model.CreateGPGKeyOption; import io.gitea.model.CreateKeyOption; @@ -175,8 +175,8 @@ public class UserApiTest { @Test public void userCreateTokenTest() throws ApiException { String username = null; - AccessTokenName accessTokenName = null; - AccessToken response = api.userCreateToken(username, accessTokenName); + CreateAccessTokenOption userCreateToken = null; + AccessToken response = api.userCreateToken(username, userCreateToken); // TODO: test validations } @@ -381,7 +381,7 @@ public class UserApiTest { } /** - * List the repos that the authenticated user owns or has access to + * List the repos that the authenticated user owns * * * diff --git a/swagger.v1.json b/swagger.v1.json index 8cf19b8..e6e9c06 100644 --- a/swagger.v1.json +++ b/swagger.v1.json @@ -19,7 +19,7 @@ "name": "MIT", "url": "http://opensource.org/licenses/MIT" }, - "version": "1.15.0-rc2" + "version": "1.16.0-SNAPSHOT" }, "basePath": "/api/v1", "paths": { @@ -1939,6 +1939,18 @@ "name": "review_requested", "in": "query" }, + { + "type": "string", + "description": "filter by owner", + "name": "owner", + "in": "query" + }, + { + "type": "string", + "description": "filter by team (requires organization owner parameter to be provided)", + "name": "team", + "in": "query" + }, { "type": "integer", "description": "page number of results to return (1-based)", @@ -3569,6 +3581,52 @@ } } }, + "/repos/{owner}/{repo}/git/notes/{sha}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Get a note corresponding to a single commit from a repository", + "operationId": "repoGetNote", + "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": "a git ref or commit sha", + "name": "sha", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/Note" + }, + "404": { + "$ref": "#/responses/notFound" + }, + "422": { + "$ref": "#/responses/validationError" + } + } + } + }, "/repos/{owner}/{repo}/git/refs": { "get": { "produces": [ @@ -9651,7 +9709,7 @@ "repository" ], "summary": "Add a topic to a repository", - "operationId": "repoAddTopĆ­c", + "operationId": "repoAddTopic", "parameters": [ { "type": "string", @@ -11052,7 +11110,7 @@ "tags": [ "user" ], - "summary": "List the repos that the authenticated user owns or has access to", + "summary": "List the repos that the authenticated user owns", "operationId": "userCurrentListRepos", "parameters": [ { @@ -11917,18 +11975,10 @@ "required": true }, { - "name": "accessTokenName", + "name": "userCreateToken", "in": "body", "schema": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - } - } + "$ref": "#/definitions/CreateAccessTokenOption" } } ], @@ -12654,6 +12704,17 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "CreateAccessTokenOption": { + "description": "CreateAccessTokenOption options when create access token", + "type": "object", + "properties": { + "name": { + "type": "string", + "x-go-name": "Name" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "CreateBranchProtectionOption": { "description": "CreateBranchProtectionOption options for creating a branch protection", "type": "object", @@ -12917,7 +12978,8 @@ "msteams", "slack", "telegram", - "feishu" + "feishu", + "wechatwork" ], "x-go-name": "Type" } @@ -15449,6 +15511,20 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "Note": { + "description": "Note contains information related to a git note", + "type": "object", + "properties": { + "commit": { + "$ref": "#/definitions/Commit" + }, + "message": { + "type": "string", + "x-go-name": "Message" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "NotificationCount": { "description": "NotificationCount number of unread notifications", "type": "object", @@ -17408,6 +17484,12 @@ } } }, + "Note": { + "description": "Note", + "schema": { + "$ref": "#/definitions/Note" + } + }, "NotificationCount": { "description": "Number of unread notifications", "schema": {