forgejo 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +9 -0
  4. data/LICENSE~ +9 -0
  5. data/Makefile +23 -0
  6. data/Makefile~ +2 -0
  7. data/README.md +717 -0
  8. data/Rakefile +10 -0
  9. data/docs/APIError.md +20 -0
  10. data/docs/AccessToken.md +26 -0
  11. data/docs/ActionTask.md +42 -0
  12. data/docs/ActionTaskResponse.md +20 -0
  13. data/docs/ActionVariable.md +24 -0
  14. data/docs/Activity.md +42 -0
  15. data/docs/ActivityPub.md +18 -0
  16. data/docs/ActivitypubApi.md +289 -0
  17. data/docs/AddCollaboratorOption.md +18 -0
  18. data/docs/AddTimeOption.md +22 -0
  19. data/docs/AdminApi.md +1672 -0
  20. data/docs/AnnotatedTag.md +32 -0
  21. data/docs/AnnotatedTagObject.md +22 -0
  22. data/docs/Attachment.md +30 -0
  23. data/docs/BlockedUser.md +20 -0
  24. data/docs/Branch.md +34 -0
  25. data/docs/BranchProtection.md +70 -0
  26. data/docs/ChangeFileOperation.md +26 -0
  27. data/docs/ChangeFilesOptions.md +32 -0
  28. data/docs/ChangedFile.md +34 -0
  29. data/docs/CombinedStatus.md +30 -0
  30. data/docs/Comment.md +38 -0
  31. data/docs/Commit.md +36 -0
  32. data/docs/CommitAffectedFiles.md +20 -0
  33. data/docs/CommitDateOptions.md +20 -0
  34. data/docs/CommitMeta.md +22 -0
  35. data/docs/CommitStats.md +22 -0
  36. data/docs/CommitStatus.md +34 -0
  37. data/docs/CommitUser.md +22 -0
  38. data/docs/Compare.md +20 -0
  39. data/docs/ContentsResponse.md +46 -0
  40. data/docs/CreateAccessTokenOption.md +20 -0
  41. data/docs/CreateBranchProtectionOption.md +66 -0
  42. data/docs/CreateBranchRepoOption.md +22 -0
  43. data/docs/CreateEmailOption.md +18 -0
  44. data/docs/CreateFileOptions.md +32 -0
  45. data/docs/CreateForkOption.md +20 -0
  46. data/docs/CreateGPGKeyOption.md +20 -0
  47. data/docs/CreateHookOption.md +28 -0
  48. data/docs/CreateIssueCommentOption.md +20 -0
  49. data/docs/CreateIssueOption.md +34 -0
  50. data/docs/CreateKeyOption.md +22 -0
  51. data/docs/CreateLabelOption.md +26 -0
  52. data/docs/CreateMilestoneOption.md +24 -0
  53. data/docs/CreateOAuth2ApplicationOptions.md +22 -0
  54. data/docs/CreateOrUpdateSecretOption.md +18 -0
  55. data/docs/CreateOrgOption.md +32 -0
  56. data/docs/CreatePullRequestOption.md +34 -0
  57. data/docs/CreatePullReviewComment.md +24 -0
  58. data/docs/CreatePullReviewOptions.md +24 -0
  59. data/docs/CreatePushMirrorOption.md +26 -0
  60. data/docs/CreateReleaseOption.md +30 -0
  61. data/docs/CreateRepoOption.md +40 -0
  62. data/docs/CreateStatusOption.md +24 -0
  63. data/docs/CreateTagOption.md +22 -0
  64. data/docs/CreateTagProtectionOption.md +22 -0
  65. data/docs/CreateTeamOption.md +30 -0
  66. data/docs/CreateUserOption.md +38 -0
  67. data/docs/CreateVariableOption.md +18 -0
  68. data/docs/CreateWikiPageOptions.md +22 -0
  69. data/docs/Cron.md +26 -0
  70. data/docs/DeleteEmailOption.md +18 -0
  71. data/docs/DeleteFileOptions.md +32 -0
  72. data/docs/DeleteLabelsOption.md +18 -0
  73. data/docs/DeployKey.md +34 -0
  74. data/docs/DismissPullReviewOptions.md +20 -0
  75. data/docs/DispatchWorkflowOption.md +20 -0
  76. data/docs/EditAttachmentOptions.md +18 -0
  77. data/docs/EditBranchProtectionOption.md +62 -0
  78. data/docs/EditDeadlineOption.md +18 -0
  79. data/docs/EditGitHookOption.md +18 -0
  80. data/docs/EditHookOption.md +26 -0
  81. data/docs/EditIssueCommentOption.md +20 -0
  82. data/docs/EditIssueOption.md +36 -0
  83. data/docs/EditLabelOption.md +26 -0
  84. data/docs/EditMilestoneOption.md +24 -0
  85. data/docs/EditOrgOption.md +30 -0
  86. data/docs/EditPullRequestOption.md +38 -0
  87. data/docs/EditReactionOption.md +18 -0
  88. data/docs/EditReleaseOption.md +30 -0
  89. data/docs/EditRepoOption.md +82 -0
  90. data/docs/EditTagProtectionOption.md +22 -0
  91. data/docs/EditTeamOption.md +30 -0
  92. data/docs/EditUserOption.md +54 -0
  93. data/docs/Email.md +26 -0
  94. data/docs/ExternalTracker.md +24 -0
  95. data/docs/ExternalWiki.md +18 -0
  96. data/docs/FileCommitResponse.md +34 -0
  97. data/docs/FileDeleteResponse.md +22 -0
  98. data/docs/FileLinksResponse.md +22 -0
  99. data/docs/FileResponse.md +22 -0
  100. data/docs/FilesResponse.md +22 -0
  101. data/docs/GPGKey.md +42 -0
  102. data/docs/GPGKeyEmail.md +20 -0
  103. data/docs/GeneralAPISettings.md +24 -0
  104. data/docs/GeneralAttachmentSettings.md +24 -0
  105. data/docs/GeneralRepoSettings.md +30 -0
  106. data/docs/GeneralUISettings.md +22 -0
  107. data/docs/GenerateRepoOption.md +40 -0
  108. data/docs/GitBlobResponse.md +26 -0
  109. data/docs/GitEntry.md +28 -0
  110. data/docs/GitHook.md +22 -0
  111. data/docs/GitObject.md +22 -0
  112. data/docs/GitTreeResponse.md +28 -0
  113. data/docs/GitignoreTemplateInfo.md +20 -0
  114. data/docs/Hook.md +40 -0
  115. data/docs/Identity.md +20 -0
  116. data/docs/InternalTracker.md +22 -0
  117. data/docs/Issue.md +66 -0
  118. data/docs/IssueApi.md +5206 -0
  119. data/docs/IssueConfig.md +20 -0
  120. data/docs/IssueConfigContactLink.md +22 -0
  121. data/docs/IssueConfigValidation.md +20 -0
  122. data/docs/IssueDeadline.md +18 -0
  123. data/docs/IssueFormField.md +26 -0
  124. data/docs/IssueLabelsOption.md +20 -0
  125. data/docs/IssueMeta.md +22 -0
  126. data/docs/IssueTemplate.md +32 -0
  127. data/docs/Label.md +30 -0
  128. data/docs/LabelTemplate.md +24 -0
  129. data/docs/LicenseTemplateInfo.md +26 -0
  130. data/docs/LicensesTemplateListEntry.md +22 -0
  131. data/docs/MarkdownOption.md +24 -0
  132. data/docs/MarkupOption.md +26 -0
  133. data/docs/MergePullRequestOption.md +32 -0
  134. data/docs/MigrateRepoOptions.md +56 -0
  135. data/docs/Milestone.md +36 -0
  136. data/docs/MiscellaneousApi.md +833 -0
  137. data/docs/NewIssuePinsAllowed.md +20 -0
  138. data/docs/NodeInfo.md +30 -0
  139. data/docs/NodeInfoServices.md +20 -0
  140. data/docs/NodeInfoSoftware.md +24 -0
  141. data/docs/NodeInfoUsage.md +22 -0
  142. data/docs/NodeInfoUsageUsers.md +22 -0
  143. data/docs/Note.md +20 -0
  144. data/docs/NotificationApi.md +550 -0
  145. data/docs/NotificationCount.md +18 -0
  146. data/docs/NotificationSubject.md +30 -0
  147. data/docs/NotificationThread.md +30 -0
  148. data/docs/OAuth2Application.md +30 -0
  149. data/docs/Organization.md +38 -0
  150. data/docs/OrganizationApi.md +4259 -0
  151. data/docs/OrganizationPermissions.md +26 -0
  152. data/docs/PRBranchInfo.md +26 -0
  153. data/docs/Package.md +34 -0
  154. data/docs/PackageApi.md +314 -0
  155. data/docs/PackageFile.md +30 -0
  156. data/docs/PayloadCommit.md +36 -0
  157. data/docs/PayloadCommitVerification.md +26 -0
  158. data/docs/PayloadUser.md +22 -0
  159. data/docs/Permission.md +22 -0
  160. data/docs/PublicKey.md +34 -0
  161. data/docs/PullRequest.md +88 -0
  162. data/docs/PullRequestMeta.md +24 -0
  163. data/docs/PullReview.md +44 -0
  164. data/docs/PullReviewComment.md +46 -0
  165. data/docs/PullReviewRequestOptions.md +20 -0
  166. data/docs/PushMirror.md +32 -0
  167. data/docs/Reaction.md +22 -0
  168. data/docs/Reference.md +22 -0
  169. data/docs/Release.md +52 -0
  170. data/docs/RenameUserOption.md +18 -0
  171. data/docs/ReplaceFlagsOption.md +18 -0
  172. data/docs/RepoCollaboratorPermission.md +22 -0
  173. data/docs/RepoCommit.md +28 -0
  174. data/docs/RepoCreateReleaseAttachmentRequest.md +18 -0
  175. data/docs/RepoTopicOptions.md +18 -0
  176. data/docs/RepoTransfer.md +22 -0
  177. data/docs/Repository.md +140 -0
  178. data/docs/RepositoryApi.md +13022 -0
  179. data/docs/RepositoryMeta.md +24 -0
  180. data/docs/SearchResults.md +20 -0
  181. data/docs/Secret.md +20 -0
  182. data/docs/ServerVersion.md +18 -0
  183. data/docs/SettingsApi.md +275 -0
  184. data/docs/StopWatch.md +30 -0
  185. data/docs/SubmitPullReviewOptions.md +20 -0
  186. data/docs/Tag.md +30 -0
  187. data/docs/TagArchiveDownloadCount.md +20 -0
  188. data/docs/TagProtection.md +28 -0
  189. data/docs/Team.md +34 -0
  190. data/docs/TeamSearch200Response.md +20 -0
  191. data/docs/TimelineComment.md +74 -0
  192. data/docs/TopicName.md +18 -0
  193. data/docs/TopicResponse.md +26 -0
  194. data/docs/TrackedTime.md +30 -0
  195. data/docs/TransferRepoOption.md +20 -0
  196. data/docs/UpdateFileOptions.md +36 -0
  197. data/docs/UpdateRepoAvatarOption.md +18 -0
  198. data/docs/UpdateUserAvatarOption.md +18 -0
  199. data/docs/UpdateVariableOption.md +20 -0
  200. data/docs/User.md +62 -0
  201. data/docs/UserApi.md +4969 -0
  202. data/docs/UserHeatmapData.md +20 -0
  203. data/docs/UserSearch200Response.md +20 -0
  204. data/docs/UserSettings.md +38 -0
  205. data/docs/UserSettingsOptions.md +38 -0
  206. data/docs/WatchInfo.md +28 -0
  207. data/docs/WikiCommit.md +24 -0
  208. data/docs/WikiCommitList.md +20 -0
  209. data/docs/WikiPage.md +32 -0
  210. data/docs/WikiPageMetaData.md +24 -0
  211. data/forgejo.gemspec +49 -0
  212. data/git_push.sh +57 -0
  213. data/lib/forgejo/api/activitypub_api.rb +269 -0
  214. data/lib/forgejo/api/admin_api.rb +1496 -0
  215. data/lib/forgejo/api/issue_api.rb +5282 -0
  216. data/lib/forgejo/api/miscellaneous_api.rb +725 -0
  217. data/lib/forgejo/api/notification_api.rb +520 -0
  218. data/lib/forgejo/api/organization_api.rb +3898 -0
  219. data/lib/forgejo/api/package_api.rb +334 -0
  220. data/lib/forgejo/api/repository_api.rb +12849 -0
  221. data/lib/forgejo/api/settings_api.rb +242 -0
  222. data/lib/forgejo/api/user_api.rb +4314 -0
  223. data/lib/forgejo/api_client.rb +437 -0
  224. data/lib/forgejo/api_error.rb +58 -0
  225. data/lib/forgejo/configuration.rb +392 -0
  226. data/lib/forgejo/models/access_token.rb +252 -0
  227. data/lib/forgejo/models/action_task.rb +323 -0
  228. data/lib/forgejo/models/action_task_response.rb +226 -0
  229. data/lib/forgejo/models/action_variable.rb +246 -0
  230. data/lib/forgejo/models/activity.rb +357 -0
  231. data/lib/forgejo/models/activity_pub.rb +215 -0
  232. data/lib/forgejo/models/add_collaborator_option.rb +215 -0
  233. data/lib/forgejo/models/add_time_option.rb +242 -0
  234. data/lib/forgejo/models/annotated_tag.rb +278 -0
  235. data/lib/forgejo/models/annotated_tag_object.rb +233 -0
  236. data/lib/forgejo/models/api_error.rb +224 -0
  237. data/lib/forgejo/models/attachment.rb +269 -0
  238. data/lib/forgejo/models/blocked_user.rb +223 -0
  239. data/lib/forgejo/models/branch.rb +289 -0
  240. data/lib/forgejo/models/branch_protection.rb +464 -0
  241. data/lib/forgejo/models/change_file_operation.rb +304 -0
  242. data/lib/forgejo/models/change_files_options.rb +292 -0
  243. data/lib/forgejo/models/changed_file.rb +287 -0
  244. data/lib/forgejo/models/combined_status.rb +272 -0
  245. data/lib/forgejo/models/comment.rb +307 -0
  246. data/lib/forgejo/models/commit.rb +299 -0
  247. data/lib/forgejo/models/commit_affected_files.rb +224 -0
  248. data/lib/forgejo/models/commit_date_options.rb +224 -0
  249. data/lib/forgejo/models/commit_meta.rb +232 -0
  250. data/lib/forgejo/models/commit_stats.rb +233 -0
  251. data/lib/forgejo/models/commit_status.rb +288 -0
  252. data/lib/forgejo/models/commit_user.rb +232 -0
  253. data/lib/forgejo/models/compare.rb +225 -0
  254. data/lib/forgejo/models/contents_response.rb +346 -0
  255. data/lib/forgejo/models/create_access_token_option.rb +233 -0
  256. data/lib/forgejo/models/create_branch_protection_option.rb +446 -0
  257. data/lib/forgejo/models/create_branch_repo_option.rb +243 -0
  258. data/lib/forgejo/models/create_email_option.rb +218 -0
  259. data/lib/forgejo/models/create_file_options.rb +290 -0
  260. data/lib/forgejo/models/create_fork_option.rb +226 -0
  261. data/lib/forgejo/models/create_gpg_key_option.rb +232 -0
  262. data/lib/forgejo/models/create_hook_option.rb +315 -0
  263. data/lib/forgejo/models/create_issue_comment_option.rb +231 -0
  264. data/lib/forgejo/models/create_issue_option.rb +301 -0
  265. data/lib/forgejo/models/create_key_option.rb +250 -0
  266. data/lib/forgejo/models/create_label_option.rb +265 -0
  267. data/lib/forgejo/models/create_milestone_option.rb +276 -0
  268. data/lib/forgejo/models/create_o_auth2_application_options.rb +235 -0
  269. data/lib/forgejo/models/create_or_update_secret_option.rb +223 -0
  270. data/lib/forgejo/models/create_org_option.rb +320 -0
  271. data/lib/forgejo/models/create_pull_request_option.rb +291 -0
  272. data/lib/forgejo/models/create_pull_review_comment.rb +245 -0
  273. data/lib/forgejo/models/create_pull_review_options.rb +245 -0
  274. data/lib/forgejo/models/create_push_mirror_option.rb +250 -0
  275. data/lib/forgejo/models/create_release_option.rb +276 -0
  276. data/lib/forgejo/models/create_repo_option.rb +379 -0
  277. data/lib/forgejo/models/create_status_option.rb +243 -0
  278. data/lib/forgejo/models/create_tag_option.rb +240 -0
  279. data/lib/forgejo/models/create_tag_protection_option.rb +237 -0
  280. data/lib/forgejo/models/create_team_option.rb +314 -0
  281. data/lib/forgejo/models/create_user_option.rb +320 -0
  282. data/lib/forgejo/models/create_variable_option.rb +223 -0
  283. data/lib/forgejo/models/create_wiki_page_options.rb +236 -0
  284. data/lib/forgejo/models/cron.rb +251 -0
  285. data/lib/forgejo/models/delete_email_option.rb +218 -0
  286. data/lib/forgejo/models/delete_file_options.rb +290 -0
  287. data/lib/forgejo/models/delete_labels_option.rb +215 -0
  288. data/lib/forgejo/models/deploy_key.rb +287 -0
  289. data/lib/forgejo/models/dismiss_pull_review_options.rb +224 -0
  290. data/lib/forgejo/models/dispatch_workflow_option.rb +235 -0
  291. data/lib/forgejo/models/edit_attachment_options.rb +215 -0
  292. data/lib/forgejo/models/edit_branch_protection_option.rb +427 -0
  293. data/lib/forgejo/models/edit_deadline_option.rb +222 -0
  294. data/lib/forgejo/models/edit_git_hook_option.rb +215 -0
  295. data/lib/forgejo/models/edit_hook_option.rb +255 -0
  296. data/lib/forgejo/models/edit_issue_comment_option.rb +231 -0
  297. data/lib/forgejo/models/edit_issue_option.rb +299 -0
  298. data/lib/forgejo/models/edit_label_option.rb +251 -0
  299. data/lib/forgejo/models/edit_milestone_option.rb +242 -0
  300. data/lib/forgejo/models/edit_org_option.rb +304 -0
  301. data/lib/forgejo/models/edit_pull_request_option.rb +309 -0
  302. data/lib/forgejo/models/edit_reaction_option.rb +215 -0
  303. data/lib/forgejo/models/edit_release_option.rb +269 -0
  304. data/lib/forgejo/models/edit_repo_option.rb +533 -0
  305. data/lib/forgejo/models/edit_tag_protection_option.rb +237 -0
  306. data/lib/forgejo/models/edit_team_option.rb +314 -0
  307. data/lib/forgejo/models/edit_user_option.rb +377 -0
  308. data/lib/forgejo/models/email.rb +251 -0
  309. data/lib/forgejo/models/external_tracker.rb +246 -0
  310. data/lib/forgejo/models/external_wiki.rb +216 -0
  311. data/lib/forgejo/models/file_commit_response.rb +288 -0
  312. data/lib/forgejo/models/file_delete_response.rb +233 -0
  313. data/lib/forgejo/models/file_links_response.rb +233 -0
  314. data/lib/forgejo/models/file_response.rb +233 -0
  315. data/lib/forgejo/models/files_response.rb +235 -0
  316. data/lib/forgejo/models/general_api_settings.rb +242 -0
  317. data/lib/forgejo/models/general_attachment_settings.rb +242 -0
  318. data/lib/forgejo/models/general_repo_settings.rb +269 -0
  319. data/lib/forgejo/models/general_ui_settings.rb +237 -0
  320. data/lib/forgejo/models/generate_repo_option.rb +340 -0
  321. data/lib/forgejo/models/git_blob_response.rb +251 -0
  322. data/lib/forgejo/models/git_entry.rb +260 -0
  323. data/lib/forgejo/models/git_hook.rb +233 -0
  324. data/lib/forgejo/models/git_object.rb +232 -0
  325. data/lib/forgejo/models/git_tree_response.rb +262 -0
  326. data/lib/forgejo/models/gitignore_template_info.rb +224 -0
  327. data/lib/forgejo/models/gpg_key.rb +327 -0
  328. data/lib/forgejo/models/gpg_key_email.rb +224 -0
  329. data/lib/forgejo/models/hook.rb +319 -0
  330. data/lib/forgejo/models/identity.rb +224 -0
  331. data/lib/forgejo/models/internal_tracker.rb +236 -0
  332. data/lib/forgejo/models/issue.rb +438 -0
  333. data/lib/forgejo/models/issue_config.rb +225 -0
  334. data/lib/forgejo/models/issue_config_contact_link.rb +232 -0
  335. data/lib/forgejo/models/issue_config_validation.rb +223 -0
  336. data/lib/forgejo/models/issue_deadline.rb +215 -0
  337. data/lib/forgejo/models/issue_form_field.rb +257 -0
  338. data/lib/forgejo/models/issue_labels_option.rb +227 -0
  339. data/lib/forgejo/models/issue_meta.rb +233 -0
  340. data/lib/forgejo/models/issue_template.rb +282 -0
  341. data/lib/forgejo/models/label.rb +269 -0
  342. data/lib/forgejo/models/label_template.rb +242 -0
  343. data/lib/forgejo/models/license_template_info.rb +251 -0
  344. data/lib/forgejo/models/licenses_template_list_entry.rb +233 -0
  345. data/lib/forgejo/models/markdown_option.rb +246 -0
  346. data/lib/forgejo/models/markup_option.rb +256 -0
  347. data/lib/forgejo/models/merge_pull_request_option.rb +319 -0
  348. data/lib/forgejo/models/migrate_repo_options.rb +436 -0
  349. data/lib/forgejo/models/milestone.rb +297 -0
  350. data/lib/forgejo/models/new_issue_pins_allowed.rb +224 -0
  351. data/lib/forgejo/models/node_info.rb +271 -0
  352. data/lib/forgejo/models/node_info_services.rb +228 -0
  353. data/lib/forgejo/models/node_info_software.rb +242 -0
  354. data/lib/forgejo/models/node_info_usage.rb +233 -0
  355. data/lib/forgejo/models/node_info_usage_users.rb +233 -0
  356. data/lib/forgejo/models/note.rb +224 -0
  357. data/lib/forgejo/models/notification_count.rb +215 -0
  358. data/lib/forgejo/models/notification_subject.rb +271 -0
  359. data/lib/forgejo/models/notification_thread.rb +269 -0
  360. data/lib/forgejo/models/o_auth2_application.rb +270 -0
  361. data/lib/forgejo/models/organization.rb +306 -0
  362. data/lib/forgejo/models/organization_permissions.rb +251 -0
  363. data/lib/forgejo/models/package.rb +287 -0
  364. data/lib/forgejo/models/package_file.rb +269 -0
  365. data/lib/forgejo/models/payload_commit.rb +303 -0
  366. data/lib/forgejo/models/payload_commit_verification.rb +251 -0
  367. data/lib/forgejo/models/payload_user.rb +234 -0
  368. data/lib/forgejo/models/permission.rb +233 -0
  369. data/lib/forgejo/models/pr_branch_info.rb +251 -0
  370. data/lib/forgejo/models/public_key.rb +287 -0
  371. data/lib/forgejo/models/pull_request.rb +538 -0
  372. data/lib/forgejo/models/pull_request_meta.rb +242 -0
  373. data/lib/forgejo/models/pull_review.rb +333 -0
  374. data/lib/forgejo/models/pull_review_comment.rb +341 -0
  375. data/lib/forgejo/models/pull_review_request_options.rb +228 -0
  376. data/lib/forgejo/models/push_mirror.rb +278 -0
  377. data/lib/forgejo/models/reaction.rb +233 -0
  378. data/lib/forgejo/models/reference.rb +232 -0
  379. data/lib/forgejo/models/release.rb +370 -0
  380. data/lib/forgejo/models/rename_user_option.rb +223 -0
  381. data/lib/forgejo/models/replace_flags_option.rb +217 -0
  382. data/lib/forgejo/models/repo_collaborator_permission.rb +233 -0
  383. data/lib/forgejo/models/repo_commit.rb +259 -0
  384. data/lib/forgejo/models/repo_create_release_attachment_request.rb +215 -0
  385. data/lib/forgejo/models/repo_topic_options.rb +218 -0
  386. data/lib/forgejo/models/repo_transfer.rb +235 -0
  387. data/lib/forgejo/models/repository.rb +801 -0
  388. data/lib/forgejo/models/repository_meta.rb +242 -0
  389. data/lib/forgejo/models/search_results.rb +226 -0
  390. data/lib/forgejo/models/secret.rb +225 -0
  391. data/lib/forgejo/models/server_version.rb +215 -0
  392. data/lib/forgejo/models/stop_watch.rb +269 -0
  393. data/lib/forgejo/models/submit_pull_review_options.rb +225 -0
  394. data/lib/forgejo/models/tag.rb +269 -0
  395. data/lib/forgejo/models/tag_archive_download_count.rb +224 -0
  396. data/lib/forgejo/models/tag_protection.rb +264 -0
  397. data/lib/forgejo/models/team.rb +325 -0
  398. data/lib/forgejo/models/team_search200_response.rb +225 -0
  399. data/lib/forgejo/models/timeline_comment.rb +469 -0
  400. data/lib/forgejo/models/topic_name.rb +217 -0
  401. data/lib/forgejo/models/topic_response.rb +251 -0
  402. data/lib/forgejo/models/tracked_time.rb +272 -0
  403. data/lib/forgejo/models/transfer_repo_option.rb +234 -0
  404. data/lib/forgejo/models/update_file_options.rb +317 -0
  405. data/lib/forgejo/models/update_repo_avatar_option.rb +216 -0
  406. data/lib/forgejo/models/update_user_avatar_option.rb +216 -0
  407. data/lib/forgejo/models/update_variable_option.rb +233 -0
  408. data/lib/forgejo/models/user.rb +433 -0
  409. data/lib/forgejo/models/user_heatmap_data.rb +225 -0
  410. data/lib/forgejo/models/user_search200_response.rb +225 -0
  411. data/lib/forgejo/models/user_settings.rb +306 -0
  412. data/lib/forgejo/models/user_settings_options.rb +306 -0
  413. data/lib/forgejo/models/watch_info.rb +260 -0
  414. data/lib/forgejo/models/wiki_commit.rb +242 -0
  415. data/lib/forgejo/models/wiki_commit_list.rb +226 -0
  416. data/lib/forgejo/models/wiki_page.rb +279 -0
  417. data/lib/forgejo/models/wiki_page_meta_data.rb +242 -0
  418. data/lib/forgejo/version.rb +15 -0
  419. data/lib/forgejo.rb +241 -0
  420. data/manifest.scm +2 -0
  421. data/patch +7 -0
  422. data/patch~ +1 -0
  423. data/smoke +16 -0
  424. data/smoke~ +1 -0
  425. data/spec/api/activitypub_api_spec.rb +80 -0
  426. data/spec/api/admin_api_spec.rb +308 -0
  427. data/spec/api/issue_api_spec.rb +998 -0
  428. data/spec/api/miscellaneous_api_spec.rb +161 -0
  429. data/spec/api/notification_api_spec.rb +134 -0
  430. data/spec/api/organization_api_spec.rb +752 -0
  431. data/spec/api/package_api_spec.rb +92 -0
  432. data/spec/api/repository_api_spec.rb +2366 -0
  433. data/spec/api/settings_api_spec.rb +75 -0
  434. data/spec/api/user_api_spec.rb +839 -0
  435. data/spec/models/access_token_spec.rb +60 -0
  436. data/spec/models/action_task_response_spec.rb +42 -0
  437. data/spec/models/action_task_spec.rb +108 -0
  438. data/spec/models/action_variable_spec.rb +54 -0
  439. data/spec/models/activity_pub_spec.rb +36 -0
  440. data/spec/models/activity_spec.rb +112 -0
  441. data/spec/models/add_collaborator_option_spec.rb +36 -0
  442. data/spec/models/add_time_option_spec.rb +48 -0
  443. data/spec/models/annotated_tag_object_spec.rb +48 -0
  444. data/spec/models/annotated_tag_spec.rb +78 -0
  445. data/spec/models/api_error_spec.rb +42 -0
  446. data/spec/models/attachment_spec.rb +72 -0
  447. data/spec/models/blocked_user_spec.rb +42 -0
  448. data/spec/models/branch_protection_spec.rb +192 -0
  449. data/spec/models/branch_spec.rb +84 -0
  450. data/spec/models/change_file_operation_spec.rb +64 -0
  451. data/spec/models/change_files_options_spec.rb +78 -0
  452. data/spec/models/changed_file_spec.rb +84 -0
  453. data/spec/models/combined_status_spec.rb +72 -0
  454. data/spec/models/comment_spec.rb +96 -0
  455. data/spec/models/commit_affected_files_spec.rb +42 -0
  456. data/spec/models/commit_date_options_spec.rb +42 -0
  457. data/spec/models/commit_meta_spec.rb +48 -0
  458. data/spec/models/commit_spec.rb +90 -0
  459. data/spec/models/commit_stats_spec.rb +48 -0
  460. data/spec/models/commit_status_spec.rb +84 -0
  461. data/spec/models/commit_user_spec.rb +48 -0
  462. data/spec/models/compare_spec.rb +42 -0
  463. data/spec/models/contents_response_spec.rb +120 -0
  464. data/spec/models/create_access_token_option_spec.rb +42 -0
  465. data/spec/models/create_branch_protection_option_spec.rb +180 -0
  466. data/spec/models/create_branch_repo_option_spec.rb +48 -0
  467. data/spec/models/create_email_option_spec.rb +36 -0
  468. data/spec/models/create_file_options_spec.rb +78 -0
  469. data/spec/models/create_fork_option_spec.rb +42 -0
  470. data/spec/models/create_gpg_key_option_spec.rb +42 -0
  471. data/spec/models/create_hook_option_spec.rb +70 -0
  472. data/spec/models/create_issue_comment_option_spec.rb +42 -0
  473. data/spec/models/create_issue_option_spec.rb +84 -0
  474. data/spec/models/create_key_option_spec.rb +48 -0
  475. data/spec/models/create_label_option_spec.rb +60 -0
  476. data/spec/models/create_milestone_option_spec.rb +58 -0
  477. data/spec/models/create_o_auth2_application_options_spec.rb +48 -0
  478. data/spec/models/create_or_update_secret_option_spec.rb +36 -0
  479. data/spec/models/create_org_option_spec.rb +82 -0
  480. data/spec/models/create_pull_request_option_spec.rb +84 -0
  481. data/spec/models/create_pull_review_comment_spec.rb +54 -0
  482. data/spec/models/create_pull_review_options_spec.rb +54 -0
  483. data/spec/models/create_push_mirror_option_spec.rb +60 -0
  484. data/spec/models/create_release_option_spec.rb +72 -0
  485. data/spec/models/create_repo_option_spec.rb +110 -0
  486. data/spec/models/create_status_option_spec.rb +54 -0
  487. data/spec/models/create_tag_option_spec.rb +48 -0
  488. data/spec/models/create_tag_protection_option_spec.rb +48 -0
  489. data/spec/models/create_team_option_spec.rb +76 -0
  490. data/spec/models/create_user_option_spec.rb +96 -0
  491. data/spec/models/create_variable_option_spec.rb +36 -0
  492. data/spec/models/create_wiki_page_options_spec.rb +48 -0
  493. data/spec/models/cron_spec.rb +60 -0
  494. data/spec/models/delete_email_option_spec.rb +36 -0
  495. data/spec/models/delete_file_options_spec.rb +78 -0
  496. data/spec/models/delete_labels_option_spec.rb +36 -0
  497. data/spec/models/deploy_key_spec.rb +84 -0
  498. data/spec/models/dismiss_pull_review_options_spec.rb +42 -0
  499. data/spec/models/dispatch_workflow_option_spec.rb +42 -0
  500. data/spec/models/edit_attachment_options_spec.rb +36 -0
  501. data/spec/models/edit_branch_protection_option_spec.rb +168 -0
  502. data/spec/models/edit_deadline_option_spec.rb +36 -0
  503. data/spec/models/edit_git_hook_option_spec.rb +36 -0
  504. data/spec/models/edit_hook_option_spec.rb +60 -0
  505. data/spec/models/edit_issue_comment_option_spec.rb +42 -0
  506. data/spec/models/edit_issue_option_spec.rb +90 -0
  507. data/spec/models/edit_label_option_spec.rb +60 -0
  508. data/spec/models/edit_milestone_option_spec.rb +54 -0
  509. data/spec/models/edit_org_option_spec.rb +76 -0
  510. data/spec/models/edit_pull_request_option_spec.rb +96 -0
  511. data/spec/models/edit_reaction_option_spec.rb +36 -0
  512. data/spec/models/edit_release_option_spec.rb +72 -0
  513. data/spec/models/edit_repo_option_spec.rb +228 -0
  514. data/spec/models/edit_tag_protection_option_spec.rb +48 -0
  515. data/spec/models/edit_team_option_spec.rb +76 -0
  516. data/spec/models/edit_user_option_spec.rb +144 -0
  517. data/spec/models/email_spec.rb +60 -0
  518. data/spec/models/external_tracker_spec.rb +54 -0
  519. data/spec/models/external_wiki_spec.rb +36 -0
  520. data/spec/models/file_commit_response_spec.rb +84 -0
  521. data/spec/models/file_delete_response_spec.rb +48 -0
  522. data/spec/models/file_links_response_spec.rb +48 -0
  523. data/spec/models/file_response_spec.rb +48 -0
  524. data/spec/models/files_response_spec.rb +48 -0
  525. data/spec/models/general_api_settings_spec.rb +54 -0
  526. data/spec/models/general_attachment_settings_spec.rb +54 -0
  527. data/spec/models/general_repo_settings_spec.rb +72 -0
  528. data/spec/models/general_ui_settings_spec.rb +48 -0
  529. data/spec/models/generate_repo_option_spec.rb +102 -0
  530. data/spec/models/git_blob_response_spec.rb +60 -0
  531. data/spec/models/git_entry_spec.rb +66 -0
  532. data/spec/models/git_hook_spec.rb +48 -0
  533. data/spec/models/git_object_spec.rb +48 -0
  534. data/spec/models/git_tree_response_spec.rb +66 -0
  535. data/spec/models/gitignore_template_info_spec.rb +42 -0
  536. data/spec/models/gpg_key_email_spec.rb +42 -0
  537. data/spec/models/gpg_key_spec.rb +108 -0
  538. data/spec/models/hook_spec.rb +102 -0
  539. data/spec/models/identity_spec.rb +42 -0
  540. data/spec/models/internal_tracker_spec.rb +48 -0
  541. data/spec/models/issue_config_contact_link_spec.rb +48 -0
  542. data/spec/models/issue_config_spec.rb +42 -0
  543. data/spec/models/issue_config_validation_spec.rb +42 -0
  544. data/spec/models/issue_deadline_spec.rb +36 -0
  545. data/spec/models/issue_form_field_spec.rb +60 -0
  546. data/spec/models/issue_labels_option_spec.rb +42 -0
  547. data/spec/models/issue_meta_spec.rb +48 -0
  548. data/spec/models/issue_spec.rb +180 -0
  549. data/spec/models/issue_template_spec.rb +78 -0
  550. data/spec/models/label_spec.rb +72 -0
  551. data/spec/models/label_template_spec.rb +54 -0
  552. data/spec/models/license_template_info_spec.rb +60 -0
  553. data/spec/models/licenses_template_list_entry_spec.rb +48 -0
  554. data/spec/models/markdown_option_spec.rb +54 -0
  555. data/spec/models/markup_option_spec.rb +60 -0
  556. data/spec/models/merge_pull_request_option_spec.rb +82 -0
  557. data/spec/models/migrate_repo_options_spec.rb +154 -0
  558. data/spec/models/milestone_spec.rb +90 -0
  559. data/spec/models/new_issue_pins_allowed_spec.rb +42 -0
  560. data/spec/models/node_info_services_spec.rb +42 -0
  561. data/spec/models/node_info_software_spec.rb +54 -0
  562. data/spec/models/node_info_spec.rb +72 -0
  563. data/spec/models/node_info_usage_spec.rb +48 -0
  564. data/spec/models/node_info_usage_users_spec.rb +48 -0
  565. data/spec/models/note_spec.rb +42 -0
  566. data/spec/models/notification_count_spec.rb +36 -0
  567. data/spec/models/notification_subject_spec.rb +72 -0
  568. data/spec/models/notification_thread_spec.rb +72 -0
  569. data/spec/models/o_auth2_application_spec.rb +72 -0
  570. data/spec/models/organization_permissions_spec.rb +60 -0
  571. data/spec/models/organization_spec.rb +96 -0
  572. data/spec/models/package_file_spec.rb +72 -0
  573. data/spec/models/package_spec.rb +84 -0
  574. data/spec/models/payload_commit_spec.rb +90 -0
  575. data/spec/models/payload_commit_verification_spec.rb +60 -0
  576. data/spec/models/payload_user_spec.rb +48 -0
  577. data/spec/models/permission_spec.rb +48 -0
  578. data/spec/models/pr_branch_info_spec.rb +60 -0
  579. data/spec/models/public_key_spec.rb +84 -0
  580. data/spec/models/pull_request_meta_spec.rb +54 -0
  581. data/spec/models/pull_request_spec.rb +246 -0
  582. data/spec/models/pull_review_comment_spec.rb +120 -0
  583. data/spec/models/pull_review_request_options_spec.rb +42 -0
  584. data/spec/models/pull_review_spec.rb +114 -0
  585. data/spec/models/push_mirror_spec.rb +78 -0
  586. data/spec/models/reaction_spec.rb +48 -0
  587. data/spec/models/reference_spec.rb +48 -0
  588. data/spec/models/release_spec.rb +138 -0
  589. data/spec/models/rename_user_option_spec.rb +36 -0
  590. data/spec/models/replace_flags_option_spec.rb +36 -0
  591. data/spec/models/repo_collaborator_permission_spec.rb +48 -0
  592. data/spec/models/repo_commit_spec.rb +66 -0
  593. data/spec/models/repo_create_release_attachment_request_spec.rb +36 -0
  594. data/spec/models/repo_topic_options_spec.rb +36 -0
  595. data/spec/models/repo_transfer_spec.rb +48 -0
  596. data/spec/models/repository_meta_spec.rb +54 -0
  597. data/spec/models/repository_spec.rb +406 -0
  598. data/spec/models/search_results_spec.rb +42 -0
  599. data/spec/models/secret_spec.rb +42 -0
  600. data/spec/models/server_version_spec.rb +36 -0
  601. data/spec/models/stop_watch_spec.rb +72 -0
  602. data/spec/models/submit_pull_review_options_spec.rb +42 -0
  603. data/spec/models/tag_archive_download_count_spec.rb +42 -0
  604. data/spec/models/tag_protection_spec.rb +66 -0
  605. data/spec/models/tag_spec.rb +72 -0
  606. data/spec/models/team_search200_response_spec.rb +42 -0
  607. data/spec/models/team_spec.rb +88 -0
  608. data/spec/models/timeline_comment_spec.rb +204 -0
  609. data/spec/models/topic_name_spec.rb +36 -0
  610. data/spec/models/topic_response_spec.rb +60 -0
  611. data/spec/models/tracked_time_spec.rb +72 -0
  612. data/spec/models/transfer_repo_option_spec.rb +42 -0
  613. data/spec/models/update_file_options_spec.rb +90 -0
  614. data/spec/models/update_repo_avatar_option_spec.rb +36 -0
  615. data/spec/models/update_user_avatar_option_spec.rb +36 -0
  616. data/spec/models/update_variable_option_spec.rb +42 -0
  617. data/spec/models/user_heatmap_data_spec.rb +42 -0
  618. data/spec/models/user_search200_response_spec.rb +42 -0
  619. data/spec/models/user_settings_options_spec.rb +96 -0
  620. data/spec/models/user_settings_spec.rb +96 -0
  621. data/spec/models/user_spec.rb +168 -0
  622. data/spec/models/watch_info_spec.rb +66 -0
  623. data/spec/models/wiki_commit_list_spec.rb +42 -0
  624. data/spec/models/wiki_commit_spec.rb +54 -0
  625. data/spec/models/wiki_page_meta_data_spec.rb +54 -0
  626. data/spec/models/wiki_page_spec.rb +78 -0
  627. data/spec/spec_helper.rb +111 -0
  628. data/swagger.v1.json +26802 -0
  629. data/swagger.v1.patched.json +1 -0
  630. metadata +949 -0
@@ -0,0 +1,4259 @@
1
+ # Forgejo::OrganizationApi
2
+
3
+ All URIs are relative to */api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_org_repo**](OrganizationApi.md#create_org_repo) | **POST** /orgs/{org}/repos | Create a repository in an organization |
8
+ | [**create_org_repo_deprecated**](OrganizationApi.md#create_org_repo_deprecated) | **POST** /org/{org}/repos | Create a repository in an organization |
9
+ | [**create_org_variable**](OrganizationApi.md#create_org_variable) | **POST** /orgs/{org}/actions/variables/{variablename} | Create an org-level variable |
10
+ | [**delete_org_secret**](OrganizationApi.md#delete_org_secret) | **DELETE** /orgs/{org}/actions/secrets/{secretname} | Delete a secret in an organization |
11
+ | [**delete_org_variable**](OrganizationApi.md#delete_org_variable) | **DELETE** /orgs/{org}/actions/variables/{variablename} | Delete an org-level variable |
12
+ | [**get_org_variable**](OrganizationApi.md#get_org_variable) | **GET** /orgs/{org}/actions/variables/{variablename} | Get an org-level variable |
13
+ | [**get_org_variables_list**](OrganizationApi.md#get_org_variables_list) | **GET** /orgs/{org}/actions/variables | Get an org-level variables list |
14
+ | [**org_add_team_member**](OrganizationApi.md#org_add_team_member) | **PUT** /teams/{id}/members/{username} | Add a team member |
15
+ | [**org_add_team_repository**](OrganizationApi.md#org_add_team_repository) | **PUT** /teams/{id}/repos/{org}/{repo} | Add a repository to a team |
16
+ | [**org_block_user**](OrganizationApi.md#org_block_user) | **PUT** /orgs/{org}/block/{username} | Blocks a user from the organization |
17
+ | [**org_conceal_member**](OrganizationApi.md#org_conceal_member) | **DELETE** /orgs/{org}/public_members/{username} | Conceal a user's membership |
18
+ | [**org_create**](OrganizationApi.md#org_create) | **POST** /orgs | Create an organization |
19
+ | [**org_create_hook**](OrganizationApi.md#org_create_hook) | **POST** /orgs/{org}/hooks | Create a hook |
20
+ | [**org_create_label**](OrganizationApi.md#org_create_label) | **POST** /orgs/{org}/labels | Create a label for an organization |
21
+ | [**org_create_team**](OrganizationApi.md#org_create_team) | **POST** /orgs/{org}/teams | Create a team |
22
+ | [**org_delete**](OrganizationApi.md#org_delete) | **DELETE** /orgs/{org} | Delete an organization |
23
+ | [**org_delete_avatar**](OrganizationApi.md#org_delete_avatar) | **DELETE** /orgs/{org}/avatar | Delete Avatar |
24
+ | [**org_delete_hook**](OrganizationApi.md#org_delete_hook) | **DELETE** /orgs/{org}/hooks/{id} | Delete a hook |
25
+ | [**org_delete_label**](OrganizationApi.md#org_delete_label) | **DELETE** /orgs/{org}/labels/{id} | Delete a label |
26
+ | [**org_delete_member**](OrganizationApi.md#org_delete_member) | **DELETE** /orgs/{org}/members/{username} | Remove a member from an organization |
27
+ | [**org_delete_team**](OrganizationApi.md#org_delete_team) | **DELETE** /teams/{id} | Delete a team |
28
+ | [**org_edit**](OrganizationApi.md#org_edit) | **PATCH** /orgs/{org} | Edit an organization |
29
+ | [**org_edit_hook**](OrganizationApi.md#org_edit_hook) | **PATCH** /orgs/{org}/hooks/{id} | Update a hook |
30
+ | [**org_edit_label**](OrganizationApi.md#org_edit_label) | **PATCH** /orgs/{org}/labels/{id} | Update a label |
31
+ | [**org_edit_team**](OrganizationApi.md#org_edit_team) | **PATCH** /teams/{id} | Edit a team |
32
+ | [**org_get**](OrganizationApi.md#org_get) | **GET** /orgs/{org} | Get an organization |
33
+ | [**org_get_all**](OrganizationApi.md#org_get_all) | **GET** /orgs | Get list of organizations |
34
+ | [**org_get_hook**](OrganizationApi.md#org_get_hook) | **GET** /orgs/{org}/hooks/{id} | Get a hook |
35
+ | [**org_get_label**](OrganizationApi.md#org_get_label) | **GET** /orgs/{org}/labels/{id} | Get a single label |
36
+ | [**org_get_runner_registration_token**](OrganizationApi.md#org_get_runner_registration_token) | **GET** /orgs/{org}/actions/runners/registration-token | Get an organization's actions runner registration token |
37
+ | [**org_get_team**](OrganizationApi.md#org_get_team) | **GET** /teams/{id} | Get a team |
38
+ | [**org_get_user_permissions**](OrganizationApi.md#org_get_user_permissions) | **GET** /users/{username}/orgs/{org}/permissions | Get user permissions in organization |
39
+ | [**org_is_member**](OrganizationApi.md#org_is_member) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization |
40
+ | [**org_is_public_member**](OrganizationApi.md#org_is_public_member) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization |
41
+ | [**org_list_actions_secrets**](OrganizationApi.md#org_list_actions_secrets) | **GET** /orgs/{org}/actions/secrets | List an organization's actions secrets |
42
+ | [**org_list_activity_feeds**](OrganizationApi.md#org_list_activity_feeds) | **GET** /orgs/{org}/activities/feeds | List an organization's activity feeds |
43
+ | [**org_list_blocked_users**](OrganizationApi.md#org_list_blocked_users) | **GET** /orgs/{org}/list_blocked | List the organization's blocked users |
44
+ | [**org_list_current_user_orgs**](OrganizationApi.md#org_list_current_user_orgs) | **GET** /user/orgs | List the current user's organizations |
45
+ | [**org_list_hooks**](OrganizationApi.md#org_list_hooks) | **GET** /orgs/{org}/hooks | List an organization's webhooks |
46
+ | [**org_list_labels**](OrganizationApi.md#org_list_labels) | **GET** /orgs/{org}/labels | List an organization's labels |
47
+ | [**org_list_members**](OrganizationApi.md#org_list_members) | **GET** /orgs/{org}/members | List an organization's members |
48
+ | [**org_list_public_members**](OrganizationApi.md#org_list_public_members) | **GET** /orgs/{org}/public_members | List an organization's public members |
49
+ | [**org_list_repos**](OrganizationApi.md#org_list_repos) | **GET** /orgs/{org}/repos | List an organization's repos |
50
+ | [**org_list_team_activity_feeds**](OrganizationApi.md#org_list_team_activity_feeds) | **GET** /teams/{id}/activities/feeds | List a team's activity feeds |
51
+ | [**org_list_team_member**](OrganizationApi.md#org_list_team_member) | **GET** /teams/{id}/members/{username} | List a particular member of team |
52
+ | [**org_list_team_members**](OrganizationApi.md#org_list_team_members) | **GET** /teams/{id}/members | List a team's members |
53
+ | [**org_list_team_repo**](OrganizationApi.md#org_list_team_repo) | **GET** /teams/{id}/repos/{org}/{repo} | List a particular repo of team |
54
+ | [**org_list_team_repos**](OrganizationApi.md#org_list_team_repos) | **GET** /teams/{id}/repos | List a team's repos |
55
+ | [**org_list_teams**](OrganizationApi.md#org_list_teams) | **GET** /orgs/{org}/teams | List an organization's teams |
56
+ | [**org_list_user_orgs**](OrganizationApi.md#org_list_user_orgs) | **GET** /users/{username}/orgs | List a user's organizations |
57
+ | [**org_publicize_member**](OrganizationApi.md#org_publicize_member) | **PUT** /orgs/{org}/public_members/{username} | Publicize a user's membership |
58
+ | [**org_remove_team_member**](OrganizationApi.md#org_remove_team_member) | **DELETE** /teams/{id}/members/{username} | Remove a team member |
59
+ | [**org_remove_team_repository**](OrganizationApi.md#org_remove_team_repository) | **DELETE** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team |
60
+ | [**org_unblock_user**](OrganizationApi.md#org_unblock_user) | **PUT** /orgs/{org}/unblock/{username} | Unblock a user from the organization |
61
+ | [**org_update_avatar**](OrganizationApi.md#org_update_avatar) | **POST** /orgs/{org}/avatar | Update Avatar |
62
+ | [**team_search**](OrganizationApi.md#team_search) | **GET** /orgs/{org}/teams/search | Search for teams within an organization |
63
+ | [**update_org_secret**](OrganizationApi.md#update_org_secret) | **PUT** /orgs/{org}/actions/secrets/{secretname} | Create or Update a secret value in an organization |
64
+ | [**update_org_variable**](OrganizationApi.md#update_org_variable) | **PUT** /orgs/{org}/actions/variables/{variablename} | Update an org-level variable |
65
+
66
+
67
+ ## create_org_repo
68
+
69
+ > <Repository> create_org_repo(org, opts)
70
+
71
+ Create a repository in an organization
72
+
73
+ ### Examples
74
+
75
+ ```ruby
76
+ require 'time'
77
+ require 'forgejo'
78
+ # setup authorization
79
+ Forgejo.configure do |config|
80
+ # Configure API key authorization: AuthorizationHeaderToken
81
+ config.api_key['Authorization'] = 'YOUR API KEY'
82
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
83
+ # config.api_key_prefix['Authorization'] = 'Bearer'
84
+ end
85
+
86
+ api_instance = Forgejo::OrganizationApi.new
87
+ org = 'org_example' # String | name of organization
88
+ opts = {
89
+ body: Forgejo::CreateRepoOption.new({name: 'name_example'}) # CreateRepoOption |
90
+ }
91
+
92
+ begin
93
+ # Create a repository in an organization
94
+ result = api_instance.create_org_repo(org, opts)
95
+ p result
96
+ rescue Forgejo::ApiError => e
97
+ puts "Error when calling OrganizationApi->create_org_repo: #{e}"
98
+ end
99
+ ```
100
+
101
+ #### Using the create_org_repo_with_http_info variant
102
+
103
+ This returns an Array which contains the response data, status code and headers.
104
+
105
+ > <Array(<Repository>, Integer, Hash)> create_org_repo_with_http_info(org, opts)
106
+
107
+ ```ruby
108
+ begin
109
+ # Create a repository in an organization
110
+ data, status_code, headers = api_instance.create_org_repo_with_http_info(org, opts)
111
+ p status_code # => 2xx
112
+ p headers # => { ... }
113
+ p data # => <Repository>
114
+ rescue Forgejo::ApiError => e
115
+ puts "Error when calling OrganizationApi->create_org_repo_with_http_info: #{e}"
116
+ end
117
+ ```
118
+
119
+ ### Parameters
120
+
121
+ | Name | Type | Description | Notes |
122
+ | ---- | ---- | ----------- | ----- |
123
+ | **org** | **String** | name of organization | |
124
+ | **body** | [**CreateRepoOption**](CreateRepoOption.md) | | [optional] |
125
+
126
+ ### Return type
127
+
128
+ [**Repository**](Repository.md)
129
+
130
+ ### Authorization
131
+
132
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: application/json
137
+ - **Accept**: application/json
138
+
139
+
140
+ ## create_org_repo_deprecated
141
+
142
+ > <Repository> create_org_repo_deprecated(org, opts)
143
+
144
+ Create a repository in an organization
145
+
146
+ ### Examples
147
+
148
+ ```ruby
149
+ require 'time'
150
+ require 'forgejo'
151
+ # setup authorization
152
+ Forgejo.configure do |config|
153
+ # Configure API key authorization: AuthorizationHeaderToken
154
+ config.api_key['Authorization'] = 'YOUR API KEY'
155
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
156
+ # config.api_key_prefix['Authorization'] = 'Bearer'
157
+ end
158
+
159
+ api_instance = Forgejo::OrganizationApi.new
160
+ org = 'org_example' # String | name of organization
161
+ opts = {
162
+ body: Forgejo::CreateRepoOption.new({name: 'name_example'}) # CreateRepoOption |
163
+ }
164
+
165
+ begin
166
+ # Create a repository in an organization
167
+ result = api_instance.create_org_repo_deprecated(org, opts)
168
+ p result
169
+ rescue Forgejo::ApiError => e
170
+ puts "Error when calling OrganizationApi->create_org_repo_deprecated: #{e}"
171
+ end
172
+ ```
173
+
174
+ #### Using the create_org_repo_deprecated_with_http_info variant
175
+
176
+ This returns an Array which contains the response data, status code and headers.
177
+
178
+ > <Array(<Repository>, Integer, Hash)> create_org_repo_deprecated_with_http_info(org, opts)
179
+
180
+ ```ruby
181
+ begin
182
+ # Create a repository in an organization
183
+ data, status_code, headers = api_instance.create_org_repo_deprecated_with_http_info(org, opts)
184
+ p status_code # => 2xx
185
+ p headers # => { ... }
186
+ p data # => <Repository>
187
+ rescue Forgejo::ApiError => e
188
+ puts "Error when calling OrganizationApi->create_org_repo_deprecated_with_http_info: #{e}"
189
+ end
190
+ ```
191
+
192
+ ### Parameters
193
+
194
+ | Name | Type | Description | Notes |
195
+ | ---- | ---- | ----------- | ----- |
196
+ | **org** | **String** | name of organization | |
197
+ | **body** | [**CreateRepoOption**](CreateRepoOption.md) | | [optional] |
198
+
199
+ ### Return type
200
+
201
+ [**Repository**](Repository.md)
202
+
203
+ ### Authorization
204
+
205
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
206
+
207
+ ### HTTP request headers
208
+
209
+ - **Content-Type**: application/json
210
+ - **Accept**: application/json
211
+
212
+
213
+ ## create_org_variable
214
+
215
+ > create_org_variable(org, variablename, opts)
216
+
217
+ Create an org-level variable
218
+
219
+ ### Examples
220
+
221
+ ```ruby
222
+ require 'time'
223
+ require 'forgejo'
224
+ # setup authorization
225
+ Forgejo.configure do |config|
226
+ # Configure API key authorization: AuthorizationHeaderToken
227
+ config.api_key['Authorization'] = 'YOUR API KEY'
228
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
229
+ # config.api_key_prefix['Authorization'] = 'Bearer'
230
+ end
231
+
232
+ api_instance = Forgejo::OrganizationApi.new
233
+ org = 'org_example' # String | name of the organization
234
+ variablename = 'variablename_example' # String | name of the variable
235
+ opts = {
236
+ body: Forgejo::CreateVariableOption.new({value: 'value_example'}) # CreateVariableOption |
237
+ }
238
+
239
+ begin
240
+ # Create an org-level variable
241
+ api_instance.create_org_variable(org, variablename, opts)
242
+ rescue Forgejo::ApiError => e
243
+ puts "Error when calling OrganizationApi->create_org_variable: #{e}"
244
+ end
245
+ ```
246
+
247
+ #### Using the create_org_variable_with_http_info variant
248
+
249
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
250
+
251
+ > <Array(nil, Integer, Hash)> create_org_variable_with_http_info(org, variablename, opts)
252
+
253
+ ```ruby
254
+ begin
255
+ # Create an org-level variable
256
+ data, status_code, headers = api_instance.create_org_variable_with_http_info(org, variablename, opts)
257
+ p status_code # => 2xx
258
+ p headers # => { ... }
259
+ p data # => nil
260
+ rescue Forgejo::ApiError => e
261
+ puts "Error when calling OrganizationApi->create_org_variable_with_http_info: #{e}"
262
+ end
263
+ ```
264
+
265
+ ### Parameters
266
+
267
+ | Name | Type | Description | Notes |
268
+ | ---- | ---- | ----------- | ----- |
269
+ | **org** | **String** | name of the organization | |
270
+ | **variablename** | **String** | name of the variable | |
271
+ | **body** | [**CreateVariableOption**](CreateVariableOption.md) | | [optional] |
272
+
273
+ ### Return type
274
+
275
+ nil (empty response body)
276
+
277
+ ### Authorization
278
+
279
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
280
+
281
+ ### HTTP request headers
282
+
283
+ - **Content-Type**: application/json
284
+ - **Accept**: Not defined
285
+
286
+
287
+ ## delete_org_secret
288
+
289
+ > delete_org_secret(org, secretname)
290
+
291
+ Delete a secret in an organization
292
+
293
+ ### Examples
294
+
295
+ ```ruby
296
+ require 'time'
297
+ require 'forgejo'
298
+ # setup authorization
299
+ Forgejo.configure do |config|
300
+ # Configure API key authorization: AuthorizationHeaderToken
301
+ config.api_key['Authorization'] = 'YOUR API KEY'
302
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
303
+ # config.api_key_prefix['Authorization'] = 'Bearer'
304
+ end
305
+
306
+ api_instance = Forgejo::OrganizationApi.new
307
+ org = 'org_example' # String | name of organization
308
+ secretname = 'secretname_example' # String | name of the secret
309
+
310
+ begin
311
+ # Delete a secret in an organization
312
+ api_instance.delete_org_secret(org, secretname)
313
+ rescue Forgejo::ApiError => e
314
+ puts "Error when calling OrganizationApi->delete_org_secret: #{e}"
315
+ end
316
+ ```
317
+
318
+ #### Using the delete_org_secret_with_http_info variant
319
+
320
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
321
+
322
+ > <Array(nil, Integer, Hash)> delete_org_secret_with_http_info(org, secretname)
323
+
324
+ ```ruby
325
+ begin
326
+ # Delete a secret in an organization
327
+ data, status_code, headers = api_instance.delete_org_secret_with_http_info(org, secretname)
328
+ p status_code # => 2xx
329
+ p headers # => { ... }
330
+ p data # => nil
331
+ rescue Forgejo::ApiError => e
332
+ puts "Error when calling OrganizationApi->delete_org_secret_with_http_info: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ | Name | Type | Description | Notes |
339
+ | ---- | ---- | ----------- | ----- |
340
+ | **org** | **String** | name of organization | |
341
+ | **secretname** | **String** | name of the secret | |
342
+
343
+ ### Return type
344
+
345
+ nil (empty response body)
346
+
347
+ ### Authorization
348
+
349
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: Not defined
354
+ - **Accept**: Not defined
355
+
356
+
357
+ ## delete_org_variable
358
+
359
+ > <ActionVariable> delete_org_variable(org, variablename)
360
+
361
+ Delete an org-level variable
362
+
363
+ ### Examples
364
+
365
+ ```ruby
366
+ require 'time'
367
+ require 'forgejo'
368
+ # setup authorization
369
+ Forgejo.configure do |config|
370
+ # Configure API key authorization: AuthorizationHeaderToken
371
+ config.api_key['Authorization'] = 'YOUR API KEY'
372
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
373
+ # config.api_key_prefix['Authorization'] = 'Bearer'
374
+ end
375
+
376
+ api_instance = Forgejo::OrganizationApi.new
377
+ org = 'org_example' # String | name of the organization
378
+ variablename = 'variablename_example' # String | name of the variable
379
+
380
+ begin
381
+ # Delete an org-level variable
382
+ result = api_instance.delete_org_variable(org, variablename)
383
+ p result
384
+ rescue Forgejo::ApiError => e
385
+ puts "Error when calling OrganizationApi->delete_org_variable: #{e}"
386
+ end
387
+ ```
388
+
389
+ #### Using the delete_org_variable_with_http_info variant
390
+
391
+ This returns an Array which contains the response data, status code and headers.
392
+
393
+ > <Array(<ActionVariable>, Integer, Hash)> delete_org_variable_with_http_info(org, variablename)
394
+
395
+ ```ruby
396
+ begin
397
+ # Delete an org-level variable
398
+ data, status_code, headers = api_instance.delete_org_variable_with_http_info(org, variablename)
399
+ p status_code # => 2xx
400
+ p headers # => { ... }
401
+ p data # => <ActionVariable>
402
+ rescue Forgejo::ApiError => e
403
+ puts "Error when calling OrganizationApi->delete_org_variable_with_http_info: #{e}"
404
+ end
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ | Name | Type | Description | Notes |
410
+ | ---- | ---- | ----------- | ----- |
411
+ | **org** | **String** | name of the organization | |
412
+ | **variablename** | **String** | name of the variable | |
413
+
414
+ ### Return type
415
+
416
+ [**ActionVariable**](ActionVariable.md)
417
+
418
+ ### Authorization
419
+
420
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
421
+
422
+ ### HTTP request headers
423
+
424
+ - **Content-Type**: Not defined
425
+ - **Accept**: application/json
426
+
427
+
428
+ ## get_org_variable
429
+
430
+ > <ActionVariable> get_org_variable(org, variablename)
431
+
432
+ Get an org-level variable
433
+
434
+ ### Examples
435
+
436
+ ```ruby
437
+ require 'time'
438
+ require 'forgejo'
439
+ # setup authorization
440
+ Forgejo.configure do |config|
441
+ # Configure API key authorization: AuthorizationHeaderToken
442
+ config.api_key['Authorization'] = 'YOUR API KEY'
443
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
444
+ # config.api_key_prefix['Authorization'] = 'Bearer'
445
+ end
446
+
447
+ api_instance = Forgejo::OrganizationApi.new
448
+ org = 'org_example' # String | name of the organization
449
+ variablename = 'variablename_example' # String | name of the variable
450
+
451
+ begin
452
+ # Get an org-level variable
453
+ result = api_instance.get_org_variable(org, variablename)
454
+ p result
455
+ rescue Forgejo::ApiError => e
456
+ puts "Error when calling OrganizationApi->get_org_variable: #{e}"
457
+ end
458
+ ```
459
+
460
+ #### Using the get_org_variable_with_http_info variant
461
+
462
+ This returns an Array which contains the response data, status code and headers.
463
+
464
+ > <Array(<ActionVariable>, Integer, Hash)> get_org_variable_with_http_info(org, variablename)
465
+
466
+ ```ruby
467
+ begin
468
+ # Get an org-level variable
469
+ data, status_code, headers = api_instance.get_org_variable_with_http_info(org, variablename)
470
+ p status_code # => 2xx
471
+ p headers # => { ... }
472
+ p data # => <ActionVariable>
473
+ rescue Forgejo::ApiError => e
474
+ puts "Error when calling OrganizationApi->get_org_variable_with_http_info: #{e}"
475
+ end
476
+ ```
477
+
478
+ ### Parameters
479
+
480
+ | Name | Type | Description | Notes |
481
+ | ---- | ---- | ----------- | ----- |
482
+ | **org** | **String** | name of the organization | |
483
+ | **variablename** | **String** | name of the variable | |
484
+
485
+ ### Return type
486
+
487
+ [**ActionVariable**](ActionVariable.md)
488
+
489
+ ### Authorization
490
+
491
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
492
+
493
+ ### HTTP request headers
494
+
495
+ - **Content-Type**: Not defined
496
+ - **Accept**: application/json
497
+
498
+
499
+ ## get_org_variables_list
500
+
501
+ > <Array<ActionVariable>> get_org_variables_list(org, opts)
502
+
503
+ Get an org-level variables list
504
+
505
+ ### Examples
506
+
507
+ ```ruby
508
+ require 'time'
509
+ require 'forgejo'
510
+ # setup authorization
511
+ Forgejo.configure do |config|
512
+ # Configure API key authorization: AuthorizationHeaderToken
513
+ config.api_key['Authorization'] = 'YOUR API KEY'
514
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
515
+ # config.api_key_prefix['Authorization'] = 'Bearer'
516
+ end
517
+
518
+ api_instance = Forgejo::OrganizationApi.new
519
+ org = 'org_example' # String | name of the organization
520
+ opts = {
521
+ page: 56, # Integer | page number of results to return (1-based)
522
+ limit: 56 # Integer | page size of results
523
+ }
524
+
525
+ begin
526
+ # Get an org-level variables list
527
+ result = api_instance.get_org_variables_list(org, opts)
528
+ p result
529
+ rescue Forgejo::ApiError => e
530
+ puts "Error when calling OrganizationApi->get_org_variables_list: #{e}"
531
+ end
532
+ ```
533
+
534
+ #### Using the get_org_variables_list_with_http_info variant
535
+
536
+ This returns an Array which contains the response data, status code and headers.
537
+
538
+ > <Array(<Array<ActionVariable>>, Integer, Hash)> get_org_variables_list_with_http_info(org, opts)
539
+
540
+ ```ruby
541
+ begin
542
+ # Get an org-level variables list
543
+ data, status_code, headers = api_instance.get_org_variables_list_with_http_info(org, opts)
544
+ p status_code # => 2xx
545
+ p headers # => { ... }
546
+ p data # => <Array<ActionVariable>>
547
+ rescue Forgejo::ApiError => e
548
+ puts "Error when calling OrganizationApi->get_org_variables_list_with_http_info: #{e}"
549
+ end
550
+ ```
551
+
552
+ ### Parameters
553
+
554
+ | Name | Type | Description | Notes |
555
+ | ---- | ---- | ----------- | ----- |
556
+ | **org** | **String** | name of the organization | |
557
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
558
+ | **limit** | **Integer** | page size of results | [optional] |
559
+
560
+ ### Return type
561
+
562
+ [**Array&lt;ActionVariable&gt;**](ActionVariable.md)
563
+
564
+ ### Authorization
565
+
566
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
567
+
568
+ ### HTTP request headers
569
+
570
+ - **Content-Type**: Not defined
571
+ - **Accept**: application/json
572
+
573
+
574
+ ## org_add_team_member
575
+
576
+ > org_add_team_member(id, username)
577
+
578
+ Add a team member
579
+
580
+ ### Examples
581
+
582
+ ```ruby
583
+ require 'time'
584
+ require 'forgejo'
585
+ # setup authorization
586
+ Forgejo.configure do |config|
587
+ # Configure API key authorization: AuthorizationHeaderToken
588
+ config.api_key['Authorization'] = 'YOUR API KEY'
589
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
590
+ # config.api_key_prefix['Authorization'] = 'Bearer'
591
+ end
592
+
593
+ api_instance = Forgejo::OrganizationApi.new
594
+ id = 789 # Integer | id of the team
595
+ username = 'username_example' # String | username of the user to add
596
+
597
+ begin
598
+ # Add a team member
599
+ api_instance.org_add_team_member(id, username)
600
+ rescue Forgejo::ApiError => e
601
+ puts "Error when calling OrganizationApi->org_add_team_member: #{e}"
602
+ end
603
+ ```
604
+
605
+ #### Using the org_add_team_member_with_http_info variant
606
+
607
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
608
+
609
+ > <Array(nil, Integer, Hash)> org_add_team_member_with_http_info(id, username)
610
+
611
+ ```ruby
612
+ begin
613
+ # Add a team member
614
+ data, status_code, headers = api_instance.org_add_team_member_with_http_info(id, username)
615
+ p status_code # => 2xx
616
+ p headers # => { ... }
617
+ p data # => nil
618
+ rescue Forgejo::ApiError => e
619
+ puts "Error when calling OrganizationApi->org_add_team_member_with_http_info: #{e}"
620
+ end
621
+ ```
622
+
623
+ ### Parameters
624
+
625
+ | Name | Type | Description | Notes |
626
+ | ---- | ---- | ----------- | ----- |
627
+ | **id** | **Integer** | id of the team | |
628
+ | **username** | **String** | username of the user to add | |
629
+
630
+ ### Return type
631
+
632
+ nil (empty response body)
633
+
634
+ ### Authorization
635
+
636
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
637
+
638
+ ### HTTP request headers
639
+
640
+ - **Content-Type**: Not defined
641
+ - **Accept**: Not defined
642
+
643
+
644
+ ## org_add_team_repository
645
+
646
+ > org_add_team_repository(id, org, repo)
647
+
648
+ Add a repository to a team
649
+
650
+ ### Examples
651
+
652
+ ```ruby
653
+ require 'time'
654
+ require 'forgejo'
655
+ # setup authorization
656
+ Forgejo.configure do |config|
657
+ # Configure API key authorization: AuthorizationHeaderToken
658
+ config.api_key['Authorization'] = 'YOUR API KEY'
659
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
660
+ # config.api_key_prefix['Authorization'] = 'Bearer'
661
+ end
662
+
663
+ api_instance = Forgejo::OrganizationApi.new
664
+ id = 789 # Integer | id of the team
665
+ org = 'org_example' # String | organization that owns the repo to add
666
+ repo = 'repo_example' # String | name of the repo to add
667
+
668
+ begin
669
+ # Add a repository to a team
670
+ api_instance.org_add_team_repository(id, org, repo)
671
+ rescue Forgejo::ApiError => e
672
+ puts "Error when calling OrganizationApi->org_add_team_repository: #{e}"
673
+ end
674
+ ```
675
+
676
+ #### Using the org_add_team_repository_with_http_info variant
677
+
678
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
679
+
680
+ > <Array(nil, Integer, Hash)> org_add_team_repository_with_http_info(id, org, repo)
681
+
682
+ ```ruby
683
+ begin
684
+ # Add a repository to a team
685
+ data, status_code, headers = api_instance.org_add_team_repository_with_http_info(id, org, repo)
686
+ p status_code # => 2xx
687
+ p headers # => { ... }
688
+ p data # => nil
689
+ rescue Forgejo::ApiError => e
690
+ puts "Error when calling OrganizationApi->org_add_team_repository_with_http_info: #{e}"
691
+ end
692
+ ```
693
+
694
+ ### Parameters
695
+
696
+ | Name | Type | Description | Notes |
697
+ | ---- | ---- | ----------- | ----- |
698
+ | **id** | **Integer** | id of the team | |
699
+ | **org** | **String** | organization that owns the repo to add | |
700
+ | **repo** | **String** | name of the repo to add | |
701
+
702
+ ### Return type
703
+
704
+ nil (empty response body)
705
+
706
+ ### Authorization
707
+
708
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
709
+
710
+ ### HTTP request headers
711
+
712
+ - **Content-Type**: Not defined
713
+ - **Accept**: Not defined
714
+
715
+
716
+ ## org_block_user
717
+
718
+ > org_block_user(org, username)
719
+
720
+ Blocks a user from the organization
721
+
722
+ ### Examples
723
+
724
+ ```ruby
725
+ require 'time'
726
+ require 'forgejo'
727
+ # setup authorization
728
+ Forgejo.configure do |config|
729
+ # Configure API key authorization: AuthorizationHeaderToken
730
+ config.api_key['Authorization'] = 'YOUR API KEY'
731
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
732
+ # config.api_key_prefix['Authorization'] = 'Bearer'
733
+ end
734
+
735
+ api_instance = Forgejo::OrganizationApi.new
736
+ org = 'org_example' # String | name of the org
737
+ username = 'username_example' # String | username of the user
738
+
739
+ begin
740
+ # Blocks a user from the organization
741
+ api_instance.org_block_user(org, username)
742
+ rescue Forgejo::ApiError => e
743
+ puts "Error when calling OrganizationApi->org_block_user: #{e}"
744
+ end
745
+ ```
746
+
747
+ #### Using the org_block_user_with_http_info variant
748
+
749
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
750
+
751
+ > <Array(nil, Integer, Hash)> org_block_user_with_http_info(org, username)
752
+
753
+ ```ruby
754
+ begin
755
+ # Blocks a user from the organization
756
+ data, status_code, headers = api_instance.org_block_user_with_http_info(org, username)
757
+ p status_code # => 2xx
758
+ p headers # => { ... }
759
+ p data # => nil
760
+ rescue Forgejo::ApiError => e
761
+ puts "Error when calling OrganizationApi->org_block_user_with_http_info: #{e}"
762
+ end
763
+ ```
764
+
765
+ ### Parameters
766
+
767
+ | Name | Type | Description | Notes |
768
+ | ---- | ---- | ----------- | ----- |
769
+ | **org** | **String** | name of the org | |
770
+ | **username** | **String** | username of the user | |
771
+
772
+ ### Return type
773
+
774
+ nil (empty response body)
775
+
776
+ ### Authorization
777
+
778
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
779
+
780
+ ### HTTP request headers
781
+
782
+ - **Content-Type**: Not defined
783
+ - **Accept**: Not defined
784
+
785
+
786
+ ## org_conceal_member
787
+
788
+ > org_conceal_member(org, username)
789
+
790
+ Conceal a user's membership
791
+
792
+ ### Examples
793
+
794
+ ```ruby
795
+ require 'time'
796
+ require 'forgejo'
797
+ # setup authorization
798
+ Forgejo.configure do |config|
799
+ # Configure API key authorization: AuthorizationHeaderToken
800
+ config.api_key['Authorization'] = 'YOUR API KEY'
801
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
802
+ # config.api_key_prefix['Authorization'] = 'Bearer'
803
+ end
804
+
805
+ api_instance = Forgejo::OrganizationApi.new
806
+ org = 'org_example' # String | name of the organization
807
+ username = 'username_example' # String | username of the user
808
+
809
+ begin
810
+ # Conceal a user's membership
811
+ api_instance.org_conceal_member(org, username)
812
+ rescue Forgejo::ApiError => e
813
+ puts "Error when calling OrganizationApi->org_conceal_member: #{e}"
814
+ end
815
+ ```
816
+
817
+ #### Using the org_conceal_member_with_http_info variant
818
+
819
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
820
+
821
+ > <Array(nil, Integer, Hash)> org_conceal_member_with_http_info(org, username)
822
+
823
+ ```ruby
824
+ begin
825
+ # Conceal a user's membership
826
+ data, status_code, headers = api_instance.org_conceal_member_with_http_info(org, username)
827
+ p status_code # => 2xx
828
+ p headers # => { ... }
829
+ p data # => nil
830
+ rescue Forgejo::ApiError => e
831
+ puts "Error when calling OrganizationApi->org_conceal_member_with_http_info: #{e}"
832
+ end
833
+ ```
834
+
835
+ ### Parameters
836
+
837
+ | Name | Type | Description | Notes |
838
+ | ---- | ---- | ----------- | ----- |
839
+ | **org** | **String** | name of the organization | |
840
+ | **username** | **String** | username of the user | |
841
+
842
+ ### Return type
843
+
844
+ nil (empty response body)
845
+
846
+ ### Authorization
847
+
848
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
849
+
850
+ ### HTTP request headers
851
+
852
+ - **Content-Type**: Not defined
853
+ - **Accept**: Not defined
854
+
855
+
856
+ ## org_create
857
+
858
+ > <Organization> org_create(organization)
859
+
860
+ Create an organization
861
+
862
+ ### Examples
863
+
864
+ ```ruby
865
+ require 'time'
866
+ require 'forgejo'
867
+ # setup authorization
868
+ Forgejo.configure do |config|
869
+ # Configure API key authorization: AuthorizationHeaderToken
870
+ config.api_key['Authorization'] = 'YOUR API KEY'
871
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
872
+ # config.api_key_prefix['Authorization'] = 'Bearer'
873
+ end
874
+
875
+ api_instance = Forgejo::OrganizationApi.new
876
+ organization = Forgejo::CreateOrgOption.new({username: 'username_example'}) # CreateOrgOption |
877
+
878
+ begin
879
+ # Create an organization
880
+ result = api_instance.org_create(organization)
881
+ p result
882
+ rescue Forgejo::ApiError => e
883
+ puts "Error when calling OrganizationApi->org_create: #{e}"
884
+ end
885
+ ```
886
+
887
+ #### Using the org_create_with_http_info variant
888
+
889
+ This returns an Array which contains the response data, status code and headers.
890
+
891
+ > <Array(<Organization>, Integer, Hash)> org_create_with_http_info(organization)
892
+
893
+ ```ruby
894
+ begin
895
+ # Create an organization
896
+ data, status_code, headers = api_instance.org_create_with_http_info(organization)
897
+ p status_code # => 2xx
898
+ p headers # => { ... }
899
+ p data # => <Organization>
900
+ rescue Forgejo::ApiError => e
901
+ puts "Error when calling OrganizationApi->org_create_with_http_info: #{e}"
902
+ end
903
+ ```
904
+
905
+ ### Parameters
906
+
907
+ | Name | Type | Description | Notes |
908
+ | ---- | ---- | ----------- | ----- |
909
+ | **organization** | [**CreateOrgOption**](CreateOrgOption.md) | | |
910
+
911
+ ### Return type
912
+
913
+ [**Organization**](Organization.md)
914
+
915
+ ### Authorization
916
+
917
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
918
+
919
+ ### HTTP request headers
920
+
921
+ - **Content-Type**: application/json
922
+ - **Accept**: application/json
923
+
924
+
925
+ ## org_create_hook
926
+
927
+ > <Hook> org_create_hook(org, body)
928
+
929
+ Create a hook
930
+
931
+ ### Examples
932
+
933
+ ```ruby
934
+ require 'time'
935
+ require 'forgejo'
936
+ # setup authorization
937
+ Forgejo.configure do |config|
938
+ # Configure API key authorization: AuthorizationHeaderToken
939
+ config.api_key['Authorization'] = 'YOUR API KEY'
940
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
941
+ # config.api_key_prefix['Authorization'] = 'Bearer'
942
+ end
943
+
944
+ api_instance = Forgejo::OrganizationApi.new
945
+ org = 'org_example' # String | name of the organization
946
+ body = Forgejo::CreateHookOption.new({config: { key: 'inner_example'}, type: 'forgejo'}) # CreateHookOption |
947
+
948
+ begin
949
+ # Create a hook
950
+ result = api_instance.org_create_hook(org, body)
951
+ p result
952
+ rescue Forgejo::ApiError => e
953
+ puts "Error when calling OrganizationApi->org_create_hook: #{e}"
954
+ end
955
+ ```
956
+
957
+ #### Using the org_create_hook_with_http_info variant
958
+
959
+ This returns an Array which contains the response data, status code and headers.
960
+
961
+ > <Array(<Hook>, Integer, Hash)> org_create_hook_with_http_info(org, body)
962
+
963
+ ```ruby
964
+ begin
965
+ # Create a hook
966
+ data, status_code, headers = api_instance.org_create_hook_with_http_info(org, body)
967
+ p status_code # => 2xx
968
+ p headers # => { ... }
969
+ p data # => <Hook>
970
+ rescue Forgejo::ApiError => e
971
+ puts "Error when calling OrganizationApi->org_create_hook_with_http_info: #{e}"
972
+ end
973
+ ```
974
+
975
+ ### Parameters
976
+
977
+ | Name | Type | Description | Notes |
978
+ | ---- | ---- | ----------- | ----- |
979
+ | **org** | **String** | name of the organization | |
980
+ | **body** | [**CreateHookOption**](CreateHookOption.md) | | |
981
+
982
+ ### Return type
983
+
984
+ [**Hook**](Hook.md)
985
+
986
+ ### Authorization
987
+
988
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
989
+
990
+ ### HTTP request headers
991
+
992
+ - **Content-Type**: application/json
993
+ - **Accept**: application/json
994
+
995
+
996
+ ## org_create_label
997
+
998
+ > <Label> org_create_label(org, opts)
999
+
1000
+ Create a label for an organization
1001
+
1002
+ ### Examples
1003
+
1004
+ ```ruby
1005
+ require 'time'
1006
+ require 'forgejo'
1007
+ # setup authorization
1008
+ Forgejo.configure do |config|
1009
+ # Configure API key authorization: AuthorizationHeaderToken
1010
+ config.api_key['Authorization'] = 'YOUR API KEY'
1011
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1012
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1013
+ end
1014
+
1015
+ api_instance = Forgejo::OrganizationApi.new
1016
+ org = 'org_example' # String | name of the organization
1017
+ opts = {
1018
+ body: Forgejo::CreateLabelOption.new({color: '#00aabb', name: 'name_example'}) # CreateLabelOption |
1019
+ }
1020
+
1021
+ begin
1022
+ # Create a label for an organization
1023
+ result = api_instance.org_create_label(org, opts)
1024
+ p result
1025
+ rescue Forgejo::ApiError => e
1026
+ puts "Error when calling OrganizationApi->org_create_label: #{e}"
1027
+ end
1028
+ ```
1029
+
1030
+ #### Using the org_create_label_with_http_info variant
1031
+
1032
+ This returns an Array which contains the response data, status code and headers.
1033
+
1034
+ > <Array(<Label>, Integer, Hash)> org_create_label_with_http_info(org, opts)
1035
+
1036
+ ```ruby
1037
+ begin
1038
+ # Create a label for an organization
1039
+ data, status_code, headers = api_instance.org_create_label_with_http_info(org, opts)
1040
+ p status_code # => 2xx
1041
+ p headers # => { ... }
1042
+ p data # => <Label>
1043
+ rescue Forgejo::ApiError => e
1044
+ puts "Error when calling OrganizationApi->org_create_label_with_http_info: #{e}"
1045
+ end
1046
+ ```
1047
+
1048
+ ### Parameters
1049
+
1050
+ | Name | Type | Description | Notes |
1051
+ | ---- | ---- | ----------- | ----- |
1052
+ | **org** | **String** | name of the organization | |
1053
+ | **body** | [**CreateLabelOption**](CreateLabelOption.md) | | [optional] |
1054
+
1055
+ ### Return type
1056
+
1057
+ [**Label**](Label.md)
1058
+
1059
+ ### Authorization
1060
+
1061
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1062
+
1063
+ ### HTTP request headers
1064
+
1065
+ - **Content-Type**: application/json
1066
+ - **Accept**: application/json
1067
+
1068
+
1069
+ ## org_create_team
1070
+
1071
+ > <Team> org_create_team(org, opts)
1072
+
1073
+ Create a team
1074
+
1075
+ ### Examples
1076
+
1077
+ ```ruby
1078
+ require 'time'
1079
+ require 'forgejo'
1080
+ # setup authorization
1081
+ Forgejo.configure do |config|
1082
+ # Configure API key authorization: AuthorizationHeaderToken
1083
+ config.api_key['Authorization'] = 'YOUR API KEY'
1084
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1085
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1086
+ end
1087
+
1088
+ api_instance = Forgejo::OrganizationApi.new
1089
+ org = 'org_example' # String | name of the organization
1090
+ opts = {
1091
+ body: Forgejo::CreateTeamOption.new({name: 'name_example'}) # CreateTeamOption |
1092
+ }
1093
+
1094
+ begin
1095
+ # Create a team
1096
+ result = api_instance.org_create_team(org, opts)
1097
+ p result
1098
+ rescue Forgejo::ApiError => e
1099
+ puts "Error when calling OrganizationApi->org_create_team: #{e}"
1100
+ end
1101
+ ```
1102
+
1103
+ #### Using the org_create_team_with_http_info variant
1104
+
1105
+ This returns an Array which contains the response data, status code and headers.
1106
+
1107
+ > <Array(<Team>, Integer, Hash)> org_create_team_with_http_info(org, opts)
1108
+
1109
+ ```ruby
1110
+ begin
1111
+ # Create a team
1112
+ data, status_code, headers = api_instance.org_create_team_with_http_info(org, opts)
1113
+ p status_code # => 2xx
1114
+ p headers # => { ... }
1115
+ p data # => <Team>
1116
+ rescue Forgejo::ApiError => e
1117
+ puts "Error when calling OrganizationApi->org_create_team_with_http_info: #{e}"
1118
+ end
1119
+ ```
1120
+
1121
+ ### Parameters
1122
+
1123
+ | Name | Type | Description | Notes |
1124
+ | ---- | ---- | ----------- | ----- |
1125
+ | **org** | **String** | name of the organization | |
1126
+ | **body** | [**CreateTeamOption**](CreateTeamOption.md) | | [optional] |
1127
+
1128
+ ### Return type
1129
+
1130
+ [**Team**](Team.md)
1131
+
1132
+ ### Authorization
1133
+
1134
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1135
+
1136
+ ### HTTP request headers
1137
+
1138
+ - **Content-Type**: application/json
1139
+ - **Accept**: application/json
1140
+
1141
+
1142
+ ## org_delete
1143
+
1144
+ > org_delete(org)
1145
+
1146
+ Delete an organization
1147
+
1148
+ ### Examples
1149
+
1150
+ ```ruby
1151
+ require 'time'
1152
+ require 'forgejo'
1153
+ # setup authorization
1154
+ Forgejo.configure do |config|
1155
+ # Configure API key authorization: AuthorizationHeaderToken
1156
+ config.api_key['Authorization'] = 'YOUR API KEY'
1157
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1158
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1159
+ end
1160
+
1161
+ api_instance = Forgejo::OrganizationApi.new
1162
+ org = 'org_example' # String | organization that is to be deleted
1163
+
1164
+ begin
1165
+ # Delete an organization
1166
+ api_instance.org_delete(org)
1167
+ rescue Forgejo::ApiError => e
1168
+ puts "Error when calling OrganizationApi->org_delete: #{e}"
1169
+ end
1170
+ ```
1171
+
1172
+ #### Using the org_delete_with_http_info variant
1173
+
1174
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1175
+
1176
+ > <Array(nil, Integer, Hash)> org_delete_with_http_info(org)
1177
+
1178
+ ```ruby
1179
+ begin
1180
+ # Delete an organization
1181
+ data, status_code, headers = api_instance.org_delete_with_http_info(org)
1182
+ p status_code # => 2xx
1183
+ p headers # => { ... }
1184
+ p data # => nil
1185
+ rescue Forgejo::ApiError => e
1186
+ puts "Error when calling OrganizationApi->org_delete_with_http_info: #{e}"
1187
+ end
1188
+ ```
1189
+
1190
+ ### Parameters
1191
+
1192
+ | Name | Type | Description | Notes |
1193
+ | ---- | ---- | ----------- | ----- |
1194
+ | **org** | **String** | organization that is to be deleted | |
1195
+
1196
+ ### Return type
1197
+
1198
+ nil (empty response body)
1199
+
1200
+ ### Authorization
1201
+
1202
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1203
+
1204
+ ### HTTP request headers
1205
+
1206
+ - **Content-Type**: Not defined
1207
+ - **Accept**: Not defined
1208
+
1209
+
1210
+ ## org_delete_avatar
1211
+
1212
+ > org_delete_avatar(org)
1213
+
1214
+ Delete Avatar
1215
+
1216
+ ### Examples
1217
+
1218
+ ```ruby
1219
+ require 'time'
1220
+ require 'forgejo'
1221
+ # setup authorization
1222
+ Forgejo.configure do |config|
1223
+ # Configure API key authorization: AuthorizationHeaderToken
1224
+ config.api_key['Authorization'] = 'YOUR API KEY'
1225
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1226
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1227
+ end
1228
+
1229
+ api_instance = Forgejo::OrganizationApi.new
1230
+ org = 'org_example' # String | name of the organization
1231
+
1232
+ begin
1233
+ # Delete Avatar
1234
+ api_instance.org_delete_avatar(org)
1235
+ rescue Forgejo::ApiError => e
1236
+ puts "Error when calling OrganizationApi->org_delete_avatar: #{e}"
1237
+ end
1238
+ ```
1239
+
1240
+ #### Using the org_delete_avatar_with_http_info variant
1241
+
1242
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1243
+
1244
+ > <Array(nil, Integer, Hash)> org_delete_avatar_with_http_info(org)
1245
+
1246
+ ```ruby
1247
+ begin
1248
+ # Delete Avatar
1249
+ data, status_code, headers = api_instance.org_delete_avatar_with_http_info(org)
1250
+ p status_code # => 2xx
1251
+ p headers # => { ... }
1252
+ p data # => nil
1253
+ rescue Forgejo::ApiError => e
1254
+ puts "Error when calling OrganizationApi->org_delete_avatar_with_http_info: #{e}"
1255
+ end
1256
+ ```
1257
+
1258
+ ### Parameters
1259
+
1260
+ | Name | Type | Description | Notes |
1261
+ | ---- | ---- | ----------- | ----- |
1262
+ | **org** | **String** | name of the organization | |
1263
+
1264
+ ### Return type
1265
+
1266
+ nil (empty response body)
1267
+
1268
+ ### Authorization
1269
+
1270
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1271
+
1272
+ ### HTTP request headers
1273
+
1274
+ - **Content-Type**: Not defined
1275
+ - **Accept**: Not defined
1276
+
1277
+
1278
+ ## org_delete_hook
1279
+
1280
+ > org_delete_hook(org, id)
1281
+
1282
+ Delete a hook
1283
+
1284
+ ### Examples
1285
+
1286
+ ```ruby
1287
+ require 'time'
1288
+ require 'forgejo'
1289
+ # setup authorization
1290
+ Forgejo.configure do |config|
1291
+ # Configure API key authorization: AuthorizationHeaderToken
1292
+ config.api_key['Authorization'] = 'YOUR API KEY'
1293
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1294
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1295
+ end
1296
+
1297
+ api_instance = Forgejo::OrganizationApi.new
1298
+ org = 'org_example' # String | name of the organization
1299
+ id = 789 # Integer | id of the hook to delete
1300
+
1301
+ begin
1302
+ # Delete a hook
1303
+ api_instance.org_delete_hook(org, id)
1304
+ rescue Forgejo::ApiError => e
1305
+ puts "Error when calling OrganizationApi->org_delete_hook: #{e}"
1306
+ end
1307
+ ```
1308
+
1309
+ #### Using the org_delete_hook_with_http_info variant
1310
+
1311
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1312
+
1313
+ > <Array(nil, Integer, Hash)> org_delete_hook_with_http_info(org, id)
1314
+
1315
+ ```ruby
1316
+ begin
1317
+ # Delete a hook
1318
+ data, status_code, headers = api_instance.org_delete_hook_with_http_info(org, id)
1319
+ p status_code # => 2xx
1320
+ p headers # => { ... }
1321
+ p data # => nil
1322
+ rescue Forgejo::ApiError => e
1323
+ puts "Error when calling OrganizationApi->org_delete_hook_with_http_info: #{e}"
1324
+ end
1325
+ ```
1326
+
1327
+ ### Parameters
1328
+
1329
+ | Name | Type | Description | Notes |
1330
+ | ---- | ---- | ----------- | ----- |
1331
+ | **org** | **String** | name of the organization | |
1332
+ | **id** | **Integer** | id of the hook to delete | |
1333
+
1334
+ ### Return type
1335
+
1336
+ nil (empty response body)
1337
+
1338
+ ### Authorization
1339
+
1340
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1341
+
1342
+ ### HTTP request headers
1343
+
1344
+ - **Content-Type**: Not defined
1345
+ - **Accept**: Not defined
1346
+
1347
+
1348
+ ## org_delete_label
1349
+
1350
+ > org_delete_label(org, id)
1351
+
1352
+ Delete a label
1353
+
1354
+ ### Examples
1355
+
1356
+ ```ruby
1357
+ require 'time'
1358
+ require 'forgejo'
1359
+ # setup authorization
1360
+ Forgejo.configure do |config|
1361
+ # Configure API key authorization: AuthorizationHeaderToken
1362
+ config.api_key['Authorization'] = 'YOUR API KEY'
1363
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1364
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1365
+ end
1366
+
1367
+ api_instance = Forgejo::OrganizationApi.new
1368
+ org = 'org_example' # String | name of the organization
1369
+ id = 789 # Integer | id of the label to delete
1370
+
1371
+ begin
1372
+ # Delete a label
1373
+ api_instance.org_delete_label(org, id)
1374
+ rescue Forgejo::ApiError => e
1375
+ puts "Error when calling OrganizationApi->org_delete_label: #{e}"
1376
+ end
1377
+ ```
1378
+
1379
+ #### Using the org_delete_label_with_http_info variant
1380
+
1381
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1382
+
1383
+ > <Array(nil, Integer, Hash)> org_delete_label_with_http_info(org, id)
1384
+
1385
+ ```ruby
1386
+ begin
1387
+ # Delete a label
1388
+ data, status_code, headers = api_instance.org_delete_label_with_http_info(org, id)
1389
+ p status_code # => 2xx
1390
+ p headers # => { ... }
1391
+ p data # => nil
1392
+ rescue Forgejo::ApiError => e
1393
+ puts "Error when calling OrganizationApi->org_delete_label_with_http_info: #{e}"
1394
+ end
1395
+ ```
1396
+
1397
+ ### Parameters
1398
+
1399
+ | Name | Type | Description | Notes |
1400
+ | ---- | ---- | ----------- | ----- |
1401
+ | **org** | **String** | name of the organization | |
1402
+ | **id** | **Integer** | id of the label to delete | |
1403
+
1404
+ ### Return type
1405
+
1406
+ nil (empty response body)
1407
+
1408
+ ### Authorization
1409
+
1410
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1411
+
1412
+ ### HTTP request headers
1413
+
1414
+ - **Content-Type**: Not defined
1415
+ - **Accept**: Not defined
1416
+
1417
+
1418
+ ## org_delete_member
1419
+
1420
+ > org_delete_member(org, username)
1421
+
1422
+ Remove a member from an organization
1423
+
1424
+ ### Examples
1425
+
1426
+ ```ruby
1427
+ require 'time'
1428
+ require 'forgejo'
1429
+ # setup authorization
1430
+ Forgejo.configure do |config|
1431
+ # Configure API key authorization: AuthorizationHeaderToken
1432
+ config.api_key['Authorization'] = 'YOUR API KEY'
1433
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1434
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1435
+ end
1436
+
1437
+ api_instance = Forgejo::OrganizationApi.new
1438
+ org = 'org_example' # String | name of the organization
1439
+ username = 'username_example' # String | username of the user
1440
+
1441
+ begin
1442
+ # Remove a member from an organization
1443
+ api_instance.org_delete_member(org, username)
1444
+ rescue Forgejo::ApiError => e
1445
+ puts "Error when calling OrganizationApi->org_delete_member: #{e}"
1446
+ end
1447
+ ```
1448
+
1449
+ #### Using the org_delete_member_with_http_info variant
1450
+
1451
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1452
+
1453
+ > <Array(nil, Integer, Hash)> org_delete_member_with_http_info(org, username)
1454
+
1455
+ ```ruby
1456
+ begin
1457
+ # Remove a member from an organization
1458
+ data, status_code, headers = api_instance.org_delete_member_with_http_info(org, username)
1459
+ p status_code # => 2xx
1460
+ p headers # => { ... }
1461
+ p data # => nil
1462
+ rescue Forgejo::ApiError => e
1463
+ puts "Error when calling OrganizationApi->org_delete_member_with_http_info: #{e}"
1464
+ end
1465
+ ```
1466
+
1467
+ ### Parameters
1468
+
1469
+ | Name | Type | Description | Notes |
1470
+ | ---- | ---- | ----------- | ----- |
1471
+ | **org** | **String** | name of the organization | |
1472
+ | **username** | **String** | username of the user | |
1473
+
1474
+ ### Return type
1475
+
1476
+ nil (empty response body)
1477
+
1478
+ ### Authorization
1479
+
1480
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1481
+
1482
+ ### HTTP request headers
1483
+
1484
+ - **Content-Type**: Not defined
1485
+ - **Accept**: Not defined
1486
+
1487
+
1488
+ ## org_delete_team
1489
+
1490
+ > org_delete_team(id)
1491
+
1492
+ Delete a team
1493
+
1494
+ ### Examples
1495
+
1496
+ ```ruby
1497
+ require 'time'
1498
+ require 'forgejo'
1499
+ # setup authorization
1500
+ Forgejo.configure do |config|
1501
+ # Configure API key authorization: AuthorizationHeaderToken
1502
+ config.api_key['Authorization'] = 'YOUR API KEY'
1503
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1504
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1505
+ end
1506
+
1507
+ api_instance = Forgejo::OrganizationApi.new
1508
+ id = 789 # Integer | id of the team to delete
1509
+
1510
+ begin
1511
+ # Delete a team
1512
+ api_instance.org_delete_team(id)
1513
+ rescue Forgejo::ApiError => e
1514
+ puts "Error when calling OrganizationApi->org_delete_team: #{e}"
1515
+ end
1516
+ ```
1517
+
1518
+ #### Using the org_delete_team_with_http_info variant
1519
+
1520
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1521
+
1522
+ > <Array(nil, Integer, Hash)> org_delete_team_with_http_info(id)
1523
+
1524
+ ```ruby
1525
+ begin
1526
+ # Delete a team
1527
+ data, status_code, headers = api_instance.org_delete_team_with_http_info(id)
1528
+ p status_code # => 2xx
1529
+ p headers # => { ... }
1530
+ p data # => nil
1531
+ rescue Forgejo::ApiError => e
1532
+ puts "Error when calling OrganizationApi->org_delete_team_with_http_info: #{e}"
1533
+ end
1534
+ ```
1535
+
1536
+ ### Parameters
1537
+
1538
+ | Name | Type | Description | Notes |
1539
+ | ---- | ---- | ----------- | ----- |
1540
+ | **id** | **Integer** | id of the team to delete | |
1541
+
1542
+ ### Return type
1543
+
1544
+ nil (empty response body)
1545
+
1546
+ ### Authorization
1547
+
1548
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1549
+
1550
+ ### HTTP request headers
1551
+
1552
+ - **Content-Type**: Not defined
1553
+ - **Accept**: Not defined
1554
+
1555
+
1556
+ ## org_edit
1557
+
1558
+ > <Organization> org_edit(org, body)
1559
+
1560
+ Edit an organization
1561
+
1562
+ ### Examples
1563
+
1564
+ ```ruby
1565
+ require 'time'
1566
+ require 'forgejo'
1567
+ # setup authorization
1568
+ Forgejo.configure do |config|
1569
+ # Configure API key authorization: AuthorizationHeaderToken
1570
+ config.api_key['Authorization'] = 'YOUR API KEY'
1571
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1572
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1573
+ end
1574
+
1575
+ api_instance = Forgejo::OrganizationApi.new
1576
+ org = 'org_example' # String | name of the organization to edit
1577
+ body = Forgejo::EditOrgOption.new # EditOrgOption |
1578
+
1579
+ begin
1580
+ # Edit an organization
1581
+ result = api_instance.org_edit(org, body)
1582
+ p result
1583
+ rescue Forgejo::ApiError => e
1584
+ puts "Error when calling OrganizationApi->org_edit: #{e}"
1585
+ end
1586
+ ```
1587
+
1588
+ #### Using the org_edit_with_http_info variant
1589
+
1590
+ This returns an Array which contains the response data, status code and headers.
1591
+
1592
+ > <Array(<Organization>, Integer, Hash)> org_edit_with_http_info(org, body)
1593
+
1594
+ ```ruby
1595
+ begin
1596
+ # Edit an organization
1597
+ data, status_code, headers = api_instance.org_edit_with_http_info(org, body)
1598
+ p status_code # => 2xx
1599
+ p headers # => { ... }
1600
+ p data # => <Organization>
1601
+ rescue Forgejo::ApiError => e
1602
+ puts "Error when calling OrganizationApi->org_edit_with_http_info: #{e}"
1603
+ end
1604
+ ```
1605
+
1606
+ ### Parameters
1607
+
1608
+ | Name | Type | Description | Notes |
1609
+ | ---- | ---- | ----------- | ----- |
1610
+ | **org** | **String** | name of the organization to edit | |
1611
+ | **body** | [**EditOrgOption**](EditOrgOption.md) | | |
1612
+
1613
+ ### Return type
1614
+
1615
+ [**Organization**](Organization.md)
1616
+
1617
+ ### Authorization
1618
+
1619
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1620
+
1621
+ ### HTTP request headers
1622
+
1623
+ - **Content-Type**: application/json
1624
+ - **Accept**: application/json
1625
+
1626
+
1627
+ ## org_edit_hook
1628
+
1629
+ > <Hook> org_edit_hook(org, id, opts)
1630
+
1631
+ Update a hook
1632
+
1633
+ ### Examples
1634
+
1635
+ ```ruby
1636
+ require 'time'
1637
+ require 'forgejo'
1638
+ # setup authorization
1639
+ Forgejo.configure do |config|
1640
+ # Configure API key authorization: AuthorizationHeaderToken
1641
+ config.api_key['Authorization'] = 'YOUR API KEY'
1642
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1643
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1644
+ end
1645
+
1646
+ api_instance = Forgejo::OrganizationApi.new
1647
+ org = 'org_example' # String | name of the organization
1648
+ id = 789 # Integer | id of the hook to update
1649
+ opts = {
1650
+ body: Forgejo::EditHookOption.new # EditHookOption |
1651
+ }
1652
+
1653
+ begin
1654
+ # Update a hook
1655
+ result = api_instance.org_edit_hook(org, id, opts)
1656
+ p result
1657
+ rescue Forgejo::ApiError => e
1658
+ puts "Error when calling OrganizationApi->org_edit_hook: #{e}"
1659
+ end
1660
+ ```
1661
+
1662
+ #### Using the org_edit_hook_with_http_info variant
1663
+
1664
+ This returns an Array which contains the response data, status code and headers.
1665
+
1666
+ > <Array(<Hook>, Integer, Hash)> org_edit_hook_with_http_info(org, id, opts)
1667
+
1668
+ ```ruby
1669
+ begin
1670
+ # Update a hook
1671
+ data, status_code, headers = api_instance.org_edit_hook_with_http_info(org, id, opts)
1672
+ p status_code # => 2xx
1673
+ p headers # => { ... }
1674
+ p data # => <Hook>
1675
+ rescue Forgejo::ApiError => e
1676
+ puts "Error when calling OrganizationApi->org_edit_hook_with_http_info: #{e}"
1677
+ end
1678
+ ```
1679
+
1680
+ ### Parameters
1681
+
1682
+ | Name | Type | Description | Notes |
1683
+ | ---- | ---- | ----------- | ----- |
1684
+ | **org** | **String** | name of the organization | |
1685
+ | **id** | **Integer** | id of the hook to update | |
1686
+ | **body** | [**EditHookOption**](EditHookOption.md) | | [optional] |
1687
+
1688
+ ### Return type
1689
+
1690
+ [**Hook**](Hook.md)
1691
+
1692
+ ### Authorization
1693
+
1694
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1695
+
1696
+ ### HTTP request headers
1697
+
1698
+ - **Content-Type**: application/json
1699
+ - **Accept**: application/json
1700
+
1701
+
1702
+ ## org_edit_label
1703
+
1704
+ > <Label> org_edit_label(org, id, opts)
1705
+
1706
+ Update a label
1707
+
1708
+ ### Examples
1709
+
1710
+ ```ruby
1711
+ require 'time'
1712
+ require 'forgejo'
1713
+ # setup authorization
1714
+ Forgejo.configure do |config|
1715
+ # Configure API key authorization: AuthorizationHeaderToken
1716
+ config.api_key['Authorization'] = 'YOUR API KEY'
1717
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1718
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1719
+ end
1720
+
1721
+ api_instance = Forgejo::OrganizationApi.new
1722
+ org = 'org_example' # String | name of the organization
1723
+ id = 789 # Integer | id of the label to edit
1724
+ opts = {
1725
+ body: Forgejo::EditLabelOption.new # EditLabelOption |
1726
+ }
1727
+
1728
+ begin
1729
+ # Update a label
1730
+ result = api_instance.org_edit_label(org, id, opts)
1731
+ p result
1732
+ rescue Forgejo::ApiError => e
1733
+ puts "Error when calling OrganizationApi->org_edit_label: #{e}"
1734
+ end
1735
+ ```
1736
+
1737
+ #### Using the org_edit_label_with_http_info variant
1738
+
1739
+ This returns an Array which contains the response data, status code and headers.
1740
+
1741
+ > <Array(<Label>, Integer, Hash)> org_edit_label_with_http_info(org, id, opts)
1742
+
1743
+ ```ruby
1744
+ begin
1745
+ # Update a label
1746
+ data, status_code, headers = api_instance.org_edit_label_with_http_info(org, id, opts)
1747
+ p status_code # => 2xx
1748
+ p headers # => { ... }
1749
+ p data # => <Label>
1750
+ rescue Forgejo::ApiError => e
1751
+ puts "Error when calling OrganizationApi->org_edit_label_with_http_info: #{e}"
1752
+ end
1753
+ ```
1754
+
1755
+ ### Parameters
1756
+
1757
+ | Name | Type | Description | Notes |
1758
+ | ---- | ---- | ----------- | ----- |
1759
+ | **org** | **String** | name of the organization | |
1760
+ | **id** | **Integer** | id of the label to edit | |
1761
+ | **body** | [**EditLabelOption**](EditLabelOption.md) | | [optional] |
1762
+
1763
+ ### Return type
1764
+
1765
+ [**Label**](Label.md)
1766
+
1767
+ ### Authorization
1768
+
1769
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1770
+
1771
+ ### HTTP request headers
1772
+
1773
+ - **Content-Type**: application/json
1774
+ - **Accept**: application/json
1775
+
1776
+
1777
+ ## org_edit_team
1778
+
1779
+ > <Team> org_edit_team(id, opts)
1780
+
1781
+ Edit a team
1782
+
1783
+ ### Examples
1784
+
1785
+ ```ruby
1786
+ require 'time'
1787
+ require 'forgejo'
1788
+ # setup authorization
1789
+ Forgejo.configure do |config|
1790
+ # Configure API key authorization: AuthorizationHeaderToken
1791
+ config.api_key['Authorization'] = 'YOUR API KEY'
1792
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1793
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1794
+ end
1795
+
1796
+ api_instance = Forgejo::OrganizationApi.new
1797
+ id = 56 # Integer | id of the team to edit
1798
+ opts = {
1799
+ body: Forgejo::EditTeamOption.new({name: 'name_example'}) # EditTeamOption |
1800
+ }
1801
+
1802
+ begin
1803
+ # Edit a team
1804
+ result = api_instance.org_edit_team(id, opts)
1805
+ p result
1806
+ rescue Forgejo::ApiError => e
1807
+ puts "Error when calling OrganizationApi->org_edit_team: #{e}"
1808
+ end
1809
+ ```
1810
+
1811
+ #### Using the org_edit_team_with_http_info variant
1812
+
1813
+ This returns an Array which contains the response data, status code and headers.
1814
+
1815
+ > <Array(<Team>, Integer, Hash)> org_edit_team_with_http_info(id, opts)
1816
+
1817
+ ```ruby
1818
+ begin
1819
+ # Edit a team
1820
+ data, status_code, headers = api_instance.org_edit_team_with_http_info(id, opts)
1821
+ p status_code # => 2xx
1822
+ p headers # => { ... }
1823
+ p data # => <Team>
1824
+ rescue Forgejo::ApiError => e
1825
+ puts "Error when calling OrganizationApi->org_edit_team_with_http_info: #{e}"
1826
+ end
1827
+ ```
1828
+
1829
+ ### Parameters
1830
+
1831
+ | Name | Type | Description | Notes |
1832
+ | ---- | ---- | ----------- | ----- |
1833
+ | **id** | **Integer** | id of the team to edit | |
1834
+ | **body** | [**EditTeamOption**](EditTeamOption.md) | | [optional] |
1835
+
1836
+ ### Return type
1837
+
1838
+ [**Team**](Team.md)
1839
+
1840
+ ### Authorization
1841
+
1842
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1843
+
1844
+ ### HTTP request headers
1845
+
1846
+ - **Content-Type**: application/json
1847
+ - **Accept**: application/json
1848
+
1849
+
1850
+ ## org_get
1851
+
1852
+ > <Organization> org_get(org)
1853
+
1854
+ Get an organization
1855
+
1856
+ ### Examples
1857
+
1858
+ ```ruby
1859
+ require 'time'
1860
+ require 'forgejo'
1861
+ # setup authorization
1862
+ Forgejo.configure do |config|
1863
+ # Configure API key authorization: AuthorizationHeaderToken
1864
+ config.api_key['Authorization'] = 'YOUR API KEY'
1865
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1866
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1867
+ end
1868
+
1869
+ api_instance = Forgejo::OrganizationApi.new
1870
+ org = 'org_example' # String | name of the organization to get
1871
+
1872
+ begin
1873
+ # Get an organization
1874
+ result = api_instance.org_get(org)
1875
+ p result
1876
+ rescue Forgejo::ApiError => e
1877
+ puts "Error when calling OrganizationApi->org_get: #{e}"
1878
+ end
1879
+ ```
1880
+
1881
+ #### Using the org_get_with_http_info variant
1882
+
1883
+ This returns an Array which contains the response data, status code and headers.
1884
+
1885
+ > <Array(<Organization>, Integer, Hash)> org_get_with_http_info(org)
1886
+
1887
+ ```ruby
1888
+ begin
1889
+ # Get an organization
1890
+ data, status_code, headers = api_instance.org_get_with_http_info(org)
1891
+ p status_code # => 2xx
1892
+ p headers # => { ... }
1893
+ p data # => <Organization>
1894
+ rescue Forgejo::ApiError => e
1895
+ puts "Error when calling OrganizationApi->org_get_with_http_info: #{e}"
1896
+ end
1897
+ ```
1898
+
1899
+ ### Parameters
1900
+
1901
+ | Name | Type | Description | Notes |
1902
+ | ---- | ---- | ----------- | ----- |
1903
+ | **org** | **String** | name of the organization to get | |
1904
+
1905
+ ### Return type
1906
+
1907
+ [**Organization**](Organization.md)
1908
+
1909
+ ### Authorization
1910
+
1911
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1912
+
1913
+ ### HTTP request headers
1914
+
1915
+ - **Content-Type**: Not defined
1916
+ - **Accept**: application/json
1917
+
1918
+
1919
+ ## org_get_all
1920
+
1921
+ > <Array<Organization>> org_get_all(opts)
1922
+
1923
+ Get list of organizations
1924
+
1925
+ ### Examples
1926
+
1927
+ ```ruby
1928
+ require 'time'
1929
+ require 'forgejo'
1930
+ # setup authorization
1931
+ Forgejo.configure do |config|
1932
+ # Configure API key authorization: AuthorizationHeaderToken
1933
+ config.api_key['Authorization'] = 'YOUR API KEY'
1934
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1935
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1936
+ end
1937
+
1938
+ api_instance = Forgejo::OrganizationApi.new
1939
+ opts = {
1940
+ page: 56, # Integer | page number of results to return (1-based)
1941
+ limit: 56 # Integer | page size of results
1942
+ }
1943
+
1944
+ begin
1945
+ # Get list of organizations
1946
+ result = api_instance.org_get_all(opts)
1947
+ p result
1948
+ rescue Forgejo::ApiError => e
1949
+ puts "Error when calling OrganizationApi->org_get_all: #{e}"
1950
+ end
1951
+ ```
1952
+
1953
+ #### Using the org_get_all_with_http_info variant
1954
+
1955
+ This returns an Array which contains the response data, status code and headers.
1956
+
1957
+ > <Array(<Array<Organization>>, Integer, Hash)> org_get_all_with_http_info(opts)
1958
+
1959
+ ```ruby
1960
+ begin
1961
+ # Get list of organizations
1962
+ data, status_code, headers = api_instance.org_get_all_with_http_info(opts)
1963
+ p status_code # => 2xx
1964
+ p headers # => { ... }
1965
+ p data # => <Array<Organization>>
1966
+ rescue Forgejo::ApiError => e
1967
+ puts "Error when calling OrganizationApi->org_get_all_with_http_info: #{e}"
1968
+ end
1969
+ ```
1970
+
1971
+ ### Parameters
1972
+
1973
+ | Name | Type | Description | Notes |
1974
+ | ---- | ---- | ----------- | ----- |
1975
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
1976
+ | **limit** | **Integer** | page size of results | [optional] |
1977
+
1978
+ ### Return type
1979
+
1980
+ [**Array&lt;Organization&gt;**](Organization.md)
1981
+
1982
+ ### Authorization
1983
+
1984
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
1985
+
1986
+ ### HTTP request headers
1987
+
1988
+ - **Content-Type**: Not defined
1989
+ - **Accept**: application/json
1990
+
1991
+
1992
+ ## org_get_hook
1993
+
1994
+ > <Hook> org_get_hook(org, id)
1995
+
1996
+ Get a hook
1997
+
1998
+ ### Examples
1999
+
2000
+ ```ruby
2001
+ require 'time'
2002
+ require 'forgejo'
2003
+ # setup authorization
2004
+ Forgejo.configure do |config|
2005
+ # Configure API key authorization: AuthorizationHeaderToken
2006
+ config.api_key['Authorization'] = 'YOUR API KEY'
2007
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2008
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2009
+ end
2010
+
2011
+ api_instance = Forgejo::OrganizationApi.new
2012
+ org = 'org_example' # String | name of the organization
2013
+ id = 789 # Integer | id of the hook to get
2014
+
2015
+ begin
2016
+ # Get a hook
2017
+ result = api_instance.org_get_hook(org, id)
2018
+ p result
2019
+ rescue Forgejo::ApiError => e
2020
+ puts "Error when calling OrganizationApi->org_get_hook: #{e}"
2021
+ end
2022
+ ```
2023
+
2024
+ #### Using the org_get_hook_with_http_info variant
2025
+
2026
+ This returns an Array which contains the response data, status code and headers.
2027
+
2028
+ > <Array(<Hook>, Integer, Hash)> org_get_hook_with_http_info(org, id)
2029
+
2030
+ ```ruby
2031
+ begin
2032
+ # Get a hook
2033
+ data, status_code, headers = api_instance.org_get_hook_with_http_info(org, id)
2034
+ p status_code # => 2xx
2035
+ p headers # => { ... }
2036
+ p data # => <Hook>
2037
+ rescue Forgejo::ApiError => e
2038
+ puts "Error when calling OrganizationApi->org_get_hook_with_http_info: #{e}"
2039
+ end
2040
+ ```
2041
+
2042
+ ### Parameters
2043
+
2044
+ | Name | Type | Description | Notes |
2045
+ | ---- | ---- | ----------- | ----- |
2046
+ | **org** | **String** | name of the organization | |
2047
+ | **id** | **Integer** | id of the hook to get | |
2048
+
2049
+ ### Return type
2050
+
2051
+ [**Hook**](Hook.md)
2052
+
2053
+ ### Authorization
2054
+
2055
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2056
+
2057
+ ### HTTP request headers
2058
+
2059
+ - **Content-Type**: Not defined
2060
+ - **Accept**: application/json
2061
+
2062
+
2063
+ ## org_get_label
2064
+
2065
+ > <Label> org_get_label(org, id)
2066
+
2067
+ Get a single label
2068
+
2069
+ ### Examples
2070
+
2071
+ ```ruby
2072
+ require 'time'
2073
+ require 'forgejo'
2074
+ # setup authorization
2075
+ Forgejo.configure do |config|
2076
+ # Configure API key authorization: AuthorizationHeaderToken
2077
+ config.api_key['Authorization'] = 'YOUR API KEY'
2078
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2079
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2080
+ end
2081
+
2082
+ api_instance = Forgejo::OrganizationApi.new
2083
+ org = 'org_example' # String | name of the organization
2084
+ id = 789 # Integer | id of the label to get
2085
+
2086
+ begin
2087
+ # Get a single label
2088
+ result = api_instance.org_get_label(org, id)
2089
+ p result
2090
+ rescue Forgejo::ApiError => e
2091
+ puts "Error when calling OrganizationApi->org_get_label: #{e}"
2092
+ end
2093
+ ```
2094
+
2095
+ #### Using the org_get_label_with_http_info variant
2096
+
2097
+ This returns an Array which contains the response data, status code and headers.
2098
+
2099
+ > <Array(<Label>, Integer, Hash)> org_get_label_with_http_info(org, id)
2100
+
2101
+ ```ruby
2102
+ begin
2103
+ # Get a single label
2104
+ data, status_code, headers = api_instance.org_get_label_with_http_info(org, id)
2105
+ p status_code # => 2xx
2106
+ p headers # => { ... }
2107
+ p data # => <Label>
2108
+ rescue Forgejo::ApiError => e
2109
+ puts "Error when calling OrganizationApi->org_get_label_with_http_info: #{e}"
2110
+ end
2111
+ ```
2112
+
2113
+ ### Parameters
2114
+
2115
+ | Name | Type | Description | Notes |
2116
+ | ---- | ---- | ----------- | ----- |
2117
+ | **org** | **String** | name of the organization | |
2118
+ | **id** | **Integer** | id of the label to get | |
2119
+
2120
+ ### Return type
2121
+
2122
+ [**Label**](Label.md)
2123
+
2124
+ ### Authorization
2125
+
2126
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2127
+
2128
+ ### HTTP request headers
2129
+
2130
+ - **Content-Type**: Not defined
2131
+ - **Accept**: application/json
2132
+
2133
+
2134
+ ## org_get_runner_registration_token
2135
+
2136
+ > org_get_runner_registration_token(org)
2137
+
2138
+ Get an organization's actions runner registration token
2139
+
2140
+ ### Examples
2141
+
2142
+ ```ruby
2143
+ require 'time'
2144
+ require 'forgejo'
2145
+ # setup authorization
2146
+ Forgejo.configure do |config|
2147
+ # Configure API key authorization: AuthorizationHeaderToken
2148
+ config.api_key['Authorization'] = 'YOUR API KEY'
2149
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2150
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2151
+ end
2152
+
2153
+ api_instance = Forgejo::OrganizationApi.new
2154
+ org = 'org_example' # String | name of the organization
2155
+
2156
+ begin
2157
+ # Get an organization's actions runner registration token
2158
+ api_instance.org_get_runner_registration_token(org)
2159
+ rescue Forgejo::ApiError => e
2160
+ puts "Error when calling OrganizationApi->org_get_runner_registration_token: #{e}"
2161
+ end
2162
+ ```
2163
+
2164
+ #### Using the org_get_runner_registration_token_with_http_info variant
2165
+
2166
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
2167
+
2168
+ > <Array(nil, Integer, Hash)> org_get_runner_registration_token_with_http_info(org)
2169
+
2170
+ ```ruby
2171
+ begin
2172
+ # Get an organization's actions runner registration token
2173
+ data, status_code, headers = api_instance.org_get_runner_registration_token_with_http_info(org)
2174
+ p status_code # => 2xx
2175
+ p headers # => { ... }
2176
+ p data # => nil
2177
+ rescue Forgejo::ApiError => e
2178
+ puts "Error when calling OrganizationApi->org_get_runner_registration_token_with_http_info: #{e}"
2179
+ end
2180
+ ```
2181
+
2182
+ ### Parameters
2183
+
2184
+ | Name | Type | Description | Notes |
2185
+ | ---- | ---- | ----------- | ----- |
2186
+ | **org** | **String** | name of the organization | |
2187
+
2188
+ ### Return type
2189
+
2190
+ nil (empty response body)
2191
+
2192
+ ### Authorization
2193
+
2194
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2195
+
2196
+ ### HTTP request headers
2197
+
2198
+ - **Content-Type**: Not defined
2199
+ - **Accept**: Not defined
2200
+
2201
+
2202
+ ## org_get_team
2203
+
2204
+ > <Team> org_get_team(id)
2205
+
2206
+ Get a team
2207
+
2208
+ ### Examples
2209
+
2210
+ ```ruby
2211
+ require 'time'
2212
+ require 'forgejo'
2213
+ # setup authorization
2214
+ Forgejo.configure do |config|
2215
+ # Configure API key authorization: AuthorizationHeaderToken
2216
+ config.api_key['Authorization'] = 'YOUR API KEY'
2217
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2218
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2219
+ end
2220
+
2221
+ api_instance = Forgejo::OrganizationApi.new
2222
+ id = 789 # Integer | id of the team to get
2223
+
2224
+ begin
2225
+ # Get a team
2226
+ result = api_instance.org_get_team(id)
2227
+ p result
2228
+ rescue Forgejo::ApiError => e
2229
+ puts "Error when calling OrganizationApi->org_get_team: #{e}"
2230
+ end
2231
+ ```
2232
+
2233
+ #### Using the org_get_team_with_http_info variant
2234
+
2235
+ This returns an Array which contains the response data, status code and headers.
2236
+
2237
+ > <Array(<Team>, Integer, Hash)> org_get_team_with_http_info(id)
2238
+
2239
+ ```ruby
2240
+ begin
2241
+ # Get a team
2242
+ data, status_code, headers = api_instance.org_get_team_with_http_info(id)
2243
+ p status_code # => 2xx
2244
+ p headers # => { ... }
2245
+ p data # => <Team>
2246
+ rescue Forgejo::ApiError => e
2247
+ puts "Error when calling OrganizationApi->org_get_team_with_http_info: #{e}"
2248
+ end
2249
+ ```
2250
+
2251
+ ### Parameters
2252
+
2253
+ | Name | Type | Description | Notes |
2254
+ | ---- | ---- | ----------- | ----- |
2255
+ | **id** | **Integer** | id of the team to get | |
2256
+
2257
+ ### Return type
2258
+
2259
+ [**Team**](Team.md)
2260
+
2261
+ ### Authorization
2262
+
2263
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2264
+
2265
+ ### HTTP request headers
2266
+
2267
+ - **Content-Type**: Not defined
2268
+ - **Accept**: application/json
2269
+
2270
+
2271
+ ## org_get_user_permissions
2272
+
2273
+ > <OrganizationPermissions> org_get_user_permissions(username, org)
2274
+
2275
+ Get user permissions in organization
2276
+
2277
+ ### Examples
2278
+
2279
+ ```ruby
2280
+ require 'time'
2281
+ require 'forgejo'
2282
+ # setup authorization
2283
+ Forgejo.configure do |config|
2284
+ # Configure API key authorization: AuthorizationHeaderToken
2285
+ config.api_key['Authorization'] = 'YOUR API KEY'
2286
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2287
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2288
+ end
2289
+
2290
+ api_instance = Forgejo::OrganizationApi.new
2291
+ username = 'username_example' # String | username of user
2292
+ org = 'org_example' # String | name of the organization
2293
+
2294
+ begin
2295
+ # Get user permissions in organization
2296
+ result = api_instance.org_get_user_permissions(username, org)
2297
+ p result
2298
+ rescue Forgejo::ApiError => e
2299
+ puts "Error when calling OrganizationApi->org_get_user_permissions: #{e}"
2300
+ end
2301
+ ```
2302
+
2303
+ #### Using the org_get_user_permissions_with_http_info variant
2304
+
2305
+ This returns an Array which contains the response data, status code and headers.
2306
+
2307
+ > <Array(<OrganizationPermissions>, Integer, Hash)> org_get_user_permissions_with_http_info(username, org)
2308
+
2309
+ ```ruby
2310
+ begin
2311
+ # Get user permissions in organization
2312
+ data, status_code, headers = api_instance.org_get_user_permissions_with_http_info(username, org)
2313
+ p status_code # => 2xx
2314
+ p headers # => { ... }
2315
+ p data # => <OrganizationPermissions>
2316
+ rescue Forgejo::ApiError => e
2317
+ puts "Error when calling OrganizationApi->org_get_user_permissions_with_http_info: #{e}"
2318
+ end
2319
+ ```
2320
+
2321
+ ### Parameters
2322
+
2323
+ | Name | Type | Description | Notes |
2324
+ | ---- | ---- | ----------- | ----- |
2325
+ | **username** | **String** | username of user | |
2326
+ | **org** | **String** | name of the organization | |
2327
+
2328
+ ### Return type
2329
+
2330
+ [**OrganizationPermissions**](OrganizationPermissions.md)
2331
+
2332
+ ### Authorization
2333
+
2334
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2335
+
2336
+ ### HTTP request headers
2337
+
2338
+ - **Content-Type**: Not defined
2339
+ - **Accept**: application/json
2340
+
2341
+
2342
+ ## org_is_member
2343
+
2344
+ > org_is_member(org, username)
2345
+
2346
+ Check if a user is a member of an organization
2347
+
2348
+ ### Examples
2349
+
2350
+ ```ruby
2351
+ require 'time'
2352
+ require 'forgejo'
2353
+ # setup authorization
2354
+ Forgejo.configure do |config|
2355
+ # Configure API key authorization: AuthorizationHeaderToken
2356
+ config.api_key['Authorization'] = 'YOUR API KEY'
2357
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2358
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2359
+ end
2360
+
2361
+ api_instance = Forgejo::OrganizationApi.new
2362
+ org = 'org_example' # String | name of the organization
2363
+ username = 'username_example' # String | username of the user
2364
+
2365
+ begin
2366
+ # Check if a user is a member of an organization
2367
+ api_instance.org_is_member(org, username)
2368
+ rescue Forgejo::ApiError => e
2369
+ puts "Error when calling OrganizationApi->org_is_member: #{e}"
2370
+ end
2371
+ ```
2372
+
2373
+ #### Using the org_is_member_with_http_info variant
2374
+
2375
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
2376
+
2377
+ > <Array(nil, Integer, Hash)> org_is_member_with_http_info(org, username)
2378
+
2379
+ ```ruby
2380
+ begin
2381
+ # Check if a user is a member of an organization
2382
+ data, status_code, headers = api_instance.org_is_member_with_http_info(org, username)
2383
+ p status_code # => 2xx
2384
+ p headers # => { ... }
2385
+ p data # => nil
2386
+ rescue Forgejo::ApiError => e
2387
+ puts "Error when calling OrganizationApi->org_is_member_with_http_info: #{e}"
2388
+ end
2389
+ ```
2390
+
2391
+ ### Parameters
2392
+
2393
+ | Name | Type | Description | Notes |
2394
+ | ---- | ---- | ----------- | ----- |
2395
+ | **org** | **String** | name of the organization | |
2396
+ | **username** | **String** | username of the user | |
2397
+
2398
+ ### Return type
2399
+
2400
+ nil (empty response body)
2401
+
2402
+ ### Authorization
2403
+
2404
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2405
+
2406
+ ### HTTP request headers
2407
+
2408
+ - **Content-Type**: Not defined
2409
+ - **Accept**: Not defined
2410
+
2411
+
2412
+ ## org_is_public_member
2413
+
2414
+ > org_is_public_member(org, username)
2415
+
2416
+ Check if a user is a public member of an organization
2417
+
2418
+ ### Examples
2419
+
2420
+ ```ruby
2421
+ require 'time'
2422
+ require 'forgejo'
2423
+ # setup authorization
2424
+ Forgejo.configure do |config|
2425
+ # Configure API key authorization: AuthorizationHeaderToken
2426
+ config.api_key['Authorization'] = 'YOUR API KEY'
2427
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2428
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2429
+ end
2430
+
2431
+ api_instance = Forgejo::OrganizationApi.new
2432
+ org = 'org_example' # String | name of the organization
2433
+ username = 'username_example' # String | username of the user
2434
+
2435
+ begin
2436
+ # Check if a user is a public member of an organization
2437
+ api_instance.org_is_public_member(org, username)
2438
+ rescue Forgejo::ApiError => e
2439
+ puts "Error when calling OrganizationApi->org_is_public_member: #{e}"
2440
+ end
2441
+ ```
2442
+
2443
+ #### Using the org_is_public_member_with_http_info variant
2444
+
2445
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
2446
+
2447
+ > <Array(nil, Integer, Hash)> org_is_public_member_with_http_info(org, username)
2448
+
2449
+ ```ruby
2450
+ begin
2451
+ # Check if a user is a public member of an organization
2452
+ data, status_code, headers = api_instance.org_is_public_member_with_http_info(org, username)
2453
+ p status_code # => 2xx
2454
+ p headers # => { ... }
2455
+ p data # => nil
2456
+ rescue Forgejo::ApiError => e
2457
+ puts "Error when calling OrganizationApi->org_is_public_member_with_http_info: #{e}"
2458
+ end
2459
+ ```
2460
+
2461
+ ### Parameters
2462
+
2463
+ | Name | Type | Description | Notes |
2464
+ | ---- | ---- | ----------- | ----- |
2465
+ | **org** | **String** | name of the organization | |
2466
+ | **username** | **String** | username of the user | |
2467
+
2468
+ ### Return type
2469
+
2470
+ nil (empty response body)
2471
+
2472
+ ### Authorization
2473
+
2474
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2475
+
2476
+ ### HTTP request headers
2477
+
2478
+ - **Content-Type**: Not defined
2479
+ - **Accept**: Not defined
2480
+
2481
+
2482
+ ## org_list_actions_secrets
2483
+
2484
+ > <Array<Secret>> org_list_actions_secrets(org, opts)
2485
+
2486
+ List an organization's actions secrets
2487
+
2488
+ ### Examples
2489
+
2490
+ ```ruby
2491
+ require 'time'
2492
+ require 'forgejo'
2493
+ # setup authorization
2494
+ Forgejo.configure do |config|
2495
+ # Configure API key authorization: AuthorizationHeaderToken
2496
+ config.api_key['Authorization'] = 'YOUR API KEY'
2497
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2498
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2499
+ end
2500
+
2501
+ api_instance = Forgejo::OrganizationApi.new
2502
+ org = 'org_example' # String | name of the organization
2503
+ opts = {
2504
+ page: 56, # Integer | page number of results to return (1-based)
2505
+ limit: 56 # Integer | page size of results
2506
+ }
2507
+
2508
+ begin
2509
+ # List an organization's actions secrets
2510
+ result = api_instance.org_list_actions_secrets(org, opts)
2511
+ p result
2512
+ rescue Forgejo::ApiError => e
2513
+ puts "Error when calling OrganizationApi->org_list_actions_secrets: #{e}"
2514
+ end
2515
+ ```
2516
+
2517
+ #### Using the org_list_actions_secrets_with_http_info variant
2518
+
2519
+ This returns an Array which contains the response data, status code and headers.
2520
+
2521
+ > <Array(<Array<Secret>>, Integer, Hash)> org_list_actions_secrets_with_http_info(org, opts)
2522
+
2523
+ ```ruby
2524
+ begin
2525
+ # List an organization's actions secrets
2526
+ data, status_code, headers = api_instance.org_list_actions_secrets_with_http_info(org, opts)
2527
+ p status_code # => 2xx
2528
+ p headers # => { ... }
2529
+ p data # => <Array<Secret>>
2530
+ rescue Forgejo::ApiError => e
2531
+ puts "Error when calling OrganizationApi->org_list_actions_secrets_with_http_info: #{e}"
2532
+ end
2533
+ ```
2534
+
2535
+ ### Parameters
2536
+
2537
+ | Name | Type | Description | Notes |
2538
+ | ---- | ---- | ----------- | ----- |
2539
+ | **org** | **String** | name of the organization | |
2540
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2541
+ | **limit** | **Integer** | page size of results | [optional] |
2542
+
2543
+ ### Return type
2544
+
2545
+ [**Array&lt;Secret&gt;**](Secret.md)
2546
+
2547
+ ### Authorization
2548
+
2549
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2550
+
2551
+ ### HTTP request headers
2552
+
2553
+ - **Content-Type**: Not defined
2554
+ - **Accept**: application/json
2555
+
2556
+
2557
+ ## org_list_activity_feeds
2558
+
2559
+ > <Array<Activity>> org_list_activity_feeds(org, opts)
2560
+
2561
+ List an organization's activity feeds
2562
+
2563
+ ### Examples
2564
+
2565
+ ```ruby
2566
+ require 'time'
2567
+ require 'forgejo'
2568
+ # setup authorization
2569
+ Forgejo.configure do |config|
2570
+ # Configure API key authorization: AuthorizationHeaderToken
2571
+ config.api_key['Authorization'] = 'YOUR API KEY'
2572
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2573
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2574
+ end
2575
+
2576
+ api_instance = Forgejo::OrganizationApi.new
2577
+ org = 'org_example' # String | name of the org
2578
+ opts = {
2579
+ date: Date.parse('2013-10-20'), # Date | the date of the activities to be found
2580
+ page: 56, # Integer | page number of results to return (1-based)
2581
+ limit: 56 # Integer | page size of results
2582
+ }
2583
+
2584
+ begin
2585
+ # List an organization's activity feeds
2586
+ result = api_instance.org_list_activity_feeds(org, opts)
2587
+ p result
2588
+ rescue Forgejo::ApiError => e
2589
+ puts "Error when calling OrganizationApi->org_list_activity_feeds: #{e}"
2590
+ end
2591
+ ```
2592
+
2593
+ #### Using the org_list_activity_feeds_with_http_info variant
2594
+
2595
+ This returns an Array which contains the response data, status code and headers.
2596
+
2597
+ > <Array(<Array<Activity>>, Integer, Hash)> org_list_activity_feeds_with_http_info(org, opts)
2598
+
2599
+ ```ruby
2600
+ begin
2601
+ # List an organization's activity feeds
2602
+ data, status_code, headers = api_instance.org_list_activity_feeds_with_http_info(org, opts)
2603
+ p status_code # => 2xx
2604
+ p headers # => { ... }
2605
+ p data # => <Array<Activity>>
2606
+ rescue Forgejo::ApiError => e
2607
+ puts "Error when calling OrganizationApi->org_list_activity_feeds_with_http_info: #{e}"
2608
+ end
2609
+ ```
2610
+
2611
+ ### Parameters
2612
+
2613
+ | Name | Type | Description | Notes |
2614
+ | ---- | ---- | ----------- | ----- |
2615
+ | **org** | **String** | name of the org | |
2616
+ | **date** | **Date** | the date of the activities to be found | [optional] |
2617
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2618
+ | **limit** | **Integer** | page size of results | [optional] |
2619
+
2620
+ ### Return type
2621
+
2622
+ [**Array&lt;Activity&gt;**](Activity.md)
2623
+
2624
+ ### Authorization
2625
+
2626
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2627
+
2628
+ ### HTTP request headers
2629
+
2630
+ - **Content-Type**: Not defined
2631
+ - **Accept**: application/json
2632
+
2633
+
2634
+ ## org_list_blocked_users
2635
+
2636
+ > <Array<BlockedUser>> org_list_blocked_users(org, opts)
2637
+
2638
+ List the organization's blocked users
2639
+
2640
+ ### Examples
2641
+
2642
+ ```ruby
2643
+ require 'time'
2644
+ require 'forgejo'
2645
+ # setup authorization
2646
+ Forgejo.configure do |config|
2647
+ # Configure API key authorization: AuthorizationHeaderToken
2648
+ config.api_key['Authorization'] = 'YOUR API KEY'
2649
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2650
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2651
+ end
2652
+
2653
+ api_instance = Forgejo::OrganizationApi.new
2654
+ org = 'org_example' # String | name of the org
2655
+ opts = {
2656
+ page: 56, # Integer | page number of results to return (1-based)
2657
+ limit: 56 # Integer | page size of results
2658
+ }
2659
+
2660
+ begin
2661
+ # List the organization's blocked users
2662
+ result = api_instance.org_list_blocked_users(org, opts)
2663
+ p result
2664
+ rescue Forgejo::ApiError => e
2665
+ puts "Error when calling OrganizationApi->org_list_blocked_users: #{e}"
2666
+ end
2667
+ ```
2668
+
2669
+ #### Using the org_list_blocked_users_with_http_info variant
2670
+
2671
+ This returns an Array which contains the response data, status code and headers.
2672
+
2673
+ > <Array(<Array<BlockedUser>>, Integer, Hash)> org_list_blocked_users_with_http_info(org, opts)
2674
+
2675
+ ```ruby
2676
+ begin
2677
+ # List the organization's blocked users
2678
+ data, status_code, headers = api_instance.org_list_blocked_users_with_http_info(org, opts)
2679
+ p status_code # => 2xx
2680
+ p headers # => { ... }
2681
+ p data # => <Array<BlockedUser>>
2682
+ rescue Forgejo::ApiError => e
2683
+ puts "Error when calling OrganizationApi->org_list_blocked_users_with_http_info: #{e}"
2684
+ end
2685
+ ```
2686
+
2687
+ ### Parameters
2688
+
2689
+ | Name | Type | Description | Notes |
2690
+ | ---- | ---- | ----------- | ----- |
2691
+ | **org** | **String** | name of the org | |
2692
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2693
+ | **limit** | **Integer** | page size of results | [optional] |
2694
+
2695
+ ### Return type
2696
+
2697
+ [**Array&lt;BlockedUser&gt;**](BlockedUser.md)
2698
+
2699
+ ### Authorization
2700
+
2701
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2702
+
2703
+ ### HTTP request headers
2704
+
2705
+ - **Content-Type**: Not defined
2706
+ - **Accept**: application/json
2707
+
2708
+
2709
+ ## org_list_current_user_orgs
2710
+
2711
+ > <Array<Organization>> org_list_current_user_orgs(opts)
2712
+
2713
+ List the current user's organizations
2714
+
2715
+ ### Examples
2716
+
2717
+ ```ruby
2718
+ require 'time'
2719
+ require 'forgejo'
2720
+ # setup authorization
2721
+ Forgejo.configure do |config|
2722
+ # Configure API key authorization: AuthorizationHeaderToken
2723
+ config.api_key['Authorization'] = 'YOUR API KEY'
2724
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2725
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2726
+ end
2727
+
2728
+ api_instance = Forgejo::OrganizationApi.new
2729
+ opts = {
2730
+ page: 56, # Integer | page number of results to return (1-based)
2731
+ limit: 56 # Integer | page size of results
2732
+ }
2733
+
2734
+ begin
2735
+ # List the current user's organizations
2736
+ result = api_instance.org_list_current_user_orgs(opts)
2737
+ p result
2738
+ rescue Forgejo::ApiError => e
2739
+ puts "Error when calling OrganizationApi->org_list_current_user_orgs: #{e}"
2740
+ end
2741
+ ```
2742
+
2743
+ #### Using the org_list_current_user_orgs_with_http_info variant
2744
+
2745
+ This returns an Array which contains the response data, status code and headers.
2746
+
2747
+ > <Array(<Array<Organization>>, Integer, Hash)> org_list_current_user_orgs_with_http_info(opts)
2748
+
2749
+ ```ruby
2750
+ begin
2751
+ # List the current user's organizations
2752
+ data, status_code, headers = api_instance.org_list_current_user_orgs_with_http_info(opts)
2753
+ p status_code # => 2xx
2754
+ p headers # => { ... }
2755
+ p data # => <Array<Organization>>
2756
+ rescue Forgejo::ApiError => e
2757
+ puts "Error when calling OrganizationApi->org_list_current_user_orgs_with_http_info: #{e}"
2758
+ end
2759
+ ```
2760
+
2761
+ ### Parameters
2762
+
2763
+ | Name | Type | Description | Notes |
2764
+ | ---- | ---- | ----------- | ----- |
2765
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2766
+ | **limit** | **Integer** | page size of results | [optional] |
2767
+
2768
+ ### Return type
2769
+
2770
+ [**Array&lt;Organization&gt;**](Organization.md)
2771
+
2772
+ ### Authorization
2773
+
2774
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2775
+
2776
+ ### HTTP request headers
2777
+
2778
+ - **Content-Type**: Not defined
2779
+ - **Accept**: application/json
2780
+
2781
+
2782
+ ## org_list_hooks
2783
+
2784
+ > <Array<Hook>> org_list_hooks(org, opts)
2785
+
2786
+ List an organization's webhooks
2787
+
2788
+ ### Examples
2789
+
2790
+ ```ruby
2791
+ require 'time'
2792
+ require 'forgejo'
2793
+ # setup authorization
2794
+ Forgejo.configure do |config|
2795
+ # Configure API key authorization: AuthorizationHeaderToken
2796
+ config.api_key['Authorization'] = 'YOUR API KEY'
2797
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2798
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2799
+ end
2800
+
2801
+ api_instance = Forgejo::OrganizationApi.new
2802
+ org = 'org_example' # String | name of the organization
2803
+ opts = {
2804
+ page: 56, # Integer | page number of results to return (1-based)
2805
+ limit: 56 # Integer | page size of results
2806
+ }
2807
+
2808
+ begin
2809
+ # List an organization's webhooks
2810
+ result = api_instance.org_list_hooks(org, opts)
2811
+ p result
2812
+ rescue Forgejo::ApiError => e
2813
+ puts "Error when calling OrganizationApi->org_list_hooks: #{e}"
2814
+ end
2815
+ ```
2816
+
2817
+ #### Using the org_list_hooks_with_http_info variant
2818
+
2819
+ This returns an Array which contains the response data, status code and headers.
2820
+
2821
+ > <Array(<Array<Hook>>, Integer, Hash)> org_list_hooks_with_http_info(org, opts)
2822
+
2823
+ ```ruby
2824
+ begin
2825
+ # List an organization's webhooks
2826
+ data, status_code, headers = api_instance.org_list_hooks_with_http_info(org, opts)
2827
+ p status_code # => 2xx
2828
+ p headers # => { ... }
2829
+ p data # => <Array<Hook>>
2830
+ rescue Forgejo::ApiError => e
2831
+ puts "Error when calling OrganizationApi->org_list_hooks_with_http_info: #{e}"
2832
+ end
2833
+ ```
2834
+
2835
+ ### Parameters
2836
+
2837
+ | Name | Type | Description | Notes |
2838
+ | ---- | ---- | ----------- | ----- |
2839
+ | **org** | **String** | name of the organization | |
2840
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2841
+ | **limit** | **Integer** | page size of results | [optional] |
2842
+
2843
+ ### Return type
2844
+
2845
+ [**Array&lt;Hook&gt;**](Hook.md)
2846
+
2847
+ ### Authorization
2848
+
2849
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2850
+
2851
+ ### HTTP request headers
2852
+
2853
+ - **Content-Type**: Not defined
2854
+ - **Accept**: application/json
2855
+
2856
+
2857
+ ## org_list_labels
2858
+
2859
+ > <Array<Label>> org_list_labels(org, opts)
2860
+
2861
+ List an organization's labels
2862
+
2863
+ ### Examples
2864
+
2865
+ ```ruby
2866
+ require 'time'
2867
+ require 'forgejo'
2868
+ # setup authorization
2869
+ Forgejo.configure do |config|
2870
+ # Configure API key authorization: AuthorizationHeaderToken
2871
+ config.api_key['Authorization'] = 'YOUR API KEY'
2872
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2873
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2874
+ end
2875
+
2876
+ api_instance = Forgejo::OrganizationApi.new
2877
+ org = 'org_example' # String | name of the organization
2878
+ opts = {
2879
+ page: 56, # Integer | page number of results to return (1-based)
2880
+ limit: 56 # Integer | page size of results
2881
+ }
2882
+
2883
+ begin
2884
+ # List an organization's labels
2885
+ result = api_instance.org_list_labels(org, opts)
2886
+ p result
2887
+ rescue Forgejo::ApiError => e
2888
+ puts "Error when calling OrganizationApi->org_list_labels: #{e}"
2889
+ end
2890
+ ```
2891
+
2892
+ #### Using the org_list_labels_with_http_info variant
2893
+
2894
+ This returns an Array which contains the response data, status code and headers.
2895
+
2896
+ > <Array(<Array<Label>>, Integer, Hash)> org_list_labels_with_http_info(org, opts)
2897
+
2898
+ ```ruby
2899
+ begin
2900
+ # List an organization's labels
2901
+ data, status_code, headers = api_instance.org_list_labels_with_http_info(org, opts)
2902
+ p status_code # => 2xx
2903
+ p headers # => { ... }
2904
+ p data # => <Array<Label>>
2905
+ rescue Forgejo::ApiError => e
2906
+ puts "Error when calling OrganizationApi->org_list_labels_with_http_info: #{e}"
2907
+ end
2908
+ ```
2909
+
2910
+ ### Parameters
2911
+
2912
+ | Name | Type | Description | Notes |
2913
+ | ---- | ---- | ----------- | ----- |
2914
+ | **org** | **String** | name of the organization | |
2915
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2916
+ | **limit** | **Integer** | page size of results | [optional] |
2917
+
2918
+ ### Return type
2919
+
2920
+ [**Array&lt;Label&gt;**](Label.md)
2921
+
2922
+ ### Authorization
2923
+
2924
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
2925
+
2926
+ ### HTTP request headers
2927
+
2928
+ - **Content-Type**: Not defined
2929
+ - **Accept**: application/json
2930
+
2931
+
2932
+ ## org_list_members
2933
+
2934
+ > <Array<User>> org_list_members(org, opts)
2935
+
2936
+ List an organization's members
2937
+
2938
+ ### Examples
2939
+
2940
+ ```ruby
2941
+ require 'time'
2942
+ require 'forgejo'
2943
+ # setup authorization
2944
+ Forgejo.configure do |config|
2945
+ # Configure API key authorization: AuthorizationHeaderToken
2946
+ config.api_key['Authorization'] = 'YOUR API KEY'
2947
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2948
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2949
+ end
2950
+
2951
+ api_instance = Forgejo::OrganizationApi.new
2952
+ org = 'org_example' # String | name of the organization
2953
+ opts = {
2954
+ page: 56, # Integer | page number of results to return (1-based)
2955
+ limit: 56 # Integer | page size of results
2956
+ }
2957
+
2958
+ begin
2959
+ # List an organization's members
2960
+ result = api_instance.org_list_members(org, opts)
2961
+ p result
2962
+ rescue Forgejo::ApiError => e
2963
+ puts "Error when calling OrganizationApi->org_list_members: #{e}"
2964
+ end
2965
+ ```
2966
+
2967
+ #### Using the org_list_members_with_http_info variant
2968
+
2969
+ This returns an Array which contains the response data, status code and headers.
2970
+
2971
+ > <Array(<Array<User>>, Integer, Hash)> org_list_members_with_http_info(org, opts)
2972
+
2973
+ ```ruby
2974
+ begin
2975
+ # List an organization's members
2976
+ data, status_code, headers = api_instance.org_list_members_with_http_info(org, opts)
2977
+ p status_code # => 2xx
2978
+ p headers # => { ... }
2979
+ p data # => <Array<User>>
2980
+ rescue Forgejo::ApiError => e
2981
+ puts "Error when calling OrganizationApi->org_list_members_with_http_info: #{e}"
2982
+ end
2983
+ ```
2984
+
2985
+ ### Parameters
2986
+
2987
+ | Name | Type | Description | Notes |
2988
+ | ---- | ---- | ----------- | ----- |
2989
+ | **org** | **String** | name of the organization | |
2990
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
2991
+ | **limit** | **Integer** | page size of results | [optional] |
2992
+
2993
+ ### Return type
2994
+
2995
+ [**Array&lt;User&gt;**](User.md)
2996
+
2997
+ ### Authorization
2998
+
2999
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3000
+
3001
+ ### HTTP request headers
3002
+
3003
+ - **Content-Type**: Not defined
3004
+ - **Accept**: application/json
3005
+
3006
+
3007
+ ## org_list_public_members
3008
+
3009
+ > <Array<User>> org_list_public_members(org, opts)
3010
+
3011
+ List an organization's public members
3012
+
3013
+ ### Examples
3014
+
3015
+ ```ruby
3016
+ require 'time'
3017
+ require 'forgejo'
3018
+ # setup authorization
3019
+ Forgejo.configure do |config|
3020
+ # Configure API key authorization: AuthorizationHeaderToken
3021
+ config.api_key['Authorization'] = 'YOUR API KEY'
3022
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3023
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3024
+ end
3025
+
3026
+ api_instance = Forgejo::OrganizationApi.new
3027
+ org = 'org_example' # String | name of the organization
3028
+ opts = {
3029
+ page: 56, # Integer | page number of results to return (1-based)
3030
+ limit: 56 # Integer | page size of results
3031
+ }
3032
+
3033
+ begin
3034
+ # List an organization's public members
3035
+ result = api_instance.org_list_public_members(org, opts)
3036
+ p result
3037
+ rescue Forgejo::ApiError => e
3038
+ puts "Error when calling OrganizationApi->org_list_public_members: #{e}"
3039
+ end
3040
+ ```
3041
+
3042
+ #### Using the org_list_public_members_with_http_info variant
3043
+
3044
+ This returns an Array which contains the response data, status code and headers.
3045
+
3046
+ > <Array(<Array<User>>, Integer, Hash)> org_list_public_members_with_http_info(org, opts)
3047
+
3048
+ ```ruby
3049
+ begin
3050
+ # List an organization's public members
3051
+ data, status_code, headers = api_instance.org_list_public_members_with_http_info(org, opts)
3052
+ p status_code # => 2xx
3053
+ p headers # => { ... }
3054
+ p data # => <Array<User>>
3055
+ rescue Forgejo::ApiError => e
3056
+ puts "Error when calling OrganizationApi->org_list_public_members_with_http_info: #{e}"
3057
+ end
3058
+ ```
3059
+
3060
+ ### Parameters
3061
+
3062
+ | Name | Type | Description | Notes |
3063
+ | ---- | ---- | ----------- | ----- |
3064
+ | **org** | **String** | name of the organization | |
3065
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3066
+ | **limit** | **Integer** | page size of results | [optional] |
3067
+
3068
+ ### Return type
3069
+
3070
+ [**Array&lt;User&gt;**](User.md)
3071
+
3072
+ ### Authorization
3073
+
3074
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3075
+
3076
+ ### HTTP request headers
3077
+
3078
+ - **Content-Type**: Not defined
3079
+ - **Accept**: application/json
3080
+
3081
+
3082
+ ## org_list_repos
3083
+
3084
+ > <Array<Repository>> org_list_repos(org, opts)
3085
+
3086
+ List an organization's repos
3087
+
3088
+ ### Examples
3089
+
3090
+ ```ruby
3091
+ require 'time'
3092
+ require 'forgejo'
3093
+ # setup authorization
3094
+ Forgejo.configure do |config|
3095
+ # Configure API key authorization: AuthorizationHeaderToken
3096
+ config.api_key['Authorization'] = 'YOUR API KEY'
3097
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3098
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3099
+ end
3100
+
3101
+ api_instance = Forgejo::OrganizationApi.new
3102
+ org = 'org_example' # String | name of the organization
3103
+ opts = {
3104
+ page: 56, # Integer | page number of results to return (1-based)
3105
+ limit: 56 # Integer | page size of results
3106
+ }
3107
+
3108
+ begin
3109
+ # List an organization's repos
3110
+ result = api_instance.org_list_repos(org, opts)
3111
+ p result
3112
+ rescue Forgejo::ApiError => e
3113
+ puts "Error when calling OrganizationApi->org_list_repos: #{e}"
3114
+ end
3115
+ ```
3116
+
3117
+ #### Using the org_list_repos_with_http_info variant
3118
+
3119
+ This returns an Array which contains the response data, status code and headers.
3120
+
3121
+ > <Array(<Array<Repository>>, Integer, Hash)> org_list_repos_with_http_info(org, opts)
3122
+
3123
+ ```ruby
3124
+ begin
3125
+ # List an organization's repos
3126
+ data, status_code, headers = api_instance.org_list_repos_with_http_info(org, opts)
3127
+ p status_code # => 2xx
3128
+ p headers # => { ... }
3129
+ p data # => <Array<Repository>>
3130
+ rescue Forgejo::ApiError => e
3131
+ puts "Error when calling OrganizationApi->org_list_repos_with_http_info: #{e}"
3132
+ end
3133
+ ```
3134
+
3135
+ ### Parameters
3136
+
3137
+ | Name | Type | Description | Notes |
3138
+ | ---- | ---- | ----------- | ----- |
3139
+ | **org** | **String** | name of the organization | |
3140
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3141
+ | **limit** | **Integer** | page size of results | [optional] |
3142
+
3143
+ ### Return type
3144
+
3145
+ [**Array&lt;Repository&gt;**](Repository.md)
3146
+
3147
+ ### Authorization
3148
+
3149
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3150
+
3151
+ ### HTTP request headers
3152
+
3153
+ - **Content-Type**: Not defined
3154
+ - **Accept**: application/json
3155
+
3156
+
3157
+ ## org_list_team_activity_feeds
3158
+
3159
+ > <Array<Activity>> org_list_team_activity_feeds(id, opts)
3160
+
3161
+ List a team's activity feeds
3162
+
3163
+ ### Examples
3164
+
3165
+ ```ruby
3166
+ require 'time'
3167
+ require 'forgejo'
3168
+ # setup authorization
3169
+ Forgejo.configure do |config|
3170
+ # Configure API key authorization: AuthorizationHeaderToken
3171
+ config.api_key['Authorization'] = 'YOUR API KEY'
3172
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3173
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3174
+ end
3175
+
3176
+ api_instance = Forgejo::OrganizationApi.new
3177
+ id = 789 # Integer | id of the team
3178
+ opts = {
3179
+ date: Date.parse('2013-10-20'), # Date | the date of the activities to be found
3180
+ page: 56, # Integer | page number of results to return (1-based)
3181
+ limit: 56 # Integer | page size of results
3182
+ }
3183
+
3184
+ begin
3185
+ # List a team's activity feeds
3186
+ result = api_instance.org_list_team_activity_feeds(id, opts)
3187
+ p result
3188
+ rescue Forgejo::ApiError => e
3189
+ puts "Error when calling OrganizationApi->org_list_team_activity_feeds: #{e}"
3190
+ end
3191
+ ```
3192
+
3193
+ #### Using the org_list_team_activity_feeds_with_http_info variant
3194
+
3195
+ This returns an Array which contains the response data, status code and headers.
3196
+
3197
+ > <Array(<Array<Activity>>, Integer, Hash)> org_list_team_activity_feeds_with_http_info(id, opts)
3198
+
3199
+ ```ruby
3200
+ begin
3201
+ # List a team's activity feeds
3202
+ data, status_code, headers = api_instance.org_list_team_activity_feeds_with_http_info(id, opts)
3203
+ p status_code # => 2xx
3204
+ p headers # => { ... }
3205
+ p data # => <Array<Activity>>
3206
+ rescue Forgejo::ApiError => e
3207
+ puts "Error when calling OrganizationApi->org_list_team_activity_feeds_with_http_info: #{e}"
3208
+ end
3209
+ ```
3210
+
3211
+ ### Parameters
3212
+
3213
+ | Name | Type | Description | Notes |
3214
+ | ---- | ---- | ----------- | ----- |
3215
+ | **id** | **Integer** | id of the team | |
3216
+ | **date** | **Date** | the date of the activities to be found | [optional] |
3217
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3218
+ | **limit** | **Integer** | page size of results | [optional] |
3219
+
3220
+ ### Return type
3221
+
3222
+ [**Array&lt;Activity&gt;**](Activity.md)
3223
+
3224
+ ### Authorization
3225
+
3226
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3227
+
3228
+ ### HTTP request headers
3229
+
3230
+ - **Content-Type**: Not defined
3231
+ - **Accept**: application/json
3232
+
3233
+
3234
+ ## org_list_team_member
3235
+
3236
+ > <User> org_list_team_member(id, username)
3237
+
3238
+ List a particular member of team
3239
+
3240
+ ### Examples
3241
+
3242
+ ```ruby
3243
+ require 'time'
3244
+ require 'forgejo'
3245
+ # setup authorization
3246
+ Forgejo.configure do |config|
3247
+ # Configure API key authorization: AuthorizationHeaderToken
3248
+ config.api_key['Authorization'] = 'YOUR API KEY'
3249
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3250
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3251
+ end
3252
+
3253
+ api_instance = Forgejo::OrganizationApi.new
3254
+ id = 789 # Integer | id of the team
3255
+ username = 'username_example' # String | username of the member to list
3256
+
3257
+ begin
3258
+ # List a particular member of team
3259
+ result = api_instance.org_list_team_member(id, username)
3260
+ p result
3261
+ rescue Forgejo::ApiError => e
3262
+ puts "Error when calling OrganizationApi->org_list_team_member: #{e}"
3263
+ end
3264
+ ```
3265
+
3266
+ #### Using the org_list_team_member_with_http_info variant
3267
+
3268
+ This returns an Array which contains the response data, status code and headers.
3269
+
3270
+ > <Array(<User>, Integer, Hash)> org_list_team_member_with_http_info(id, username)
3271
+
3272
+ ```ruby
3273
+ begin
3274
+ # List a particular member of team
3275
+ data, status_code, headers = api_instance.org_list_team_member_with_http_info(id, username)
3276
+ p status_code # => 2xx
3277
+ p headers # => { ... }
3278
+ p data # => <User>
3279
+ rescue Forgejo::ApiError => e
3280
+ puts "Error when calling OrganizationApi->org_list_team_member_with_http_info: #{e}"
3281
+ end
3282
+ ```
3283
+
3284
+ ### Parameters
3285
+
3286
+ | Name | Type | Description | Notes |
3287
+ | ---- | ---- | ----------- | ----- |
3288
+ | **id** | **Integer** | id of the team | |
3289
+ | **username** | **String** | username of the member to list | |
3290
+
3291
+ ### Return type
3292
+
3293
+ [**User**](User.md)
3294
+
3295
+ ### Authorization
3296
+
3297
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3298
+
3299
+ ### HTTP request headers
3300
+
3301
+ - **Content-Type**: Not defined
3302
+ - **Accept**: application/json
3303
+
3304
+
3305
+ ## org_list_team_members
3306
+
3307
+ > <Array<User>> org_list_team_members(id, opts)
3308
+
3309
+ List a team's members
3310
+
3311
+ ### Examples
3312
+
3313
+ ```ruby
3314
+ require 'time'
3315
+ require 'forgejo'
3316
+ # setup authorization
3317
+ Forgejo.configure do |config|
3318
+ # Configure API key authorization: AuthorizationHeaderToken
3319
+ config.api_key['Authorization'] = 'YOUR API KEY'
3320
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3321
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3322
+ end
3323
+
3324
+ api_instance = Forgejo::OrganizationApi.new
3325
+ id = 789 # Integer | id of the team
3326
+ opts = {
3327
+ page: 56, # Integer | page number of results to return (1-based)
3328
+ limit: 56 # Integer | page size of results
3329
+ }
3330
+
3331
+ begin
3332
+ # List a team's members
3333
+ result = api_instance.org_list_team_members(id, opts)
3334
+ p result
3335
+ rescue Forgejo::ApiError => e
3336
+ puts "Error when calling OrganizationApi->org_list_team_members: #{e}"
3337
+ end
3338
+ ```
3339
+
3340
+ #### Using the org_list_team_members_with_http_info variant
3341
+
3342
+ This returns an Array which contains the response data, status code and headers.
3343
+
3344
+ > <Array(<Array<User>>, Integer, Hash)> org_list_team_members_with_http_info(id, opts)
3345
+
3346
+ ```ruby
3347
+ begin
3348
+ # List a team's members
3349
+ data, status_code, headers = api_instance.org_list_team_members_with_http_info(id, opts)
3350
+ p status_code # => 2xx
3351
+ p headers # => { ... }
3352
+ p data # => <Array<User>>
3353
+ rescue Forgejo::ApiError => e
3354
+ puts "Error when calling OrganizationApi->org_list_team_members_with_http_info: #{e}"
3355
+ end
3356
+ ```
3357
+
3358
+ ### Parameters
3359
+
3360
+ | Name | Type | Description | Notes |
3361
+ | ---- | ---- | ----------- | ----- |
3362
+ | **id** | **Integer** | id of the team | |
3363
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3364
+ | **limit** | **Integer** | page size of results | [optional] |
3365
+
3366
+ ### Return type
3367
+
3368
+ [**Array&lt;User&gt;**](User.md)
3369
+
3370
+ ### Authorization
3371
+
3372
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3373
+
3374
+ ### HTTP request headers
3375
+
3376
+ - **Content-Type**: Not defined
3377
+ - **Accept**: application/json
3378
+
3379
+
3380
+ ## org_list_team_repo
3381
+
3382
+ > <Repository> org_list_team_repo(id, org, repo)
3383
+
3384
+ List a particular repo of team
3385
+
3386
+ ### Examples
3387
+
3388
+ ```ruby
3389
+ require 'time'
3390
+ require 'forgejo'
3391
+ # setup authorization
3392
+ Forgejo.configure do |config|
3393
+ # Configure API key authorization: AuthorizationHeaderToken
3394
+ config.api_key['Authorization'] = 'YOUR API KEY'
3395
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3396
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3397
+ end
3398
+
3399
+ api_instance = Forgejo::OrganizationApi.new
3400
+ id = 789 # Integer | id of the team
3401
+ org = 'org_example' # String | organization that owns the repo to list
3402
+ repo = 'repo_example' # String | name of the repo to list
3403
+
3404
+ begin
3405
+ # List a particular repo of team
3406
+ result = api_instance.org_list_team_repo(id, org, repo)
3407
+ p result
3408
+ rescue Forgejo::ApiError => e
3409
+ puts "Error when calling OrganizationApi->org_list_team_repo: #{e}"
3410
+ end
3411
+ ```
3412
+
3413
+ #### Using the org_list_team_repo_with_http_info variant
3414
+
3415
+ This returns an Array which contains the response data, status code and headers.
3416
+
3417
+ > <Array(<Repository>, Integer, Hash)> org_list_team_repo_with_http_info(id, org, repo)
3418
+
3419
+ ```ruby
3420
+ begin
3421
+ # List a particular repo of team
3422
+ data, status_code, headers = api_instance.org_list_team_repo_with_http_info(id, org, repo)
3423
+ p status_code # => 2xx
3424
+ p headers # => { ... }
3425
+ p data # => <Repository>
3426
+ rescue Forgejo::ApiError => e
3427
+ puts "Error when calling OrganizationApi->org_list_team_repo_with_http_info: #{e}"
3428
+ end
3429
+ ```
3430
+
3431
+ ### Parameters
3432
+
3433
+ | Name | Type | Description | Notes |
3434
+ | ---- | ---- | ----------- | ----- |
3435
+ | **id** | **Integer** | id of the team | |
3436
+ | **org** | **String** | organization that owns the repo to list | |
3437
+ | **repo** | **String** | name of the repo to list | |
3438
+
3439
+ ### Return type
3440
+
3441
+ [**Repository**](Repository.md)
3442
+
3443
+ ### Authorization
3444
+
3445
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3446
+
3447
+ ### HTTP request headers
3448
+
3449
+ - **Content-Type**: Not defined
3450
+ - **Accept**: application/json
3451
+
3452
+
3453
+ ## org_list_team_repos
3454
+
3455
+ > <Array<Repository>> org_list_team_repos(id, opts)
3456
+
3457
+ List a team's repos
3458
+
3459
+ ### Examples
3460
+
3461
+ ```ruby
3462
+ require 'time'
3463
+ require 'forgejo'
3464
+ # setup authorization
3465
+ Forgejo.configure do |config|
3466
+ # Configure API key authorization: AuthorizationHeaderToken
3467
+ config.api_key['Authorization'] = 'YOUR API KEY'
3468
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3469
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3470
+ end
3471
+
3472
+ api_instance = Forgejo::OrganizationApi.new
3473
+ id = 789 # Integer | id of the team
3474
+ opts = {
3475
+ page: 56, # Integer | page number of results to return (1-based)
3476
+ limit: 56 # Integer | page size of results
3477
+ }
3478
+
3479
+ begin
3480
+ # List a team's repos
3481
+ result = api_instance.org_list_team_repos(id, opts)
3482
+ p result
3483
+ rescue Forgejo::ApiError => e
3484
+ puts "Error when calling OrganizationApi->org_list_team_repos: #{e}"
3485
+ end
3486
+ ```
3487
+
3488
+ #### Using the org_list_team_repos_with_http_info variant
3489
+
3490
+ This returns an Array which contains the response data, status code and headers.
3491
+
3492
+ > <Array(<Array<Repository>>, Integer, Hash)> org_list_team_repos_with_http_info(id, opts)
3493
+
3494
+ ```ruby
3495
+ begin
3496
+ # List a team's repos
3497
+ data, status_code, headers = api_instance.org_list_team_repos_with_http_info(id, opts)
3498
+ p status_code # => 2xx
3499
+ p headers # => { ... }
3500
+ p data # => <Array<Repository>>
3501
+ rescue Forgejo::ApiError => e
3502
+ puts "Error when calling OrganizationApi->org_list_team_repos_with_http_info: #{e}"
3503
+ end
3504
+ ```
3505
+
3506
+ ### Parameters
3507
+
3508
+ | Name | Type | Description | Notes |
3509
+ | ---- | ---- | ----------- | ----- |
3510
+ | **id** | **Integer** | id of the team | |
3511
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3512
+ | **limit** | **Integer** | page size of results | [optional] |
3513
+
3514
+ ### Return type
3515
+
3516
+ [**Array&lt;Repository&gt;**](Repository.md)
3517
+
3518
+ ### Authorization
3519
+
3520
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3521
+
3522
+ ### HTTP request headers
3523
+
3524
+ - **Content-Type**: Not defined
3525
+ - **Accept**: application/json
3526
+
3527
+
3528
+ ## org_list_teams
3529
+
3530
+ > <Array<Team>> org_list_teams(org, opts)
3531
+
3532
+ List an organization's teams
3533
+
3534
+ ### Examples
3535
+
3536
+ ```ruby
3537
+ require 'time'
3538
+ require 'forgejo'
3539
+ # setup authorization
3540
+ Forgejo.configure do |config|
3541
+ # Configure API key authorization: AuthorizationHeaderToken
3542
+ config.api_key['Authorization'] = 'YOUR API KEY'
3543
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3544
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3545
+ end
3546
+
3547
+ api_instance = Forgejo::OrganizationApi.new
3548
+ org = 'org_example' # String | name of the organization
3549
+ opts = {
3550
+ page: 56, # Integer | page number of results to return (1-based)
3551
+ limit: 56 # Integer | page size of results
3552
+ }
3553
+
3554
+ begin
3555
+ # List an organization's teams
3556
+ result = api_instance.org_list_teams(org, opts)
3557
+ p result
3558
+ rescue Forgejo::ApiError => e
3559
+ puts "Error when calling OrganizationApi->org_list_teams: #{e}"
3560
+ end
3561
+ ```
3562
+
3563
+ #### Using the org_list_teams_with_http_info variant
3564
+
3565
+ This returns an Array which contains the response data, status code and headers.
3566
+
3567
+ > <Array(<Array<Team>>, Integer, Hash)> org_list_teams_with_http_info(org, opts)
3568
+
3569
+ ```ruby
3570
+ begin
3571
+ # List an organization's teams
3572
+ data, status_code, headers = api_instance.org_list_teams_with_http_info(org, opts)
3573
+ p status_code # => 2xx
3574
+ p headers # => { ... }
3575
+ p data # => <Array<Team>>
3576
+ rescue Forgejo::ApiError => e
3577
+ puts "Error when calling OrganizationApi->org_list_teams_with_http_info: #{e}"
3578
+ end
3579
+ ```
3580
+
3581
+ ### Parameters
3582
+
3583
+ | Name | Type | Description | Notes |
3584
+ | ---- | ---- | ----------- | ----- |
3585
+ | **org** | **String** | name of the organization | |
3586
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3587
+ | **limit** | **Integer** | page size of results | [optional] |
3588
+
3589
+ ### Return type
3590
+
3591
+ [**Array&lt;Team&gt;**](Team.md)
3592
+
3593
+ ### Authorization
3594
+
3595
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3596
+
3597
+ ### HTTP request headers
3598
+
3599
+ - **Content-Type**: Not defined
3600
+ - **Accept**: application/json
3601
+
3602
+
3603
+ ## org_list_user_orgs
3604
+
3605
+ > <Array<Organization>> org_list_user_orgs(username, opts)
3606
+
3607
+ List a user's organizations
3608
+
3609
+ ### Examples
3610
+
3611
+ ```ruby
3612
+ require 'time'
3613
+ require 'forgejo'
3614
+ # setup authorization
3615
+ Forgejo.configure do |config|
3616
+ # Configure API key authorization: AuthorizationHeaderToken
3617
+ config.api_key['Authorization'] = 'YOUR API KEY'
3618
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3619
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3620
+ end
3621
+
3622
+ api_instance = Forgejo::OrganizationApi.new
3623
+ username = 'username_example' # String | username of user
3624
+ opts = {
3625
+ page: 56, # Integer | page number of results to return (1-based)
3626
+ limit: 56 # Integer | page size of results
3627
+ }
3628
+
3629
+ begin
3630
+ # List a user's organizations
3631
+ result = api_instance.org_list_user_orgs(username, opts)
3632
+ p result
3633
+ rescue Forgejo::ApiError => e
3634
+ puts "Error when calling OrganizationApi->org_list_user_orgs: #{e}"
3635
+ end
3636
+ ```
3637
+
3638
+ #### Using the org_list_user_orgs_with_http_info variant
3639
+
3640
+ This returns an Array which contains the response data, status code and headers.
3641
+
3642
+ > <Array(<Array<Organization>>, Integer, Hash)> org_list_user_orgs_with_http_info(username, opts)
3643
+
3644
+ ```ruby
3645
+ begin
3646
+ # List a user's organizations
3647
+ data, status_code, headers = api_instance.org_list_user_orgs_with_http_info(username, opts)
3648
+ p status_code # => 2xx
3649
+ p headers # => { ... }
3650
+ p data # => <Array<Organization>>
3651
+ rescue Forgejo::ApiError => e
3652
+ puts "Error when calling OrganizationApi->org_list_user_orgs_with_http_info: #{e}"
3653
+ end
3654
+ ```
3655
+
3656
+ ### Parameters
3657
+
3658
+ | Name | Type | Description | Notes |
3659
+ | ---- | ---- | ----------- | ----- |
3660
+ | **username** | **String** | username of user | |
3661
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
3662
+ | **limit** | **Integer** | page size of results | [optional] |
3663
+
3664
+ ### Return type
3665
+
3666
+ [**Array&lt;Organization&gt;**](Organization.md)
3667
+
3668
+ ### Authorization
3669
+
3670
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3671
+
3672
+ ### HTTP request headers
3673
+
3674
+ - **Content-Type**: Not defined
3675
+ - **Accept**: application/json
3676
+
3677
+
3678
+ ## org_publicize_member
3679
+
3680
+ > org_publicize_member(org, username)
3681
+
3682
+ Publicize a user's membership
3683
+
3684
+ ### Examples
3685
+
3686
+ ```ruby
3687
+ require 'time'
3688
+ require 'forgejo'
3689
+ # setup authorization
3690
+ Forgejo.configure do |config|
3691
+ # Configure API key authorization: AuthorizationHeaderToken
3692
+ config.api_key['Authorization'] = 'YOUR API KEY'
3693
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3694
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3695
+ end
3696
+
3697
+ api_instance = Forgejo::OrganizationApi.new
3698
+ org = 'org_example' # String | name of the organization
3699
+ username = 'username_example' # String | username of the user
3700
+
3701
+ begin
3702
+ # Publicize a user's membership
3703
+ api_instance.org_publicize_member(org, username)
3704
+ rescue Forgejo::ApiError => e
3705
+ puts "Error when calling OrganizationApi->org_publicize_member: #{e}"
3706
+ end
3707
+ ```
3708
+
3709
+ #### Using the org_publicize_member_with_http_info variant
3710
+
3711
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
3712
+
3713
+ > <Array(nil, Integer, Hash)> org_publicize_member_with_http_info(org, username)
3714
+
3715
+ ```ruby
3716
+ begin
3717
+ # Publicize a user's membership
3718
+ data, status_code, headers = api_instance.org_publicize_member_with_http_info(org, username)
3719
+ p status_code # => 2xx
3720
+ p headers # => { ... }
3721
+ p data # => nil
3722
+ rescue Forgejo::ApiError => e
3723
+ puts "Error when calling OrganizationApi->org_publicize_member_with_http_info: #{e}"
3724
+ end
3725
+ ```
3726
+
3727
+ ### Parameters
3728
+
3729
+ | Name | Type | Description | Notes |
3730
+ | ---- | ---- | ----------- | ----- |
3731
+ | **org** | **String** | name of the organization | |
3732
+ | **username** | **String** | username of the user | |
3733
+
3734
+ ### Return type
3735
+
3736
+ nil (empty response body)
3737
+
3738
+ ### Authorization
3739
+
3740
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3741
+
3742
+ ### HTTP request headers
3743
+
3744
+ - **Content-Type**: Not defined
3745
+ - **Accept**: Not defined
3746
+
3747
+
3748
+ ## org_remove_team_member
3749
+
3750
+ > org_remove_team_member(id, username)
3751
+
3752
+ Remove a team member
3753
+
3754
+ ### Examples
3755
+
3756
+ ```ruby
3757
+ require 'time'
3758
+ require 'forgejo'
3759
+ # setup authorization
3760
+ Forgejo.configure do |config|
3761
+ # Configure API key authorization: AuthorizationHeaderToken
3762
+ config.api_key['Authorization'] = 'YOUR API KEY'
3763
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3764
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3765
+ end
3766
+
3767
+ api_instance = Forgejo::OrganizationApi.new
3768
+ id = 789 # Integer | id of the team
3769
+ username = 'username_example' # String | username of the user to remove
3770
+
3771
+ begin
3772
+ # Remove a team member
3773
+ api_instance.org_remove_team_member(id, username)
3774
+ rescue Forgejo::ApiError => e
3775
+ puts "Error when calling OrganizationApi->org_remove_team_member: #{e}"
3776
+ end
3777
+ ```
3778
+
3779
+ #### Using the org_remove_team_member_with_http_info variant
3780
+
3781
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
3782
+
3783
+ > <Array(nil, Integer, Hash)> org_remove_team_member_with_http_info(id, username)
3784
+
3785
+ ```ruby
3786
+ begin
3787
+ # Remove a team member
3788
+ data, status_code, headers = api_instance.org_remove_team_member_with_http_info(id, username)
3789
+ p status_code # => 2xx
3790
+ p headers # => { ... }
3791
+ p data # => nil
3792
+ rescue Forgejo::ApiError => e
3793
+ puts "Error when calling OrganizationApi->org_remove_team_member_with_http_info: #{e}"
3794
+ end
3795
+ ```
3796
+
3797
+ ### Parameters
3798
+
3799
+ | Name | Type | Description | Notes |
3800
+ | ---- | ---- | ----------- | ----- |
3801
+ | **id** | **Integer** | id of the team | |
3802
+ | **username** | **String** | username of the user to remove | |
3803
+
3804
+ ### Return type
3805
+
3806
+ nil (empty response body)
3807
+
3808
+ ### Authorization
3809
+
3810
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3811
+
3812
+ ### HTTP request headers
3813
+
3814
+ - **Content-Type**: Not defined
3815
+ - **Accept**: Not defined
3816
+
3817
+
3818
+ ## org_remove_team_repository
3819
+
3820
+ > org_remove_team_repository(id, org, repo)
3821
+
3822
+ Remove a repository from a team
3823
+
3824
+ This does not delete the repository, it only removes the repository from the team.
3825
+
3826
+ ### Examples
3827
+
3828
+ ```ruby
3829
+ require 'time'
3830
+ require 'forgejo'
3831
+ # setup authorization
3832
+ Forgejo.configure do |config|
3833
+ # Configure API key authorization: AuthorizationHeaderToken
3834
+ config.api_key['Authorization'] = 'YOUR API KEY'
3835
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3836
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3837
+ end
3838
+
3839
+ api_instance = Forgejo::OrganizationApi.new
3840
+ id = 789 # Integer | id of the team
3841
+ org = 'org_example' # String | organization that owns the repo to remove
3842
+ repo = 'repo_example' # String | name of the repo to remove
3843
+
3844
+ begin
3845
+ # Remove a repository from a team
3846
+ api_instance.org_remove_team_repository(id, org, repo)
3847
+ rescue Forgejo::ApiError => e
3848
+ puts "Error when calling OrganizationApi->org_remove_team_repository: #{e}"
3849
+ end
3850
+ ```
3851
+
3852
+ #### Using the org_remove_team_repository_with_http_info variant
3853
+
3854
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
3855
+
3856
+ > <Array(nil, Integer, Hash)> org_remove_team_repository_with_http_info(id, org, repo)
3857
+
3858
+ ```ruby
3859
+ begin
3860
+ # Remove a repository from a team
3861
+ data, status_code, headers = api_instance.org_remove_team_repository_with_http_info(id, org, repo)
3862
+ p status_code # => 2xx
3863
+ p headers # => { ... }
3864
+ p data # => nil
3865
+ rescue Forgejo::ApiError => e
3866
+ puts "Error when calling OrganizationApi->org_remove_team_repository_with_http_info: #{e}"
3867
+ end
3868
+ ```
3869
+
3870
+ ### Parameters
3871
+
3872
+ | Name | Type | Description | Notes |
3873
+ | ---- | ---- | ----------- | ----- |
3874
+ | **id** | **Integer** | id of the team | |
3875
+ | **org** | **String** | organization that owns the repo to remove | |
3876
+ | **repo** | **String** | name of the repo to remove | |
3877
+
3878
+ ### Return type
3879
+
3880
+ nil (empty response body)
3881
+
3882
+ ### Authorization
3883
+
3884
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3885
+
3886
+ ### HTTP request headers
3887
+
3888
+ - **Content-Type**: Not defined
3889
+ - **Accept**: Not defined
3890
+
3891
+
3892
+ ## org_unblock_user
3893
+
3894
+ > org_unblock_user(org, username)
3895
+
3896
+ Unblock a user from the organization
3897
+
3898
+ ### Examples
3899
+
3900
+ ```ruby
3901
+ require 'time'
3902
+ require 'forgejo'
3903
+ # setup authorization
3904
+ Forgejo.configure do |config|
3905
+ # Configure API key authorization: AuthorizationHeaderToken
3906
+ config.api_key['Authorization'] = 'YOUR API KEY'
3907
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3908
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3909
+ end
3910
+
3911
+ api_instance = Forgejo::OrganizationApi.new
3912
+ org = 'org_example' # String | name of the org
3913
+ username = 'username_example' # String | username of the user
3914
+
3915
+ begin
3916
+ # Unblock a user from the organization
3917
+ api_instance.org_unblock_user(org, username)
3918
+ rescue Forgejo::ApiError => e
3919
+ puts "Error when calling OrganizationApi->org_unblock_user: #{e}"
3920
+ end
3921
+ ```
3922
+
3923
+ #### Using the org_unblock_user_with_http_info variant
3924
+
3925
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
3926
+
3927
+ > <Array(nil, Integer, Hash)> org_unblock_user_with_http_info(org, username)
3928
+
3929
+ ```ruby
3930
+ begin
3931
+ # Unblock a user from the organization
3932
+ data, status_code, headers = api_instance.org_unblock_user_with_http_info(org, username)
3933
+ p status_code # => 2xx
3934
+ p headers # => { ... }
3935
+ p data # => nil
3936
+ rescue Forgejo::ApiError => e
3937
+ puts "Error when calling OrganizationApi->org_unblock_user_with_http_info: #{e}"
3938
+ end
3939
+ ```
3940
+
3941
+ ### Parameters
3942
+
3943
+ | Name | Type | Description | Notes |
3944
+ | ---- | ---- | ----------- | ----- |
3945
+ | **org** | **String** | name of the org | |
3946
+ | **username** | **String** | username of the user | |
3947
+
3948
+ ### Return type
3949
+
3950
+ nil (empty response body)
3951
+
3952
+ ### Authorization
3953
+
3954
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
3955
+
3956
+ ### HTTP request headers
3957
+
3958
+ - **Content-Type**: Not defined
3959
+ - **Accept**: Not defined
3960
+
3961
+
3962
+ ## org_update_avatar
3963
+
3964
+ > org_update_avatar(org, opts)
3965
+
3966
+ Update Avatar
3967
+
3968
+ ### Examples
3969
+
3970
+ ```ruby
3971
+ require 'time'
3972
+ require 'forgejo'
3973
+ # setup authorization
3974
+ Forgejo.configure do |config|
3975
+ # Configure API key authorization: AuthorizationHeaderToken
3976
+ config.api_key['Authorization'] = 'YOUR API KEY'
3977
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3978
+ # config.api_key_prefix['Authorization'] = 'Bearer'
3979
+ end
3980
+
3981
+ api_instance = Forgejo::OrganizationApi.new
3982
+ org = 'org_example' # String | name of the organization
3983
+ opts = {
3984
+ body: Forgejo::UpdateUserAvatarOption.new # UpdateUserAvatarOption |
3985
+ }
3986
+
3987
+ begin
3988
+ # Update Avatar
3989
+ api_instance.org_update_avatar(org, opts)
3990
+ rescue Forgejo::ApiError => e
3991
+ puts "Error when calling OrganizationApi->org_update_avatar: #{e}"
3992
+ end
3993
+ ```
3994
+
3995
+ #### Using the org_update_avatar_with_http_info variant
3996
+
3997
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
3998
+
3999
+ > <Array(nil, Integer, Hash)> org_update_avatar_with_http_info(org, opts)
4000
+
4001
+ ```ruby
4002
+ begin
4003
+ # Update Avatar
4004
+ data, status_code, headers = api_instance.org_update_avatar_with_http_info(org, opts)
4005
+ p status_code # => 2xx
4006
+ p headers # => { ... }
4007
+ p data # => nil
4008
+ rescue Forgejo::ApiError => e
4009
+ puts "Error when calling OrganizationApi->org_update_avatar_with_http_info: #{e}"
4010
+ end
4011
+ ```
4012
+
4013
+ ### Parameters
4014
+
4015
+ | Name | Type | Description | Notes |
4016
+ | ---- | ---- | ----------- | ----- |
4017
+ | **org** | **String** | name of the organization | |
4018
+ | **body** | [**UpdateUserAvatarOption**](UpdateUserAvatarOption.md) | | [optional] |
4019
+
4020
+ ### Return type
4021
+
4022
+ nil (empty response body)
4023
+
4024
+ ### Authorization
4025
+
4026
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
4027
+
4028
+ ### HTTP request headers
4029
+
4030
+ - **Content-Type**: application/json, text/plain
4031
+ - **Accept**: Not defined
4032
+
4033
+
4034
+ ## team_search
4035
+
4036
+ > <TeamSearch200Response> team_search(org, opts)
4037
+
4038
+ Search for teams within an organization
4039
+
4040
+ ### Examples
4041
+
4042
+ ```ruby
4043
+ require 'time'
4044
+ require 'forgejo'
4045
+ # setup authorization
4046
+ Forgejo.configure do |config|
4047
+ # Configure API key authorization: AuthorizationHeaderToken
4048
+ config.api_key['Authorization'] = 'YOUR API KEY'
4049
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4050
+ # config.api_key_prefix['Authorization'] = 'Bearer'
4051
+ end
4052
+
4053
+ api_instance = Forgejo::OrganizationApi.new
4054
+ org = 'org_example' # String | name of the organization
4055
+ opts = {
4056
+ q: 'q_example', # String | keywords to search
4057
+ include_desc: true, # Boolean | include search within team description (defaults to true)
4058
+ page: 56, # Integer | page number of results to return (1-based)
4059
+ limit: 56 # Integer | page size of results
4060
+ }
4061
+
4062
+ begin
4063
+ # Search for teams within an organization
4064
+ result = api_instance.team_search(org, opts)
4065
+ p result
4066
+ rescue Forgejo::ApiError => e
4067
+ puts "Error when calling OrganizationApi->team_search: #{e}"
4068
+ end
4069
+ ```
4070
+
4071
+ #### Using the team_search_with_http_info variant
4072
+
4073
+ This returns an Array which contains the response data, status code and headers.
4074
+
4075
+ > <Array(<TeamSearch200Response>, Integer, Hash)> team_search_with_http_info(org, opts)
4076
+
4077
+ ```ruby
4078
+ begin
4079
+ # Search for teams within an organization
4080
+ data, status_code, headers = api_instance.team_search_with_http_info(org, opts)
4081
+ p status_code # => 2xx
4082
+ p headers # => { ... }
4083
+ p data # => <TeamSearch200Response>
4084
+ rescue Forgejo::ApiError => e
4085
+ puts "Error when calling OrganizationApi->team_search_with_http_info: #{e}"
4086
+ end
4087
+ ```
4088
+
4089
+ ### Parameters
4090
+
4091
+ | Name | Type | Description | Notes |
4092
+ | ---- | ---- | ----------- | ----- |
4093
+ | **org** | **String** | name of the organization | |
4094
+ | **q** | **String** | keywords to search | [optional] |
4095
+ | **include_desc** | **Boolean** | include search within team description (defaults to true) | [optional] |
4096
+ | **page** | **Integer** | page number of results to return (1-based) | [optional] |
4097
+ | **limit** | **Integer** | page size of results | [optional] |
4098
+
4099
+ ### Return type
4100
+
4101
+ [**TeamSearch200Response**](TeamSearch200Response.md)
4102
+
4103
+ ### Authorization
4104
+
4105
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
4106
+
4107
+ ### HTTP request headers
4108
+
4109
+ - **Content-Type**: Not defined
4110
+ - **Accept**: application/json
4111
+
4112
+
4113
+ ## update_org_secret
4114
+
4115
+ > update_org_secret(org, secretname, opts)
4116
+
4117
+ Create or Update a secret value in an organization
4118
+
4119
+ ### Examples
4120
+
4121
+ ```ruby
4122
+ require 'time'
4123
+ require 'forgejo'
4124
+ # setup authorization
4125
+ Forgejo.configure do |config|
4126
+ # Configure API key authorization: AuthorizationHeaderToken
4127
+ config.api_key['Authorization'] = 'YOUR API KEY'
4128
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4129
+ # config.api_key_prefix['Authorization'] = 'Bearer'
4130
+ end
4131
+
4132
+ api_instance = Forgejo::OrganizationApi.new
4133
+ org = 'org_example' # String | name of organization
4134
+ secretname = 'secretname_example' # String | name of the secret
4135
+ opts = {
4136
+ body: Forgejo::CreateOrUpdateSecretOption.new({data: 'data_example'}) # CreateOrUpdateSecretOption |
4137
+ }
4138
+
4139
+ begin
4140
+ # Create or Update a secret value in an organization
4141
+ api_instance.update_org_secret(org, secretname, opts)
4142
+ rescue Forgejo::ApiError => e
4143
+ puts "Error when calling OrganizationApi->update_org_secret: #{e}"
4144
+ end
4145
+ ```
4146
+
4147
+ #### Using the update_org_secret_with_http_info variant
4148
+
4149
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
4150
+
4151
+ > <Array(nil, Integer, Hash)> update_org_secret_with_http_info(org, secretname, opts)
4152
+
4153
+ ```ruby
4154
+ begin
4155
+ # Create or Update a secret value in an organization
4156
+ data, status_code, headers = api_instance.update_org_secret_with_http_info(org, secretname, opts)
4157
+ p status_code # => 2xx
4158
+ p headers # => { ... }
4159
+ p data # => nil
4160
+ rescue Forgejo::ApiError => e
4161
+ puts "Error when calling OrganizationApi->update_org_secret_with_http_info: #{e}"
4162
+ end
4163
+ ```
4164
+
4165
+ ### Parameters
4166
+
4167
+ | Name | Type | Description | Notes |
4168
+ | ---- | ---- | ----------- | ----- |
4169
+ | **org** | **String** | name of organization | |
4170
+ | **secretname** | **String** | name of the secret | |
4171
+ | **body** | [**CreateOrUpdateSecretOption**](CreateOrUpdateSecretOption.md) | | [optional] |
4172
+
4173
+ ### Return type
4174
+
4175
+ nil (empty response body)
4176
+
4177
+ ### Authorization
4178
+
4179
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
4180
+
4181
+ ### HTTP request headers
4182
+
4183
+ - **Content-Type**: application/json
4184
+ - **Accept**: Not defined
4185
+
4186
+
4187
+ ## update_org_variable
4188
+
4189
+ > update_org_variable(org, variablename, opts)
4190
+
4191
+ Update an org-level variable
4192
+
4193
+ ### Examples
4194
+
4195
+ ```ruby
4196
+ require 'time'
4197
+ require 'forgejo'
4198
+ # setup authorization
4199
+ Forgejo.configure do |config|
4200
+ # Configure API key authorization: AuthorizationHeaderToken
4201
+ config.api_key['Authorization'] = 'YOUR API KEY'
4202
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4203
+ # config.api_key_prefix['Authorization'] = 'Bearer'
4204
+ end
4205
+
4206
+ api_instance = Forgejo::OrganizationApi.new
4207
+ org = 'org_example' # String | name of the organization
4208
+ variablename = 'variablename_example' # String | name of the variable
4209
+ opts = {
4210
+ body: Forgejo::UpdateVariableOption.new({value: 'value_example'}) # UpdateVariableOption |
4211
+ }
4212
+
4213
+ begin
4214
+ # Update an org-level variable
4215
+ api_instance.update_org_variable(org, variablename, opts)
4216
+ rescue Forgejo::ApiError => e
4217
+ puts "Error when calling OrganizationApi->update_org_variable: #{e}"
4218
+ end
4219
+ ```
4220
+
4221
+ #### Using the update_org_variable_with_http_info variant
4222
+
4223
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
4224
+
4225
+ > <Array(nil, Integer, Hash)> update_org_variable_with_http_info(org, variablename, opts)
4226
+
4227
+ ```ruby
4228
+ begin
4229
+ # Update an org-level variable
4230
+ data, status_code, headers = api_instance.update_org_variable_with_http_info(org, variablename, opts)
4231
+ p status_code # => 2xx
4232
+ p headers # => { ... }
4233
+ p data # => nil
4234
+ rescue Forgejo::ApiError => e
4235
+ puts "Error when calling OrganizationApi->update_org_variable_with_http_info: #{e}"
4236
+ end
4237
+ ```
4238
+
4239
+ ### Parameters
4240
+
4241
+ | Name | Type | Description | Notes |
4242
+ | ---- | ---- | ----------- | ----- |
4243
+ | **org** | **String** | name of the organization | |
4244
+ | **variablename** | **String** | name of the variable | |
4245
+ | **body** | [**UpdateVariableOption**](UpdateVariableOption.md) | | [optional] |
4246
+
4247
+ ### Return type
4248
+
4249
+ nil (empty response body)
4250
+
4251
+ ### Authorization
4252
+
4253
+ [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
4254
+
4255
+ ### HTTP request headers
4256
+
4257
+ - **Content-Type**: application/json
4258
+ - **Accept**: Not defined
4259
+