├── .classpath ├── .gitignore ├── .project ├── .settings ├── org.eclipse.buildship.core.prefs └── org.eclipse.jdt.core.prefs ├── .swagger-codegen-ignore ├── .swagger-codegen └── VERSION ├── .travis.yml ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── build.gradle ├── build.sbt ├── docs ├── APIError.md ├── AccessToken.md ├── AccessTokenName.md ├── ActivityPub.md ├── ActivitypubApi.md ├── AddCollaboratorOption.md ├── AddTimeOption.md ├── AdminApi.md ├── AnnotatedTag.md ├── AnnotatedTagObject.md ├── Attachment.md ├── Branch.md ├── BranchProtection.md ├── ChangedFile.md ├── CombinedStatus.md ├── Comment.md ├── Commit.md ├── CommitAffectedFiles.md ├── CommitDateOptions.md ├── CommitMeta.md ├── CommitStats.md ├── CommitStatus.md ├── CommitUser.md ├── ContentsResponse.md ├── CreateAccessTokenOption.md ├── CreateBranchProtectionOption.md ├── CreateBranchRepoOption.md ├── CreateEmailOption.md ├── CreateFileOptions.md ├── CreateForkOption.md ├── CreateGPGKeyOption.md ├── CreateHookOption.md ├── CreateHookOptionConfig.md ├── CreateIssueCommentOption.md ├── CreateIssueOption.md ├── CreateKeyOption.md ├── CreateLabelOption.md ├── CreateMilestoneOption.md ├── CreateOAuth2ApplicationOptions.md ├── CreateOrgOption.md ├── CreatePullRequestOption.md ├── CreatePullReviewComment.md ├── CreatePullReviewOptions.md ├── CreatePushMirrorOption.md ├── CreateReleaseOption.md ├── CreateRepoOption.md ├── CreateStatusOption.md ├── CreateTagOption.md ├── CreateTeamOption.md ├── CreateUserOption.md ├── CreateWikiPageOptions.md ├── Cron.md ├── DeleteEmailOption.md ├── DeleteFileOptions.md ├── DeployKey.md ├── DismissPullReviewOptions.md ├── EditAttachmentOptions.md ├── EditBranchProtectionOption.md ├── EditDeadlineOption.md ├── EditGitHookOption.md ├── EditHookOption.md ├── EditIssueCommentOption.md ├── EditIssueOption.md ├── EditLabelOption.md ├── EditMilestoneOption.md ├── EditOrgOption.md ├── EditPullRequestOption.md ├── EditReactionOption.md ├── EditReleaseOption.md ├── EditRepoOption.md ├── EditTeamOption.md ├── EditUserOption.md ├── Email.md ├── ExternalTracker.md ├── ExternalWiki.md ├── FileCommitResponse.md ├── FileDeleteResponse.md ├── FileLinksResponse.md ├── FileResponse.md ├── GPGKey.md ├── GPGKeyEmail.md ├── GeneralAPISettings.md ├── GeneralAttachmentSettings.md ├── GeneralRepoSettings.md ├── GeneralUISettings.md ├── GenerateRepoOption.md ├── GitBlobResponse.md ├── GitEntry.md ├── GitHook.md ├── GitObject.md ├── GitTreeResponse.md ├── Hook.md ├── Identity.md ├── InlineResponse200.md ├── InlineResponse2001.md ├── InternalTracker.md ├── Issue.md ├── IssueApi.md ├── IssueDeadline.md ├── IssueFormField.md ├── IssueLabelsOption.md ├── IssueTemplate.md ├── IssueTemplateLabels.md ├── Label.md ├── MarkdownOption.md ├── MergePullRequestOption.md ├── MigrateRepoForm.md ├── MigrateRepoOptions.md ├── Milestone.md ├── MiscellaneousApi.md ├── ModelPackage.md ├── NodeInfo.md ├── NodeInfoServices.md ├── NodeInfoSoftware.md ├── NodeInfoUsage.md ├── NodeInfoUsageUsers.md ├── Note.md ├── NotificationApi.md ├── NotificationCount.md ├── NotificationSubject.md ├── NotificationThread.md ├── OAuth2Application.md ├── Organization.md ├── OrganizationApi.md ├── OrganizationPermissions.md ├── PRBranchInfo.md ├── PackageApi.md ├── PackageFile.md ├── PayloadCommit.md ├── PayloadCommitVerification.md ├── PayloadUser.md ├── Permission.md ├── PublicKey.md ├── PullRequest.md ├── PullRequestMeta.md ├── PullReview.md ├── PullReviewComment.md ├── PullReviewRequestOptions.md ├── PushMirror.md ├── Reaction.md ├── Reference.md ├── Release.md ├── RepoCollaboratorPermission.md ├── RepoCommit.md ├── RepoTopicOptions.md ├── RepoTransfer.md ├── Repository.md ├── RepositoryApi.md ├── RepositoryMeta.md ├── SearchResults.md ├── ServerVersion.md ├── SettingsApi.md ├── Status.md ├── StopWatch.md ├── SubmitPullReviewOptions.md ├── Tag.md ├── Team.md ├── TimelineComment.md ├── TopicName.md ├── TopicResponse.md ├── TrackedTime.md ├── TransferRepoOption.md ├── UpdateFileOptions.md ├── User.md ├── UserApi.md ├── UserHeatmapData.md ├── UserSettings.md ├── UserSettingsOptions.md ├── WatchInfo.md ├── WikiCommit.md ├── WikiCommitList.md ├── WikiPage.md └── WikiPageMetaData.md ├── git_push.sh ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── pom.xml ├── settings.gradle ├── src ├── main │ ├── AndroidManifest.xml │ └── java │ │ └── io │ │ └── gitea │ │ ├── ApiCallback.java │ │ ├── ApiClient.java │ │ ├── ApiException.java │ │ ├── ApiResponse.java │ │ ├── Configuration.java │ │ ├── GzipRequestInterceptor.java │ │ ├── JSON.java │ │ ├── Pair.java │ │ ├── ProgressRequestBody.java │ │ ├── ProgressResponseBody.java │ │ ├── StringUtil.java │ │ ├── api │ │ ├── ActivitypubApi.java │ │ ├── AdminApi.java │ │ ├── IssueApi.java │ │ ├── MiscellaneousApi.java │ │ ├── NotificationApi.java │ │ ├── OrganizationApi.java │ │ ├── PackageApi.java │ │ ├── RepositoryApi.java │ │ ├── SettingsApi.java │ │ └── UserApi.java │ │ ├── auth │ │ ├── ApiKeyAuth.java │ │ ├── Authentication.java │ │ ├── HttpBasicAuth.java │ │ ├── OAuth.java │ │ └── OAuthFlow.java │ │ └── model │ │ ├── APIError.java │ │ ├── AccessToken.java │ │ ├── ActivityPub.java │ │ ├── AddCollaboratorOption.java │ │ ├── AddTimeOption.java │ │ ├── AnnotatedTag.java │ │ ├── AnnotatedTagObject.java │ │ ├── Attachment.java │ │ ├── Branch.java │ │ ├── BranchProtection.java │ │ ├── ChangedFile.java │ │ ├── CombinedStatus.java │ │ ├── Comment.java │ │ ├── Commit.java │ │ ├── CommitAffectedFiles.java │ │ ├── CommitDateOptions.java │ │ ├── CommitMeta.java │ │ ├── CommitStats.java │ │ ├── CommitStatus.java │ │ ├── CommitUser.java │ │ ├── ContentsResponse.java │ │ ├── CreateAccessTokenOption.java │ │ ├── CreateBranchProtectionOption.java │ │ ├── CreateBranchRepoOption.java │ │ ├── CreateEmailOption.java │ │ ├── CreateFileOptions.java │ │ ├── CreateForkOption.java │ │ ├── CreateGPGKeyOption.java │ │ ├── CreateHookOption.java │ │ ├── CreateHookOptionConfig.java │ │ ├── CreateIssueCommentOption.java │ │ ├── CreateIssueOption.java │ │ ├── CreateKeyOption.java │ │ ├── CreateLabelOption.java │ │ ├── CreateMilestoneOption.java │ │ ├── CreateOAuth2ApplicationOptions.java │ │ ├── CreateOrgOption.java │ │ ├── CreatePullRequestOption.java │ │ ├── CreatePullReviewComment.java │ │ ├── CreatePullReviewOptions.java │ │ ├── CreatePushMirrorOption.java │ │ ├── CreateReleaseOption.java │ │ ├── CreateRepoOption.java │ │ ├── CreateStatusOption.java │ │ ├── CreateTagOption.java │ │ ├── CreateTeamOption.java │ │ ├── CreateUserOption.java │ │ ├── CreateWikiPageOptions.java │ │ ├── Cron.java │ │ ├── DeleteEmailOption.java │ │ ├── DeleteFileOptions.java │ │ ├── DeployKey.java │ │ ├── DismissPullReviewOptions.java │ │ ├── EditAttachmentOptions.java │ │ ├── EditBranchProtectionOption.java │ │ ├── EditDeadlineOption.java │ │ ├── EditGitHookOption.java │ │ ├── EditHookOption.java │ │ ├── EditIssueCommentOption.java │ │ ├── EditIssueOption.java │ │ ├── EditLabelOption.java │ │ ├── EditMilestoneOption.java │ │ ├── EditOrgOption.java │ │ ├── EditPullRequestOption.java │ │ ├── EditReactionOption.java │ │ ├── EditReleaseOption.java │ │ ├── EditRepoOption.java │ │ ├── EditTeamOption.java │ │ ├── EditUserOption.java │ │ ├── Email.java │ │ ├── ExternalTracker.java │ │ ├── ExternalWiki.java │ │ ├── FileCommitResponse.java │ │ ├── FileDeleteResponse.java │ │ ├── FileLinksResponse.java │ │ ├── FileResponse.java │ │ ├── GPGKey.java │ │ ├── GPGKeyEmail.java │ │ ├── GeneralAPISettings.java │ │ ├── GeneralAttachmentSettings.java │ │ ├── GeneralRepoSettings.java │ │ ├── GeneralUISettings.java │ │ ├── GenerateRepoOption.java │ │ ├── GitBlobResponse.java │ │ ├── GitEntry.java │ │ ├── GitHook.java │ │ ├── GitObject.java │ │ ├── GitTreeResponse.java │ │ ├── Hook.java │ │ ├── Identity.java │ │ ├── InlineResponse200.java │ │ ├── InlineResponse2001.java │ │ ├── InternalTracker.java │ │ ├── Issue.java │ │ ├── IssueDeadline.java │ │ ├── IssueFormField.java │ │ ├── IssueLabelsOption.java │ │ ├── IssueTemplate.java │ │ ├── IssueTemplateLabels.java │ │ ├── Label.java │ │ ├── MarkdownOption.java │ │ ├── MergePullRequestOption.java │ │ ├── MigrateRepoForm.java │ │ ├── MigrateRepoOptions.java │ │ ├── Milestone.java │ │ ├── ModelPackage.java │ │ ├── NodeInfo.java │ │ ├── NodeInfoServices.java │ │ ├── NodeInfoSoftware.java │ │ ├── NodeInfoUsage.java │ │ ├── NodeInfoUsageUsers.java │ │ ├── Note.java │ │ ├── NotificationCount.java │ │ ├── NotificationSubject.java │ │ ├── NotificationThread.java │ │ ├── OAuth2Application.java │ │ ├── Organization.java │ │ ├── OrganizationPermissions.java │ │ ├── PRBranchInfo.java │ │ ├── PackageFile.java │ │ ├── PayloadCommit.java │ │ ├── PayloadCommitVerification.java │ │ ├── PayloadUser.java │ │ ├── Permission.java │ │ ├── PublicKey.java │ │ ├── PullRequest.java │ │ ├── PullRequestMeta.java │ │ ├── PullReview.java │ │ ├── PullReviewComment.java │ │ ├── PullReviewRequestOptions.java │ │ ├── PushMirror.java │ │ ├── Reaction.java │ │ ├── Reference.java │ │ ├── Release.java │ │ ├── RepoCollaboratorPermission.java │ │ ├── RepoCommit.java │ │ ├── RepoTopicOptions.java │ │ ├── RepoTransfer.java │ │ ├── Repository.java │ │ ├── RepositoryMeta.java │ │ ├── SearchResults.java │ │ ├── ServerVersion.java │ │ ├── StopWatch.java │ │ ├── SubmitPullReviewOptions.java │ │ ├── Tag.java │ │ ├── Team.java │ │ ├── TimelineComment.java │ │ ├── TopicName.java │ │ ├── TopicResponse.java │ │ ├── TrackedTime.java │ │ ├── TransferRepoOption.java │ │ ├── UpdateFileOptions.java │ │ ├── User.java │ │ ├── UserHeatmapData.java │ │ ├── UserSettings.java │ │ ├── UserSettingsOptions.java │ │ ├── WatchInfo.java │ │ ├── WikiCommit.java │ │ ├── WikiCommitList.java │ │ ├── WikiPage.java │ │ └── WikiPageMetaData.java └── test │ └── java │ └── io │ └── gitea │ └── api │ ├── ActivitypubApiTest.java │ ├── AdminApiTest.java │ ├── IssueApiTest.java │ ├── MiscellaneousApiTest.java │ ├── NotificationApiTest.java │ ├── OrganizationApiTest.java │ ├── PackageApiTest.java │ ├── RepositoryApiTest.java │ ├── SettingsApiTest.java │ └── UserApiTest.java └── swagger.v1.json /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # exclude jar for gradle wrapper 12 | !gradle/wrapper/*.jar 13 | 14 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 15 | hs_err_pid* 16 | 17 | # build files 18 | **/target 19 | target 20 | .gradle 21 | build 22 | 23 | # IntelliJ IDEA files 24 | *.iml 25 | /.idea/ 26 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | java-gitea-api 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | 25 | 1673555194806 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | arguments= 2 | auto.sync=false 3 | build.scans.enabled=false 4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) 5 | connection.project.dir= 6 | eclipse.preferences.version=1 7 | gradle.user.home= 8 | java.home= 9 | jvm.arguments= 10 | offline.mode=false 11 | override.workspace.settings=false 12 | show.console.view=false 13 | show.executions.view=false 14 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | # 2 | #Fri Aug 24 18:26:55 BST 2018 3 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 5 | org.eclipse.jdt.core.compiler.source=1.7 6 | eclipse.preferences.version=1 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.compliance=1.7 9 | -------------------------------------------------------------------------------- /.swagger-codegen-ignore: -------------------------------------------------------------------------------- 1 | # Swagger Codegen Ignore 2 | # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.19 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Generated by: https://github.com/swagger-api/swagger-codegen.git 3 | # 4 | language: java 5 | jdk: 6 | - openjdk8 7 | - openjdk11 8 | before_install: 9 | # ensure gradlew has proper permission 10 | - chmod a+x ./gradlew 11 | script: 12 | # test using maven 13 | - mvn test 14 | # uncomment below to test using gradle 15 | # - gradle test 16 | # uncomment below to test using sbt 17 | # - sbt test 18 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.configuration.updateBuildConfiguration": "interactive" 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Andrew Thornton 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /build.sbt: -------------------------------------------------------------------------------- 1 | lazy val root = (project in file(".")). 2 | settings( 3 | organization := "io.gitea", 4 | name := "java-gitea-api", 5 | version := "1.0.0", 6 | scalaVersion := "2.11.4", 7 | scalacOptions ++= Seq("-feature"), 8 | javacOptions in compile ++= Seq("-Xlint:deprecation"), 9 | publishArtifact in (Compile, packageDoc) := false, 10 | resolvers += Resolver.mavenLocal, 11 | libraryDependencies ++= Seq( 12 | "io.swagger" % "swagger-annotations" % "1.5.15", 13 | "com.squareup.okhttp" % "okhttp" % "2.7.5", 14 | "com.squareup.okhttp" % "logging-interceptor" % "2.7.5", 15 | "com.google.code.gson" % "gson" % "2.8.1", 16 | "org.threeten" % "threetenbp" % "1.3.5" % "compile", 17 | "io.gsonfire" % "gson-fire" % "1.8.0" % "compile", 18 | "junit" % "junit" % "4.12" % "test", 19 | "com.novocode" % "junit-interface" % "0.10" % "test" 20 | ) 21 | ) 22 | -------------------------------------------------------------------------------- /docs/APIError.md: -------------------------------------------------------------------------------- 1 | 2 | # APIError 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **message** | **String** | | [optional] 8 | **url** | **String** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/AccessToken.md: -------------------------------------------------------------------------------- 1 | 2 | # AccessToken 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **Long** | | [optional] 8 | **name** | **String** | | [optional] 9 | **sha1** | **String** | | [optional] 10 | **tokenLastEight** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/AccessTokenName.md: -------------------------------------------------------------------------------- 1 | 2 | # AccessTokenName 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ActivityPub.md: -------------------------------------------------------------------------------- 1 | 2 | # ActivityPub 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **context** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/AddCollaboratorOption.md: -------------------------------------------------------------------------------- 1 | 2 | # AddCollaboratorOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **permission** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/AddTimeOption.md: -------------------------------------------------------------------------------- 1 | 2 | # AddTimeOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **time** | **Long** | time in seconds | 9 | **userName** | **String** | User who spent the time (optional) | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/AnnotatedTag.md: -------------------------------------------------------------------------------- 1 | 2 | # AnnotatedTag 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **message** | **String** | | [optional] 8 | **object** | [**AnnotatedTagObject**](AnnotatedTagObject.md) | | [optional] 9 | **sha** | **String** | | [optional] 10 | **tag** | **String** | | [optional] 11 | **tagger** | [**CommitUser**](CommitUser.md) | | [optional] 12 | **url** | **String** | | [optional] 13 | **verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/AnnotatedTagObject.md: -------------------------------------------------------------------------------- 1 | 2 | # AnnotatedTagObject 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sha** | **String** | | [optional] 8 | **type** | **String** | | [optional] 9 | **url** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Attachment.md: -------------------------------------------------------------------------------- 1 | 2 | # Attachment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **browserDownloadUrl** | **String** | | [optional] 8 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **downloadCount** | **Long** | | [optional] 10 | **id** | **Long** | | [optional] 11 | **name** | **String** | | [optional] 12 | **size** | **Long** | | [optional] 13 | **uuid** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Branch.md: -------------------------------------------------------------------------------- 1 | 2 | # Branch 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional] 8 | **effectiveBranchProtectionName** | **String** | | [optional] 9 | **enableStatusCheck** | **Boolean** | | [optional] 10 | **name** | **String** | | [optional] 11 | **_protected** | **Boolean** | | [optional] 12 | **requiredApprovals** | **Long** | | [optional] 13 | **statusCheckContexts** | **List<String>** | | [optional] 14 | **userCanMerge** | **Boolean** | | [optional] 15 | **userCanPush** | **Boolean** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/BranchProtection.md: -------------------------------------------------------------------------------- 1 | 2 | # BranchProtection 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **approvalsWhitelistTeams** | **List<String>** | | [optional] 8 | **approvalsWhitelistUsername** | **List<String>** | | [optional] 9 | **blockOnOfficialReviewRequests** | **Boolean** | | [optional] 10 | **blockOnOutdatedBranch** | **Boolean** | | [optional] 11 | **blockOnRejectedReviews** | **Boolean** | | [optional] 12 | **branchName** | **String** | | [optional] 13 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 14 | **dismissStaleApprovals** | **Boolean** | | [optional] 15 | **enableApprovalsWhitelist** | **Boolean** | | [optional] 16 | **enableMergeWhitelist** | **Boolean** | | [optional] 17 | **enablePush** | **Boolean** | | [optional] 18 | **enablePushWhitelist** | **Boolean** | | [optional] 19 | **enableStatusCheck** | **Boolean** | | [optional] 20 | **mergeWhitelistTeams** | **List<String>** | | [optional] 21 | **mergeWhitelistUsernames** | **List<String>** | | [optional] 22 | **protectedFilePatterns** | **String** | | [optional] 23 | **pushWhitelistDeployKeys** | **Boolean** | | [optional] 24 | **pushWhitelistTeams** | **List<String>** | | [optional] 25 | **pushWhitelistUsernames** | **List<String>** | | [optional] 26 | **requireSignedCommits** | **Boolean** | | [optional] 27 | **requiredApprovals** | **Long** | | [optional] 28 | **statusCheckContexts** | **List<String>** | | [optional] 29 | **unprotectedFilePatterns** | **String** | | [optional] 30 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /docs/ChangedFile.md: -------------------------------------------------------------------------------- 1 | 2 | # ChangedFile 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **additions** | **Long** | | [optional] 8 | **changes** | **Long** | | [optional] 9 | **contentsUrl** | **String** | | [optional] 10 | **deletions** | **Long** | | [optional] 11 | **filename** | **String** | | [optional] 12 | **htmlUrl** | **String** | | [optional] 13 | **previousFilename** | **String** | | [optional] 14 | **rawUrl** | **String** | | [optional] 15 | **status** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CombinedStatus.md: -------------------------------------------------------------------------------- 1 | 2 | # CombinedStatus 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commitUrl** | **String** | | [optional] 8 | **repository** | [**Repository**](Repository.md) | | [optional] 9 | **sha** | **String** | | [optional] 10 | **state** | **String** | | [optional] 11 | **statuses** | [**List<CommitStatus>**](CommitStatus.md) | | [optional] 12 | **totalCount** | **Long** | | [optional] 13 | **url** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Comment.md: -------------------------------------------------------------------------------- 1 | 2 | # Comment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **htmlUrl** | **String** | | [optional] 10 | **id** | **Long** | | [optional] 11 | **issueUrl** | **String** | | [optional] 12 | **originalAuthor** | **String** | | [optional] 13 | **originalAuthorId** | **Long** | | [optional] 14 | **pullRequestUrl** | **String** | | [optional] 15 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 16 | **user** | [**User**](User.md) | | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/Commit.md: -------------------------------------------------------------------------------- 1 | 2 | # Commit 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**User**](User.md) | | [optional] 8 | **commit** | [**RepoCommit**](RepoCommit.md) | | [optional] 9 | **committer** | [**User**](User.md) | | [optional] 10 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **files** | [**List<CommitAffectedFiles>**](CommitAffectedFiles.md) | | [optional] 12 | **htmlUrl** | **String** | | [optional] 13 | **parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional] 14 | **sha** | **String** | | [optional] 15 | **stats** | [**CommitStats**](CommitStats.md) | | [optional] 16 | **url** | **String** | | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/CommitAffectedFiles.md: -------------------------------------------------------------------------------- 1 | 2 | # CommitAffectedFiles 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **filename** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CommitDateOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # CommitDateOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **committer** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CommitMeta.md: -------------------------------------------------------------------------------- 1 | 2 | # CommitMeta 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **sha** | **String** | | [optional] 9 | **url** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CommitStats.md: -------------------------------------------------------------------------------- 1 | 2 | # CommitStats 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **additions** | **Long** | | [optional] 8 | **deletions** | **Long** | | [optional] 9 | **total** | **Long** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CommitStatus.md: -------------------------------------------------------------------------------- 1 | 2 | # CommitStatus 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **context** | **String** | | [optional] 8 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **creator** | [**User**](User.md) | | [optional] 10 | **description** | **String** | | [optional] 11 | **id** | **Long** | | [optional] 12 | **status** | **String** | | [optional] 13 | **targetUrl** | **String** | | [optional] 14 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 15 | **url** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CommitUser.md: -------------------------------------------------------------------------------- 1 | 2 | # CommitUser 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **date** | **String** | | [optional] 8 | **email** | **String** | | [optional] 9 | **name** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ContentsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # ContentsResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **links** | [**FileLinksResponse**](FileLinksResponse.md) | | [optional] 8 | **content** | **String** | `content` is populated when `type` is `file`, otherwise null | [optional] 9 | **downloadUrl** | **String** | | [optional] 10 | **encoding** | **String** | `encoding` is populated when `type` is `file`, otherwise null | [optional] 11 | **gitUrl** | **String** | | [optional] 12 | **htmlUrl** | **String** | | [optional] 13 | **lastCommitSha** | **String** | | [optional] 14 | **name** | **String** | | [optional] 15 | **path** | **String** | | [optional] 16 | **sha** | **String** | | [optional] 17 | **size** | **Long** | | [optional] 18 | **submoduleGitUrl** | **String** | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional] 19 | **target** | **String** | `target` is populated when `type` is `symlink`, otherwise null | [optional] 20 | **type** | **String** | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional] 21 | **url** | **String** | | [optional] 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/CreateAccessTokenOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateAccessTokenOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CreateBranchProtectionOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateBranchProtectionOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **approvalsWhitelistTeams** | **List<String>** | | [optional] 8 | **approvalsWhitelistUsername** | **List<String>** | | [optional] 9 | **blockOnOfficialReviewRequests** | **Boolean** | | [optional] 10 | **blockOnOutdatedBranch** | **Boolean** | | [optional] 11 | **blockOnRejectedReviews** | **Boolean** | | [optional] 12 | **branchName** | **String** | | [optional] 13 | **dismissStaleApprovals** | **Boolean** | | [optional] 14 | **enableApprovalsWhitelist** | **Boolean** | | [optional] 15 | **enableMergeWhitelist** | **Boolean** | | [optional] 16 | **enablePush** | **Boolean** | | [optional] 17 | **enablePushWhitelist** | **Boolean** | | [optional] 18 | **enableStatusCheck** | **Boolean** | | [optional] 19 | **mergeWhitelistTeams** | **List<String>** | | [optional] 20 | **mergeWhitelistUsernames** | **List<String>** | | [optional] 21 | **protectedFilePatterns** | **String** | | [optional] 22 | **pushWhitelistDeployKeys** | **Boolean** | | [optional] 23 | **pushWhitelistTeams** | **List<String>** | | [optional] 24 | **pushWhitelistUsernames** | **List<String>** | | [optional] 25 | **requireSignedCommits** | **Boolean** | | [optional] 26 | **requiredApprovals** | **Long** | | [optional] 27 | **statusCheckContexts** | **List<String>** | | [optional] 28 | **unprotectedFilePatterns** | **String** | | [optional] 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /docs/CreateBranchRepoOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateBranchRepoOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **newBranchName** | **String** | Name of the branch to create | 8 | **oldBranchName** | **String** | Name of the old branch to create from | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CreateEmailOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateEmailOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **emails** | **List<String>** | email addresses to add | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CreateFileOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateFileOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**Identity**](Identity.md) | | [optional] 8 | **branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional] 9 | **committer** | [**Identity**](Identity.md) | | [optional] 10 | **content** | **String** | content must be base64 encoded | 11 | **dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional] 12 | **message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional] 13 | **newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional] 14 | **signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CreateForkOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateForkOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | name of the forked repository | [optional] 8 | **organization** | **String** | organization name, if forking into an organization | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CreateGPGKeyOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateGPGKeyOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **armoredPublicKey** | **String** | An armored GPG key to add | 8 | **armoredSignature** | **String** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CreateHookOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateHookOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **active** | **Boolean** | | [optional] 8 | **branchFilter** | **String** | | [optional] 9 | **config** | [**CreateHookOptionConfig**](CreateHookOptionConfig.md) | | 10 | **events** | **List<String>** | | [optional] 11 | **type** | [**TypeEnum**](#TypeEnum) | | 12 | 13 | 14 | 15 | ## Enum: TypeEnum 16 | Name | Value 17 | ---- | ----- 18 | DINGTALK | "dingtalk" 19 | DISCORD | "discord" 20 | GITEA | "gitea" 21 | GOGS | "gogs" 22 | MSTEAMS | "msteams" 23 | SLACK | "slack" 24 | TELEGRAM | "telegram" 25 | FEISHU | "feishu" 26 | WECHATWORK | "wechatwork" 27 | PACKAGIST | "packagist" 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/CreateHookOptionConfig.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateHookOptionConfig 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/CreateIssueCommentOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateIssueCommentOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CreateIssueOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateIssueOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **assignee** | **String** | deprecated | [optional] 8 | **assignees** | **List<String>** | | [optional] 9 | **body** | **String** | | [optional] 10 | **closed** | **Boolean** | | [optional] 11 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 12 | **labels** | **List<Long>** | list of label ids | [optional] 13 | **milestone** | **Long** | milestone id | [optional] 14 | **ref** | **String** | | [optional] 15 | **title** | **String** | | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CreateKeyOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateKeyOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **key** | **String** | An armored SSH key to add | 8 | **readOnly** | **Boolean** | Describe if the key has only read access or read/write | [optional] 9 | **title** | **String** | Title of the key to add | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CreateLabelOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateLabelOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **color** | **String** | | 8 | **description** | **String** | | [optional] 9 | **name** | **String** | | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CreateMilestoneOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateMilestoneOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **String** | | [optional] 8 | **dueOn** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **state** | [**StateEnum**](#StateEnum) | | [optional] 10 | **title** | **String** | | [optional] 11 | 12 | 13 | 14 | ## Enum: StateEnum 15 | Name | Value 16 | ---- | ----- 17 | OPEN | "open" 18 | CLOSED | "closed" 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/CreateOAuth2ApplicationOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateOAuth2ApplicationOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **confidentialClient** | **Boolean** | | [optional] 8 | **name** | **String** | | [optional] 9 | **redirectUris** | **List<String>** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CreateOrgOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateOrgOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **String** | | [optional] 8 | **fullName** | **String** | | [optional] 9 | **location** | **String** | | [optional] 10 | **repoAdminChangeTeamAccess** | **Boolean** | | [optional] 11 | **username** | **String** | | 12 | **visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are `public` (default), `limited` or `private` | [optional] 13 | **website** | **String** | | [optional] 14 | 15 | 16 | 17 | ## Enum: VisibilityEnum 18 | Name | Value 19 | ---- | ----- 20 | PUBLIC | "public" 21 | LIMITED | "limited" 22 | PRIVATE | "private" 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/CreatePullRequestOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreatePullRequestOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **assignee** | **String** | | [optional] 8 | **assignees** | **List<String>** | | [optional] 9 | **base** | **String** | | [optional] 10 | **body** | **String** | | [optional] 11 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 12 | **head** | **String** | | [optional] 13 | **labels** | **List<Long>** | | [optional] 14 | **milestone** | **Long** | | [optional] 15 | **title** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CreatePullReviewComment.md: -------------------------------------------------------------------------------- 1 | 2 | # CreatePullReviewComment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **newPosition** | **Long** | if comment to new file line or 0 | [optional] 9 | **oldPosition** | **Long** | if comment to old file line or 0 | [optional] 10 | **path** | **String** | the tree path | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CreatePullReviewOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # CreatePullReviewOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **comments** | [**List<CreatePullReviewComment>**](CreatePullReviewComment.md) | | [optional] 9 | **commitId** | **String** | | [optional] 10 | **event** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CreatePushMirrorOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreatePushMirrorOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **interval** | **String** | | [optional] 8 | **remoteAddress** | **String** | | [optional] 9 | **remotePassword** | **String** | | [optional] 10 | **remoteUsername** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CreateReleaseOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateReleaseOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **draft** | **Boolean** | | [optional] 9 | **name** | **String** | | [optional] 10 | **prerelease** | **Boolean** | | [optional] 11 | **tagName** | **String** | | 12 | **targetCommitish** | **String** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CreateRepoOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateRepoOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **autoInit** | **Boolean** | Whether the repository should be auto-initialized? | [optional] 8 | **defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional] 9 | **description** | **String** | Description of the repository to create | [optional] 10 | **gitignores** | **String** | Gitignores to use | [optional] 11 | **issueLabels** | **String** | Label-Set to use | [optional] 12 | **license** | **String** | License to use | [optional] 13 | **name** | **String** | Name of the repository to create | 14 | **_private** | **Boolean** | Whether the repository is private | [optional] 15 | **readme** | **String** | Readme of the repository to create | [optional] 16 | **template** | **Boolean** | Whether the repository is template | [optional] 17 | **trustModel** | [**TrustModelEnum**](#TrustModelEnum) | TrustModel of the repository | [optional] 18 | 19 | 20 | 21 | ## Enum: TrustModelEnum 22 | Name | Value 23 | ---- | ----- 24 | DEFAULT | "default" 25 | COLLABORATOR | "collaborator" 26 | COMMITTER | "committer" 27 | COLLABORATORCOMMITTER | "collaboratorcommitter" 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/CreateStatusOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateStatusOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **context** | **String** | | [optional] 8 | **description** | **String** | | [optional] 9 | **state** | **String** | | [optional] 10 | **targetUrl** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CreateTagOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateTagOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **message** | **String** | | [optional] 8 | **tagName** | **String** | | 9 | **target** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CreateTeamOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateTeamOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **canCreateOrgRepo** | **Boolean** | | [optional] 8 | **description** | **String** | | [optional] 9 | **includesAllRepositories** | **Boolean** | | [optional] 10 | **name** | **String** | | 11 | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] 12 | **units** | **List<String>** | | [optional] 13 | **unitsMap** | **Map<String, String>** | | [optional] 14 | 15 | 16 | 17 | ## Enum: PermissionEnum 18 | Name | Value 19 | ---- | ----- 20 | READ | "read" 21 | WRITE | "write" 22 | ADMIN | "admin" 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/CreateUserOption.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateUserOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **String** | | 8 | **fullName** | **String** | | [optional] 9 | **loginName** | **String** | | [optional] 10 | **mustChangePassword** | **Boolean** | | [optional] 11 | **password** | **String** | | 12 | **restricted** | **Boolean** | | [optional] 13 | **sendNotify** | **Boolean** | | [optional] 14 | **sourceId** | **Long** | | [optional] 15 | **username** | **String** | | 16 | **visibility** | **String** | | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/CreateWikiPageOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # CreateWikiPageOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **contentBase64** | **String** | content must be base64 encoded | [optional] 8 | **message** | **String** | optional commit message summarizing the change | [optional] 9 | **title** | **String** | page title. leave empty to keep unchanged | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Cron.md: -------------------------------------------------------------------------------- 1 | 2 | # Cron 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **execTimes** | **Long** | | [optional] 8 | **name** | **String** | | [optional] 9 | **next** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 10 | **prev** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **schedule** | **String** | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/DeleteEmailOption.md: -------------------------------------------------------------------------------- 1 | 2 | # DeleteEmailOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **emails** | **List<String>** | email addresses to delete | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/DeleteFileOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # DeleteFileOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**Identity**](Identity.md) | | [optional] 8 | **branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional] 9 | **committer** | [**Identity**](Identity.md) | | [optional] 10 | **dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional] 11 | **message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional] 12 | **newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional] 13 | **sha** | **String** | sha is the SHA for the file that already exists | 14 | **signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/DeployKey.md: -------------------------------------------------------------------------------- 1 | 2 | # DeployKey 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **fingerprint** | **String** | | [optional] 9 | **id** | **Long** | | [optional] 10 | **key** | **String** | | [optional] 11 | **keyId** | **Long** | | [optional] 12 | **readOnly** | **Boolean** | | [optional] 13 | **repository** | [**Repository**](Repository.md) | | [optional] 14 | **title** | **String** | | [optional] 15 | **url** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/DismissPullReviewOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # DismissPullReviewOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **message** | **String** | | [optional] 8 | **priors** | **Boolean** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EditAttachmentOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # EditAttachmentOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/EditBranchProtectionOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditBranchProtectionOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **approvalsWhitelistTeams** | **List<String>** | | [optional] 8 | **approvalsWhitelistUsername** | **List<String>** | | [optional] 9 | **blockOnOfficialReviewRequests** | **Boolean** | | [optional] 10 | **blockOnOutdatedBranch** | **Boolean** | | [optional] 11 | **blockOnRejectedReviews** | **Boolean** | | [optional] 12 | **dismissStaleApprovals** | **Boolean** | | [optional] 13 | **enableApprovalsWhitelist** | **Boolean** | | [optional] 14 | **enableMergeWhitelist** | **Boolean** | | [optional] 15 | **enablePush** | **Boolean** | | [optional] 16 | **enablePushWhitelist** | **Boolean** | | [optional] 17 | **enableStatusCheck** | **Boolean** | | [optional] 18 | **mergeWhitelistTeams** | **List<String>** | | [optional] 19 | **mergeWhitelistUsernames** | **List<String>** | | [optional] 20 | **protectedFilePatterns** | **String** | | [optional] 21 | **pushWhitelistDeployKeys** | **Boolean** | | [optional] 22 | **pushWhitelistTeams** | **List<String>** | | [optional] 23 | **pushWhitelistUsernames** | **List<String>** | | [optional] 24 | **requireSignedCommits** | **Boolean** | | [optional] 25 | **requiredApprovals** | **Long** | | [optional] 26 | **statusCheckContexts** | **List<String>** | | [optional] 27 | **unprotectedFilePatterns** | **String** | | [optional] 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/EditDeadlineOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditDeadlineOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/EditGitHookOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditGitHookOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **content** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/EditHookOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditHookOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **active** | **Boolean** | | [optional] 8 | **branchFilter** | **String** | | [optional] 9 | **config** | **Map<String, String>** | | [optional] 10 | **events** | **List<String>** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/EditIssueCommentOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditIssueCommentOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/EditIssueOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditIssueOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **assignee** | **String** | deprecated | [optional] 8 | **assignees** | **List<String>** | | [optional] 9 | **body** | **String** | | [optional] 10 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **milestone** | **Long** | | [optional] 12 | **ref** | **String** | | [optional] 13 | **state** | **String** | | [optional] 14 | **title** | **String** | | [optional] 15 | **unsetDueDate** | **Boolean** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/EditLabelOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditLabelOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **color** | **String** | | [optional] 8 | **description** | **String** | | [optional] 9 | **name** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/EditMilestoneOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditMilestoneOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **String** | | [optional] 8 | **dueOn** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **state** | **String** | | [optional] 10 | **title** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/EditOrgOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditOrgOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **String** | | [optional] 8 | **fullName** | **String** | | [optional] 9 | **location** | **String** | | [optional] 10 | **repoAdminChangeTeamAccess** | **Boolean** | | [optional] 11 | **visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are `public`, `limited` or `private` | [optional] 12 | **website** | **String** | | [optional] 13 | 14 | 15 | 16 | ## Enum: VisibilityEnum 17 | Name | Value 18 | ---- | ----- 19 | PUBLIC | "public" 20 | LIMITED | "limited" 21 | PRIVATE | "private" 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/EditPullRequestOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditPullRequestOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **allowMaintainerEdit** | **Boolean** | | [optional] 8 | **assignee** | **String** | | [optional] 9 | **assignees** | **List<String>** | | [optional] 10 | **base** | **String** | | [optional] 11 | **body** | **String** | | [optional] 12 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 13 | **labels** | **List<Long>** | | [optional] 14 | **milestone** | **Long** | | [optional] 15 | **state** | **String** | | [optional] 16 | **title** | **String** | | [optional] 17 | **unsetDueDate** | **Boolean** | | [optional] 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/EditReactionOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditReactionOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **content** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/EditReleaseOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditReleaseOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **draft** | **Boolean** | | [optional] 9 | **name** | **String** | | [optional] 10 | **prerelease** | **Boolean** | | [optional] 11 | **tagName** | **String** | | [optional] 12 | **targetCommitish** | **String** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/EditTeamOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditTeamOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **canCreateOrgRepo** | **Boolean** | | [optional] 8 | **description** | **String** | | [optional] 9 | **includesAllRepositories** | **Boolean** | | [optional] 10 | **name** | **String** | | 11 | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] 12 | **units** | **List<String>** | | [optional] 13 | **unitsMap** | **Map<String, String>** | | [optional] 14 | 15 | 16 | 17 | ## Enum: PermissionEnum 18 | Name | Value 19 | ---- | ----- 20 | READ | "read" 21 | WRITE | "write" 22 | ADMIN | "admin" 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/EditUserOption.md: -------------------------------------------------------------------------------- 1 | 2 | # EditUserOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **active** | **Boolean** | | [optional] 8 | **admin** | **Boolean** | | [optional] 9 | **allowCreateOrganization** | **Boolean** | | [optional] 10 | **allowGitHook** | **Boolean** | | [optional] 11 | **allowImportLocal** | **Boolean** | | [optional] 12 | **description** | **String** | | [optional] 13 | **email** | **String** | | [optional] 14 | **fullName** | **String** | | [optional] 15 | **location** | **String** | | [optional] 16 | **loginName** | **String** | | 17 | **maxRepoCreation** | **Long** | | [optional] 18 | **mustChangePassword** | **Boolean** | | [optional] 19 | **password** | **String** | | [optional] 20 | **prohibitLogin** | **Boolean** | | [optional] 21 | **restricted** | **Boolean** | | [optional] 22 | **sourceId** | **Long** | | 23 | **visibility** | **String** | | [optional] 24 | **website** | **String** | | [optional] 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/Email.md: -------------------------------------------------------------------------------- 1 | 2 | # Email 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **String** | | [optional] 8 | **primary** | **Boolean** | | [optional] 9 | **verified** | **Boolean** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ExternalTracker.md: -------------------------------------------------------------------------------- 1 | 2 | # ExternalTracker 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **externalTrackerFormat** | **String** | External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. | [optional] 8 | **externalTrackerRegexpPattern** | **String** | External Issue Tracker issue regular expression | [optional] 9 | **externalTrackerStyle** | **String** | External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` | [optional] 10 | **externalTrackerUrl** | **String** | URL of external issue tracker. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/ExternalWiki.md: -------------------------------------------------------------------------------- 1 | 2 | # ExternalWiki 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **externalWikiUrl** | **String** | URL of external wiki. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/FileCommitResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # FileCommitResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**CommitUser**](CommitUser.md) | | [optional] 8 | **committer** | [**CommitUser**](CommitUser.md) | | [optional] 9 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 10 | **htmlUrl** | **String** | | [optional] 11 | **message** | **String** | | [optional] 12 | **parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional] 13 | **sha** | **String** | | [optional] 14 | **tree** | [**CommitMeta**](CommitMeta.md) | | [optional] 15 | **url** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/FileDeleteResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # FileDeleteResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional] 8 | **content** | **Object** | | [optional] 9 | **verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/FileLinksResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # FileLinksResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **git** | **String** | | [optional] 8 | **html** | **String** | | [optional] 9 | **self** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/FileResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # FileResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional] 8 | **content** | [**ContentsResponse**](ContentsResponse.md) | | [optional] 9 | **verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/GPGKey.md: -------------------------------------------------------------------------------- 1 | 2 | # GPGKey 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **canCertify** | **Boolean** | | [optional] 8 | **canEncryptComms** | **Boolean** | | [optional] 9 | **canEncryptStorage** | **Boolean** | | [optional] 10 | **canSign** | **Boolean** | | [optional] 11 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 12 | **emails** | [**List<GPGKeyEmail>**](GPGKeyEmail.md) | | [optional] 13 | **expiresAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 14 | **id** | **Long** | | [optional] 15 | **keyId** | **String** | | [optional] 16 | **primaryKeyId** | **String** | | [optional] 17 | **publicKey** | **String** | | [optional] 18 | **subkeys** | [**List<GPGKey>**](GPGKey.md) | | [optional] 19 | **verified** | **Boolean** | | [optional] 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/GPGKeyEmail.md: -------------------------------------------------------------------------------- 1 | 2 | # GPGKeyEmail 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **String** | | [optional] 8 | **verified** | **Boolean** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/GeneralAPISettings.md: -------------------------------------------------------------------------------- 1 | 2 | # GeneralAPISettings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **defaultGitTreesPerPage** | **Long** | | [optional] 8 | **defaultMaxBlobSize** | **Long** | | [optional] 9 | **defaultPagingNum** | **Long** | | [optional] 10 | **maxResponseItems** | **Long** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/GeneralAttachmentSettings.md: -------------------------------------------------------------------------------- 1 | 2 | # GeneralAttachmentSettings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **allowedTypes** | **String** | | [optional] 8 | **enabled** | **Boolean** | | [optional] 9 | **maxFiles** | **Long** | | [optional] 10 | **maxSize** | **Long** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/GeneralRepoSettings.md: -------------------------------------------------------------------------------- 1 | 2 | # GeneralRepoSettings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **httpGitDisabled** | **Boolean** | | [optional] 8 | **lfsDisabled** | **Boolean** | | [optional] 9 | **migrationsDisabled** | **Boolean** | | [optional] 10 | **mirrorsDisabled** | **Boolean** | | [optional] 11 | **starsDisabled** | **Boolean** | | [optional] 12 | **timeTrackingDisabled** | **Boolean** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/GeneralUISettings.md: -------------------------------------------------------------------------------- 1 | 2 | # GeneralUISettings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **allowedReactions** | **List<String>** | | [optional] 8 | **customEmojis** | **List<String>** | | [optional] 9 | **defaultTheme** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/GenerateRepoOption.md: -------------------------------------------------------------------------------- 1 | 2 | # GenerateRepoOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **avatar** | **Boolean** | include avatar of the template repo | [optional] 8 | **defaultBranch** | **String** | Default branch of the new repository | [optional] 9 | **description** | **String** | Description of the repository to create | [optional] 10 | **gitContent** | **Boolean** | include git content of default branch in template repo | [optional] 11 | **gitHooks** | **Boolean** | include git hooks in template repo | [optional] 12 | **labels** | **Boolean** | include labels in template repo | [optional] 13 | **name** | **String** | Name of the repository to create | 14 | **owner** | **String** | The organization or person who will own the new repository | 15 | **_private** | **Boolean** | Whether the repository is private | [optional] 16 | **topics** | **Boolean** | include topics in template repo | [optional] 17 | **webhooks** | **Boolean** | include webhooks in template repo | [optional] 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/GitBlobResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # GitBlobResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **content** | **String** | | [optional] 8 | **encoding** | **String** | | [optional] 9 | **sha** | **String** | | [optional] 10 | **size** | **Long** | | [optional] 11 | **url** | **String** | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/GitEntry.md: -------------------------------------------------------------------------------- 1 | 2 | # GitEntry 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **mode** | **String** | | [optional] 8 | **path** | **String** | | [optional] 9 | **sha** | **String** | | [optional] 10 | **size** | **Long** | | [optional] 11 | **type** | **String** | | [optional] 12 | **url** | **String** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/GitHook.md: -------------------------------------------------------------------------------- 1 | 2 | # GitHook 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **content** | **String** | | [optional] 8 | **isActive** | **Boolean** | | [optional] 9 | **name** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/GitObject.md: -------------------------------------------------------------------------------- 1 | 2 | # GitObject 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sha** | **String** | | [optional] 8 | **type** | **String** | | [optional] 9 | **url** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/GitTreeResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # GitTreeResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **page** | **Long** | | [optional] 8 | **sha** | **String** | | [optional] 9 | **totalCount** | **Long** | | [optional] 10 | **tree** | [**List<GitEntry>**](GitEntry.md) | | [optional] 11 | **truncated** | **Boolean** | | [optional] 12 | **url** | **String** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Hook.md: -------------------------------------------------------------------------------- 1 | 2 | # Hook 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **active** | **Boolean** | | [optional] 8 | **config** | **Map<String, String>** | | [optional] 9 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 10 | **events** | **List<String>** | | [optional] 11 | **id** | **Long** | | [optional] 12 | **type** | **String** | | [optional] 13 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Identity.md: -------------------------------------------------------------------------------- 1 | 2 | # Identity 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **String** | | [optional] 8 | **name** | **String** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InlineResponse200.md: -------------------------------------------------------------------------------- 1 | 2 | # InlineResponse200 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **data** | [**List<Team>**](Team.md) | | [optional] 8 | **ok** | **Boolean** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InlineResponse2001.md: -------------------------------------------------------------------------------- 1 | 2 | # InlineResponse2001 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **data** | [**List<User>**](User.md) | | [optional] 8 | **ok** | **Boolean** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InternalTracker.md: -------------------------------------------------------------------------------- 1 | 2 | # InternalTracker 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **allowOnlyContributorsToTrackTime** | **Boolean** | Let only contributors track time (Built-in issue tracker) | [optional] 8 | **enableIssueDependencies** | **Boolean** | Enable dependencies for issues and pull requests (Built-in issue tracker) | [optional] 9 | **enableTimeTracker** | **Boolean** | Enable time tracking (Built-in issue tracker) | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Issue.md: -------------------------------------------------------------------------------- 1 | 2 | # Issue 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **assignee** | [**User**](User.md) | | [optional] 8 | **assignees** | [**List<User>**](User.md) | | [optional] 9 | **body** | **String** | | [optional] 10 | **closedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **comments** | **Long** | | [optional] 12 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 13 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 14 | **htmlUrl** | **String** | | [optional] 15 | **id** | **Long** | | [optional] 16 | **isLocked** | **Boolean** | | [optional] 17 | **labels** | [**List<Label>**](Label.md) | | [optional] 18 | **milestone** | [**Milestone**](Milestone.md) | | [optional] 19 | **number** | **Long** | | [optional] 20 | **originalAuthor** | **String** | | [optional] 21 | **originalAuthorId** | **Long** | | [optional] 22 | **pullRequest** | [**PullRequestMeta**](PullRequestMeta.md) | | [optional] 23 | **ref** | **String** | | [optional] 24 | **repository** | [**RepositoryMeta**](RepositoryMeta.md) | | [optional] 25 | **state** | **String** | | [optional] 26 | **title** | **String** | | [optional] 27 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 28 | **url** | **String** | | [optional] 29 | **user** | [**User**](User.md) | | [optional] 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/IssueDeadline.md: -------------------------------------------------------------------------------- 1 | 2 | # IssueDeadline 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/IssueFormField.md: -------------------------------------------------------------------------------- 1 | 2 | # IssueFormField 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **attributes** | **Map<String, Object>** | | [optional] 8 | **id** | **String** | | [optional] 9 | **type** | **String** | | [optional] 10 | **validations** | **Map<String, Object>** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/IssueLabelsOption.md: -------------------------------------------------------------------------------- 1 | 2 | # IssueLabelsOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **labels** | **List<Long>** | list of label IDs | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/IssueTemplate.md: -------------------------------------------------------------------------------- 1 | 2 | # IssueTemplate 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **about** | **String** | | [optional] 8 | **body** | [**List<IssueFormField>**](IssueFormField.md) | | [optional] 9 | **content** | **String** | | [optional] 10 | **fileName** | **String** | | [optional] 11 | **labels** | [**IssueTemplateLabels**](IssueTemplateLabels.md) | | [optional] 12 | **name** | **String** | | [optional] 13 | **ref** | **String** | | [optional] 14 | **title** | **String** | | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/IssueTemplateLabels.md: -------------------------------------------------------------------------------- 1 | 2 | # IssueTemplateLabels 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/Label.md: -------------------------------------------------------------------------------- 1 | 2 | # Label 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **color** | **String** | | [optional] 8 | **description** | **String** | | [optional] 9 | **id** | **Long** | | [optional] 10 | **name** | **String** | | [optional] 11 | **url** | **String** | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/MarkdownOption.md: -------------------------------------------------------------------------------- 1 | 2 | # MarkdownOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **context** | **String** | Context to render in: body | [optional] 8 | **mode** | **String** | Mode to render in: body | [optional] 9 | **text** | **String** | Text markdown to render in: body | [optional] 10 | **wiki** | **Boolean** | Is it a wiki page ? in: body | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/MergePullRequestOption.md: -------------------------------------------------------------------------------- 1 | 2 | # MergePullRequestOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **_do** | [**DoEnum**](#DoEnum) | | 8 | **mergeCommitID** | **String** | | [optional] 9 | **mergeMessageField** | **String** | | [optional] 10 | **mergeTitleField** | **String** | | [optional] 11 | **deleteBranchAfterMerge** | **Boolean** | | [optional] 12 | **forceMerge** | **Boolean** | | [optional] 13 | **headCommitId** | **String** | | [optional] 14 | **mergeWhenChecksSucceed** | **Boolean** | | [optional] 15 | 16 | 17 | 18 | ## Enum: DoEnum 19 | Name | Value 20 | ---- | ----- 21 | MERGE | "merge" 22 | REBASE | "rebase" 23 | REBASE_MERGE | "rebase-merge" 24 | SQUASH | "squash" 25 | MANUALLY_MERGED | "manually-merged" 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/MigrateRepoForm.md: -------------------------------------------------------------------------------- 1 | 2 | # MigrateRepoForm 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **authPassword** | **String** | | [optional] 8 | **authToken** | **String** | | [optional] 9 | **authUsername** | **String** | | [optional] 10 | **cloneAddr** | **String** | | 11 | **description** | **String** | | [optional] 12 | **issues** | **Boolean** | | [optional] 13 | **labels** | **Boolean** | | [optional] 14 | **lfs** | **Boolean** | | [optional] 15 | **lfsEndpoint** | **String** | | [optional] 16 | **milestones** | **Boolean** | | [optional] 17 | **mirror** | **Boolean** | | [optional] 18 | **mirrorInterval** | **String** | | [optional] 19 | **_private** | **Boolean** | | [optional] 20 | **pullRequests** | **Boolean** | | [optional] 21 | **releases** | **Boolean** | | [optional] 22 | **repoName** | **String** | | 23 | **service** | **Integer** | | [optional] 24 | **uid** | **Long** | | 25 | **wiki** | **Boolean** | | [optional] 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/MigrateRepoOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # MigrateRepoOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **authPassword** | **String** | | [optional] 8 | **authToken** | **String** | | [optional] 9 | **authUsername** | **String** | | [optional] 10 | **cloneAddr** | **String** | | 11 | **description** | **String** | | [optional] 12 | **issues** | **Boolean** | | [optional] 13 | **labels** | **Boolean** | | [optional] 14 | **lfs** | **Boolean** | | [optional] 15 | **lfsEndpoint** | **String** | | [optional] 16 | **milestones** | **Boolean** | | [optional] 17 | **mirror** | **Boolean** | | [optional] 18 | **mirrorInterval** | **String** | | [optional] 19 | **_private** | **Boolean** | | [optional] 20 | **pullRequests** | **Boolean** | | [optional] 21 | **releases** | **Boolean** | | [optional] 22 | **repoName** | **String** | | 23 | **repoOwner** | **String** | Name of User or Organisation who will own Repo after migration | [optional] 24 | **service** | [**ServiceEnum**](#ServiceEnum) | | [optional] 25 | **uid** | **Long** | deprecated (only for backwards compatibility) | [optional] 26 | **wiki** | **Boolean** | | [optional] 27 | 28 | 29 | 30 | ## Enum: ServiceEnum 31 | Name | Value 32 | ---- | ----- 33 | GIT | "git" 34 | GITHUB | "github" 35 | GITEA | "gitea" 36 | GITLAB | "gitlab" 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /docs/Milestone.md: -------------------------------------------------------------------------------- 1 | 2 | # Milestone 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **closedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **closedIssues** | **Long** | | [optional] 9 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 10 | **description** | **String** | | [optional] 11 | **dueOn** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 12 | **id** | **Long** | | [optional] 13 | **openIssues** | **Long** | | [optional] 14 | **state** | **String** | | [optional] 15 | **title** | **String** | | [optional] 16 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/ModelPackage.md: -------------------------------------------------------------------------------- 1 | 2 | # ModelPackage 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **creator** | [**User**](User.md) | | [optional] 9 | **id** | **Long** | | [optional] 10 | **name** | **String** | | [optional] 11 | **owner** | [**User**](User.md) | | [optional] 12 | **repository** | [**Repository**](Repository.md) | | [optional] 13 | **type** | **String** | | [optional] 14 | **version** | **String** | | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/NodeInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # NodeInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **metadata** | **Object** | | [optional] 8 | **openRegistrations** | **Boolean** | | [optional] 9 | **protocols** | **List<String>** | | [optional] 10 | **services** | [**NodeInfoServices**](NodeInfoServices.md) | | [optional] 11 | **software** | [**NodeInfoSoftware**](NodeInfoSoftware.md) | | [optional] 12 | **usage** | [**NodeInfoUsage**](NodeInfoUsage.md) | | [optional] 13 | **version** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/NodeInfoServices.md: -------------------------------------------------------------------------------- 1 | 2 | # NodeInfoServices 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **inbound** | **List<String>** | | [optional] 8 | **outbound** | **List<String>** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/NodeInfoSoftware.md: -------------------------------------------------------------------------------- 1 | 2 | # NodeInfoSoftware 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **homepage** | **String** | | [optional] 8 | **name** | **String** | | [optional] 9 | **repository** | **String** | | [optional] 10 | **version** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/NodeInfoUsage.md: -------------------------------------------------------------------------------- 1 | 2 | # NodeInfoUsage 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **localComments** | **Long** | | [optional] 8 | **localPosts** | **Long** | | [optional] 9 | **users** | [**NodeInfoUsageUsers**](NodeInfoUsageUsers.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/NodeInfoUsageUsers.md: -------------------------------------------------------------------------------- 1 | 2 | # NodeInfoUsageUsers 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **activeHalfyear** | **Long** | | [optional] 8 | **activeMonth** | **Long** | | [optional] 9 | **total** | **Long** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Note.md: -------------------------------------------------------------------------------- 1 | 2 | # Note 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commit** | [**Commit**](Commit.md) | | [optional] 8 | **message** | **String** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/NotificationCount.md: -------------------------------------------------------------------------------- 1 | 2 | # NotificationCount 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **_new** | **Long** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/NotificationSubject.md: -------------------------------------------------------------------------------- 1 | 2 | # NotificationSubject 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **htmlUrl** | **String** | | [optional] 8 | **latestCommentHtmlUrl** | **String** | | [optional] 9 | **latestCommentUrl** | **String** | | [optional] 10 | **state** | **String** | | [optional] 11 | **title** | **String** | | [optional] 12 | **type** | **String** | | [optional] 13 | **url** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/NotificationThread.md: -------------------------------------------------------------------------------- 1 | 2 | # NotificationThread 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **Long** | | [optional] 8 | **pinned** | **Boolean** | | [optional] 9 | **repository** | [**Repository**](Repository.md) | | [optional] 10 | **subject** | [**NotificationSubject**](NotificationSubject.md) | | [optional] 11 | **unread** | **Boolean** | | [optional] 12 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 13 | **url** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/OAuth2Application.md: -------------------------------------------------------------------------------- 1 | 2 | # OAuth2Application 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **clientId** | **String** | | [optional] 8 | **clientSecret** | **String** | | [optional] 9 | **confidentialClient** | **Boolean** | | [optional] 10 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **id** | **Long** | | [optional] 12 | **name** | **String** | | [optional] 13 | **redirectUris** | **List<String>** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Organization.md: -------------------------------------------------------------------------------- 1 | 2 | # Organization 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **avatarUrl** | **String** | | [optional] 8 | **description** | **String** | | [optional] 9 | **fullName** | **String** | | [optional] 10 | **id** | **Long** | | [optional] 11 | **location** | **String** | | [optional] 12 | **name** | **String** | | [optional] 13 | **repoAdminChangeTeamAccess** | **Boolean** | | [optional] 14 | **username** | **String** | deprecated | [optional] 15 | **visibility** | **String** | | [optional] 16 | **website** | **String** | | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/OrganizationPermissions.md: -------------------------------------------------------------------------------- 1 | 2 | # OrganizationPermissions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **canCreateRepository** | **Boolean** | | [optional] 8 | **canRead** | **Boolean** | | [optional] 9 | **canWrite** | **Boolean** | | [optional] 10 | **isAdmin** | **Boolean** | | [optional] 11 | **isOwner** | **Boolean** | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PRBranchInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # PRBranchInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **label** | **String** | | [optional] 8 | **ref** | **String** | | [optional] 9 | **repo** | [**Repository**](Repository.md) | | [optional] 10 | **repoId** | **Long** | | [optional] 11 | **sha** | **String** | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PackageFile.md: -------------------------------------------------------------------------------- 1 | 2 | # PackageFile 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **size** | **Long** | | [optional] 8 | **id** | **Long** | | [optional] 9 | **md5** | **String** | | [optional] 10 | **name** | **String** | | [optional] 11 | **sha1** | **String** | | [optional] 12 | **sha256** | **String** | | [optional] 13 | **sha512** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/PayloadCommit.md: -------------------------------------------------------------------------------- 1 | 2 | # PayloadCommit 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **added** | **List<String>** | | [optional] 8 | **author** | [**PayloadUser**](PayloadUser.md) | | [optional] 9 | **committer** | [**PayloadUser**](PayloadUser.md) | | [optional] 10 | **id** | **String** | sha1 hash of the commit | [optional] 11 | **message** | **String** | | [optional] 12 | **modified** | **List<String>** | | [optional] 13 | **removed** | **List<String>** | | [optional] 14 | **timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 15 | **url** | **String** | | [optional] 16 | **verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/PayloadCommitVerification.md: -------------------------------------------------------------------------------- 1 | 2 | # PayloadCommitVerification 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **payload** | **String** | | [optional] 8 | **reason** | **String** | | [optional] 9 | **signature** | **String** | | [optional] 10 | **signer** | [**PayloadUser**](PayloadUser.md) | | [optional] 11 | **verified** | **Boolean** | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PayloadUser.md: -------------------------------------------------------------------------------- 1 | 2 | # PayloadUser 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **String** | | [optional] 8 | **name** | **String** | Full name of the commit author | [optional] 9 | **username** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Permission.md: -------------------------------------------------------------------------------- 1 | 2 | # Permission 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **admin** | **Boolean** | | [optional] 8 | **pull** | **Boolean** | | [optional] 9 | **push** | **Boolean** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/PublicKey.md: -------------------------------------------------------------------------------- 1 | 2 | # PublicKey 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **fingerprint** | **String** | | [optional] 9 | **id** | **Long** | | [optional] 10 | **key** | **String** | | [optional] 11 | **keyType** | **String** | | [optional] 12 | **readOnly** | **Boolean** | | [optional] 13 | **title** | **String** | | [optional] 14 | **url** | **String** | | [optional] 15 | **user** | [**User**](User.md) | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/PullRequest.md: -------------------------------------------------------------------------------- 1 | 2 | # PullRequest 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **allowMaintainerEdit** | **Boolean** | | [optional] 8 | **assignee** | [**User**](User.md) | | [optional] 9 | **assignees** | [**List<User>**](User.md) | | [optional] 10 | **base** | [**PRBranchInfo**](PRBranchInfo.md) | | [optional] 11 | **body** | **String** | | [optional] 12 | **closedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 13 | **comments** | **Long** | | [optional] 14 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 15 | **diffUrl** | **String** | | [optional] 16 | **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 17 | **head** | [**PRBranchInfo**](PRBranchInfo.md) | | [optional] 18 | **htmlUrl** | **String** | | [optional] 19 | **id** | **Long** | | [optional] 20 | **isLocked** | **Boolean** | | [optional] 21 | **labels** | [**List<Label>**](Label.md) | | [optional] 22 | **mergeBase** | **String** | | [optional] 23 | **mergeCommitSha** | **String** | | [optional] 24 | **mergeable** | **Boolean** | | [optional] 25 | **merged** | **Boolean** | | [optional] 26 | **mergedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 27 | **mergedBy** | [**User**](User.md) | | [optional] 28 | **milestone** | [**Milestone**](Milestone.md) | | [optional] 29 | **number** | **Long** | | [optional] 30 | **patchUrl** | **String** | | [optional] 31 | **state** | **String** | | [optional] 32 | **title** | **String** | | [optional] 33 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 34 | **url** | **String** | | [optional] 35 | **user** | [**User**](User.md) | | [optional] 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /docs/PullRequestMeta.md: -------------------------------------------------------------------------------- 1 | 2 | # PullRequestMeta 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **merged** | **Boolean** | | [optional] 8 | **mergedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/PullReview.md: -------------------------------------------------------------------------------- 1 | 2 | # PullReview 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **commentsCount** | **Long** | | [optional] 9 | **commitId** | **String** | | [optional] 10 | **dismissed** | **Boolean** | | [optional] 11 | **htmlUrl** | **String** | | [optional] 12 | **id** | **Long** | | [optional] 13 | **official** | **Boolean** | | [optional] 14 | **pullRequestUrl** | **String** | | [optional] 15 | **stale** | **Boolean** | | [optional] 16 | **state** | **String** | | [optional] 17 | **submittedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 18 | **team** | [**Team**](Team.md) | | [optional] 19 | **user** | [**User**](User.md) | | [optional] 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/PullReviewComment.md: -------------------------------------------------------------------------------- 1 | 2 | # PullReviewComment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **commitId** | **String** | | [optional] 9 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 10 | **diffHunk** | **String** | | [optional] 11 | **htmlUrl** | **String** | | [optional] 12 | **id** | **Long** | | [optional] 13 | **originalCommitId** | **String** | | [optional] 14 | **originalPosition** | **Integer** | | [optional] 15 | **path** | **String** | | [optional] 16 | **position** | **Integer** | | [optional] 17 | **pullRequestReviewId** | **Long** | | [optional] 18 | **pullRequestUrl** | **String** | | [optional] 19 | **resolver** | [**User**](User.md) | | [optional] 20 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 21 | **user** | [**User**](User.md) | | [optional] 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/PullReviewRequestOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # PullReviewRequestOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **reviewers** | **List<String>** | | [optional] 8 | **teamReviewers** | **List<String>** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/PushMirror.md: -------------------------------------------------------------------------------- 1 | 2 | # PushMirror 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **created** | **String** | | [optional] 8 | **interval** | **String** | | [optional] 9 | **lastError** | **String** | | [optional] 10 | **lastUpdate** | **String** | | [optional] 11 | **remoteAddress** | **String** | | [optional] 12 | **remoteName** | **String** | | [optional] 13 | **repoName** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Reaction.md: -------------------------------------------------------------------------------- 1 | 2 | # Reaction 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **content** | **String** | | [optional] 8 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **user** | [**User**](User.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Reference.md: -------------------------------------------------------------------------------- 1 | 2 | # Reference 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **object** | [**GitObject**](GitObject.md) | | [optional] 8 | **ref** | **String** | | [optional] 9 | **url** | **String** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Release.md: -------------------------------------------------------------------------------- 1 | 2 | # Release 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **assets** | [**List<Attachment>**](Attachment.md) | | [optional] 8 | **author** | [**User**](User.md) | | [optional] 9 | **body** | **String** | | [optional] 10 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **draft** | **Boolean** | | [optional] 12 | **htmlUrl** | **String** | | [optional] 13 | **id** | **Long** | | [optional] 14 | **name** | **String** | | [optional] 15 | **prerelease** | **Boolean** | | [optional] 16 | **publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 17 | **tagName** | **String** | | [optional] 18 | **tarballUrl** | **String** | | [optional] 19 | **targetCommitish** | **String** | | [optional] 20 | **url** | **String** | | [optional] 21 | **zipballUrl** | **String** | | [optional] 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/RepoCollaboratorPermission.md: -------------------------------------------------------------------------------- 1 | 2 | # RepoCollaboratorPermission 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **permission** | **String** | | [optional] 8 | **roleName** | **String** | | [optional] 9 | **user** | [**User**](User.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/RepoCommit.md: -------------------------------------------------------------------------------- 1 | 2 | # RepoCommit 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**CommitUser**](CommitUser.md) | | [optional] 8 | **committer** | [**CommitUser**](CommitUser.md) | | [optional] 9 | **message** | **String** | | [optional] 10 | **tree** | [**CommitMeta**](CommitMeta.md) | | [optional] 11 | **url** | **String** | | [optional] 12 | **verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/RepoTopicOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # RepoTopicOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **topics** | **List<String>** | list of topic names | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/RepoTransfer.md: -------------------------------------------------------------------------------- 1 | 2 | # RepoTransfer 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **doer** | [**User**](User.md) | | [optional] 8 | **recipient** | [**User**](User.md) | | [optional] 9 | **teams** | [**List<Team>**](Team.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Repository.md: -------------------------------------------------------------------------------- 1 | 2 | # Repository 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **allowMergeCommits** | **Boolean** | | [optional] 8 | **allowRebase** | **Boolean** | | [optional] 9 | **allowRebaseExplicit** | **Boolean** | | [optional] 10 | **allowRebaseUpdate** | **Boolean** | | [optional] 11 | **allowSquashMerge** | **Boolean** | | [optional] 12 | **archived** | **Boolean** | | [optional] 13 | **avatarUrl** | **String** | | [optional] 14 | **cloneUrl** | **String** | | [optional] 15 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 16 | **defaultBranch** | **String** | | [optional] 17 | **defaultDeleteBranchAfterMerge** | **Boolean** | | [optional] 18 | **defaultMergeStyle** | **String** | | [optional] 19 | **description** | **String** | | [optional] 20 | **empty** | **Boolean** | | [optional] 21 | **externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional] 22 | **externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional] 23 | **fork** | **Boolean** | | [optional] 24 | **forksCount** | **Long** | | [optional] 25 | **fullName** | **String** | | [optional] 26 | **hasIssues** | **Boolean** | | [optional] 27 | **hasProjects** | **Boolean** | | [optional] 28 | **hasPullRequests** | **Boolean** | | [optional] 29 | **hasWiki** | **Boolean** | | [optional] 30 | **htmlUrl** | **String** | | [optional] 31 | **id** | **Long** | | [optional] 32 | **ignoreWhitespaceConflicts** | **Boolean** | | [optional] 33 | **internal** | **Boolean** | | [optional] 34 | **internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional] 35 | **language** | **String** | | [optional] 36 | **languagesUrl** | **String** | | [optional] 37 | **mirror** | **Boolean** | | [optional] 38 | **mirrorInterval** | **String** | | [optional] 39 | **mirrorUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 40 | **name** | **String** | | [optional] 41 | **openIssuesCount** | **Long** | | [optional] 42 | **openPrCounter** | **Long** | | [optional] 43 | **originalUrl** | **String** | | [optional] 44 | **owner** | [**User**](User.md) | | [optional] 45 | **parent** | [**Repository**](Repository.md) | | [optional] 46 | **permissions** | [**Permission**](Permission.md) | | [optional] 47 | **_private** | **Boolean** | | [optional] 48 | **releaseCounter** | **Long** | | [optional] 49 | **repoTransfer** | [**RepoTransfer**](RepoTransfer.md) | | [optional] 50 | **size** | **Long** | | [optional] 51 | **sshUrl** | **String** | | [optional] 52 | **starsCount** | **Long** | | [optional] 53 | **template** | **Boolean** | | [optional] 54 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 55 | **watchersCount** | **Long** | | [optional] 56 | **website** | **String** | | [optional] 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /docs/RepositoryMeta.md: -------------------------------------------------------------------------------- 1 | 2 | # RepositoryMeta 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **fullName** | **String** | | [optional] 8 | **id** | **Long** | | [optional] 9 | **name** | **String** | | [optional] 10 | **owner** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/SearchResults.md: -------------------------------------------------------------------------------- 1 | 2 | # SearchResults 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **data** | [**List<Repository>**](Repository.md) | | [optional] 8 | **ok** | **Boolean** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ServerVersion.md: -------------------------------------------------------------------------------- 1 | 2 | # ServerVersion 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **version** | **String** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Status.md: -------------------------------------------------------------------------------- 1 | 2 | # Status 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **context** | **String** | | [optional] 8 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 9 | **creator** | [**User**](User.md) | | [optional] 10 | **description** | **String** | | [optional] 11 | **id** | **Long** | | [optional] 12 | **status** | **String** | | [optional] 13 | **targetUrl** | **String** | | [optional] 14 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 15 | **url** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/StopWatch.md: -------------------------------------------------------------------------------- 1 | 2 | # StopWatch 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **duration** | **String** | | [optional] 9 | **issueIndex** | **Long** | | [optional] 10 | **issueTitle** | **String** | | [optional] 11 | **repoName** | **String** | | [optional] 12 | **repoOwnerName** | **String** | | [optional] 13 | **seconds** | **Long** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/SubmitPullReviewOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # SubmitPullReviewOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **body** | **String** | | [optional] 8 | **event** | **String** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Tag.md: -------------------------------------------------------------------------------- 1 | 2 | # Tag 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commit** | [**CommitMeta**](CommitMeta.md) | | [optional] 8 | **id** | **String** | | [optional] 9 | **message** | **String** | | [optional] 10 | **name** | **String** | | [optional] 11 | **tarballUrl** | **String** | | [optional] 12 | **zipballUrl** | **String** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Team.md: -------------------------------------------------------------------------------- 1 | 2 | # Team 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **canCreateOrgRepo** | **Boolean** | | [optional] 8 | **description** | **String** | | [optional] 9 | **id** | **Long** | | [optional] 10 | **includesAllRepositories** | **Boolean** | | [optional] 11 | **name** | **String** | | [optional] 12 | **organization** | [**Organization**](Organization.md) | | [optional] 13 | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] 14 | **units** | **List<String>** | | [optional] 15 | **unitsMap** | **Map<String, String>** | | [optional] 16 | 17 | 18 | 19 | ## Enum: PermissionEnum 20 | Name | Value 21 | ---- | ----- 22 | NONE | "none" 23 | READ | "read" 24 | WRITE | "write" 25 | ADMIN | "admin" 26 | OWNER | "owner" 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /docs/TimelineComment.md: -------------------------------------------------------------------------------- 1 | 2 | # TimelineComment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **assignee** | [**User**](User.md) | | [optional] 8 | **assigneeTeam** | [**Team**](Team.md) | | [optional] 9 | **body** | **String** | | [optional] 10 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 11 | **dependentIssue** | [**Issue**](Issue.md) | | [optional] 12 | **htmlUrl** | **String** | | [optional] 13 | **id** | **Long** | | [optional] 14 | **issueUrl** | **String** | | [optional] 15 | **label** | [**Label**](Label.md) | | [optional] 16 | **milestone** | [**Milestone**](Milestone.md) | | [optional] 17 | **newRef** | **String** | | [optional] 18 | **newTitle** | **String** | | [optional] 19 | **oldMilestone** | [**Milestone**](Milestone.md) | | [optional] 20 | **oldProjectId** | **Long** | | [optional] 21 | **oldRef** | **String** | | [optional] 22 | **oldTitle** | **String** | | [optional] 23 | **projectId** | **Long** | | [optional] 24 | **pullRequestUrl** | **String** | | [optional] 25 | **refAction** | **String** | | [optional] 26 | **refComment** | [**Comment**](Comment.md) | | [optional] 27 | **refCommitSha** | **String** | commit SHA where issue/PR was referenced | [optional] 28 | **refIssue** | [**Issue**](Issue.md) | | [optional] 29 | **removedAssignee** | **Boolean** | whether the assignees were removed or added | [optional] 30 | **resolveDoer** | [**User**](User.md) | | [optional] 31 | **reviewId** | **Long** | | [optional] 32 | **trackedTime** | [**TrackedTime**](TrackedTime.md) | | [optional] 33 | **type** | **String** | | [optional] 34 | **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 35 | **user** | [**User**](User.md) | | [optional] 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /docs/TopicName.md: -------------------------------------------------------------------------------- 1 | 2 | # TopicName 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **topics** | **List<String>** | | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TopicResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # TopicResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **id** | **Long** | | [optional] 9 | **repoCount** | **Long** | | [optional] 10 | **topicName** | **String** | | [optional] 11 | **updated** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/TrackedTime.md: -------------------------------------------------------------------------------- 1 | 2 | # TrackedTime 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **id** | **Long** | | [optional] 9 | **issue** | [**Issue**](Issue.md) | | [optional] 10 | **issueId** | **Long** | deprecated (only for backwards compatibility) | [optional] 11 | **time** | **Long** | Time in seconds | [optional] 12 | **userId** | **Long** | deprecated (only for backwards compatibility) | [optional] 13 | **userName** | **String** | | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/TransferRepoOption.md: -------------------------------------------------------------------------------- 1 | 2 | # TransferRepoOption 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **newOwner** | **String** | | 8 | **teamIds** | **List<Long>** | ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/UpdateFileOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # UpdateFileOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**Identity**](Identity.md) | | [optional] 8 | **branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional] 9 | **committer** | [**Identity**](Identity.md) | | [optional] 10 | **content** | **String** | content must be base64 encoded | 11 | **dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional] 12 | **fromPath** | **String** | from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL | [optional] 13 | **message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional] 14 | **newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional] 15 | **sha** | **String** | sha is the SHA for the file that already exists | 16 | **signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/User.md: -------------------------------------------------------------------------------- 1 | 2 | # User 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **active** | **Boolean** | Is user active | [optional] 8 | **avatarUrl** | **String** | URL to the user's avatar | [optional] 9 | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 10 | **description** | **String** | the user's description | [optional] 11 | **email** | **String** | | [optional] 12 | **followersCount** | **Long** | user counts | [optional] 13 | **followingCount** | **Long** | | [optional] 14 | **fullName** | **String** | the user's full name | [optional] 15 | **id** | **Long** | the user's id | [optional] 16 | **isAdmin** | **Boolean** | Is the user an administrator | [optional] 17 | **language** | **String** | User locale | [optional] 18 | **lastLogin** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 19 | **location** | **String** | the user's location | [optional] 20 | **login** | **String** | the user's username | [optional] 21 | **loginName** | **String** | the user's authentication sign-in name. | [optional] 22 | **prohibitLogin** | **Boolean** | Is user login prohibited | [optional] 23 | **restricted** | **Boolean** | Is user restricted | [optional] 24 | **starredReposCount** | **Long** | | [optional] 25 | **visibility** | **String** | User visibility level option: public, limited, private | [optional] 26 | **website** | **String** | the user's website | [optional] 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /docs/UserHeatmapData.md: -------------------------------------------------------------------------------- 1 | 2 | # UserHeatmapData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **contributions** | **Long** | | [optional] 8 | **timestamp** | **Integer** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/UserSettings.md: -------------------------------------------------------------------------------- 1 | 2 | # UserSettings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **String** | | [optional] 8 | **diffViewStyle** | **String** | | [optional] 9 | **fullName** | **String** | | [optional] 10 | **hideActivity** | **Boolean** | | [optional] 11 | **hideEmail** | **Boolean** | Privacy | [optional] 12 | **language** | **String** | | [optional] 13 | **location** | **String** | | [optional] 14 | **theme** | **String** | | [optional] 15 | **website** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/UserSettingsOptions.md: -------------------------------------------------------------------------------- 1 | 2 | # UserSettingsOptions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **String** | | [optional] 8 | **diffViewStyle** | **String** | | [optional] 9 | **fullName** | **String** | | [optional] 10 | **hideActivity** | **Boolean** | | [optional] 11 | **hideEmail** | **Boolean** | Privacy | [optional] 12 | **language** | **String** | | [optional] 13 | **location** | **String** | | [optional] 14 | **theme** | **String** | | [optional] 15 | **website** | **String** | | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/WatchInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # WatchInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] 8 | **ignored** | **Boolean** | | [optional] 9 | **reason** | **Object** | | [optional] 10 | **repositoryUrl** | **String** | | [optional] 11 | **subscribed** | **Boolean** | | [optional] 12 | **url** | **String** | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/WikiCommit.md: -------------------------------------------------------------------------------- 1 | 2 | # WikiCommit 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **author** | [**CommitUser**](CommitUser.md) | | [optional] 8 | **commiter** | [**CommitUser**](CommitUser.md) | | [optional] 9 | **message** | **String** | | [optional] 10 | **sha** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/WikiCommitList.md: -------------------------------------------------------------------------------- 1 | 2 | # WikiCommitList 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commits** | [**List<WikiCommit>**](WikiCommit.md) | | [optional] 8 | **count** | **Long** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/WikiPage.md: -------------------------------------------------------------------------------- 1 | 2 | # WikiPage 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **commitCount** | **Long** | | [optional] 8 | **contentBase64** | **String** | Page content, base64 encoded | [optional] 9 | **footer** | **String** | | [optional] 10 | **htmlUrl** | **String** | | [optional] 11 | **lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional] 12 | **sidebar** | **String** | | [optional] 13 | **subUrl** | **String** | | [optional] 14 | **title** | **String** | | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/WikiPageMetaData.md: -------------------------------------------------------------------------------- 1 | 2 | # WikiPageMetaData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **htmlUrl** | **String** | | [optional] 8 | **lastCommit** | [**WikiCommit**](WikiCommit.md) | | [optional] 9 | **subUrl** | **String** | | [optional] 10 | **title** | **String** | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | 10 | if [ "$git_user_id" = "" ]; then 11 | git_user_id="GIT_USER_ID" 12 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 13 | fi 14 | 15 | if [ "$git_repo_id" = "" ]; then 16 | git_repo_id="GIT_REPO_ID" 17 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 18 | fi 19 | 20 | if [ "$release_note" = "" ]; then 21 | release_note="Minor update" 22 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 23 | fi 24 | 25 | # Initialize the local directory as a Git repository 26 | git init 27 | 28 | # Adds the files in the local repository and stages them for commit. 29 | git add . 30 | 31 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 32 | git commit -m "$release_note" 33 | 34 | # Sets the new remote 35 | git_remote=`git remote` 36 | if [ "$git_remote" = "" ]; then # git remote not defined 37 | 38 | if [ "$GIT_TOKEN" = "" ]; then 39 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 40 | git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git 41 | else 42 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git 43 | fi 44 | 45 | fi 46 | 47 | git pull origin master 48 | 49 | # Pushes (Forces) the changes in the local repository up to the remote repository 50 | echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" 51 | git push origin master 2>&1 | grep -v 'To https' 52 | 53 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Uncomment to build for Android 2 | #target = android -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeripath/java-gitea-api/bf292a5f179d8cf7c04235bc8c844f9d3feace73/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "java-gitea-api" 2 | -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/ApiCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | import java.io.IOException; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | /** 22 | * Callback for asynchronous API call. 23 | * 24 | * @param The return type 25 | */ 26 | public interface ApiCallback { 27 | /** 28 | * This is called when the API call fails. 29 | * 30 | * @param e The exception causing the failure 31 | * @param statusCode Status code of the response if available, otherwise it would be 0 32 | * @param responseHeaders Headers of the response if available, otherwise it would be null 33 | */ 34 | void onFailure(ApiException e, int statusCode, Map> responseHeaders); 35 | 36 | /** 37 | * This is called when the API call succeeded. 38 | * 39 | * @param result The result deserialized from response 40 | * @param statusCode Status code of the response 41 | * @param responseHeaders Headers of the response 42 | */ 43 | void onSuccess(T result, int statusCode, Map> responseHeaders); 44 | 45 | /** 46 | * This is called when the API upload processing. 47 | * 48 | * @param bytesWritten bytes Written 49 | * @param contentLength content length of request body 50 | * @param done write end 51 | */ 52 | void onUploadProgress(long bytesWritten, long contentLength, boolean done); 53 | 54 | /** 55 | * This is called when the API downlond processing. 56 | * 57 | * @param bytesRead bytes Read 58 | * @param contentLength content lenngth of the response 59 | * @param done Read end 60 | */ 61 | void onDownloadProgress(long bytesRead, long contentLength, boolean done); 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/ApiException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | import java.util.Map; 17 | import java.util.List; 18 | 19 | 20 | public class ApiException extends Exception { 21 | private int code = 0; 22 | private Map> responseHeaders = null; 23 | private String responseBody = null; 24 | 25 | public ApiException() {} 26 | 27 | public ApiException(Throwable throwable) { 28 | super(throwable); 29 | } 30 | 31 | public ApiException(String message) { 32 | super(message); 33 | } 34 | 35 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { 36 | super(message, throwable); 37 | this.code = code; 38 | this.responseHeaders = responseHeaders; 39 | this.responseBody = responseBody; 40 | } 41 | 42 | public ApiException(String message, int code, Map> responseHeaders, String responseBody) { 43 | this(message, (Throwable) null, code, responseHeaders, responseBody); 44 | } 45 | 46 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { 47 | this(message, throwable, code, responseHeaders, null); 48 | } 49 | 50 | public ApiException(int code, Map> responseHeaders, String responseBody) { 51 | this((String) null, (Throwable) null, code, responseHeaders, responseBody); 52 | } 53 | 54 | public ApiException(int code, String message) { 55 | super(message); 56 | this.code = code; 57 | } 58 | 59 | public ApiException(int code, String message, Map> responseHeaders, String responseBody) { 60 | this(code, message); 61 | this.responseHeaders = responseHeaders; 62 | this.responseBody = responseBody; 63 | } 64 | 65 | /** 66 | * Get the HTTP status code. 67 | * 68 | * @return HTTP status code 69 | */ 70 | public int getCode() { 71 | return code; 72 | } 73 | 74 | /** 75 | * Get the HTTP response headers. 76 | * 77 | * @return A map of list of string 78 | */ 79 | public Map> getResponseHeaders() { 80 | return responseHeaders; 81 | } 82 | 83 | /** 84 | * Get the HTTP response body. 85 | * 86 | * @return Response body in the form of string 87 | */ 88 | public String getResponseBody() { 89 | return responseBody; 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/ApiResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | /** 20 | * API response returned by API call. 21 | * 22 | * @param The type of data that is deserialized from response body 23 | */ 24 | public class ApiResponse { 25 | final private int statusCode; 26 | final private Map> headers; 27 | final private T data; 28 | 29 | /** 30 | * @param statusCode The status code of HTTP response 31 | * @param headers The headers of HTTP response 32 | */ 33 | public ApiResponse(int statusCode, Map> headers) { 34 | this(statusCode, headers, null); 35 | } 36 | 37 | /** 38 | * @param statusCode The status code of HTTP response 39 | * @param headers The headers of HTTP response 40 | * @param data The object deserialized from response bod 41 | */ 42 | public ApiResponse(int statusCode, Map> headers, T data) { 43 | this.statusCode = statusCode; 44 | this.headers = headers; 45 | this.data = data; 46 | } 47 | 48 | public int getStatusCode() { 49 | return statusCode; 50 | } 51 | 52 | public Map> getHeaders() { 53 | return headers; 54 | } 55 | 56 | public T getData() { 57 | return data; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/Configuration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | 17 | public class Configuration { 18 | private static ApiClient defaultApiClient = new ApiClient(); 19 | 20 | /** 21 | * Get the default API client, which would be used when creating API 22 | * instances without providing an API client. 23 | * 24 | * @return Default API client 25 | */ 26 | public static ApiClient getDefaultApiClient() { 27 | return defaultApiClient; 28 | } 29 | 30 | /** 31 | * Set the default API client, which would be used when creating API 32 | * instances without providing an API client. 33 | * 34 | * @param apiClient API client 35 | */ 36 | public static void setDefaultApiClient(ApiClient apiClient) { 37 | defaultApiClient = apiClient; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/GzipRequestInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | import com.squareup.okhttp.*; 17 | import okio.Buffer; 18 | import okio.BufferedSink; 19 | import okio.GzipSink; 20 | import okio.Okio; 21 | 22 | import java.io.IOException; 23 | 24 | /** 25 | * Encodes request bodies using gzip. 26 | * 27 | * Taken from https://github.com/square/okhttp/issues/350 28 | */ 29 | class GzipRequestInterceptor implements Interceptor { 30 | @Override public Response intercept(Chain chain) throws IOException { 31 | Request originalRequest = chain.request(); 32 | if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { 33 | return chain.proceed(originalRequest); 34 | } 35 | 36 | Request compressedRequest = originalRequest.newBuilder() 37 | .header("Content-Encoding", "gzip") 38 | .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) 39 | .build(); 40 | return chain.proceed(compressedRequest); 41 | } 42 | 43 | private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { 44 | final Buffer buffer = new Buffer(); 45 | requestBody.writeTo(buffer); 46 | return new RequestBody() { 47 | @Override 48 | public MediaType contentType() { 49 | return requestBody.contentType(); 50 | } 51 | 52 | @Override 53 | public long contentLength() { 54 | return buffer.size(); 55 | } 56 | 57 | @Override 58 | public void writeTo(BufferedSink sink) throws IOException { 59 | sink.write(buffer.snapshot()); 60 | } 61 | }; 62 | } 63 | 64 | private RequestBody gzip(final RequestBody body) { 65 | return new RequestBody() { 66 | @Override public MediaType contentType() { 67 | return body.contentType(); 68 | } 69 | 70 | @Override public long contentLength() { 71 | return -1; // We don't know the compressed length in advance! 72 | } 73 | 74 | @Override public void writeTo(BufferedSink sink) throws IOException { 75 | BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); 76 | body.writeTo(gzipSink); 77 | gzipSink.close(); 78 | } 79 | }; 80 | } 81 | } -------------------------------------------------------------------------------- /src/main/java/io/gitea/Pair.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | 17 | public class Pair { 18 | private String name = ""; 19 | private String value = ""; 20 | 21 | public Pair (String name, String value) { 22 | setName(name); 23 | setValue(value); 24 | } 25 | 26 | private void setName(String name) { 27 | if (!isValidString(name)) return; 28 | 29 | this.name = name; 30 | } 31 | 32 | private void setValue(String value) { 33 | if (!isValidString(value)) return; 34 | 35 | this.value = value; 36 | } 37 | 38 | public String getName() { 39 | return this.name; 40 | } 41 | 42 | public String getValue() { 43 | return this.value; 44 | } 45 | 46 | private boolean isValidString(String arg) { 47 | if (arg == null) return false; 48 | if (arg.trim().isEmpty()) return false; 49 | 50 | return true; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/ProgressRequestBody.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | import com.squareup.okhttp.MediaType; 17 | import com.squareup.okhttp.RequestBody; 18 | 19 | import java.io.IOException; 20 | 21 | import okio.Buffer; 22 | import okio.BufferedSink; 23 | import okio.ForwardingSink; 24 | import okio.Okio; 25 | import okio.Sink; 26 | 27 | public class ProgressRequestBody extends RequestBody { 28 | 29 | public interface ProgressRequestListener { 30 | void onRequestProgress(long bytesWritten, long contentLength, boolean done); 31 | } 32 | 33 | private final RequestBody requestBody; 34 | 35 | private final ProgressRequestListener progressListener; 36 | 37 | public ProgressRequestBody(RequestBody requestBody, ProgressRequestListener progressListener) { 38 | this.requestBody = requestBody; 39 | this.progressListener = progressListener; 40 | } 41 | 42 | @Override 43 | public MediaType contentType() { 44 | return requestBody.contentType(); 45 | } 46 | 47 | @Override 48 | public long contentLength() throws IOException { 49 | return requestBody.contentLength(); 50 | } 51 | 52 | @Override 53 | public void writeTo(BufferedSink sink) throws IOException { 54 | BufferedSink bufferedSink = Okio.buffer(sink(sink)); 55 | requestBody.writeTo(bufferedSink); 56 | bufferedSink.flush(); 57 | } 58 | 59 | private Sink sink(Sink sink) { 60 | return new ForwardingSink(sink) { 61 | 62 | long bytesWritten = 0L; 63 | long contentLength = 0L; 64 | 65 | @Override 66 | public void write(Buffer source, long byteCount) throws IOException { 67 | super.write(source, byteCount); 68 | if (contentLength == 0) { 69 | contentLength = contentLength(); 70 | } 71 | 72 | bytesWritten += byteCount; 73 | progressListener.onRequestProgress(bytesWritten, contentLength, bytesWritten == contentLength); 74 | } 75 | }; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/ProgressResponseBody.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | import com.squareup.okhttp.MediaType; 17 | import com.squareup.okhttp.ResponseBody; 18 | 19 | import java.io.IOException; 20 | 21 | import okio.Buffer; 22 | import okio.BufferedSource; 23 | import okio.ForwardingSource; 24 | import okio.Okio; 25 | import okio.Source; 26 | 27 | public class ProgressResponseBody extends ResponseBody { 28 | 29 | public interface ProgressListener { 30 | void update(long bytesRead, long contentLength, boolean done); 31 | } 32 | 33 | private final ResponseBody responseBody; 34 | private final ProgressListener progressListener; 35 | private BufferedSource bufferedSource; 36 | 37 | public ProgressResponseBody(ResponseBody responseBody, ProgressListener progressListener) { 38 | this.responseBody = responseBody; 39 | this.progressListener = progressListener; 40 | } 41 | 42 | @Override 43 | public MediaType contentType() { 44 | return responseBody.contentType(); 45 | } 46 | 47 | @Override 48 | public long contentLength() throws IOException { 49 | return responseBody.contentLength(); 50 | } 51 | 52 | @Override 53 | public BufferedSource source() throws IOException { 54 | if (bufferedSource == null) { 55 | bufferedSource = Okio.buffer(source(responseBody.source())); 56 | } 57 | return bufferedSource; 58 | } 59 | 60 | private Source source(Source source) { 61 | return new ForwardingSource(source) { 62 | long totalBytesRead = 0L; 63 | 64 | @Override 65 | public long read(Buffer sink, long byteCount) throws IOException { 66 | long bytesRead = super.read(sink, byteCount); 67 | // read() returns the number of bytes read, or -1 if this source is exhausted. 68 | totalBytesRead += bytesRead != -1 ? bytesRead : 0; 69 | progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); 70 | return bytesRead; 71 | } 72 | }; 73 | } 74 | } 75 | 76 | 77 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/StringUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea; 15 | 16 | 17 | public class StringUtil { 18 | /** 19 | * Check if the given array contains the given value (with case-insensitive comparison). 20 | * 21 | * @param array The array 22 | * @param value The value to search 23 | * @return true if the array contains the value 24 | */ 25 | public static boolean containsIgnoreCase(String[] array, String value) { 26 | for (String str : array) { 27 | if (value == null && str == null) return true; 28 | if (value != null && value.equalsIgnoreCase(str)) return true; 29 | } 30 | return false; 31 | } 32 | 33 | /** 34 | * Join an array of strings with the given separator. 35 | *

36 | * Note: This might be replaced by utility method from commons-lang or guava someday 37 | * if one of those libraries is added as dependency. 38 | *

39 | * 40 | * @param array The array of strings 41 | * @param separator The separator 42 | * @return the resulting string 43 | */ 44 | public static String join(String[] array, String separator) { 45 | int len = array.length; 46 | if (len == 0) return ""; 47 | 48 | StringBuilder out = new StringBuilder(); 49 | out.append(array[0]); 50 | for (int i = 1; i < len; i++) { 51 | out.append(separator).append(array[i]); 52 | } 53 | return out.toString(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/auth/ApiKeyAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.auth; 15 | 16 | import io.gitea.Pair; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | 22 | public class ApiKeyAuth implements Authentication { 23 | private final String location; 24 | private final String paramName; 25 | 26 | private String apiKey; 27 | private String apiKeyPrefix; 28 | 29 | public ApiKeyAuth(String location, String paramName) { 30 | this.location = location; 31 | this.paramName = paramName; 32 | } 33 | 34 | public String getLocation() { 35 | return location; 36 | } 37 | 38 | public String getParamName() { 39 | return paramName; 40 | } 41 | 42 | public String getApiKey() { 43 | return apiKey; 44 | } 45 | 46 | public void setApiKey(String apiKey) { 47 | this.apiKey = apiKey; 48 | } 49 | 50 | public String getApiKeyPrefix() { 51 | return apiKeyPrefix; 52 | } 53 | 54 | public void setApiKeyPrefix(String apiKeyPrefix) { 55 | this.apiKeyPrefix = apiKeyPrefix; 56 | } 57 | 58 | @Override 59 | public void applyToParams(List queryParams, Map headerParams) { 60 | if (apiKey == null) { 61 | return; 62 | } 63 | String value; 64 | if (apiKeyPrefix != null) { 65 | value = apiKeyPrefix + " " + apiKey; 66 | } else { 67 | value = apiKey; 68 | } 69 | if ("query".equals(location)) { 70 | queryParams.add(new Pair(paramName, value)); 71 | } else if ("header".equals(location)) { 72 | headerParams.put(paramName, value); 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.auth; 15 | 16 | import io.gitea.Pair; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | public interface Authentication { 22 | /** 23 | * Apply authentication settings to header and query params. 24 | * 25 | * @param queryParams List of query parameters 26 | * @param headerParams Map of header parameters 27 | */ 28 | void applyToParams(List queryParams, Map headerParams); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.auth; 15 | 16 | import io.gitea.Pair; 17 | 18 | import com.squareup.okhttp.Credentials; 19 | 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | import java.io.UnsupportedEncodingException; 24 | 25 | public class HttpBasicAuth implements Authentication { 26 | private String username; 27 | private String password; 28 | 29 | public String getUsername() { 30 | return username; 31 | } 32 | 33 | public void setUsername(String username) { 34 | this.username = username; 35 | } 36 | 37 | public String getPassword() { 38 | return password; 39 | } 40 | 41 | public void setPassword(String password) { 42 | this.password = password; 43 | } 44 | 45 | @Override 46 | public void applyToParams(List queryParams, Map headerParams) { 47 | if (username == null && password == null) { 48 | return; 49 | } 50 | headerParams.put("Authorization", Credentials.basic( 51 | username == null ? "" : username, 52 | password == null ? "" : password)); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/auth/OAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.auth; 15 | 16 | import io.gitea.Pair; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | 22 | public class OAuth implements Authentication { 23 | private String accessToken; 24 | 25 | public String getAccessToken() { 26 | return accessToken; 27 | } 28 | 29 | public void setAccessToken(String accessToken) { 30 | this.accessToken = accessToken; 31 | } 32 | 33 | @Override 34 | public void applyToParams(List queryParams, Map headerParams) { 35 | if (accessToken != null) { 36 | headerParams.put("Authorization", "Bearer " + accessToken); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/auth/OAuthFlow.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.16.0-SNAPSHOT 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.auth; 15 | 16 | public enum OAuthFlow { 17 | accessCode, implicit, password, application 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/APIError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * APIError is an api error with a message 29 | */ 30 | @ApiModel(description = "APIError is an api error with a message") 31 | 32 | public class APIError { 33 | @SerializedName("message") 34 | private String message = null; 35 | 36 | @SerializedName("url") 37 | private String url = null; 38 | 39 | public APIError message(String message) { 40 | this.message = message; 41 | return this; 42 | } 43 | 44 | /** 45 | * Get message 46 | * @return message 47 | **/ 48 | @ApiModelProperty(value = "") 49 | public String getMessage() { 50 | return message; 51 | } 52 | 53 | public void setMessage(String message) { 54 | this.message = message; 55 | } 56 | 57 | public APIError url(String url) { 58 | this.url = url; 59 | return this; 60 | } 61 | 62 | /** 63 | * Get url 64 | * @return url 65 | **/ 66 | @ApiModelProperty(value = "") 67 | public String getUrl() { 68 | return url; 69 | } 70 | 71 | public void setUrl(String url) { 72 | this.url = url; 73 | } 74 | 75 | 76 | @Override 77 | public boolean equals(java.lang.Object o) { 78 | if (this == o) { 79 | return true; 80 | } 81 | if (o == null || getClass() != o.getClass()) { 82 | return false; 83 | } 84 | APIError apIError = (APIError) o; 85 | return Objects.equals(this.message, apIError.message) && 86 | Objects.equals(this.url, apIError.url); 87 | } 88 | 89 | @Override 90 | public int hashCode() { 91 | return Objects.hash(message, url); 92 | } 93 | 94 | 95 | @Override 96 | public String toString() { 97 | StringBuilder sb = new StringBuilder(); 98 | sb.append("class APIError {\n"); 99 | 100 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 101 | sb.append(" url: ").append(toIndentedString(url)).append("\n"); 102 | sb.append("}"); 103 | return sb.toString(); 104 | } 105 | 106 | /** 107 | * Convert the given object to string with each line indented by 4 spaces 108 | * (except the first line). 109 | */ 110 | private String toIndentedString(java.lang.Object o) { 111 | if (o == null) { 112 | return "null"; 113 | } 114 | return o.toString().replace("\n", "\n "); 115 | } 116 | 117 | } 118 | 119 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/ActivityPub.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * ActivityPub type 29 | */ 30 | @ApiModel(description = "ActivityPub type") 31 | 32 | public class ActivityPub { 33 | @SerializedName("@context") 34 | private String context = null; 35 | 36 | public ActivityPub context(String context) { 37 | this.context = context; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get context 43 | * @return context 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getContext() { 47 | return context; 48 | } 49 | 50 | public void setContext(String context) { 51 | this.context = context; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | ActivityPub activityPub = (ActivityPub) o; 64 | return Objects.equals(this.context, activityPub.context); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(context); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class ActivityPub {\n"); 77 | 78 | sb.append(" context: ").append(toIndentedString(context)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/AddCollaboratorOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * AddCollaboratorOption options when adding a user as a collaborator of a repository 29 | */ 30 | @ApiModel(description = "AddCollaboratorOption options when adding a user as a collaborator of a repository") 31 | 32 | public class AddCollaboratorOption { 33 | @SerializedName("permission") 34 | private String permission = null; 35 | 36 | public AddCollaboratorOption permission(String permission) { 37 | this.permission = permission; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get permission 43 | * @return permission 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getPermission() { 47 | return permission; 48 | } 49 | 50 | public void setPermission(String permission) { 51 | this.permission = permission; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | AddCollaboratorOption addCollaboratorOption = (AddCollaboratorOption) o; 64 | return Objects.equals(this.permission, addCollaboratorOption.permission); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(permission); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class AddCollaboratorOption {\n"); 77 | 78 | sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/CommitAffectedFiles.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * CommitAffectedFiles store information about files affected by the commit 29 | */ 30 | @ApiModel(description = "CommitAffectedFiles store information about files affected by the commit") 31 | 32 | public class CommitAffectedFiles { 33 | @SerializedName("filename") 34 | private String filename = null; 35 | 36 | public CommitAffectedFiles filename(String filename) { 37 | this.filename = filename; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get filename 43 | * @return filename 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getFilename() { 47 | return filename; 48 | } 49 | 50 | public void setFilename(String filename) { 51 | this.filename = filename; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | CommitAffectedFiles commitAffectedFiles = (CommitAffectedFiles) o; 64 | return Objects.equals(this.filename, commitAffectedFiles.filename); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(filename); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class CommitAffectedFiles {\n"); 77 | 78 | sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/CreateAccessTokenOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * CreateAccessTokenOption options when create access token 29 | */ 30 | @ApiModel(description = "CreateAccessTokenOption options when create access token") 31 | 32 | public class CreateAccessTokenOption { 33 | @SerializedName("name") 34 | private String name = null; 35 | 36 | public CreateAccessTokenOption name(String name) { 37 | this.name = name; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get name 43 | * @return name 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getName() { 47 | return name; 48 | } 49 | 50 | public void setName(String name) { 51 | this.name = name; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | CreateAccessTokenOption createAccessTokenOption = (CreateAccessTokenOption) o; 64 | return Objects.equals(this.name, createAccessTokenOption.name); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(name); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class CreateAccessTokenOption {\n"); 77 | 78 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/CreateEmailOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | /** 30 | * CreateEmailOption options when creating email addresses 31 | */ 32 | @ApiModel(description = "CreateEmailOption options when creating email addresses") 33 | 34 | public class CreateEmailOption { 35 | @SerializedName("emails") 36 | private List emails = null; 37 | 38 | public CreateEmailOption emails(List emails) { 39 | this.emails = emails; 40 | return this; 41 | } 42 | 43 | public CreateEmailOption addEmailsItem(String emailsItem) { 44 | if (this.emails == null) { 45 | this.emails = new ArrayList(); 46 | } 47 | this.emails.add(emailsItem); 48 | return this; 49 | } 50 | 51 | /** 52 | * email addresses to add 53 | * @return emails 54 | **/ 55 | @ApiModelProperty(value = "email addresses to add") 56 | public List getEmails() { 57 | return emails; 58 | } 59 | 60 | public void setEmails(List emails) { 61 | this.emails = emails; 62 | } 63 | 64 | 65 | @Override 66 | public boolean equals(java.lang.Object o) { 67 | if (this == o) { 68 | return true; 69 | } 70 | if (o == null || getClass() != o.getClass()) { 71 | return false; 72 | } 73 | CreateEmailOption createEmailOption = (CreateEmailOption) o; 74 | return Objects.equals(this.emails, createEmailOption.emails); 75 | } 76 | 77 | @Override 78 | public int hashCode() { 79 | return Objects.hash(emails); 80 | } 81 | 82 | 83 | @Override 84 | public String toString() { 85 | StringBuilder sb = new StringBuilder(); 86 | sb.append("class CreateEmailOption {\n"); 87 | 88 | sb.append(" emails: ").append(toIndentedString(emails)).append("\n"); 89 | sb.append("}"); 90 | return sb.toString(); 91 | } 92 | 93 | /** 94 | * Convert the given object to string with each line indented by 4 spaces 95 | * (except the first line). 96 | */ 97 | private String toIndentedString(java.lang.Object o) { 98 | if (o == null) { 99 | return "null"; 100 | } 101 | return o.toString().replace("\n", "\n "); 102 | } 103 | 104 | } 105 | 106 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/CreateHookOptionConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | 22 | /** 23 | * CreateHookOptionConfig has all config options in it required are \"content_type\" and \"url\" Required 24 | */ 25 | @ApiModel(description = "CreateHookOptionConfig has all config options in it required are \"content_type\" and \"url\" Required") 26 | 27 | public class CreateHookOptionConfig extends HashMap { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class CreateHookOptionConfig {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/CreateIssueCommentOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * CreateIssueCommentOption options for creating a comment on an issue 29 | */ 30 | @ApiModel(description = "CreateIssueCommentOption options for creating a comment on an issue") 31 | 32 | public class CreateIssueCommentOption { 33 | @SerializedName("body") 34 | private String body = null; 35 | 36 | public CreateIssueCommentOption body(String body) { 37 | this.body = body; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get body 43 | * @return body 44 | **/ 45 | @ApiModelProperty(required = true, value = "") 46 | public String getBody() { 47 | return body; 48 | } 49 | 50 | public void setBody(String body) { 51 | this.body = body; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | CreateIssueCommentOption createIssueCommentOption = (CreateIssueCommentOption) o; 64 | return Objects.equals(this.body, createIssueCommentOption.body); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(body); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class CreateIssueCommentOption {\n"); 77 | 78 | sb.append(" body: ").append(toIndentedString(body)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/DeleteEmailOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | /** 30 | * DeleteEmailOption options when deleting email addresses 31 | */ 32 | @ApiModel(description = "DeleteEmailOption options when deleting email addresses") 33 | 34 | public class DeleteEmailOption { 35 | @SerializedName("emails") 36 | private List emails = null; 37 | 38 | public DeleteEmailOption emails(List emails) { 39 | this.emails = emails; 40 | return this; 41 | } 42 | 43 | public DeleteEmailOption addEmailsItem(String emailsItem) { 44 | if (this.emails == null) { 45 | this.emails = new ArrayList(); 46 | } 47 | this.emails.add(emailsItem); 48 | return this; 49 | } 50 | 51 | /** 52 | * email addresses to delete 53 | * @return emails 54 | **/ 55 | @ApiModelProperty(value = "email addresses to delete") 56 | public List getEmails() { 57 | return emails; 58 | } 59 | 60 | public void setEmails(List emails) { 61 | this.emails = emails; 62 | } 63 | 64 | 65 | @Override 66 | public boolean equals(java.lang.Object o) { 67 | if (this == o) { 68 | return true; 69 | } 70 | if (o == null || getClass() != o.getClass()) { 71 | return false; 72 | } 73 | DeleteEmailOption deleteEmailOption = (DeleteEmailOption) o; 74 | return Objects.equals(this.emails, deleteEmailOption.emails); 75 | } 76 | 77 | @Override 78 | public int hashCode() { 79 | return Objects.hash(emails); 80 | } 81 | 82 | 83 | @Override 84 | public String toString() { 85 | StringBuilder sb = new StringBuilder(); 86 | sb.append("class DeleteEmailOption {\n"); 87 | 88 | sb.append(" emails: ").append(toIndentedString(emails)).append("\n"); 89 | sb.append("}"); 90 | return sb.toString(); 91 | } 92 | 93 | /** 94 | * Convert the given object to string with each line indented by 4 spaces 95 | * (except the first line). 96 | */ 97 | private String toIndentedString(java.lang.Object o) { 98 | if (o == null) { 99 | return "null"; 100 | } 101 | return o.toString().replace("\n", "\n "); 102 | } 103 | 104 | } 105 | 106 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/EditAttachmentOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * EditAttachmentOptions options for editing attachments 29 | */ 30 | @ApiModel(description = "EditAttachmentOptions options for editing attachments") 31 | 32 | public class EditAttachmentOptions { 33 | @SerializedName("name") 34 | private String name = null; 35 | 36 | public EditAttachmentOptions name(String name) { 37 | this.name = name; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get name 43 | * @return name 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getName() { 47 | return name; 48 | } 49 | 50 | public void setName(String name) { 51 | this.name = name; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | EditAttachmentOptions editAttachmentOptions = (EditAttachmentOptions) o; 64 | return Objects.equals(this.name, editAttachmentOptions.name); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(name); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class EditAttachmentOptions {\n"); 77 | 78 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/EditDeadlineOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import org.threeten.bp.OffsetDateTime; 27 | 28 | /** 29 | * EditDeadlineOption options for creating a deadline 30 | */ 31 | @ApiModel(description = "EditDeadlineOption options for creating a deadline") 32 | 33 | public class EditDeadlineOption { 34 | @SerializedName("due_date") 35 | private OffsetDateTime dueDate = null; 36 | 37 | public EditDeadlineOption dueDate(OffsetDateTime dueDate) { 38 | this.dueDate = dueDate; 39 | return this; 40 | } 41 | 42 | /** 43 | * Get dueDate 44 | * @return dueDate 45 | **/ 46 | @ApiModelProperty(required = true, value = "") 47 | public OffsetDateTime getDueDate() { 48 | return dueDate; 49 | } 50 | 51 | public void setDueDate(OffsetDateTime dueDate) { 52 | this.dueDate = dueDate; 53 | } 54 | 55 | 56 | @Override 57 | public boolean equals(java.lang.Object o) { 58 | if (this == o) { 59 | return true; 60 | } 61 | if (o == null || getClass() != o.getClass()) { 62 | return false; 63 | } 64 | EditDeadlineOption editDeadlineOption = (EditDeadlineOption) o; 65 | return Objects.equals(this.dueDate, editDeadlineOption.dueDate); 66 | } 67 | 68 | @Override 69 | public int hashCode() { 70 | return Objects.hash(dueDate); 71 | } 72 | 73 | 74 | @Override 75 | public String toString() { 76 | StringBuilder sb = new StringBuilder(); 77 | sb.append("class EditDeadlineOption {\n"); 78 | 79 | sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); 80 | sb.append("}"); 81 | return sb.toString(); 82 | } 83 | 84 | /** 85 | * Convert the given object to string with each line indented by 4 spaces 86 | * (except the first line). 87 | */ 88 | private String toIndentedString(java.lang.Object o) { 89 | if (o == null) { 90 | return "null"; 91 | } 92 | return o.toString().replace("\n", "\n "); 93 | } 94 | 95 | } 96 | 97 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/EditGitHookOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * EditGitHookOption options when modifying one Git hook 29 | */ 30 | @ApiModel(description = "EditGitHookOption options when modifying one Git hook") 31 | 32 | public class EditGitHookOption { 33 | @SerializedName("content") 34 | private String content = null; 35 | 36 | public EditGitHookOption content(String content) { 37 | this.content = content; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get content 43 | * @return content 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getContent() { 47 | return content; 48 | } 49 | 50 | public void setContent(String content) { 51 | this.content = content; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | EditGitHookOption editGitHookOption = (EditGitHookOption) o; 64 | return Objects.equals(this.content, editGitHookOption.content); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(content); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class EditGitHookOption {\n"); 77 | 78 | sb.append(" content: ").append(toIndentedString(content)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/EditIssueCommentOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * EditIssueCommentOption options for editing a comment 29 | */ 30 | @ApiModel(description = "EditIssueCommentOption options for editing a comment") 31 | 32 | public class EditIssueCommentOption { 33 | @SerializedName("body") 34 | private String body = null; 35 | 36 | public EditIssueCommentOption body(String body) { 37 | this.body = body; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get body 43 | * @return body 44 | **/ 45 | @ApiModelProperty(required = true, value = "") 46 | public String getBody() { 47 | return body; 48 | } 49 | 50 | public void setBody(String body) { 51 | this.body = body; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | EditIssueCommentOption editIssueCommentOption = (EditIssueCommentOption) o; 64 | return Objects.equals(this.body, editIssueCommentOption.body); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(body); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class EditIssueCommentOption {\n"); 77 | 78 | sb.append(" body: ").append(toIndentedString(body)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/EditReactionOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * EditReactionOption contain the reaction type 29 | */ 30 | @ApiModel(description = "EditReactionOption contain the reaction type") 31 | 32 | public class EditReactionOption { 33 | @SerializedName("content") 34 | private String content = null; 35 | 36 | public EditReactionOption content(String content) { 37 | this.content = content; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get content 43 | * @return content 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getContent() { 47 | return content; 48 | } 49 | 50 | public void setContent(String content) { 51 | this.content = content; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | EditReactionOption editReactionOption = (EditReactionOption) o; 64 | return Objects.equals(this.content, editReactionOption.content); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(content); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class EditReactionOption {\n"); 77 | 78 | sb.append(" content: ").append(toIndentedString(content)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/ExternalWiki.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * ExternalWiki represents setting for external wiki 29 | */ 30 | @ApiModel(description = "ExternalWiki represents setting for external wiki") 31 | 32 | public class ExternalWiki { 33 | @SerializedName("external_wiki_url") 34 | private String externalWikiUrl = null; 35 | 36 | public ExternalWiki externalWikiUrl(String externalWikiUrl) { 37 | this.externalWikiUrl = externalWikiUrl; 38 | return this; 39 | } 40 | 41 | /** 42 | * URL of external wiki. 43 | * @return externalWikiUrl 44 | **/ 45 | @ApiModelProperty(value = "URL of external wiki.") 46 | public String getExternalWikiUrl() { 47 | return externalWikiUrl; 48 | } 49 | 50 | public void setExternalWikiUrl(String externalWikiUrl) { 51 | this.externalWikiUrl = externalWikiUrl; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | ExternalWiki externalWiki = (ExternalWiki) o; 64 | return Objects.equals(this.externalWikiUrl, externalWiki.externalWikiUrl); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(externalWikiUrl); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class ExternalWiki {\n"); 77 | 78 | sb.append(" externalWikiUrl: ").append(toIndentedString(externalWikiUrl)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/Identity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * Identity for a person's identity like an author or committer 29 | */ 30 | @ApiModel(description = "Identity for a person's identity like an author or committer") 31 | 32 | public class Identity { 33 | @SerializedName("email") 34 | private String email = null; 35 | 36 | @SerializedName("name") 37 | private String name = null; 38 | 39 | public Identity email(String email) { 40 | this.email = email; 41 | return this; 42 | } 43 | 44 | /** 45 | * Get email 46 | * @return email 47 | **/ 48 | @ApiModelProperty(value = "") 49 | public String getEmail() { 50 | return email; 51 | } 52 | 53 | public void setEmail(String email) { 54 | this.email = email; 55 | } 56 | 57 | public Identity name(String name) { 58 | this.name = name; 59 | return this; 60 | } 61 | 62 | /** 63 | * Get name 64 | * @return name 65 | **/ 66 | @ApiModelProperty(value = "") 67 | public String getName() { 68 | return name; 69 | } 70 | 71 | public void setName(String name) { 72 | this.name = name; 73 | } 74 | 75 | 76 | @Override 77 | public boolean equals(java.lang.Object o) { 78 | if (this == o) { 79 | return true; 80 | } 81 | if (o == null || getClass() != o.getClass()) { 82 | return false; 83 | } 84 | Identity identity = (Identity) o; 85 | return Objects.equals(this.email, identity.email) && 86 | Objects.equals(this.name, identity.name); 87 | } 88 | 89 | @Override 90 | public int hashCode() { 91 | return Objects.hash(email, name); 92 | } 93 | 94 | 95 | @Override 96 | public String toString() { 97 | StringBuilder sb = new StringBuilder(); 98 | sb.append("class Identity {\n"); 99 | 100 | sb.append(" email: ").append(toIndentedString(email)).append("\n"); 101 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 102 | sb.append("}"); 103 | return sb.toString(); 104 | } 105 | 106 | /** 107 | * Convert the given object to string with each line indented by 4 spaces 108 | * (except the first line). 109 | */ 110 | private String toIndentedString(java.lang.Object o) { 111 | if (o == null) { 112 | return "null"; 113 | } 114 | return o.toString().replace("\n", "\n "); 115 | } 116 | 117 | } 118 | 119 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/IssueDeadline.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import org.threeten.bp.OffsetDateTime; 27 | 28 | /** 29 | * IssueDeadline represents an issue deadline 30 | */ 31 | @ApiModel(description = "IssueDeadline represents an issue deadline") 32 | 33 | public class IssueDeadline { 34 | @SerializedName("due_date") 35 | private OffsetDateTime dueDate = null; 36 | 37 | public IssueDeadline dueDate(OffsetDateTime dueDate) { 38 | this.dueDate = dueDate; 39 | return this; 40 | } 41 | 42 | /** 43 | * Get dueDate 44 | * @return dueDate 45 | **/ 46 | @ApiModelProperty(value = "") 47 | public OffsetDateTime getDueDate() { 48 | return dueDate; 49 | } 50 | 51 | public void setDueDate(OffsetDateTime dueDate) { 52 | this.dueDate = dueDate; 53 | } 54 | 55 | 56 | @Override 57 | public boolean equals(java.lang.Object o) { 58 | if (this == o) { 59 | return true; 60 | } 61 | if (o == null || getClass() != o.getClass()) { 62 | return false; 63 | } 64 | IssueDeadline issueDeadline = (IssueDeadline) o; 65 | return Objects.equals(this.dueDate, issueDeadline.dueDate); 66 | } 67 | 68 | @Override 69 | public int hashCode() { 70 | return Objects.hash(dueDate); 71 | } 72 | 73 | 74 | @Override 75 | public String toString() { 76 | StringBuilder sb = new StringBuilder(); 77 | sb.append("class IssueDeadline {\n"); 78 | 79 | sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); 80 | sb.append("}"); 81 | return sb.toString(); 82 | } 83 | 84 | /** 85 | * Convert the given object to string with each line indented by 4 spaces 86 | * (except the first line). 87 | */ 88 | private String toIndentedString(java.lang.Object o) { 89 | if (o == null) { 90 | return "null"; 91 | } 92 | return o.toString().replace("\n", "\n "); 93 | } 94 | 95 | } 96 | 97 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/IssueLabelsOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | /** 30 | * IssueLabelsOption a collection of labels 31 | */ 32 | @ApiModel(description = "IssueLabelsOption a collection of labels") 33 | 34 | public class IssueLabelsOption { 35 | @SerializedName("labels") 36 | private List labels = null; 37 | 38 | public IssueLabelsOption labels(List labels) { 39 | this.labels = labels; 40 | return this; 41 | } 42 | 43 | public IssueLabelsOption addLabelsItem(Long labelsItem) { 44 | if (this.labels == null) { 45 | this.labels = new ArrayList(); 46 | } 47 | this.labels.add(labelsItem); 48 | return this; 49 | } 50 | 51 | /** 52 | * list of label IDs 53 | * @return labels 54 | **/ 55 | @ApiModelProperty(value = "list of label IDs") 56 | public List getLabels() { 57 | return labels; 58 | } 59 | 60 | public void setLabels(List labels) { 61 | this.labels = labels; 62 | } 63 | 64 | 65 | @Override 66 | public boolean equals(java.lang.Object o) { 67 | if (this == o) { 68 | return true; 69 | } 70 | if (o == null || getClass() != o.getClass()) { 71 | return false; 72 | } 73 | IssueLabelsOption issueLabelsOption = (IssueLabelsOption) o; 74 | return Objects.equals(this.labels, issueLabelsOption.labels); 75 | } 76 | 77 | @Override 78 | public int hashCode() { 79 | return Objects.hash(labels); 80 | } 81 | 82 | 83 | @Override 84 | public String toString() { 85 | StringBuilder sb = new StringBuilder(); 86 | sb.append("class IssueLabelsOption {\n"); 87 | 88 | sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); 89 | sb.append("}"); 90 | return sb.toString(); 91 | } 92 | 93 | /** 94 | * Convert the given object to string with each line indented by 4 spaces 95 | * (except the first line). 96 | */ 97 | private String toIndentedString(java.lang.Object o) { 98 | if (o == null) { 99 | return "null"; 100 | } 101 | return o.toString().replace("\n", "\n "); 102 | } 103 | 104 | } 105 | 106 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/IssueTemplateLabels.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | 21 | /** 22 | * IssueTemplateLabels 23 | */ 24 | 25 | public class IssueTemplateLabels extends ArrayList { 26 | 27 | @Override 28 | public boolean equals(java.lang.Object o) { 29 | if (this == o) { 30 | return true; 31 | } 32 | if (o == null || getClass() != o.getClass()) { 33 | return false; 34 | } 35 | return super.equals(o); 36 | } 37 | 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class IssueTemplateLabels {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/Note.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.gitea.model.Commit; 24 | import io.swagger.annotations.ApiModel; 25 | import io.swagger.annotations.ApiModelProperty; 26 | import java.io.IOException; 27 | 28 | /** 29 | * Note contains information related to a git note 30 | */ 31 | @ApiModel(description = "Note contains information related to a git note") 32 | 33 | public class Note { 34 | @SerializedName("commit") 35 | private Commit commit = null; 36 | 37 | @SerializedName("message") 38 | private String message = null; 39 | 40 | public Note commit(Commit commit) { 41 | this.commit = commit; 42 | return this; 43 | } 44 | 45 | /** 46 | * Get commit 47 | * @return commit 48 | **/ 49 | @ApiModelProperty(value = "") 50 | public Commit getCommit() { 51 | return commit; 52 | } 53 | 54 | public void setCommit(Commit commit) { 55 | this.commit = commit; 56 | } 57 | 58 | public Note message(String message) { 59 | this.message = message; 60 | return this; 61 | } 62 | 63 | /** 64 | * Get message 65 | * @return message 66 | **/ 67 | @ApiModelProperty(value = "") 68 | public String getMessage() { 69 | return message; 70 | } 71 | 72 | public void setMessage(String message) { 73 | this.message = message; 74 | } 75 | 76 | 77 | @Override 78 | public boolean equals(java.lang.Object o) { 79 | if (this == o) { 80 | return true; 81 | } 82 | if (o == null || getClass() != o.getClass()) { 83 | return false; 84 | } 85 | Note note = (Note) o; 86 | return Objects.equals(this.commit, note.commit) && 87 | Objects.equals(this.message, note.message); 88 | } 89 | 90 | @Override 91 | public int hashCode() { 92 | return Objects.hash(commit, message); 93 | } 94 | 95 | 96 | @Override 97 | public String toString() { 98 | StringBuilder sb = new StringBuilder(); 99 | sb.append("class Note {\n"); 100 | 101 | sb.append(" commit: ").append(toIndentedString(commit)).append("\n"); 102 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 103 | sb.append("}"); 104 | return sb.toString(); 105 | } 106 | 107 | /** 108 | * Convert the given object to string with each line indented by 4 spaces 109 | * (except the first line). 110 | */ 111 | private String toIndentedString(java.lang.Object o) { 112 | if (o == null) { 113 | return "null"; 114 | } 115 | return o.toString().replace("\n", "\n "); 116 | } 117 | 118 | } 119 | 120 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/NotificationCount.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * NotificationCount number of unread notifications 29 | */ 30 | @ApiModel(description = "NotificationCount number of unread notifications") 31 | 32 | public class NotificationCount { 33 | @SerializedName("new") 34 | private Long _new = null; 35 | 36 | public NotificationCount _new(Long _new) { 37 | this._new = _new; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get _new 43 | * @return _new 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public Long getNew() { 47 | return _new; 48 | } 49 | 50 | public void setNew(Long _new) { 51 | this._new = _new; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | NotificationCount notificationCount = (NotificationCount) o; 64 | return Objects.equals(this._new, notificationCount._new); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(_new); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class NotificationCount {\n"); 77 | 78 | sb.append(" _new: ").append(toIndentedString(_new)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/RepoTopicOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | /** 30 | * RepoTopicOptions a collection of repo topic names 31 | */ 32 | @ApiModel(description = "RepoTopicOptions a collection of repo topic names") 33 | 34 | public class RepoTopicOptions { 35 | @SerializedName("topics") 36 | private List topics = null; 37 | 38 | public RepoTopicOptions topics(List topics) { 39 | this.topics = topics; 40 | return this; 41 | } 42 | 43 | public RepoTopicOptions addTopicsItem(String topicsItem) { 44 | if (this.topics == null) { 45 | this.topics = new ArrayList(); 46 | } 47 | this.topics.add(topicsItem); 48 | return this; 49 | } 50 | 51 | /** 52 | * list of topic names 53 | * @return topics 54 | **/ 55 | @ApiModelProperty(value = "list of topic names") 56 | public List getTopics() { 57 | return topics; 58 | } 59 | 60 | public void setTopics(List topics) { 61 | this.topics = topics; 62 | } 63 | 64 | 65 | @Override 66 | public boolean equals(java.lang.Object o) { 67 | if (this == o) { 68 | return true; 69 | } 70 | if (o == null || getClass() != o.getClass()) { 71 | return false; 72 | } 73 | RepoTopicOptions repoTopicOptions = (RepoTopicOptions) o; 74 | return Objects.equals(this.topics, repoTopicOptions.topics); 75 | } 76 | 77 | @Override 78 | public int hashCode() { 79 | return Objects.hash(topics); 80 | } 81 | 82 | 83 | @Override 84 | public String toString() { 85 | StringBuilder sb = new StringBuilder(); 86 | sb.append("class RepoTopicOptions {\n"); 87 | 88 | sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); 89 | sb.append("}"); 90 | return sb.toString(); 91 | } 92 | 93 | /** 94 | * Convert the given object to string with each line indented by 4 spaces 95 | * (except the first line). 96 | */ 97 | private String toIndentedString(java.lang.Object o) { 98 | if (o == null) { 99 | return "null"; 100 | } 101 | return o.toString().replace("\n", "\n "); 102 | } 103 | 104 | } 105 | 106 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/ServerVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | 27 | /** 28 | * ServerVersion wraps the version of the server 29 | */ 30 | @ApiModel(description = "ServerVersion wraps the version of the server") 31 | 32 | public class ServerVersion { 33 | @SerializedName("version") 34 | private String version = null; 35 | 36 | public ServerVersion version(String version) { 37 | this.version = version; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get version 43 | * @return version 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public String getVersion() { 47 | return version; 48 | } 49 | 50 | public void setVersion(String version) { 51 | this.version = version; 52 | } 53 | 54 | 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | ServerVersion serverVersion = (ServerVersion) o; 64 | return Objects.equals(this.version, serverVersion.version); 65 | } 66 | 67 | @Override 68 | public int hashCode() { 69 | return Objects.hash(version); 70 | } 71 | 72 | 73 | @Override 74 | public String toString() { 75 | StringBuilder sb = new StringBuilder(); 76 | sb.append("class ServerVersion {\n"); 77 | 78 | sb.append(" version: ").append(toIndentedString(version)).append("\n"); 79 | sb.append("}"); 80 | return sb.toString(); 81 | } 82 | 83 | /** 84 | * Convert the given object to string with each line indented by 4 spaces 85 | * (except the first line). 86 | */ 87 | private String toIndentedString(java.lang.Object o) { 88 | if (o == null) { 89 | return "null"; 90 | } 91 | return o.toString().replace("\n", "\n "); 92 | } 93 | 94 | } 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/io/gitea/model/TopicName.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.google.gson.TypeAdapter; 19 | import com.google.gson.annotations.JsonAdapter; 20 | import com.google.gson.annotations.SerializedName; 21 | import com.google.gson.stream.JsonReader; 22 | import com.google.gson.stream.JsonWriter; 23 | import io.swagger.annotations.ApiModel; 24 | import io.swagger.annotations.ApiModelProperty; 25 | import java.io.IOException; 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | /** 30 | * TopicName a list of repo topic names 31 | */ 32 | @ApiModel(description = "TopicName a list of repo topic names") 33 | 34 | public class TopicName { 35 | @SerializedName("topics") 36 | private List topics = null; 37 | 38 | public TopicName topics(List topics) { 39 | this.topics = topics; 40 | return this; 41 | } 42 | 43 | public TopicName addTopicsItem(String topicsItem) { 44 | if (this.topics == null) { 45 | this.topics = new ArrayList(); 46 | } 47 | this.topics.add(topicsItem); 48 | return this; 49 | } 50 | 51 | /** 52 | * Get topics 53 | * @return topics 54 | **/ 55 | @ApiModelProperty(value = "") 56 | public List getTopics() { 57 | return topics; 58 | } 59 | 60 | public void setTopics(List topics) { 61 | this.topics = topics; 62 | } 63 | 64 | 65 | @Override 66 | public boolean equals(java.lang.Object o) { 67 | if (this == o) { 68 | return true; 69 | } 70 | if (o == null || getClass() != o.getClass()) { 71 | return false; 72 | } 73 | TopicName topicName = (TopicName) o; 74 | return Objects.equals(this.topics, topicName.topics); 75 | } 76 | 77 | @Override 78 | public int hashCode() { 79 | return Objects.hash(topics); 80 | } 81 | 82 | 83 | @Override 84 | public String toString() { 85 | StringBuilder sb = new StringBuilder(); 86 | sb.append("class TopicName {\n"); 87 | 88 | sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); 89 | sb.append("}"); 90 | return sb.toString(); 91 | } 92 | 93 | /** 94 | * Convert the given object to string with each line indented by 4 spaces 95 | * (except the first line). 96 | */ 97 | private String toIndentedString(java.lang.Object o) { 98 | if (o == null) { 99 | return "null"; 100 | } 101 | return o.toString().replace("\n", "\n "); 102 | } 103 | 104 | } 105 | 106 | -------------------------------------------------------------------------------- /src/test/java/io/gitea/api/ActivitypubApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.api; 15 | 16 | import io.gitea.ApiException; 17 | import io.gitea.model.ActivityPub; 18 | import org.junit.Test; 19 | import org.junit.Ignore; 20 | 21 | import java.util.ArrayList; 22 | import java.util.HashMap; 23 | import java.util.List; 24 | import java.util.Map; 25 | 26 | /** 27 | * API tests for ActivitypubApi 28 | */ 29 | @Ignore 30 | public class ActivitypubApiTest { 31 | 32 | private final ActivitypubApi api = new ActivitypubApi(); 33 | 34 | 35 | /** 36 | * Returns the Person actor for a user 37 | * 38 | * 39 | * 40 | * @throws ApiException 41 | * if the Api call fails 42 | */ 43 | @Test 44 | public void activitypubPersonTest() throws ApiException { 45 | String username = null; 46 | ActivityPub response = api.activitypubPerson(username); 47 | 48 | // TODO: test validations 49 | } 50 | 51 | /** 52 | * Send to the inbox 53 | * 54 | * 55 | * 56 | * @throws ApiException 57 | * if the Api call fails 58 | */ 59 | @Test 60 | public void activitypubPersonInboxTest() throws ApiException { 61 | String username = null; 62 | api.activitypubPersonInbox(username); 63 | 64 | // TODO: test validations 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/test/java/io/gitea/api/MiscellaneousApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.api; 15 | 16 | import io.gitea.ApiException; 17 | import io.gitea.model.MarkdownOption; 18 | import io.gitea.model.NodeInfo; 19 | import io.gitea.model.ServerVersion; 20 | import org.junit.Test; 21 | import org.junit.Ignore; 22 | 23 | import java.util.ArrayList; 24 | import java.util.HashMap; 25 | import java.util.List; 26 | import java.util.Map; 27 | 28 | /** 29 | * API tests for MiscellaneousApi 30 | */ 31 | @Ignore 32 | public class MiscellaneousApiTest { 33 | 34 | private final MiscellaneousApi api = new MiscellaneousApi(); 35 | 36 | 37 | /** 38 | * Returns the nodeinfo of the Gitea application 39 | * 40 | * 41 | * 42 | * @throws ApiException 43 | * if the Api call fails 44 | */ 45 | @Test 46 | public void getNodeInfoTest() throws ApiException { 47 | NodeInfo response = api.getNodeInfo(); 48 | 49 | // TODO: test validations 50 | } 51 | 52 | /** 53 | * Get default signing-key.gpg 54 | * 55 | * 56 | * 57 | * @throws ApiException 58 | * if the Api call fails 59 | */ 60 | @Test 61 | public void getSigningKeyTest() throws ApiException { 62 | String response = api.getSigningKey(); 63 | 64 | // TODO: test validations 65 | } 66 | 67 | /** 68 | * Returns the version of the Gitea application 69 | * 70 | * 71 | * 72 | * @throws ApiException 73 | * if the Api call fails 74 | */ 75 | @Test 76 | public void getVersionTest() throws ApiException { 77 | ServerVersion response = api.getVersion(); 78 | 79 | // TODO: test validations 80 | } 81 | 82 | /** 83 | * Render a markdown document as HTML 84 | * 85 | * 86 | * 87 | * @throws ApiException 88 | * if the Api call fails 89 | */ 90 | @Test 91 | public void renderMarkdownTest() throws ApiException { 92 | MarkdownOption body = null; 93 | String response = api.renderMarkdown(body); 94 | 95 | // TODO: test validations 96 | } 97 | 98 | /** 99 | * Render raw markdown as HTML 100 | * 101 | * 102 | * 103 | * @throws ApiException 104 | * if the Api call fails 105 | */ 106 | @Test 107 | public void renderMarkdownRawTest() throws ApiException { 108 | String body = null; 109 | String response = api.renderMarkdownRaw(body); 110 | 111 | // TODO: test validations 112 | } 113 | 114 | } 115 | -------------------------------------------------------------------------------- /src/test/java/io/gitea/api/PackageApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.api; 15 | 16 | import io.gitea.ApiException; 17 | import io.gitea.model.ModelPackage; 18 | import io.gitea.model.PackageFile; 19 | import org.junit.Test; 20 | import org.junit.Ignore; 21 | 22 | import java.util.ArrayList; 23 | import java.util.HashMap; 24 | import java.util.List; 25 | import java.util.Map; 26 | 27 | /** 28 | * API tests for PackageApi 29 | */ 30 | @Ignore 31 | public class PackageApiTest { 32 | 33 | private final PackageApi api = new PackageApi(); 34 | 35 | 36 | /** 37 | * Delete a package 38 | * 39 | * 40 | * 41 | * @throws ApiException 42 | * if the Api call fails 43 | */ 44 | @Test 45 | public void deletePackageTest() throws ApiException { 46 | String owner = null; 47 | String type = null; 48 | String name = null; 49 | String version = null; 50 | api.deletePackage(owner, type, name, version); 51 | 52 | // TODO: test validations 53 | } 54 | 55 | /** 56 | * Gets a package 57 | * 58 | * 59 | * 60 | * @throws ApiException 61 | * if the Api call fails 62 | */ 63 | @Test 64 | public void getPackageTest() throws ApiException { 65 | String owner = null; 66 | String type = null; 67 | String name = null; 68 | String version = null; 69 | ModelPackage response = api.getPackage(owner, type, name, version); 70 | 71 | // TODO: test validations 72 | } 73 | 74 | /** 75 | * Gets all files of a package 76 | * 77 | * 78 | * 79 | * @throws ApiException 80 | * if the Api call fails 81 | */ 82 | @Test 83 | public void listPackageFilesTest() throws ApiException { 84 | String owner = null; 85 | String type = null; 86 | String name = null; 87 | String version = null; 88 | List response = api.listPackageFiles(owner, type, name, version); 89 | 90 | // TODO: test validations 91 | } 92 | 93 | /** 94 | * Gets all packages of an owner 95 | * 96 | * 97 | * 98 | * @throws ApiException 99 | * if the Api call fails 100 | */ 101 | @Test 102 | public void listPackagesTest() throws ApiException { 103 | String owner = null; 104 | Integer page = null; 105 | Integer limit = null; 106 | String type = null; 107 | String q = null; 108 | List response = api.listPackages(owner, page, limit, type, q); 109 | 110 | // TODO: test validations 111 | } 112 | 113 | } 114 | -------------------------------------------------------------------------------- /src/test/java/io/gitea/api/SettingsApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Gitea API. 3 | * This documentation describes the Gitea API. 4 | * 5 | * OpenAPI spec version: 1.18.0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.gitea.api; 15 | 16 | import io.gitea.ApiException; 17 | import io.gitea.model.GeneralAPISettings; 18 | import io.gitea.model.GeneralAttachmentSettings; 19 | import io.gitea.model.GeneralRepoSettings; 20 | import io.gitea.model.GeneralUISettings; 21 | import org.junit.Test; 22 | import org.junit.Ignore; 23 | 24 | import java.util.ArrayList; 25 | import java.util.HashMap; 26 | import java.util.List; 27 | import java.util.Map; 28 | 29 | /** 30 | * API tests for SettingsApi 31 | */ 32 | @Ignore 33 | public class SettingsApiTest { 34 | 35 | private final SettingsApi api = new SettingsApi(); 36 | 37 | 38 | /** 39 | * Get instance's global settings for api 40 | * 41 | * 42 | * 43 | * @throws ApiException 44 | * if the Api call fails 45 | */ 46 | @Test 47 | public void getGeneralAPISettingsTest() throws ApiException { 48 | GeneralAPISettings response = api.getGeneralAPISettings(); 49 | 50 | // TODO: test validations 51 | } 52 | 53 | /** 54 | * Get instance's global settings for Attachment 55 | * 56 | * 57 | * 58 | * @throws ApiException 59 | * if the Api call fails 60 | */ 61 | @Test 62 | public void getGeneralAttachmentSettingsTest() throws ApiException { 63 | GeneralAttachmentSettings response = api.getGeneralAttachmentSettings(); 64 | 65 | // TODO: test validations 66 | } 67 | 68 | /** 69 | * Get instance's global settings for repositories 70 | * 71 | * 72 | * 73 | * @throws ApiException 74 | * if the Api call fails 75 | */ 76 | @Test 77 | public void getGeneralRepositorySettingsTest() throws ApiException { 78 | GeneralRepoSettings response = api.getGeneralRepositorySettings(); 79 | 80 | // TODO: test validations 81 | } 82 | 83 | /** 84 | * Get instance's global settings for ui 85 | * 86 | * 87 | * 88 | * @throws ApiException 89 | * if the Api call fails 90 | */ 91 | @Test 92 | public void getGeneralUISettingsTest() throws ApiException { 93 | GeneralUISettings response = api.getGeneralUISettings(); 94 | 95 | // TODO: test validations 96 | } 97 | 98 | } 99 | --------------------------------------------------------------------------------