forgejo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +9 -0
- data/LICENSE~ +9 -0
- data/Makefile +23 -0
- data/Makefile~ +2 -0
- data/README.md +717 -0
- data/Rakefile +10 -0
- data/docs/APIError.md +20 -0
- data/docs/AccessToken.md +26 -0
- data/docs/ActionTask.md +42 -0
- data/docs/ActionTaskResponse.md +20 -0
- data/docs/ActionVariable.md +24 -0
- data/docs/Activity.md +42 -0
- data/docs/ActivityPub.md +18 -0
- data/docs/ActivitypubApi.md +289 -0
- data/docs/AddCollaboratorOption.md +18 -0
- data/docs/AddTimeOption.md +22 -0
- data/docs/AdminApi.md +1672 -0
- data/docs/AnnotatedTag.md +32 -0
- data/docs/AnnotatedTagObject.md +22 -0
- data/docs/Attachment.md +30 -0
- data/docs/BlockedUser.md +20 -0
- data/docs/Branch.md +34 -0
- data/docs/BranchProtection.md +70 -0
- data/docs/ChangeFileOperation.md +26 -0
- data/docs/ChangeFilesOptions.md +32 -0
- data/docs/ChangedFile.md +34 -0
- data/docs/CombinedStatus.md +30 -0
- data/docs/Comment.md +38 -0
- data/docs/Commit.md +36 -0
- data/docs/CommitAffectedFiles.md +20 -0
- data/docs/CommitDateOptions.md +20 -0
- data/docs/CommitMeta.md +22 -0
- data/docs/CommitStats.md +22 -0
- data/docs/CommitStatus.md +34 -0
- data/docs/CommitUser.md +22 -0
- data/docs/Compare.md +20 -0
- data/docs/ContentsResponse.md +46 -0
- data/docs/CreateAccessTokenOption.md +20 -0
- data/docs/CreateBranchProtectionOption.md +66 -0
- data/docs/CreateBranchRepoOption.md +22 -0
- data/docs/CreateEmailOption.md +18 -0
- data/docs/CreateFileOptions.md +32 -0
- data/docs/CreateForkOption.md +20 -0
- data/docs/CreateGPGKeyOption.md +20 -0
- data/docs/CreateHookOption.md +28 -0
- data/docs/CreateIssueCommentOption.md +20 -0
- data/docs/CreateIssueOption.md +34 -0
- data/docs/CreateKeyOption.md +22 -0
- data/docs/CreateLabelOption.md +26 -0
- data/docs/CreateMilestoneOption.md +24 -0
- data/docs/CreateOAuth2ApplicationOptions.md +22 -0
- data/docs/CreateOrUpdateSecretOption.md +18 -0
- data/docs/CreateOrgOption.md +32 -0
- data/docs/CreatePullRequestOption.md +34 -0
- data/docs/CreatePullReviewComment.md +24 -0
- data/docs/CreatePullReviewOptions.md +24 -0
- data/docs/CreatePushMirrorOption.md +26 -0
- data/docs/CreateReleaseOption.md +30 -0
- data/docs/CreateRepoOption.md +40 -0
- data/docs/CreateStatusOption.md +24 -0
- data/docs/CreateTagOption.md +22 -0
- data/docs/CreateTagProtectionOption.md +22 -0
- data/docs/CreateTeamOption.md +30 -0
- data/docs/CreateUserOption.md +38 -0
- data/docs/CreateVariableOption.md +18 -0
- data/docs/CreateWikiPageOptions.md +22 -0
- data/docs/Cron.md +26 -0
- data/docs/DeleteEmailOption.md +18 -0
- data/docs/DeleteFileOptions.md +32 -0
- data/docs/DeleteLabelsOption.md +18 -0
- data/docs/DeployKey.md +34 -0
- data/docs/DismissPullReviewOptions.md +20 -0
- data/docs/DispatchWorkflowOption.md +20 -0
- data/docs/EditAttachmentOptions.md +18 -0
- data/docs/EditBranchProtectionOption.md +62 -0
- data/docs/EditDeadlineOption.md +18 -0
- data/docs/EditGitHookOption.md +18 -0
- data/docs/EditHookOption.md +26 -0
- data/docs/EditIssueCommentOption.md +20 -0
- data/docs/EditIssueOption.md +36 -0
- data/docs/EditLabelOption.md +26 -0
- data/docs/EditMilestoneOption.md +24 -0
- data/docs/EditOrgOption.md +30 -0
- data/docs/EditPullRequestOption.md +38 -0
- data/docs/EditReactionOption.md +18 -0
- data/docs/EditReleaseOption.md +30 -0
- data/docs/EditRepoOption.md +82 -0
- data/docs/EditTagProtectionOption.md +22 -0
- data/docs/EditTeamOption.md +30 -0
- data/docs/EditUserOption.md +54 -0
- data/docs/Email.md +26 -0
- data/docs/ExternalTracker.md +24 -0
- data/docs/ExternalWiki.md +18 -0
- data/docs/FileCommitResponse.md +34 -0
- data/docs/FileDeleteResponse.md +22 -0
- data/docs/FileLinksResponse.md +22 -0
- data/docs/FileResponse.md +22 -0
- data/docs/FilesResponse.md +22 -0
- data/docs/GPGKey.md +42 -0
- data/docs/GPGKeyEmail.md +20 -0
- data/docs/GeneralAPISettings.md +24 -0
- data/docs/GeneralAttachmentSettings.md +24 -0
- data/docs/GeneralRepoSettings.md +30 -0
- data/docs/GeneralUISettings.md +22 -0
- data/docs/GenerateRepoOption.md +40 -0
- data/docs/GitBlobResponse.md +26 -0
- data/docs/GitEntry.md +28 -0
- data/docs/GitHook.md +22 -0
- data/docs/GitObject.md +22 -0
- data/docs/GitTreeResponse.md +28 -0
- data/docs/GitignoreTemplateInfo.md +20 -0
- data/docs/Hook.md +40 -0
- data/docs/Identity.md +20 -0
- data/docs/InternalTracker.md +22 -0
- data/docs/Issue.md +66 -0
- data/docs/IssueApi.md +5206 -0
- data/docs/IssueConfig.md +20 -0
- data/docs/IssueConfigContactLink.md +22 -0
- data/docs/IssueConfigValidation.md +20 -0
- data/docs/IssueDeadline.md +18 -0
- data/docs/IssueFormField.md +26 -0
- data/docs/IssueLabelsOption.md +20 -0
- data/docs/IssueMeta.md +22 -0
- data/docs/IssueTemplate.md +32 -0
- data/docs/Label.md +30 -0
- data/docs/LabelTemplate.md +24 -0
- data/docs/LicenseTemplateInfo.md +26 -0
- data/docs/LicensesTemplateListEntry.md +22 -0
- data/docs/MarkdownOption.md +24 -0
- data/docs/MarkupOption.md +26 -0
- data/docs/MergePullRequestOption.md +32 -0
- data/docs/MigrateRepoOptions.md +56 -0
- data/docs/Milestone.md +36 -0
- data/docs/MiscellaneousApi.md +833 -0
- data/docs/NewIssuePinsAllowed.md +20 -0
- data/docs/NodeInfo.md +30 -0
- data/docs/NodeInfoServices.md +20 -0
- data/docs/NodeInfoSoftware.md +24 -0
- data/docs/NodeInfoUsage.md +22 -0
- data/docs/NodeInfoUsageUsers.md +22 -0
- data/docs/Note.md +20 -0
- data/docs/NotificationApi.md +550 -0
- data/docs/NotificationCount.md +18 -0
- data/docs/NotificationSubject.md +30 -0
- data/docs/NotificationThread.md +30 -0
- data/docs/OAuth2Application.md +30 -0
- data/docs/Organization.md +38 -0
- data/docs/OrganizationApi.md +4259 -0
- data/docs/OrganizationPermissions.md +26 -0
- data/docs/PRBranchInfo.md +26 -0
- data/docs/Package.md +34 -0
- data/docs/PackageApi.md +314 -0
- data/docs/PackageFile.md +30 -0
- data/docs/PayloadCommit.md +36 -0
- data/docs/PayloadCommitVerification.md +26 -0
- data/docs/PayloadUser.md +22 -0
- data/docs/Permission.md +22 -0
- data/docs/PublicKey.md +34 -0
- data/docs/PullRequest.md +88 -0
- data/docs/PullRequestMeta.md +24 -0
- data/docs/PullReview.md +44 -0
- data/docs/PullReviewComment.md +46 -0
- data/docs/PullReviewRequestOptions.md +20 -0
- data/docs/PushMirror.md +32 -0
- data/docs/Reaction.md +22 -0
- data/docs/Reference.md +22 -0
- data/docs/Release.md +52 -0
- data/docs/RenameUserOption.md +18 -0
- data/docs/ReplaceFlagsOption.md +18 -0
- data/docs/RepoCollaboratorPermission.md +22 -0
- data/docs/RepoCommit.md +28 -0
- data/docs/RepoCreateReleaseAttachmentRequest.md +18 -0
- data/docs/RepoTopicOptions.md +18 -0
- data/docs/RepoTransfer.md +22 -0
- data/docs/Repository.md +140 -0
- data/docs/RepositoryApi.md +13022 -0
- data/docs/RepositoryMeta.md +24 -0
- data/docs/SearchResults.md +20 -0
- data/docs/Secret.md +20 -0
- data/docs/ServerVersion.md +18 -0
- data/docs/SettingsApi.md +275 -0
- data/docs/StopWatch.md +30 -0
- data/docs/SubmitPullReviewOptions.md +20 -0
- data/docs/Tag.md +30 -0
- data/docs/TagArchiveDownloadCount.md +20 -0
- data/docs/TagProtection.md +28 -0
- data/docs/Team.md +34 -0
- data/docs/TeamSearch200Response.md +20 -0
- data/docs/TimelineComment.md +74 -0
- data/docs/TopicName.md +18 -0
- data/docs/TopicResponse.md +26 -0
- data/docs/TrackedTime.md +30 -0
- data/docs/TransferRepoOption.md +20 -0
- data/docs/UpdateFileOptions.md +36 -0
- data/docs/UpdateRepoAvatarOption.md +18 -0
- data/docs/UpdateUserAvatarOption.md +18 -0
- data/docs/UpdateVariableOption.md +20 -0
- data/docs/User.md +62 -0
- data/docs/UserApi.md +4969 -0
- data/docs/UserHeatmapData.md +20 -0
- data/docs/UserSearch200Response.md +20 -0
- data/docs/UserSettings.md +38 -0
- data/docs/UserSettingsOptions.md +38 -0
- data/docs/WatchInfo.md +28 -0
- data/docs/WikiCommit.md +24 -0
- data/docs/WikiCommitList.md +20 -0
- data/docs/WikiPage.md +32 -0
- data/docs/WikiPageMetaData.md +24 -0
- data/forgejo.gemspec +49 -0
- data/git_push.sh +57 -0
- data/lib/forgejo/api/activitypub_api.rb +269 -0
- data/lib/forgejo/api/admin_api.rb +1496 -0
- data/lib/forgejo/api/issue_api.rb +5282 -0
- data/lib/forgejo/api/miscellaneous_api.rb +725 -0
- data/lib/forgejo/api/notification_api.rb +520 -0
- data/lib/forgejo/api/organization_api.rb +3898 -0
- data/lib/forgejo/api/package_api.rb +334 -0
- data/lib/forgejo/api/repository_api.rb +12849 -0
- data/lib/forgejo/api/settings_api.rb +242 -0
- data/lib/forgejo/api/user_api.rb +4314 -0
- data/lib/forgejo/api_client.rb +437 -0
- data/lib/forgejo/api_error.rb +58 -0
- data/lib/forgejo/configuration.rb +392 -0
- data/lib/forgejo/models/access_token.rb +252 -0
- data/lib/forgejo/models/action_task.rb +323 -0
- data/lib/forgejo/models/action_task_response.rb +226 -0
- data/lib/forgejo/models/action_variable.rb +246 -0
- data/lib/forgejo/models/activity.rb +357 -0
- data/lib/forgejo/models/activity_pub.rb +215 -0
- data/lib/forgejo/models/add_collaborator_option.rb +215 -0
- data/lib/forgejo/models/add_time_option.rb +242 -0
- data/lib/forgejo/models/annotated_tag.rb +278 -0
- data/lib/forgejo/models/annotated_tag_object.rb +233 -0
- data/lib/forgejo/models/api_error.rb +224 -0
- data/lib/forgejo/models/attachment.rb +269 -0
- data/lib/forgejo/models/blocked_user.rb +223 -0
- data/lib/forgejo/models/branch.rb +289 -0
- data/lib/forgejo/models/branch_protection.rb +464 -0
- data/lib/forgejo/models/change_file_operation.rb +304 -0
- data/lib/forgejo/models/change_files_options.rb +292 -0
- data/lib/forgejo/models/changed_file.rb +287 -0
- data/lib/forgejo/models/combined_status.rb +272 -0
- data/lib/forgejo/models/comment.rb +307 -0
- data/lib/forgejo/models/commit.rb +299 -0
- data/lib/forgejo/models/commit_affected_files.rb +224 -0
- data/lib/forgejo/models/commit_date_options.rb +224 -0
- data/lib/forgejo/models/commit_meta.rb +232 -0
- data/lib/forgejo/models/commit_stats.rb +233 -0
- data/lib/forgejo/models/commit_status.rb +288 -0
- data/lib/forgejo/models/commit_user.rb +232 -0
- data/lib/forgejo/models/compare.rb +225 -0
- data/lib/forgejo/models/contents_response.rb +346 -0
- data/lib/forgejo/models/create_access_token_option.rb +233 -0
- data/lib/forgejo/models/create_branch_protection_option.rb +446 -0
- data/lib/forgejo/models/create_branch_repo_option.rb +243 -0
- data/lib/forgejo/models/create_email_option.rb +218 -0
- data/lib/forgejo/models/create_file_options.rb +290 -0
- data/lib/forgejo/models/create_fork_option.rb +226 -0
- data/lib/forgejo/models/create_gpg_key_option.rb +232 -0
- data/lib/forgejo/models/create_hook_option.rb +315 -0
- data/lib/forgejo/models/create_issue_comment_option.rb +231 -0
- data/lib/forgejo/models/create_issue_option.rb +301 -0
- data/lib/forgejo/models/create_key_option.rb +250 -0
- data/lib/forgejo/models/create_label_option.rb +265 -0
- data/lib/forgejo/models/create_milestone_option.rb +276 -0
- data/lib/forgejo/models/create_o_auth2_application_options.rb +235 -0
- data/lib/forgejo/models/create_or_update_secret_option.rb +223 -0
- data/lib/forgejo/models/create_org_option.rb +320 -0
- data/lib/forgejo/models/create_pull_request_option.rb +291 -0
- data/lib/forgejo/models/create_pull_review_comment.rb +245 -0
- data/lib/forgejo/models/create_pull_review_options.rb +245 -0
- data/lib/forgejo/models/create_push_mirror_option.rb +250 -0
- data/lib/forgejo/models/create_release_option.rb +276 -0
- data/lib/forgejo/models/create_repo_option.rb +379 -0
- data/lib/forgejo/models/create_status_option.rb +243 -0
- data/lib/forgejo/models/create_tag_option.rb +240 -0
- data/lib/forgejo/models/create_tag_protection_option.rb +237 -0
- data/lib/forgejo/models/create_team_option.rb +314 -0
- data/lib/forgejo/models/create_user_option.rb +320 -0
- data/lib/forgejo/models/create_variable_option.rb +223 -0
- data/lib/forgejo/models/create_wiki_page_options.rb +236 -0
- data/lib/forgejo/models/cron.rb +251 -0
- data/lib/forgejo/models/delete_email_option.rb +218 -0
- data/lib/forgejo/models/delete_file_options.rb +290 -0
- data/lib/forgejo/models/delete_labels_option.rb +215 -0
- data/lib/forgejo/models/deploy_key.rb +287 -0
- data/lib/forgejo/models/dismiss_pull_review_options.rb +224 -0
- data/lib/forgejo/models/dispatch_workflow_option.rb +235 -0
- data/lib/forgejo/models/edit_attachment_options.rb +215 -0
- data/lib/forgejo/models/edit_branch_protection_option.rb +427 -0
- data/lib/forgejo/models/edit_deadline_option.rb +222 -0
- data/lib/forgejo/models/edit_git_hook_option.rb +215 -0
- data/lib/forgejo/models/edit_hook_option.rb +255 -0
- data/lib/forgejo/models/edit_issue_comment_option.rb +231 -0
- data/lib/forgejo/models/edit_issue_option.rb +299 -0
- data/lib/forgejo/models/edit_label_option.rb +251 -0
- data/lib/forgejo/models/edit_milestone_option.rb +242 -0
- data/lib/forgejo/models/edit_org_option.rb +304 -0
- data/lib/forgejo/models/edit_pull_request_option.rb +309 -0
- data/lib/forgejo/models/edit_reaction_option.rb +215 -0
- data/lib/forgejo/models/edit_release_option.rb +269 -0
- data/lib/forgejo/models/edit_repo_option.rb +533 -0
- data/lib/forgejo/models/edit_tag_protection_option.rb +237 -0
- data/lib/forgejo/models/edit_team_option.rb +314 -0
- data/lib/forgejo/models/edit_user_option.rb +377 -0
- data/lib/forgejo/models/email.rb +251 -0
- data/lib/forgejo/models/external_tracker.rb +246 -0
- data/lib/forgejo/models/external_wiki.rb +216 -0
- data/lib/forgejo/models/file_commit_response.rb +288 -0
- data/lib/forgejo/models/file_delete_response.rb +233 -0
- data/lib/forgejo/models/file_links_response.rb +233 -0
- data/lib/forgejo/models/file_response.rb +233 -0
- data/lib/forgejo/models/files_response.rb +235 -0
- data/lib/forgejo/models/general_api_settings.rb +242 -0
- data/lib/forgejo/models/general_attachment_settings.rb +242 -0
- data/lib/forgejo/models/general_repo_settings.rb +269 -0
- data/lib/forgejo/models/general_ui_settings.rb +237 -0
- data/lib/forgejo/models/generate_repo_option.rb +340 -0
- data/lib/forgejo/models/git_blob_response.rb +251 -0
- data/lib/forgejo/models/git_entry.rb +260 -0
- data/lib/forgejo/models/git_hook.rb +233 -0
- data/lib/forgejo/models/git_object.rb +232 -0
- data/lib/forgejo/models/git_tree_response.rb +262 -0
- data/lib/forgejo/models/gitignore_template_info.rb +224 -0
- data/lib/forgejo/models/gpg_key.rb +327 -0
- data/lib/forgejo/models/gpg_key_email.rb +224 -0
- data/lib/forgejo/models/hook.rb +319 -0
- data/lib/forgejo/models/identity.rb +224 -0
- data/lib/forgejo/models/internal_tracker.rb +236 -0
- data/lib/forgejo/models/issue.rb +438 -0
- data/lib/forgejo/models/issue_config.rb +225 -0
- data/lib/forgejo/models/issue_config_contact_link.rb +232 -0
- data/lib/forgejo/models/issue_config_validation.rb +223 -0
- data/lib/forgejo/models/issue_deadline.rb +215 -0
- data/lib/forgejo/models/issue_form_field.rb +257 -0
- data/lib/forgejo/models/issue_labels_option.rb +227 -0
- data/lib/forgejo/models/issue_meta.rb +233 -0
- data/lib/forgejo/models/issue_template.rb +282 -0
- data/lib/forgejo/models/label.rb +269 -0
- data/lib/forgejo/models/label_template.rb +242 -0
- data/lib/forgejo/models/license_template_info.rb +251 -0
- data/lib/forgejo/models/licenses_template_list_entry.rb +233 -0
- data/lib/forgejo/models/markdown_option.rb +246 -0
- data/lib/forgejo/models/markup_option.rb +256 -0
- data/lib/forgejo/models/merge_pull_request_option.rb +319 -0
- data/lib/forgejo/models/migrate_repo_options.rb +436 -0
- data/lib/forgejo/models/milestone.rb +297 -0
- data/lib/forgejo/models/new_issue_pins_allowed.rb +224 -0
- data/lib/forgejo/models/node_info.rb +271 -0
- data/lib/forgejo/models/node_info_services.rb +228 -0
- data/lib/forgejo/models/node_info_software.rb +242 -0
- data/lib/forgejo/models/node_info_usage.rb +233 -0
- data/lib/forgejo/models/node_info_usage_users.rb +233 -0
- data/lib/forgejo/models/note.rb +224 -0
- data/lib/forgejo/models/notification_count.rb +215 -0
- data/lib/forgejo/models/notification_subject.rb +271 -0
- data/lib/forgejo/models/notification_thread.rb +269 -0
- data/lib/forgejo/models/o_auth2_application.rb +270 -0
- data/lib/forgejo/models/organization.rb +306 -0
- data/lib/forgejo/models/organization_permissions.rb +251 -0
- data/lib/forgejo/models/package.rb +287 -0
- data/lib/forgejo/models/package_file.rb +269 -0
- data/lib/forgejo/models/payload_commit.rb +303 -0
- data/lib/forgejo/models/payload_commit_verification.rb +251 -0
- data/lib/forgejo/models/payload_user.rb +234 -0
- data/lib/forgejo/models/permission.rb +233 -0
- data/lib/forgejo/models/pr_branch_info.rb +251 -0
- data/lib/forgejo/models/public_key.rb +287 -0
- data/lib/forgejo/models/pull_request.rb +538 -0
- data/lib/forgejo/models/pull_request_meta.rb +242 -0
- data/lib/forgejo/models/pull_review.rb +333 -0
- data/lib/forgejo/models/pull_review_comment.rb +341 -0
- data/lib/forgejo/models/pull_review_request_options.rb +228 -0
- data/lib/forgejo/models/push_mirror.rb +278 -0
- data/lib/forgejo/models/reaction.rb +233 -0
- data/lib/forgejo/models/reference.rb +232 -0
- data/lib/forgejo/models/release.rb +370 -0
- data/lib/forgejo/models/rename_user_option.rb +223 -0
- data/lib/forgejo/models/replace_flags_option.rb +217 -0
- data/lib/forgejo/models/repo_collaborator_permission.rb +233 -0
- data/lib/forgejo/models/repo_commit.rb +259 -0
- data/lib/forgejo/models/repo_create_release_attachment_request.rb +215 -0
- data/lib/forgejo/models/repo_topic_options.rb +218 -0
- data/lib/forgejo/models/repo_transfer.rb +235 -0
- data/lib/forgejo/models/repository.rb +801 -0
- data/lib/forgejo/models/repository_meta.rb +242 -0
- data/lib/forgejo/models/search_results.rb +226 -0
- data/lib/forgejo/models/secret.rb +225 -0
- data/lib/forgejo/models/server_version.rb +215 -0
- data/lib/forgejo/models/stop_watch.rb +269 -0
- data/lib/forgejo/models/submit_pull_review_options.rb +225 -0
- data/lib/forgejo/models/tag.rb +269 -0
- data/lib/forgejo/models/tag_archive_download_count.rb +224 -0
- data/lib/forgejo/models/tag_protection.rb +264 -0
- data/lib/forgejo/models/team.rb +325 -0
- data/lib/forgejo/models/team_search200_response.rb +225 -0
- data/lib/forgejo/models/timeline_comment.rb +469 -0
- data/lib/forgejo/models/topic_name.rb +217 -0
- data/lib/forgejo/models/topic_response.rb +251 -0
- data/lib/forgejo/models/tracked_time.rb +272 -0
- data/lib/forgejo/models/transfer_repo_option.rb +234 -0
- data/lib/forgejo/models/update_file_options.rb +317 -0
- data/lib/forgejo/models/update_repo_avatar_option.rb +216 -0
- data/lib/forgejo/models/update_user_avatar_option.rb +216 -0
- data/lib/forgejo/models/update_variable_option.rb +233 -0
- data/lib/forgejo/models/user.rb +433 -0
- data/lib/forgejo/models/user_heatmap_data.rb +225 -0
- data/lib/forgejo/models/user_search200_response.rb +225 -0
- data/lib/forgejo/models/user_settings.rb +306 -0
- data/lib/forgejo/models/user_settings_options.rb +306 -0
- data/lib/forgejo/models/watch_info.rb +260 -0
- data/lib/forgejo/models/wiki_commit.rb +242 -0
- data/lib/forgejo/models/wiki_commit_list.rb +226 -0
- data/lib/forgejo/models/wiki_page.rb +279 -0
- data/lib/forgejo/models/wiki_page_meta_data.rb +242 -0
- data/lib/forgejo/version.rb +15 -0
- data/lib/forgejo.rb +241 -0
- data/manifest.scm +2 -0
- data/patch +7 -0
- data/patch~ +1 -0
- data/smoke +16 -0
- data/smoke~ +1 -0
- data/spec/api/activitypub_api_spec.rb +80 -0
- data/spec/api/admin_api_spec.rb +308 -0
- data/spec/api/issue_api_spec.rb +998 -0
- data/spec/api/miscellaneous_api_spec.rb +161 -0
- data/spec/api/notification_api_spec.rb +134 -0
- data/spec/api/organization_api_spec.rb +752 -0
- data/spec/api/package_api_spec.rb +92 -0
- data/spec/api/repository_api_spec.rb +2366 -0
- data/spec/api/settings_api_spec.rb +75 -0
- data/spec/api/user_api_spec.rb +839 -0
- data/spec/models/access_token_spec.rb +60 -0
- data/spec/models/action_task_response_spec.rb +42 -0
- data/spec/models/action_task_spec.rb +108 -0
- data/spec/models/action_variable_spec.rb +54 -0
- data/spec/models/activity_pub_spec.rb +36 -0
- data/spec/models/activity_spec.rb +112 -0
- data/spec/models/add_collaborator_option_spec.rb +36 -0
- data/spec/models/add_time_option_spec.rb +48 -0
- data/spec/models/annotated_tag_object_spec.rb +48 -0
- data/spec/models/annotated_tag_spec.rb +78 -0
- data/spec/models/api_error_spec.rb +42 -0
- data/spec/models/attachment_spec.rb +72 -0
- data/spec/models/blocked_user_spec.rb +42 -0
- data/spec/models/branch_protection_spec.rb +192 -0
- data/spec/models/branch_spec.rb +84 -0
- data/spec/models/change_file_operation_spec.rb +64 -0
- data/spec/models/change_files_options_spec.rb +78 -0
- data/spec/models/changed_file_spec.rb +84 -0
- data/spec/models/combined_status_spec.rb +72 -0
- data/spec/models/comment_spec.rb +96 -0
- data/spec/models/commit_affected_files_spec.rb +42 -0
- data/spec/models/commit_date_options_spec.rb +42 -0
- data/spec/models/commit_meta_spec.rb +48 -0
- data/spec/models/commit_spec.rb +90 -0
- data/spec/models/commit_stats_spec.rb +48 -0
- data/spec/models/commit_status_spec.rb +84 -0
- data/spec/models/commit_user_spec.rb +48 -0
- data/spec/models/compare_spec.rb +42 -0
- data/spec/models/contents_response_spec.rb +120 -0
- data/spec/models/create_access_token_option_spec.rb +42 -0
- data/spec/models/create_branch_protection_option_spec.rb +180 -0
- data/spec/models/create_branch_repo_option_spec.rb +48 -0
- data/spec/models/create_email_option_spec.rb +36 -0
- data/spec/models/create_file_options_spec.rb +78 -0
- data/spec/models/create_fork_option_spec.rb +42 -0
- data/spec/models/create_gpg_key_option_spec.rb +42 -0
- data/spec/models/create_hook_option_spec.rb +70 -0
- data/spec/models/create_issue_comment_option_spec.rb +42 -0
- data/spec/models/create_issue_option_spec.rb +84 -0
- data/spec/models/create_key_option_spec.rb +48 -0
- data/spec/models/create_label_option_spec.rb +60 -0
- data/spec/models/create_milestone_option_spec.rb +58 -0
- data/spec/models/create_o_auth2_application_options_spec.rb +48 -0
- data/spec/models/create_or_update_secret_option_spec.rb +36 -0
- data/spec/models/create_org_option_spec.rb +82 -0
- data/spec/models/create_pull_request_option_spec.rb +84 -0
- data/spec/models/create_pull_review_comment_spec.rb +54 -0
- data/spec/models/create_pull_review_options_spec.rb +54 -0
- data/spec/models/create_push_mirror_option_spec.rb +60 -0
- data/spec/models/create_release_option_spec.rb +72 -0
- data/spec/models/create_repo_option_spec.rb +110 -0
- data/spec/models/create_status_option_spec.rb +54 -0
- data/spec/models/create_tag_option_spec.rb +48 -0
- data/spec/models/create_tag_protection_option_spec.rb +48 -0
- data/spec/models/create_team_option_spec.rb +76 -0
- data/spec/models/create_user_option_spec.rb +96 -0
- data/spec/models/create_variable_option_spec.rb +36 -0
- data/spec/models/create_wiki_page_options_spec.rb +48 -0
- data/spec/models/cron_spec.rb +60 -0
- data/spec/models/delete_email_option_spec.rb +36 -0
- data/spec/models/delete_file_options_spec.rb +78 -0
- data/spec/models/delete_labels_option_spec.rb +36 -0
- data/spec/models/deploy_key_spec.rb +84 -0
- data/spec/models/dismiss_pull_review_options_spec.rb +42 -0
- data/spec/models/dispatch_workflow_option_spec.rb +42 -0
- data/spec/models/edit_attachment_options_spec.rb +36 -0
- data/spec/models/edit_branch_protection_option_spec.rb +168 -0
- data/spec/models/edit_deadline_option_spec.rb +36 -0
- data/spec/models/edit_git_hook_option_spec.rb +36 -0
- data/spec/models/edit_hook_option_spec.rb +60 -0
- data/spec/models/edit_issue_comment_option_spec.rb +42 -0
- data/spec/models/edit_issue_option_spec.rb +90 -0
- data/spec/models/edit_label_option_spec.rb +60 -0
- data/spec/models/edit_milestone_option_spec.rb +54 -0
- data/spec/models/edit_org_option_spec.rb +76 -0
- data/spec/models/edit_pull_request_option_spec.rb +96 -0
- data/spec/models/edit_reaction_option_spec.rb +36 -0
- data/spec/models/edit_release_option_spec.rb +72 -0
- data/spec/models/edit_repo_option_spec.rb +228 -0
- data/spec/models/edit_tag_protection_option_spec.rb +48 -0
- data/spec/models/edit_team_option_spec.rb +76 -0
- data/spec/models/edit_user_option_spec.rb +144 -0
- data/spec/models/email_spec.rb +60 -0
- data/spec/models/external_tracker_spec.rb +54 -0
- data/spec/models/external_wiki_spec.rb +36 -0
- data/spec/models/file_commit_response_spec.rb +84 -0
- data/spec/models/file_delete_response_spec.rb +48 -0
- data/spec/models/file_links_response_spec.rb +48 -0
- data/spec/models/file_response_spec.rb +48 -0
- data/spec/models/files_response_spec.rb +48 -0
- data/spec/models/general_api_settings_spec.rb +54 -0
- data/spec/models/general_attachment_settings_spec.rb +54 -0
- data/spec/models/general_repo_settings_spec.rb +72 -0
- data/spec/models/general_ui_settings_spec.rb +48 -0
- data/spec/models/generate_repo_option_spec.rb +102 -0
- data/spec/models/git_blob_response_spec.rb +60 -0
- data/spec/models/git_entry_spec.rb +66 -0
- data/spec/models/git_hook_spec.rb +48 -0
- data/spec/models/git_object_spec.rb +48 -0
- data/spec/models/git_tree_response_spec.rb +66 -0
- data/spec/models/gitignore_template_info_spec.rb +42 -0
- data/spec/models/gpg_key_email_spec.rb +42 -0
- data/spec/models/gpg_key_spec.rb +108 -0
- data/spec/models/hook_spec.rb +102 -0
- data/spec/models/identity_spec.rb +42 -0
- data/spec/models/internal_tracker_spec.rb +48 -0
- data/spec/models/issue_config_contact_link_spec.rb +48 -0
- data/spec/models/issue_config_spec.rb +42 -0
- data/spec/models/issue_config_validation_spec.rb +42 -0
- data/spec/models/issue_deadline_spec.rb +36 -0
- data/spec/models/issue_form_field_spec.rb +60 -0
- data/spec/models/issue_labels_option_spec.rb +42 -0
- data/spec/models/issue_meta_spec.rb +48 -0
- data/spec/models/issue_spec.rb +180 -0
- data/spec/models/issue_template_spec.rb +78 -0
- data/spec/models/label_spec.rb +72 -0
- data/spec/models/label_template_spec.rb +54 -0
- data/spec/models/license_template_info_spec.rb +60 -0
- data/spec/models/licenses_template_list_entry_spec.rb +48 -0
- data/spec/models/markdown_option_spec.rb +54 -0
- data/spec/models/markup_option_spec.rb +60 -0
- data/spec/models/merge_pull_request_option_spec.rb +82 -0
- data/spec/models/migrate_repo_options_spec.rb +154 -0
- data/spec/models/milestone_spec.rb +90 -0
- data/spec/models/new_issue_pins_allowed_spec.rb +42 -0
- data/spec/models/node_info_services_spec.rb +42 -0
- data/spec/models/node_info_software_spec.rb +54 -0
- data/spec/models/node_info_spec.rb +72 -0
- data/spec/models/node_info_usage_spec.rb +48 -0
- data/spec/models/node_info_usage_users_spec.rb +48 -0
- data/spec/models/note_spec.rb +42 -0
- data/spec/models/notification_count_spec.rb +36 -0
- data/spec/models/notification_subject_spec.rb +72 -0
- data/spec/models/notification_thread_spec.rb +72 -0
- data/spec/models/o_auth2_application_spec.rb +72 -0
- data/spec/models/organization_permissions_spec.rb +60 -0
- data/spec/models/organization_spec.rb +96 -0
- data/spec/models/package_file_spec.rb +72 -0
- data/spec/models/package_spec.rb +84 -0
- data/spec/models/payload_commit_spec.rb +90 -0
- data/spec/models/payload_commit_verification_spec.rb +60 -0
- data/spec/models/payload_user_spec.rb +48 -0
- data/spec/models/permission_spec.rb +48 -0
- data/spec/models/pr_branch_info_spec.rb +60 -0
- data/spec/models/public_key_spec.rb +84 -0
- data/spec/models/pull_request_meta_spec.rb +54 -0
- data/spec/models/pull_request_spec.rb +246 -0
- data/spec/models/pull_review_comment_spec.rb +120 -0
- data/spec/models/pull_review_request_options_spec.rb +42 -0
- data/spec/models/pull_review_spec.rb +114 -0
- data/spec/models/push_mirror_spec.rb +78 -0
- data/spec/models/reaction_spec.rb +48 -0
- data/spec/models/reference_spec.rb +48 -0
- data/spec/models/release_spec.rb +138 -0
- data/spec/models/rename_user_option_spec.rb +36 -0
- data/spec/models/replace_flags_option_spec.rb +36 -0
- data/spec/models/repo_collaborator_permission_spec.rb +48 -0
- data/spec/models/repo_commit_spec.rb +66 -0
- data/spec/models/repo_create_release_attachment_request_spec.rb +36 -0
- data/spec/models/repo_topic_options_spec.rb +36 -0
- data/spec/models/repo_transfer_spec.rb +48 -0
- data/spec/models/repository_meta_spec.rb +54 -0
- data/spec/models/repository_spec.rb +406 -0
- data/spec/models/search_results_spec.rb +42 -0
- data/spec/models/secret_spec.rb +42 -0
- data/spec/models/server_version_spec.rb +36 -0
- data/spec/models/stop_watch_spec.rb +72 -0
- data/spec/models/submit_pull_review_options_spec.rb +42 -0
- data/spec/models/tag_archive_download_count_spec.rb +42 -0
- data/spec/models/tag_protection_spec.rb +66 -0
- data/spec/models/tag_spec.rb +72 -0
- data/spec/models/team_search200_response_spec.rb +42 -0
- data/spec/models/team_spec.rb +88 -0
- data/spec/models/timeline_comment_spec.rb +204 -0
- data/spec/models/topic_name_spec.rb +36 -0
- data/spec/models/topic_response_spec.rb +60 -0
- data/spec/models/tracked_time_spec.rb +72 -0
- data/spec/models/transfer_repo_option_spec.rb +42 -0
- data/spec/models/update_file_options_spec.rb +90 -0
- data/spec/models/update_repo_avatar_option_spec.rb +36 -0
- data/spec/models/update_user_avatar_option_spec.rb +36 -0
- data/spec/models/update_variable_option_spec.rb +42 -0
- data/spec/models/user_heatmap_data_spec.rb +42 -0
- data/spec/models/user_search200_response_spec.rb +42 -0
- data/spec/models/user_settings_options_spec.rb +96 -0
- data/spec/models/user_settings_spec.rb +96 -0
- data/spec/models/user_spec.rb +168 -0
- data/spec/models/watch_info_spec.rb +66 -0
- data/spec/models/wiki_commit_list_spec.rb +42 -0
- data/spec/models/wiki_commit_spec.rb +54 -0
- data/spec/models/wiki_page_meta_data_spec.rb +54 -0
- data/spec/models/wiki_page_spec.rb +78 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger.v1.json +26802 -0
- data/swagger.v1.patched.json +1 -0
- metadata +949 -0
@@ -0,0 +1,725 @@
|
|
1
|
+
=begin
|
2
|
+
#Forgejo API
|
3
|
+
|
4
|
+
#This documentation describes the Forgejo API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Forgejo
|
16
|
+
class MiscellaneousApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Returns information about a gitignore template
|
23
|
+
# @param name [String] name of the template
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [GitignoreTemplateInfo]
|
26
|
+
def get_gitignore_template_info(name, opts = {})
|
27
|
+
data, _status_code, _headers = get_gitignore_template_info_with_http_info(name, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Returns information about a gitignore template
|
32
|
+
# @param name [String] name of the template
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(GitignoreTemplateInfo, Integer, Hash)>] GitignoreTemplateInfo data, response status code and response headers
|
35
|
+
def get_gitignore_template_info_with_http_info(name, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_gitignore_template_info ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'name' is set
|
40
|
+
if @api_client.config.client_side_validation && name.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling MiscellaneousApi.get_gitignore_template_info"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/gitignore/templates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'GitignoreTemplateInfo'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"MiscellaneousApi.get_gitignore_template_info",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#get_gitignore_template_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# Returns all labels in a template
|
84
|
+
# @param name [String] name of the template
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [Array<LabelTemplate>]
|
87
|
+
def get_label_template_info(name, opts = {})
|
88
|
+
data, _status_code, _headers = get_label_template_info_with_http_info(name, opts)
|
89
|
+
data
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns all labels in a template
|
93
|
+
# @param name [String] name of the template
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<(Array<LabelTemplate>, Integer, Hash)>] Array<LabelTemplate> data, response status code and response headers
|
96
|
+
def get_label_template_info_with_http_info(name, opts = {})
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_label_template_info ...'
|
99
|
+
end
|
100
|
+
# verify the required parameter 'name' is set
|
101
|
+
if @api_client.config.client_side_validation && name.nil?
|
102
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling MiscellaneousApi.get_label_template_info"
|
103
|
+
end
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/label/templates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
106
|
+
|
107
|
+
# query parameters
|
108
|
+
query_params = opts[:query_params] || {}
|
109
|
+
|
110
|
+
# header parameters
|
111
|
+
header_params = opts[:header_params] || {}
|
112
|
+
# HTTP header 'Accept' (if needed)
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = opts[:form_params] || {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = opts[:debug_body]
|
120
|
+
|
121
|
+
# return_type
|
122
|
+
return_type = opts[:debug_return_type] || 'Array<LabelTemplate>'
|
123
|
+
|
124
|
+
# auth_names
|
125
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
126
|
+
|
127
|
+
new_options = opts.merge(
|
128
|
+
:operation => :"MiscellaneousApi.get_label_template_info",
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => return_type
|
135
|
+
)
|
136
|
+
|
137
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#get_label_template_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
140
|
+
end
|
141
|
+
return data, status_code, headers
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns information about a license template
|
145
|
+
# @param name [String] name of the license
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @return [LicenseTemplateInfo]
|
148
|
+
def get_license_template_info(name, opts = {})
|
149
|
+
data, _status_code, _headers = get_license_template_info_with_http_info(name, opts)
|
150
|
+
data
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns information about a license template
|
154
|
+
# @param name [String] name of the license
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @return [Array<(LicenseTemplateInfo, Integer, Hash)>] LicenseTemplateInfo data, response status code and response headers
|
157
|
+
def get_license_template_info_with_http_info(name, opts = {})
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_license_template_info ...'
|
160
|
+
end
|
161
|
+
# verify the required parameter 'name' is set
|
162
|
+
if @api_client.config.client_side_validation && name.nil?
|
163
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling MiscellaneousApi.get_license_template_info"
|
164
|
+
end
|
165
|
+
# resource path
|
166
|
+
local_var_path = '/licenses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
167
|
+
|
168
|
+
# query parameters
|
169
|
+
query_params = opts[:query_params] || {}
|
170
|
+
|
171
|
+
# header parameters
|
172
|
+
header_params = opts[:header_params] || {}
|
173
|
+
# HTTP header 'Accept' (if needed)
|
174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
175
|
+
|
176
|
+
# form parameters
|
177
|
+
form_params = opts[:form_params] || {}
|
178
|
+
|
179
|
+
# http body (model)
|
180
|
+
post_body = opts[:debug_body]
|
181
|
+
|
182
|
+
# return_type
|
183
|
+
return_type = opts[:debug_return_type] || 'LicenseTemplateInfo'
|
184
|
+
|
185
|
+
# auth_names
|
186
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
187
|
+
|
188
|
+
new_options = opts.merge(
|
189
|
+
:operation => :"MiscellaneousApi.get_license_template_info",
|
190
|
+
:header_params => header_params,
|
191
|
+
:query_params => query_params,
|
192
|
+
:form_params => form_params,
|
193
|
+
:body => post_body,
|
194
|
+
:auth_names => auth_names,
|
195
|
+
:return_type => return_type
|
196
|
+
)
|
197
|
+
|
198
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
199
|
+
if @api_client.config.debugging
|
200
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#get_license_template_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
201
|
+
end
|
202
|
+
return data, status_code, headers
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the nodeinfo of the Gitea application
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @return [NodeInfo]
|
208
|
+
def get_node_info(opts = {})
|
209
|
+
data, _status_code, _headers = get_node_info_with_http_info(opts)
|
210
|
+
data
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the nodeinfo of the Gitea application
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @return [Array<(NodeInfo, Integer, Hash)>] NodeInfo data, response status code and response headers
|
216
|
+
def get_node_info_with_http_info(opts = {})
|
217
|
+
if @api_client.config.debugging
|
218
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_node_info ...'
|
219
|
+
end
|
220
|
+
# resource path
|
221
|
+
local_var_path = '/nodeinfo'
|
222
|
+
|
223
|
+
# query parameters
|
224
|
+
query_params = opts[:query_params] || {}
|
225
|
+
|
226
|
+
# header parameters
|
227
|
+
header_params = opts[:header_params] || {}
|
228
|
+
# HTTP header 'Accept' (if needed)
|
229
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
230
|
+
|
231
|
+
# form parameters
|
232
|
+
form_params = opts[:form_params] || {}
|
233
|
+
|
234
|
+
# http body (model)
|
235
|
+
post_body = opts[:debug_body]
|
236
|
+
|
237
|
+
# return_type
|
238
|
+
return_type = opts[:debug_return_type] || 'NodeInfo'
|
239
|
+
|
240
|
+
# auth_names
|
241
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
242
|
+
|
243
|
+
new_options = opts.merge(
|
244
|
+
:operation => :"MiscellaneousApi.get_node_info",
|
245
|
+
:header_params => header_params,
|
246
|
+
:query_params => query_params,
|
247
|
+
:form_params => form_params,
|
248
|
+
:body => post_body,
|
249
|
+
:auth_names => auth_names,
|
250
|
+
:return_type => return_type
|
251
|
+
)
|
252
|
+
|
253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#get_node_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
259
|
+
|
260
|
+
# Get default signing-key.gpg
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @return [String]
|
263
|
+
def get_signing_key(opts = {})
|
264
|
+
data, _status_code, _headers = get_signing_key_with_http_info(opts)
|
265
|
+
data
|
266
|
+
end
|
267
|
+
|
268
|
+
# Get default signing-key.gpg
|
269
|
+
# @param [Hash] opts the optional parameters
|
270
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
271
|
+
def get_signing_key_with_http_info(opts = {})
|
272
|
+
if @api_client.config.debugging
|
273
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_signing_key ...'
|
274
|
+
end
|
275
|
+
# resource path
|
276
|
+
local_var_path = '/signing-key.gpg'
|
277
|
+
|
278
|
+
# query parameters
|
279
|
+
query_params = opts[:query_params] || {}
|
280
|
+
|
281
|
+
# header parameters
|
282
|
+
header_params = opts[:header_params] || {}
|
283
|
+
# HTTP header 'Accept' (if needed)
|
284
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain']) unless header_params['Accept']
|
285
|
+
|
286
|
+
# form parameters
|
287
|
+
form_params = opts[:form_params] || {}
|
288
|
+
|
289
|
+
# http body (model)
|
290
|
+
post_body = opts[:debug_body]
|
291
|
+
|
292
|
+
# return_type
|
293
|
+
return_type = opts[:debug_return_type] || 'String'
|
294
|
+
|
295
|
+
# auth_names
|
296
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
297
|
+
|
298
|
+
new_options = opts.merge(
|
299
|
+
:operation => :"MiscellaneousApi.get_signing_key",
|
300
|
+
:header_params => header_params,
|
301
|
+
:query_params => query_params,
|
302
|
+
:form_params => form_params,
|
303
|
+
:body => post_body,
|
304
|
+
:auth_names => auth_names,
|
305
|
+
:return_type => return_type
|
306
|
+
)
|
307
|
+
|
308
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
309
|
+
if @api_client.config.debugging
|
310
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#get_signing_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
311
|
+
end
|
312
|
+
return data, status_code, headers
|
313
|
+
end
|
314
|
+
|
315
|
+
# Returns the version of the Gitea application
|
316
|
+
# @param [Hash] opts the optional parameters
|
317
|
+
# @return [ServerVersion]
|
318
|
+
def get_version(opts = {})
|
319
|
+
data, _status_code, _headers = get_version_with_http_info(opts)
|
320
|
+
data
|
321
|
+
end
|
322
|
+
|
323
|
+
# Returns the version of the Gitea application
|
324
|
+
# @param [Hash] opts the optional parameters
|
325
|
+
# @return [Array<(ServerVersion, Integer, Hash)>] ServerVersion data, response status code and response headers
|
326
|
+
def get_version_with_http_info(opts = {})
|
327
|
+
if @api_client.config.debugging
|
328
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_version ...'
|
329
|
+
end
|
330
|
+
# resource path
|
331
|
+
local_var_path = '/version'
|
332
|
+
|
333
|
+
# query parameters
|
334
|
+
query_params = opts[:query_params] || {}
|
335
|
+
|
336
|
+
# header parameters
|
337
|
+
header_params = opts[:header_params] || {}
|
338
|
+
# HTTP header 'Accept' (if needed)
|
339
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
340
|
+
|
341
|
+
# form parameters
|
342
|
+
form_params = opts[:form_params] || {}
|
343
|
+
|
344
|
+
# http body (model)
|
345
|
+
post_body = opts[:debug_body]
|
346
|
+
|
347
|
+
# return_type
|
348
|
+
return_type = opts[:debug_return_type] || 'ServerVersion'
|
349
|
+
|
350
|
+
# auth_names
|
351
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
352
|
+
|
353
|
+
new_options = opts.merge(
|
354
|
+
:operation => :"MiscellaneousApi.get_version",
|
355
|
+
:header_params => header_params,
|
356
|
+
:query_params => query_params,
|
357
|
+
:form_params => form_params,
|
358
|
+
:body => post_body,
|
359
|
+
:auth_names => auth_names,
|
360
|
+
:return_type => return_type
|
361
|
+
)
|
362
|
+
|
363
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#get_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
366
|
+
end
|
367
|
+
return data, status_code, headers
|
368
|
+
end
|
369
|
+
|
370
|
+
# Returns a list of all gitignore templates
|
371
|
+
# @param [Hash] opts the optional parameters
|
372
|
+
# @return [Array<String>]
|
373
|
+
def list_gitignores_templates(opts = {})
|
374
|
+
data, _status_code, _headers = list_gitignores_templates_with_http_info(opts)
|
375
|
+
data
|
376
|
+
end
|
377
|
+
|
378
|
+
# Returns a list of all gitignore templates
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
381
|
+
def list_gitignores_templates_with_http_info(opts = {})
|
382
|
+
if @api_client.config.debugging
|
383
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.list_gitignores_templates ...'
|
384
|
+
end
|
385
|
+
# resource path
|
386
|
+
local_var_path = '/gitignore/templates'
|
387
|
+
|
388
|
+
# query parameters
|
389
|
+
query_params = opts[:query_params] || {}
|
390
|
+
|
391
|
+
# header parameters
|
392
|
+
header_params = opts[:header_params] || {}
|
393
|
+
# HTTP header 'Accept' (if needed)
|
394
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
395
|
+
|
396
|
+
# form parameters
|
397
|
+
form_params = opts[:form_params] || {}
|
398
|
+
|
399
|
+
# http body (model)
|
400
|
+
post_body = opts[:debug_body]
|
401
|
+
|
402
|
+
# return_type
|
403
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
404
|
+
|
405
|
+
# auth_names
|
406
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
407
|
+
|
408
|
+
new_options = opts.merge(
|
409
|
+
:operation => :"MiscellaneousApi.list_gitignores_templates",
|
410
|
+
:header_params => header_params,
|
411
|
+
:query_params => query_params,
|
412
|
+
:form_params => form_params,
|
413
|
+
:body => post_body,
|
414
|
+
:auth_names => auth_names,
|
415
|
+
:return_type => return_type
|
416
|
+
)
|
417
|
+
|
418
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
419
|
+
if @api_client.config.debugging
|
420
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#list_gitignores_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
421
|
+
end
|
422
|
+
return data, status_code, headers
|
423
|
+
end
|
424
|
+
|
425
|
+
# Returns a list of all label templates
|
426
|
+
# @param [Hash] opts the optional parameters
|
427
|
+
# @return [Array<String>]
|
428
|
+
def list_label_templates(opts = {})
|
429
|
+
data, _status_code, _headers = list_label_templates_with_http_info(opts)
|
430
|
+
data
|
431
|
+
end
|
432
|
+
|
433
|
+
# Returns a list of all label templates
|
434
|
+
# @param [Hash] opts the optional parameters
|
435
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
436
|
+
def list_label_templates_with_http_info(opts = {})
|
437
|
+
if @api_client.config.debugging
|
438
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.list_label_templates ...'
|
439
|
+
end
|
440
|
+
# resource path
|
441
|
+
local_var_path = '/label/templates'
|
442
|
+
|
443
|
+
# query parameters
|
444
|
+
query_params = opts[:query_params] || {}
|
445
|
+
|
446
|
+
# header parameters
|
447
|
+
header_params = opts[:header_params] || {}
|
448
|
+
# HTTP header 'Accept' (if needed)
|
449
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
450
|
+
|
451
|
+
# form parameters
|
452
|
+
form_params = opts[:form_params] || {}
|
453
|
+
|
454
|
+
# http body (model)
|
455
|
+
post_body = opts[:debug_body]
|
456
|
+
|
457
|
+
# return_type
|
458
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
459
|
+
|
460
|
+
# auth_names
|
461
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
462
|
+
|
463
|
+
new_options = opts.merge(
|
464
|
+
:operation => :"MiscellaneousApi.list_label_templates",
|
465
|
+
:header_params => header_params,
|
466
|
+
:query_params => query_params,
|
467
|
+
:form_params => form_params,
|
468
|
+
:body => post_body,
|
469
|
+
:auth_names => auth_names,
|
470
|
+
:return_type => return_type
|
471
|
+
)
|
472
|
+
|
473
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
474
|
+
if @api_client.config.debugging
|
475
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#list_label_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
476
|
+
end
|
477
|
+
return data, status_code, headers
|
478
|
+
end
|
479
|
+
|
480
|
+
# Returns a list of all license templates
|
481
|
+
# @param [Hash] opts the optional parameters
|
482
|
+
# @return [Array<LicensesTemplateListEntry>]
|
483
|
+
def list_license_templates(opts = {})
|
484
|
+
data, _status_code, _headers = list_license_templates_with_http_info(opts)
|
485
|
+
data
|
486
|
+
end
|
487
|
+
|
488
|
+
# Returns a list of all license templates
|
489
|
+
# @param [Hash] opts the optional parameters
|
490
|
+
# @return [Array<(Array<LicensesTemplateListEntry>, Integer, Hash)>] Array<LicensesTemplateListEntry> data, response status code and response headers
|
491
|
+
def list_license_templates_with_http_info(opts = {})
|
492
|
+
if @api_client.config.debugging
|
493
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.list_license_templates ...'
|
494
|
+
end
|
495
|
+
# resource path
|
496
|
+
local_var_path = '/licenses'
|
497
|
+
|
498
|
+
# query parameters
|
499
|
+
query_params = opts[:query_params] || {}
|
500
|
+
|
501
|
+
# header parameters
|
502
|
+
header_params = opts[:header_params] || {}
|
503
|
+
# HTTP header 'Accept' (if needed)
|
504
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
505
|
+
|
506
|
+
# form parameters
|
507
|
+
form_params = opts[:form_params] || {}
|
508
|
+
|
509
|
+
# http body (model)
|
510
|
+
post_body = opts[:debug_body]
|
511
|
+
|
512
|
+
# return_type
|
513
|
+
return_type = opts[:debug_return_type] || 'Array<LicensesTemplateListEntry>'
|
514
|
+
|
515
|
+
# auth_names
|
516
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
517
|
+
|
518
|
+
new_options = opts.merge(
|
519
|
+
:operation => :"MiscellaneousApi.list_license_templates",
|
520
|
+
:header_params => header_params,
|
521
|
+
:query_params => query_params,
|
522
|
+
:form_params => form_params,
|
523
|
+
:body => post_body,
|
524
|
+
:auth_names => auth_names,
|
525
|
+
:return_type => return_type
|
526
|
+
)
|
527
|
+
|
528
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
529
|
+
if @api_client.config.debugging
|
530
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#list_license_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
531
|
+
end
|
532
|
+
return data, status_code, headers
|
533
|
+
end
|
534
|
+
|
535
|
+
# Render a markdown document as HTML
|
536
|
+
# @param [Hash] opts the optional parameters
|
537
|
+
# @option opts [MarkdownOption] :body
|
538
|
+
# @return [String]
|
539
|
+
def render_markdown(opts = {})
|
540
|
+
data, _status_code, _headers = render_markdown_with_http_info(opts)
|
541
|
+
data
|
542
|
+
end
|
543
|
+
|
544
|
+
# Render a markdown document as HTML
|
545
|
+
# @param [Hash] opts the optional parameters
|
546
|
+
# @option opts [MarkdownOption] :body
|
547
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
548
|
+
def render_markdown_with_http_info(opts = {})
|
549
|
+
if @api_client.config.debugging
|
550
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.render_markdown ...'
|
551
|
+
end
|
552
|
+
# resource path
|
553
|
+
local_var_path = '/markdown'
|
554
|
+
|
555
|
+
# query parameters
|
556
|
+
query_params = opts[:query_params] || {}
|
557
|
+
|
558
|
+
# header parameters
|
559
|
+
header_params = opts[:header_params] || {}
|
560
|
+
# HTTP header 'Accept' (if needed)
|
561
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html']) unless header_params['Accept']
|
562
|
+
# HTTP header 'Content-Type'
|
563
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
564
|
+
if !content_type.nil?
|
565
|
+
header_params['Content-Type'] = content_type
|
566
|
+
end
|
567
|
+
|
568
|
+
# form parameters
|
569
|
+
form_params = opts[:form_params] || {}
|
570
|
+
|
571
|
+
# http body (model)
|
572
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
573
|
+
|
574
|
+
# return_type
|
575
|
+
return_type = opts[:debug_return_type] || 'String'
|
576
|
+
|
577
|
+
# auth_names
|
578
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
579
|
+
|
580
|
+
new_options = opts.merge(
|
581
|
+
:operation => :"MiscellaneousApi.render_markdown",
|
582
|
+
:header_params => header_params,
|
583
|
+
:query_params => query_params,
|
584
|
+
:form_params => form_params,
|
585
|
+
:body => post_body,
|
586
|
+
:auth_names => auth_names,
|
587
|
+
:return_type => return_type
|
588
|
+
)
|
589
|
+
|
590
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
591
|
+
if @api_client.config.debugging
|
592
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#render_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
593
|
+
end
|
594
|
+
return data, status_code, headers
|
595
|
+
end
|
596
|
+
|
597
|
+
# Render raw markdown as HTML
|
598
|
+
# @param body [String] Request body to render
|
599
|
+
# @param [Hash] opts the optional parameters
|
600
|
+
# @return [String]
|
601
|
+
def render_markdown_raw(body, opts = {})
|
602
|
+
data, _status_code, _headers = render_markdown_raw_with_http_info(body, opts)
|
603
|
+
data
|
604
|
+
end
|
605
|
+
|
606
|
+
# Render raw markdown as HTML
|
607
|
+
# @param body [String] Request body to render
|
608
|
+
# @param [Hash] opts the optional parameters
|
609
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
610
|
+
def render_markdown_raw_with_http_info(body, opts = {})
|
611
|
+
if @api_client.config.debugging
|
612
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.render_markdown_raw ...'
|
613
|
+
end
|
614
|
+
# verify the required parameter 'body' is set
|
615
|
+
if @api_client.config.client_side_validation && body.nil?
|
616
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MiscellaneousApi.render_markdown_raw"
|
617
|
+
end
|
618
|
+
# resource path
|
619
|
+
local_var_path = '/markdown/raw'
|
620
|
+
|
621
|
+
# query parameters
|
622
|
+
query_params = opts[:query_params] || {}
|
623
|
+
|
624
|
+
# header parameters
|
625
|
+
header_params = opts[:header_params] || {}
|
626
|
+
# HTTP header 'Accept' (if needed)
|
627
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html']) unless header_params['Accept']
|
628
|
+
# HTTP header 'Content-Type'
|
629
|
+
content_type = @api_client.select_header_content_type(['text/plain'])
|
630
|
+
if !content_type.nil?
|
631
|
+
header_params['Content-Type'] = content_type
|
632
|
+
end
|
633
|
+
|
634
|
+
# form parameters
|
635
|
+
form_params = opts[:form_params] || {}
|
636
|
+
|
637
|
+
# http body (model)
|
638
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
639
|
+
|
640
|
+
# return_type
|
641
|
+
return_type = opts[:debug_return_type] || 'String'
|
642
|
+
|
643
|
+
# auth_names
|
644
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
645
|
+
|
646
|
+
new_options = opts.merge(
|
647
|
+
:operation => :"MiscellaneousApi.render_markdown_raw",
|
648
|
+
:header_params => header_params,
|
649
|
+
:query_params => query_params,
|
650
|
+
:form_params => form_params,
|
651
|
+
:body => post_body,
|
652
|
+
:auth_names => auth_names,
|
653
|
+
:return_type => return_type
|
654
|
+
)
|
655
|
+
|
656
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
657
|
+
if @api_client.config.debugging
|
658
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#render_markdown_raw\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
659
|
+
end
|
660
|
+
return data, status_code, headers
|
661
|
+
end
|
662
|
+
|
663
|
+
# Render a markup document as HTML
|
664
|
+
# @param [Hash] opts the optional parameters
|
665
|
+
# @option opts [MarkupOption] :body
|
666
|
+
# @return [String]
|
667
|
+
def render_markup(opts = {})
|
668
|
+
data, _status_code, _headers = render_markup_with_http_info(opts)
|
669
|
+
data
|
670
|
+
end
|
671
|
+
|
672
|
+
# Render a markup document as HTML
|
673
|
+
# @param [Hash] opts the optional parameters
|
674
|
+
# @option opts [MarkupOption] :body
|
675
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
676
|
+
def render_markup_with_http_info(opts = {})
|
677
|
+
if @api_client.config.debugging
|
678
|
+
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.render_markup ...'
|
679
|
+
end
|
680
|
+
# resource path
|
681
|
+
local_var_path = '/markup'
|
682
|
+
|
683
|
+
# query parameters
|
684
|
+
query_params = opts[:query_params] || {}
|
685
|
+
|
686
|
+
# header parameters
|
687
|
+
header_params = opts[:header_params] || {}
|
688
|
+
# HTTP header 'Accept' (if needed)
|
689
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html']) unless header_params['Accept']
|
690
|
+
# HTTP header 'Content-Type'
|
691
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
692
|
+
if !content_type.nil?
|
693
|
+
header_params['Content-Type'] = content_type
|
694
|
+
end
|
695
|
+
|
696
|
+
# form parameters
|
697
|
+
form_params = opts[:form_params] || {}
|
698
|
+
|
699
|
+
# http body (model)
|
700
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
701
|
+
|
702
|
+
# return_type
|
703
|
+
return_type = opts[:debug_return_type] || 'String'
|
704
|
+
|
705
|
+
# auth_names
|
706
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
707
|
+
|
708
|
+
new_options = opts.merge(
|
709
|
+
:operation => :"MiscellaneousApi.render_markup",
|
710
|
+
:header_params => header_params,
|
711
|
+
:query_params => query_params,
|
712
|
+
:form_params => form_params,
|
713
|
+
:body => post_body,
|
714
|
+
:auth_names => auth_names,
|
715
|
+
:return_type => return_type
|
716
|
+
)
|
717
|
+
|
718
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
719
|
+
if @api_client.config.debugging
|
720
|
+
@api_client.config.logger.debug "API called: MiscellaneousApi#render_markup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
721
|
+
end
|
722
|
+
return data, status_code, headers
|
723
|
+
end
|
724
|
+
end
|
725
|
+
end
|