forgejo 0.1.0 → 0.2.1

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 (321) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/CHANGELOG.md~ +3 -0
  4. data/Makefile +16 -16
  5. data/README.md +68 -12
  6. data/config.yaml +21 -0
  7. data/config.yaml~ +13 -0
  8. data/docs/APIForbiddenError.md +20 -0
  9. data/docs/APIInvalidTopicsError.md +20 -0
  10. data/docs/APINotFound.md +22 -0
  11. data/docs/APIRepoArchivedError.md +20 -0
  12. data/docs/APIUnauthorizedError.md +20 -0
  13. data/docs/APIValidationError.md +20 -0
  14. data/docs/ActivitypubApi.md +133 -0
  15. data/docs/AdminApi.md +1305 -184
  16. data/docs/Attachment.md +2 -0
  17. data/docs/CreatePushMirrorOption.md +3 -1
  18. data/docs/CreateQuotaGroupOptions.md +20 -0
  19. data/docs/CreateQuotaRuleOptions.md +22 -0
  20. data/docs/EditAttachmentOptions.md +2 -0
  21. data/docs/EditQuotaRuleOptions.md +20 -0
  22. data/docs/EditRepoOption.md +2 -0
  23. data/docs/IssueApi.md +55 -55
  24. data/docs/MarkupOption.md +2 -0
  25. data/docs/NoteOptions.md +18 -0
  26. data/docs/OrganizationApi.md +386 -19
  27. data/docs/PackageApi.md +1 -1
  28. data/docs/PullRequest.md +2 -0
  29. data/docs/PushMirror.md +2 -0
  30. data/docs/QuotaGroup.md +20 -0
  31. data/docs/QuotaInfo.md +20 -0
  32. data/docs/QuotaRuleInfo.md +22 -0
  33. data/docs/QuotaUsed.md +18 -0
  34. data/docs/QuotaUsedArtifact.md +22 -0
  35. data/docs/QuotaUsedAttachment.md +24 -0
  36. data/docs/QuotaUsedAttachmentContainedIn.md +20 -0
  37. data/docs/QuotaUsedPackage.md +26 -0
  38. data/docs/QuotaUsedSize.md +22 -0
  39. data/docs/QuotaUsedSizeAssets.md +22 -0
  40. data/docs/QuotaUsedSizeAssetsAttachments.md +20 -0
  41. data/docs/QuotaUsedSizeAssetsPackages.md +18 -0
  42. data/docs/QuotaUsedSizeGit.md +18 -0
  43. data/docs/QuotaUsedSizeRepos.md +20 -0
  44. data/docs/RepoCreateReleaseAttachmentRequest.md +4 -2
  45. data/docs/Repository.md +2 -0
  46. data/docs/RepositoryApi.md +308 -72
  47. data/docs/SetUserQuotaGroupsOptions.md +18 -0
  48. data/docs/UpdateBranchRepoOption.md +18 -0
  49. data/docs/UserApi.md +390 -33
  50. data/forgejo.gemspec +12 -13
  51. data/lib/forgejo/api/activitypub_api.rb +110 -2
  52. data/lib/forgejo/api/admin_api.rb +1148 -109
  53. data/lib/forgejo/api/issue_api.rb +94 -36
  54. data/lib/forgejo/api/miscellaneous_api.rb +2 -2
  55. data/lib/forgejo/api/notification_api.rb +2 -2
  56. data/lib/forgejo/api/organization_api.rb +363 -2
  57. data/lib/forgejo/api/package_api.rb +4 -2
  58. data/lib/forgejo/api/repository_api.rb +370 -26
  59. data/lib/forgejo/api/settings_api.rb +2 -2
  60. data/lib/forgejo/api/user_api.rb +350 -8
  61. data/lib/forgejo/api_client.rb +2 -2
  62. data/lib/forgejo/api_error.rb +2 -2
  63. data/lib/forgejo/configuration.rb +2 -2
  64. data/lib/forgejo/models/access_token.rb +11 -5
  65. data/lib/forgejo/models/action_task.rb +11 -5
  66. data/lib/forgejo/models/action_task_response.rb +11 -5
  67. data/lib/forgejo/models/action_variable.rb +11 -5
  68. data/lib/forgejo/models/activity.rb +11 -5
  69. data/lib/forgejo/models/activity_pub.rb +11 -5
  70. data/lib/forgejo/models/add_collaborator_option.rb +45 -5
  71. data/lib/forgejo/models/add_time_option.rb +21 -5
  72. data/lib/forgejo/models/annotated_tag.rb +11 -5
  73. data/lib/forgejo/models/annotated_tag_object.rb +11 -5
  74. data/lib/forgejo/models/api_error.rb +11 -5
  75. data/lib/forgejo/models/api_forbidden_error.rb +229 -0
  76. data/lib/forgejo/models/api_invalid_topics_error.rb +231 -0
  77. data/lib/forgejo/models/api_not_found.rb +240 -0
  78. data/lib/forgejo/models/api_repo_archived_error.rb +229 -0
  79. data/lib/forgejo/models/api_unauthorized_error.rb +229 -0
  80. data/lib/forgejo/models/api_validation_error.rb +229 -0
  81. data/lib/forgejo/models/attachment.rb +55 -6
  82. data/lib/forgejo/models/blocked_user.rb +11 -5
  83. data/lib/forgejo/models/branch.rb +11 -5
  84. data/lib/forgejo/models/branch_protection.rb +11 -5
  85. data/lib/forgejo/models/change_file_operation.rb +21 -5
  86. data/lib/forgejo/models/change_files_options.rb +21 -5
  87. data/lib/forgejo/models/changed_file.rb +11 -5
  88. data/lib/forgejo/models/combined_status.rb +11 -5
  89. data/lib/forgejo/models/comment.rb +11 -5
  90. data/lib/forgejo/models/commit.rb +11 -5
  91. data/lib/forgejo/models/commit_affected_files.rb +11 -5
  92. data/lib/forgejo/models/commit_date_options.rb +11 -5
  93. data/lib/forgejo/models/commit_meta.rb +11 -5
  94. data/lib/forgejo/models/commit_stats.rb +11 -5
  95. data/lib/forgejo/models/commit_status.rb +11 -5
  96. data/lib/forgejo/models/commit_user.rb +11 -5
  97. data/lib/forgejo/models/compare.rb +11 -5
  98. data/lib/forgejo/models/contents_response.rb +11 -5
  99. data/lib/forgejo/models/create_access_token_option.rb +21 -5
  100. data/lib/forgejo/models/create_branch_protection_option.rb +11 -5
  101. data/lib/forgejo/models/create_branch_repo_option.rb +21 -5
  102. data/lib/forgejo/models/create_email_option.rb +11 -5
  103. data/lib/forgejo/models/create_file_options.rb +21 -5
  104. data/lib/forgejo/models/create_fork_option.rb +11 -5
  105. data/lib/forgejo/models/create_gpg_key_option.rb +21 -5
  106. data/lib/forgejo/models/create_hook_option.rb +21 -5
  107. data/lib/forgejo/models/create_issue_comment_option.rb +21 -5
  108. data/lib/forgejo/models/create_issue_option.rb +21 -5
  109. data/lib/forgejo/models/create_key_option.rb +31 -5
  110. data/lib/forgejo/models/create_label_option.rb +31 -5
  111. data/lib/forgejo/models/create_milestone_option.rb +11 -5
  112. data/lib/forgejo/models/create_o_auth2_application_options.rb +11 -5
  113. data/lib/forgejo/models/create_or_update_secret_option.rb +21 -5
  114. data/lib/forgejo/models/create_org_option.rb +21 -5
  115. data/lib/forgejo/models/create_pull_request_option.rb +11 -5
  116. data/lib/forgejo/models/create_pull_review_comment.rb +11 -5
  117. data/lib/forgejo/models/create_pull_review_options.rb +11 -5
  118. data/lib/forgejo/models/create_push_mirror_option.rb +24 -9
  119. data/lib/forgejo/models/create_quota_group_options.rb +234 -0
  120. data/lib/forgejo/models/create_quota_rule_options.rb +244 -0
  121. data/lib/forgejo/models/create_release_option.rb +21 -5
  122. data/lib/forgejo/models/create_repo_option.rb +21 -5
  123. data/lib/forgejo/models/create_status_option.rb +11 -5
  124. data/lib/forgejo/models/create_tag_option.rb +21 -5
  125. data/lib/forgejo/models/create_tag_protection_option.rb +11 -5
  126. data/lib/forgejo/models/create_team_option.rb +21 -5
  127. data/lib/forgejo/models/create_user_option.rb +31 -5
  128. data/lib/forgejo/models/create_variable_option.rb +21 -5
  129. data/lib/forgejo/models/create_wiki_page_options.rb +11 -5
  130. data/lib/forgejo/models/cron.rb +11 -5
  131. data/lib/forgejo/models/delete_email_option.rb +11 -5
  132. data/lib/forgejo/models/delete_file_options.rb +21 -5
  133. data/lib/forgejo/models/delete_labels_option.rb +11 -5
  134. data/lib/forgejo/models/deploy_key.rb +11 -5
  135. data/lib/forgejo/models/dismiss_pull_review_options.rb +11 -5
  136. data/lib/forgejo/models/dispatch_workflow_option.rb +21 -5
  137. data/lib/forgejo/models/edit_attachment_options.rb +22 -6
  138. data/lib/forgejo/models/edit_branch_protection_option.rb +11 -5
  139. data/lib/forgejo/models/edit_deadline_option.rb +21 -5
  140. data/lib/forgejo/models/edit_git_hook_option.rb +11 -5
  141. data/lib/forgejo/models/edit_hook_option.rb +11 -5
  142. data/lib/forgejo/models/edit_issue_comment_option.rb +21 -5
  143. data/lib/forgejo/models/edit_issue_option.rb +11 -5
  144. data/lib/forgejo/models/edit_label_option.rb +11 -5
  145. data/lib/forgejo/models/edit_milestone_option.rb +11 -5
  146. data/lib/forgejo/models/edit_org_option.rb +11 -5
  147. data/lib/forgejo/models/edit_pull_request_option.rb +11 -5
  148. data/lib/forgejo/models/edit_quota_rule_options.rb +234 -0
  149. data/lib/forgejo/models/edit_reaction_option.rb +11 -5
  150. data/lib/forgejo/models/edit_release_option.rb +11 -5
  151. data/lib/forgejo/models/edit_repo_option.rb +22 -6
  152. data/lib/forgejo/models/edit_tag_protection_option.rb +11 -5
  153. data/lib/forgejo/models/edit_team_option.rb +21 -5
  154. data/lib/forgejo/models/edit_user_option.rb +11 -5
  155. data/lib/forgejo/models/email.rb +11 -5
  156. data/lib/forgejo/models/external_tracker.rb +11 -5
  157. data/lib/forgejo/models/external_wiki.rb +11 -5
  158. data/lib/forgejo/models/file_commit_response.rb +11 -5
  159. data/lib/forgejo/models/file_delete_response.rb +11 -5
  160. data/lib/forgejo/models/file_links_response.rb +11 -5
  161. data/lib/forgejo/models/file_response.rb +11 -5
  162. data/lib/forgejo/models/files_response.rb +11 -5
  163. data/lib/forgejo/models/general_api_settings.rb +11 -5
  164. data/lib/forgejo/models/general_attachment_settings.rb +11 -5
  165. data/lib/forgejo/models/general_repo_settings.rb +11 -5
  166. data/lib/forgejo/models/general_ui_settings.rb +11 -5
  167. data/lib/forgejo/models/generate_repo_option.rb +31 -5
  168. data/lib/forgejo/models/git_blob_response.rb +11 -5
  169. data/lib/forgejo/models/git_entry.rb +11 -5
  170. data/lib/forgejo/models/git_hook.rb +11 -5
  171. data/lib/forgejo/models/git_object.rb +11 -5
  172. data/lib/forgejo/models/git_tree_response.rb +11 -5
  173. data/lib/forgejo/models/gitignore_template_info.rb +11 -5
  174. data/lib/forgejo/models/gpg_key.rb +11 -5
  175. data/lib/forgejo/models/gpg_key_email.rb +11 -5
  176. data/lib/forgejo/models/hook.rb +11 -5
  177. data/lib/forgejo/models/identity.rb +11 -5
  178. data/lib/forgejo/models/internal_tracker.rb +11 -5
  179. data/lib/forgejo/models/issue.rb +11 -5
  180. data/lib/forgejo/models/issue_config.rb +11 -5
  181. data/lib/forgejo/models/issue_config_contact_link.rb +11 -5
  182. data/lib/forgejo/models/issue_config_validation.rb +11 -5
  183. data/lib/forgejo/models/issue_deadline.rb +11 -5
  184. data/lib/forgejo/models/issue_form_field.rb +11 -5
  185. data/lib/forgejo/models/issue_labels_option.rb +11 -5
  186. data/lib/forgejo/models/issue_meta.rb +11 -5
  187. data/lib/forgejo/models/issue_template.rb +11 -5
  188. data/lib/forgejo/models/label.rb +11 -5
  189. data/lib/forgejo/models/label_template.rb +11 -5
  190. data/lib/forgejo/models/license_template_info.rb +11 -5
  191. data/lib/forgejo/models/licenses_template_list_entry.rb +11 -5
  192. data/lib/forgejo/models/markdown_option.rb +11 -5
  193. data/lib/forgejo/models/markup_option.rb +22 -6
  194. data/lib/forgejo/models/merge_pull_request_option.rb +11 -5
  195. data/lib/forgejo/models/migrate_repo_options.rb +31 -5
  196. data/lib/forgejo/models/milestone.rb +11 -5
  197. data/lib/forgejo/models/new_issue_pins_allowed.rb +11 -5
  198. data/lib/forgejo/models/node_info.rb +11 -5
  199. data/lib/forgejo/models/node_info_services.rb +11 -5
  200. data/lib/forgejo/models/node_info_software.rb +11 -5
  201. data/lib/forgejo/models/node_info_usage.rb +11 -5
  202. data/lib/forgejo/models/node_info_usage_users.rb +11 -5
  203. data/lib/forgejo/models/note.rb +11 -5
  204. data/lib/forgejo/models/note_options.rb +220 -0
  205. data/lib/forgejo/models/notification_count.rb +11 -5
  206. data/lib/forgejo/models/notification_subject.rb +11 -5
  207. data/lib/forgejo/models/notification_thread.rb +11 -5
  208. data/lib/forgejo/models/o_auth2_application.rb +11 -5
  209. data/lib/forgejo/models/organization.rb +11 -5
  210. data/lib/forgejo/models/organization_permissions.rb +11 -5
  211. data/lib/forgejo/models/package.rb +11 -5
  212. data/lib/forgejo/models/package_file.rb +11 -5
  213. data/lib/forgejo/models/payload_commit.rb +11 -5
  214. data/lib/forgejo/models/payload_commit_verification.rb +11 -5
  215. data/lib/forgejo/models/payload_user.rb +11 -5
  216. data/lib/forgejo/models/permission.rb +11 -5
  217. data/lib/forgejo/models/pr_branch_info.rb +11 -5
  218. data/lib/forgejo/models/public_key.rb +11 -5
  219. data/lib/forgejo/models/pull_request.rb +23 -6
  220. data/lib/forgejo/models/pull_request_meta.rb +11 -5
  221. data/lib/forgejo/models/pull_review.rb +11 -5
  222. data/lib/forgejo/models/pull_review_comment.rb +11 -5
  223. data/lib/forgejo/models/pull_review_request_options.rb +11 -5
  224. data/lib/forgejo/models/push_mirror.rb +21 -6
  225. data/lib/forgejo/models/quota_group.rb +234 -0
  226. data/lib/forgejo/models/quota_info.rb +233 -0
  227. data/lib/forgejo/models/quota_rule_info.rb +244 -0
  228. data/lib/forgejo/models/quota_used.rb +221 -0
  229. data/lib/forgejo/models/quota_used_artifact.rb +242 -0
  230. data/lib/forgejo/models/quota_used_attachment.rb +251 -0
  231. data/lib/forgejo/models/quota_used_attachment_contained_in.rb +232 -0
  232. data/lib/forgejo/models/quota_used_package.rb +262 -0
  233. data/lib/forgejo/models/quota_used_size.rb +239 -0
  234. data/lib/forgejo/models/quota_used_size_assets.rb +240 -0
  235. data/lib/forgejo/models/quota_used_size_assets_attachments.rb +232 -0
  236. data/lib/forgejo/models/quota_used_size_assets_packages.rb +222 -0
  237. data/lib/forgejo/models/quota_used_size_git.rb +222 -0
  238. data/lib/forgejo/models/quota_used_size_repos.rb +232 -0
  239. data/lib/forgejo/models/reaction.rb +11 -5
  240. data/lib/forgejo/models/reference.rb +11 -5
  241. data/lib/forgejo/models/release.rb +11 -5
  242. data/lib/forgejo/models/rename_user_option.rb +21 -5
  243. data/lib/forgejo/models/replace_flags_option.rb +11 -5
  244. data/lib/forgejo/models/repo_collaborator_permission.rb +11 -5
  245. data/lib/forgejo/models/repo_commit.rb +11 -5
  246. data/lib/forgejo/models/repo_create_release_attachment_request.rb +26 -10
  247. data/lib/forgejo/models/repo_topic_options.rb +11 -5
  248. data/lib/forgejo/models/repo_transfer.rb +11 -5
  249. data/lib/forgejo/models/repository.rb +21 -6
  250. data/lib/forgejo/models/repository_meta.rb +11 -5
  251. data/lib/forgejo/models/search_results.rb +11 -5
  252. data/lib/forgejo/models/secret.rb +11 -5
  253. data/lib/forgejo/models/server_version.rb +11 -5
  254. data/lib/forgejo/models/set_user_quota_groups_options.rb +241 -0
  255. data/lib/forgejo/models/stop_watch.rb +11 -5
  256. data/lib/forgejo/models/submit_pull_review_options.rb +11 -5
  257. data/lib/forgejo/models/tag.rb +11 -5
  258. data/lib/forgejo/models/tag_archive_download_count.rb +11 -5
  259. data/lib/forgejo/models/tag_protection.rb +11 -5
  260. data/lib/forgejo/models/team.rb +11 -5
  261. data/lib/forgejo/models/team_search200_response.rb +11 -5
  262. data/lib/forgejo/models/timeline_comment.rb +11 -5
  263. data/lib/forgejo/models/topic_name.rb +11 -5
  264. data/lib/forgejo/models/topic_response.rb +11 -5
  265. data/lib/forgejo/models/tracked_time.rb +11 -5
  266. data/lib/forgejo/models/transfer_repo_option.rb +21 -5
  267. data/lib/forgejo/models/update_branch_repo_option.rb +239 -0
  268. data/lib/forgejo/models/update_file_options.rb +31 -5
  269. data/lib/forgejo/models/update_repo_avatar_option.rb +11 -5
  270. data/lib/forgejo/models/update_user_avatar_option.rb +11 -5
  271. data/lib/forgejo/models/update_variable_option.rb +21 -5
  272. data/lib/forgejo/models/user.rb +11 -5
  273. data/lib/forgejo/models/user_heatmap_data.rb +11 -5
  274. data/lib/forgejo/models/user_search200_response.rb +11 -5
  275. data/lib/forgejo/models/user_settings.rb +11 -5
  276. data/lib/forgejo/models/user_settings_options.rb +11 -5
  277. data/lib/forgejo/models/watch_info.rb +11 -5
  278. data/lib/forgejo/models/wiki_commit.rb +11 -5
  279. data/lib/forgejo/models/wiki_commit_list.rb +11 -5
  280. data/lib/forgejo/models/wiki_page.rb +11 -5
  281. data/lib/forgejo/models/wiki_page_meta_data.rb +11 -5
  282. data/lib/forgejo/version.rb +3 -3
  283. data/lib/forgejo.rb +28 -2
  284. data/manifest.scm +6 -2
  285. data/openapi-generator-cli.jar +0 -0
  286. data/pom.xml~ +22 -0
  287. data/smoke +1 -1
  288. data/spec/models/api_forbidden_error_spec.rb +42 -0
  289. data/spec/models/api_invalid_topics_error_spec.rb +42 -0
  290. data/spec/models/api_not_found_spec.rb +48 -0
  291. data/spec/models/api_repo_archived_error_spec.rb +42 -0
  292. data/spec/models/api_unauthorized_error_spec.rb +42 -0
  293. data/spec/models/api_validation_error_spec.rb +42 -0
  294. data/spec/models/create_quota_group_options_spec.rb +42 -0
  295. data/spec/models/create_quota_rule_options_spec.rb +48 -0
  296. data/spec/models/edit_quota_rule_options_spec.rb +42 -0
  297. data/spec/models/note_options_spec.rb +36 -0
  298. data/spec/models/quota_group_spec.rb +42 -0
  299. data/spec/models/quota_info_spec.rb +42 -0
  300. data/spec/models/quota_rule_info_spec.rb +48 -0
  301. data/spec/models/quota_used_artifact_spec.rb +48 -0
  302. data/spec/models/quota_used_attachment_contained_in_spec.rb +42 -0
  303. data/spec/models/quota_used_attachment_spec.rb +54 -0
  304. data/spec/models/quota_used_package_spec.rb +60 -0
  305. data/spec/models/quota_used_size_assets_attachments_spec.rb +42 -0
  306. data/spec/models/quota_used_size_assets_packages_spec.rb +36 -0
  307. data/spec/models/quota_used_size_assets_spec.rb +48 -0
  308. data/spec/models/quota_used_size_git_spec.rb +36 -0
  309. data/spec/models/quota_used_size_repos_spec.rb +42 -0
  310. data/spec/models/quota_used_size_spec.rb +48 -0
  311. data/spec/models/quota_used_spec.rb +36 -0
  312. data/spec/models/set_user_quota_groups_options_spec.rb +36 -0
  313. data/spec/models/update_branch_repo_option_spec.rb +36 -0
  314. data/spec/spec_helper.rb +2 -2
  315. data/swagger.v1.json +2563 -338
  316. data/swagger.v1.patched.json +1 -1
  317. metadata +291 -182
  318. data/LICENSE~ +0 -9
  319. data/Makefile~ +0 -2
  320. data/patch~ +0 -1
  321. data/smoke~ +0 -1
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -28,8 +28,32 @@ module Forgejo
28
28
 
29
29
  attr_accessor :size
30
30
 
31
+ attr_accessor :type
32
+
31
33
  attr_accessor :uuid
32
34
 
35
+ class EnumAttributeValidator
36
+ attr_reader :datatype
37
+ attr_reader :allowable_values
38
+
39
+ def initialize(datatype, allowable_values)
40
+ @allowable_values = allowable_values.map do |value|
41
+ case datatype.to_s
42
+ when /Integer/i
43
+ value.to_i
44
+ when /Float/i
45
+ value.to_f
46
+ else
47
+ value
48
+ end
49
+ end
50
+ end
51
+
52
+ def valid?(value)
53
+ !value || allowable_values.include?(value)
54
+ end
55
+ end
56
+
33
57
  # Attribute mapping from ruby-style variable name to JSON key.
34
58
  def self.attribute_map
35
59
  {
@@ -39,13 +63,19 @@ module Forgejo
39
63
  :'id' => :'id',
40
64
  :'name' => :'name',
41
65
  :'size' => :'size',
66
+ :'type' => :'type',
42
67
  :'uuid' => :'uuid'
43
68
  }
44
69
  end
45
70
 
71
+ # Returns attribute mapping this model knows about
72
+ def self.acceptable_attribute_map
73
+ attribute_map
74
+ end
75
+
46
76
  # Returns all the JSON keys this model knows about
47
77
  def self.acceptable_attributes
48
- attribute_map.values
78
+ acceptable_attribute_map.values
49
79
  end
50
80
 
51
81
  # Attribute type mapping.
@@ -57,6 +87,7 @@ module Forgejo
57
87
  :'id' => :'Integer',
58
88
  :'name' => :'String',
59
89
  :'size' => :'Integer',
90
+ :'type' => :'String',
60
91
  :'uuid' => :'String'
61
92
  }
62
93
  end
@@ -75,9 +106,10 @@ module Forgejo
75
106
  end
76
107
 
77
108
  # check to see if the attribute exists and convert string to symbol for hash key
109
+ acceptable_attribute_map = self.class.acceptable_attribute_map
78
110
  attributes = attributes.each_with_object({}) { |(k, v), h|
79
- if (!self.class.attribute_map.key?(k.to_sym))
80
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Attachment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
111
+ if (!acceptable_attribute_map.key?(k.to_sym))
112
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Attachment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
81
113
  end
82
114
  h[k.to_sym] = v
83
115
  }
@@ -106,6 +138,10 @@ module Forgejo
106
138
  self.size = attributes[:'size']
107
139
  end
108
140
 
141
+ if attributes.key?(:'type')
142
+ self.type = attributes[:'type']
143
+ end
144
+
109
145
  if attributes.key?(:'uuid')
110
146
  self.uuid = attributes[:'uuid']
111
147
  end
@@ -123,9 +159,21 @@ module Forgejo
123
159
  # @return true if the model is valid
124
160
  def valid?
125
161
  warn '[DEPRECATED] the `valid?` method is obsolete'
162
+ type_validator = EnumAttributeValidator.new('String', ["attachment", "external"])
163
+ return false unless type_validator.valid?(@type)
126
164
  true
127
165
  end
128
166
 
167
+ # Custom attribute writer method checking allowed values (enum).
168
+ # @param [Object] type Object to be assigned
169
+ def type=(type)
170
+ validator = EnumAttributeValidator.new('String', ["attachment", "external"])
171
+ unless validator.valid?(type)
172
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
173
+ end
174
+ @type = type
175
+ end
176
+
129
177
  # Checks equality by comparing each attribute.
130
178
  # @param [Object] Object to be compared
131
179
  def ==(o)
@@ -137,6 +185,7 @@ module Forgejo
137
185
  id == o.id &&
138
186
  name == o.name &&
139
187
  size == o.size &&
188
+ type == o.type &&
140
189
  uuid == o.uuid
141
190
  end
142
191
 
@@ -149,7 +198,7 @@ module Forgejo
149
198
  # Calculates hash code according to all attributes.
150
199
  # @return [Integer] Hash code
151
200
  def hash
152
- [browser_download_url, created_at, download_count, id, name, size, uuid].hash
201
+ [browser_download_url, created_at, download_count, id, name, size, type, uuid].hash
153
202
  end
154
203
 
155
204
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -27,9 +27,14 @@ module Forgejo
27
27
  }
28
28
  end
29
29
 
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
30
35
  # Returns all the JSON keys this model knows about
31
36
  def self.acceptable_attributes
32
- attribute_map.values
37
+ acceptable_attribute_map.values
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
@@ -54,9 +59,10 @@ module Forgejo
54
59
  end
55
60
 
56
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
57
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
- if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::BlockedUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::BlockedUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
60
66
  end
61
67
  h[k.to_sym] = v
62
68
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -49,9 +49,14 @@ module Forgejo
49
49
  }
50
50
  end
51
51
 
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
52
57
  # Returns all the JSON keys this model knows about
53
58
  def self.acceptable_attributes
54
- attribute_map.values
59
+ acceptable_attribute_map.values
55
60
  end
56
61
 
57
62
  # Attribute type mapping.
@@ -83,9 +88,10 @@ module Forgejo
83
88
  end
84
89
 
85
90
  # check to see if the attribute exists and convert string to symbol for hash key
91
+ acceptable_attribute_map = self.class.acceptable_attribute_map
86
92
  attributes = attributes.each_with_object({}) { |(k, v), h|
87
- if (!self.class.attribute_map.key?(k.to_sym))
88
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Branch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ if (!acceptable_attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Branch`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
89
95
  end
90
96
  h[k.to_sym] = v
91
97
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -104,9 +104,14 @@ module Forgejo
104
104
  }
105
105
  end
106
106
 
107
+ # Returns attribute mapping this model knows about
108
+ def self.acceptable_attribute_map
109
+ attribute_map
110
+ end
111
+
107
112
  # Returns all the JSON keys this model knows about
108
113
  def self.acceptable_attributes
109
- attribute_map.values
114
+ acceptable_attribute_map.values
110
115
  end
111
116
 
112
117
  # Attribute type mapping.
@@ -156,9 +161,10 @@ module Forgejo
156
161
  end
157
162
 
158
163
  # check to see if the attribute exists and convert string to symbol for hash key
164
+ acceptable_attribute_map = self.class.acceptable_attribute_map
159
165
  attributes = attributes.each_with_object({}) { |(k, v), h|
160
- if (!self.class.attribute_map.key?(k.to_sym))
161
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::BranchProtection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
166
+ if (!acceptable_attribute_map.key?(k.to_sym))
167
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::BranchProtection`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
162
168
  end
163
169
  h[k.to_sym] = v
164
170
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -64,9 +64,14 @@ module Forgejo
64
64
  }
65
65
  end
66
66
 
67
+ # Returns attribute mapping this model knows about
68
+ def self.acceptable_attribute_map
69
+ attribute_map
70
+ end
71
+
67
72
  # Returns all the JSON keys this model knows about
68
73
  def self.acceptable_attributes
69
- attribute_map.values
74
+ acceptable_attribute_map.values
70
75
  end
71
76
 
72
77
  # Attribute type mapping.
@@ -94,9 +99,10 @@ module Forgejo
94
99
  end
95
100
 
96
101
  # check to see if the attribute exists and convert string to symbol for hash key
102
+ acceptable_attribute_map = self.class.acceptable_attribute_map
97
103
  attributes = attributes.each_with_object({}) { |(k, v), h|
98
- if (!self.class.attribute_map.key?(k.to_sym))
99
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::ChangeFileOperation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
104
+ if (!acceptable_attribute_map.key?(k.to_sym))
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::ChangeFileOperation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
100
106
  end
101
107
  h[k.to_sym] = v
102
108
  }
@@ -163,6 +169,16 @@ module Forgejo
163
169
  @operation = operation
164
170
  end
165
171
 
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] path Value to be assigned
174
+ def path=(path)
175
+ if path.nil?
176
+ fail ArgumentError, 'path cannot be nil'
177
+ end
178
+
179
+ @path = path
180
+ end
181
+
166
182
  # Checks equality by comparing each attribute.
167
183
  # @param [Object] Object to be compared
168
184
  def ==(o)
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -51,9 +51,14 @@ module Forgejo
51
51
  }
52
52
  end
53
53
 
54
+ # Returns attribute mapping this model knows about
55
+ def self.acceptable_attribute_map
56
+ attribute_map
57
+ end
58
+
54
59
  # Returns all the JSON keys this model knows about
55
60
  def self.acceptable_attributes
56
- attribute_map.values
61
+ acceptable_attribute_map.values
57
62
  end
58
63
 
59
64
  # Attribute type mapping.
@@ -84,9 +89,10 @@ module Forgejo
84
89
  end
85
90
 
86
91
  # check to see if the attribute exists and convert string to symbol for hash key
92
+ acceptable_attribute_map = self.class.acceptable_attribute_map
87
93
  attributes = attributes.each_with_object({}) { |(k, v), h|
88
- if (!self.class.attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::ChangeFilesOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
94
+ if (!acceptable_attribute_map.key?(k.to_sym))
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::ChangeFilesOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
96
  end
91
97
  h[k.to_sym] = v
92
98
  }
@@ -148,6 +154,16 @@ module Forgejo
148
154
  true
149
155
  end
150
156
 
157
+ # Custom attribute writer method with validation
158
+ # @param [Object] files Value to be assigned
159
+ def files=(files)
160
+ if files.nil?
161
+ fail ArgumentError, 'files cannot be nil'
162
+ end
163
+
164
+ @files = files
165
+ end
166
+
151
167
  # Checks equality by comparing each attribute.
152
168
  # @param [Object] Object to be compared
153
169
  def ==(o)
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -49,9 +49,14 @@ module Forgejo
49
49
  }
50
50
  end
51
51
 
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
52
57
  # Returns all the JSON keys this model knows about
53
58
  def self.acceptable_attributes
54
- attribute_map.values
59
+ acceptable_attribute_map.values
55
60
  end
56
61
 
57
62
  # Attribute type mapping.
@@ -83,9 +88,10 @@ module Forgejo
83
88
  end
84
89
 
85
90
  # check to see if the attribute exists and convert string to symbol for hash key
91
+ acceptable_attribute_map = self.class.acceptable_attribute_map
86
92
  attributes = attributes.each_with_object({}) { |(k, v), h|
87
- if (!self.class.attribute_map.key?(k.to_sym))
88
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::ChangedFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ if (!acceptable_attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::ChangedFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
89
95
  end
90
96
  h[k.to_sym] = v
91
97
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -44,9 +44,14 @@ module Forgejo
44
44
  }
45
45
  end
46
46
 
47
+ # Returns attribute mapping this model knows about
48
+ def self.acceptable_attribute_map
49
+ attribute_map
50
+ end
51
+
47
52
  # Returns all the JSON keys this model knows about
48
53
  def self.acceptable_attributes
49
- attribute_map.values
54
+ acceptable_attribute_map.values
50
55
  end
51
56
 
52
57
  # Attribute type mapping.
@@ -76,9 +81,10 @@ module Forgejo
76
81
  end
77
82
 
78
83
  # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
79
85
  attributes = attributes.each_with_object({}) { |(k, v), h|
80
- if (!self.class.attribute_map.key?(k.to_sym))
81
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CombinedStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CombinedStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
82
88
  end
83
89
  h[k.to_sym] = v
84
90
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -55,9 +55,14 @@ module Forgejo
55
55
  }
56
56
  end
57
57
 
58
+ # Returns attribute mapping this model knows about
59
+ def self.acceptable_attribute_map
60
+ attribute_map
61
+ end
62
+
58
63
  # Returns all the JSON keys this model knows about
59
64
  def self.acceptable_attributes
60
- attribute_map.values
65
+ acceptable_attribute_map.values
61
66
  end
62
67
 
63
68
  # Attribute type mapping.
@@ -91,9 +96,10 @@ module Forgejo
91
96
  end
92
97
 
93
98
  # check to see if the attribute exists and convert string to symbol for hash key
99
+ acceptable_attribute_map = self.class.acceptable_attribute_map
94
100
  attributes = attributes.each_with_object({}) { |(k, v), h|
95
- if (!self.class.attribute_map.key?(k.to_sym))
96
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Comment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
101
+ if (!acceptable_attribute_map.key?(k.to_sym))
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Comment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
97
103
  end
98
104
  h[k.to_sym] = v
99
105
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -51,9 +51,14 @@ module Forgejo
51
51
  }
52
52
  end
53
53
 
54
+ # Returns attribute mapping this model knows about
55
+ def self.acceptable_attribute_map
56
+ attribute_map
57
+ end
58
+
54
59
  # Returns all the JSON keys this model knows about
55
60
  def self.acceptable_attributes
56
- attribute_map.values
61
+ acceptable_attribute_map.values
57
62
  end
58
63
 
59
64
  # Attribute type mapping.
@@ -86,9 +91,10 @@ module Forgejo
86
91
  end
87
92
 
88
93
  # check to see if the attribute exists and convert string to symbol for hash key
94
+ acceptable_attribute_map = self.class.acceptable_attribute_map
89
95
  attributes = attributes.each_with_object({}) { |(k, v), h|
90
- if (!self.class.attribute_map.key?(k.to_sym))
91
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Commit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
+ if (!acceptable_attribute_map.key?(k.to_sym))
97
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Commit`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
92
98
  end
93
99
  h[k.to_sym] = v
94
100
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -28,9 +28,14 @@ module Forgejo
28
28
  }
29
29
  end
30
30
 
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
31
36
  # Returns all the JSON keys this model knows about
32
37
  def self.acceptable_attributes
33
- attribute_map.values
38
+ acceptable_attribute_map.values
34
39
  end
35
40
 
36
41
  # Attribute type mapping.
@@ -55,9 +60,10 @@ module Forgejo
55
60
  end
56
61
 
57
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
58
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
- if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CommitAffectedFiles`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CommitAffectedFiles`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
67
  end
62
68
  h[k.to_sym] = v
63
69
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -28,9 +28,14 @@ module Forgejo
28
28
  }
29
29
  end
30
30
 
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
31
36
  # Returns all the JSON keys this model knows about
32
37
  def self.acceptable_attributes
33
- attribute_map.values
38
+ acceptable_attribute_map.values
34
39
  end
35
40
 
36
41
  # Attribute type mapping.
@@ -55,9 +60,10 @@ module Forgejo
55
60
  end
56
61
 
57
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
58
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
- if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CommitDateOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CommitDateOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
67
  end
62
68
  h[k.to_sym] = v
63
69
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This documentation describes the Forgejo API.
5
5
 
6
- The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
6
+ The version of the OpenAPI document: 10.0.0-121-28886cd+gitea-1.22.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -30,9 +30,14 @@ module Forgejo
30
30
  }
31
31
  end
32
32
 
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
33
38
  # Returns all the JSON keys this model knows about
34
39
  def self.acceptable_attributes
35
- attribute_map.values
40
+ acceptable_attribute_map.values
36
41
  end
37
42
 
38
43
  # Attribute type mapping.
@@ -58,9 +63,10 @@ module Forgejo
58
63
  end
59
64
 
60
65
  # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
67
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
- if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CommitMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::CommitMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
70
  end
65
71
  h[k.to_sym] = v
66
72
  }