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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CHANGELOG.md~ +3 -0
- data/Makefile +16 -16
- data/README.md +68 -12
- data/config.yaml +21 -0
- data/config.yaml~ +13 -0
- data/docs/APIForbiddenError.md +20 -0
- data/docs/APIInvalidTopicsError.md +20 -0
- data/docs/APINotFound.md +22 -0
- data/docs/APIRepoArchivedError.md +20 -0
- data/docs/APIUnauthorizedError.md +20 -0
- data/docs/APIValidationError.md +20 -0
- data/docs/ActivitypubApi.md +133 -0
- data/docs/AdminApi.md +1305 -184
- data/docs/Attachment.md +2 -0
- data/docs/CreatePushMirrorOption.md +3 -1
- data/docs/CreateQuotaGroupOptions.md +20 -0
- data/docs/CreateQuotaRuleOptions.md +22 -0
- data/docs/EditAttachmentOptions.md +2 -0
- data/docs/EditQuotaRuleOptions.md +20 -0
- data/docs/EditRepoOption.md +2 -0
- data/docs/IssueApi.md +55 -55
- data/docs/MarkupOption.md +2 -0
- data/docs/NoteOptions.md +18 -0
- data/docs/OrganizationApi.md +386 -19
- data/docs/PackageApi.md +1 -1
- data/docs/PullRequest.md +2 -0
- data/docs/PushMirror.md +2 -0
- data/docs/QuotaGroup.md +20 -0
- data/docs/QuotaInfo.md +20 -0
- data/docs/QuotaRuleInfo.md +22 -0
- data/docs/QuotaUsed.md +18 -0
- data/docs/QuotaUsedArtifact.md +22 -0
- data/docs/QuotaUsedAttachment.md +24 -0
- data/docs/QuotaUsedAttachmentContainedIn.md +20 -0
- data/docs/QuotaUsedPackage.md +26 -0
- data/docs/QuotaUsedSize.md +22 -0
- data/docs/QuotaUsedSizeAssets.md +22 -0
- data/docs/QuotaUsedSizeAssetsAttachments.md +20 -0
- data/docs/QuotaUsedSizeAssetsPackages.md +18 -0
- data/docs/QuotaUsedSizeGit.md +18 -0
- data/docs/QuotaUsedSizeRepos.md +20 -0
- data/docs/RepoCreateReleaseAttachmentRequest.md +4 -2
- data/docs/Repository.md +2 -0
- data/docs/RepositoryApi.md +308 -72
- data/docs/SetUserQuotaGroupsOptions.md +18 -0
- data/docs/UpdateBranchRepoOption.md +18 -0
- data/docs/UserApi.md +390 -33
- data/forgejo.gemspec +12 -13
- data/lib/forgejo/api/activitypub_api.rb +110 -2
- data/lib/forgejo/api/admin_api.rb +1148 -109
- data/lib/forgejo/api/issue_api.rb +94 -36
- data/lib/forgejo/api/miscellaneous_api.rb +2 -2
- data/lib/forgejo/api/notification_api.rb +2 -2
- data/lib/forgejo/api/organization_api.rb +363 -2
- data/lib/forgejo/api/package_api.rb +4 -2
- data/lib/forgejo/api/repository_api.rb +370 -26
- data/lib/forgejo/api/settings_api.rb +2 -2
- data/lib/forgejo/api/user_api.rb +350 -8
- data/lib/forgejo/api_client.rb +2 -2
- data/lib/forgejo/api_error.rb +2 -2
- data/lib/forgejo/configuration.rb +2 -2
- data/lib/forgejo/models/access_token.rb +11 -5
- data/lib/forgejo/models/action_task.rb +11 -5
- data/lib/forgejo/models/action_task_response.rb +11 -5
- data/lib/forgejo/models/action_variable.rb +11 -5
- data/lib/forgejo/models/activity.rb +11 -5
- data/lib/forgejo/models/activity_pub.rb +11 -5
- data/lib/forgejo/models/add_collaborator_option.rb +45 -5
- data/lib/forgejo/models/add_time_option.rb +21 -5
- data/lib/forgejo/models/annotated_tag.rb +11 -5
- data/lib/forgejo/models/annotated_tag_object.rb +11 -5
- data/lib/forgejo/models/api_error.rb +11 -5
- data/lib/forgejo/models/api_forbidden_error.rb +229 -0
- data/lib/forgejo/models/api_invalid_topics_error.rb +231 -0
- data/lib/forgejo/models/api_not_found.rb +240 -0
- data/lib/forgejo/models/api_repo_archived_error.rb +229 -0
- data/lib/forgejo/models/api_unauthorized_error.rb +229 -0
- data/lib/forgejo/models/api_validation_error.rb +229 -0
- data/lib/forgejo/models/attachment.rb +55 -6
- data/lib/forgejo/models/blocked_user.rb +11 -5
- data/lib/forgejo/models/branch.rb +11 -5
- data/lib/forgejo/models/branch_protection.rb +11 -5
- data/lib/forgejo/models/change_file_operation.rb +21 -5
- data/lib/forgejo/models/change_files_options.rb +21 -5
- data/lib/forgejo/models/changed_file.rb +11 -5
- data/lib/forgejo/models/combined_status.rb +11 -5
- data/lib/forgejo/models/comment.rb +11 -5
- data/lib/forgejo/models/commit.rb +11 -5
- data/lib/forgejo/models/commit_affected_files.rb +11 -5
- data/lib/forgejo/models/commit_date_options.rb +11 -5
- data/lib/forgejo/models/commit_meta.rb +11 -5
- data/lib/forgejo/models/commit_stats.rb +11 -5
- data/lib/forgejo/models/commit_status.rb +11 -5
- data/lib/forgejo/models/commit_user.rb +11 -5
- data/lib/forgejo/models/compare.rb +11 -5
- data/lib/forgejo/models/contents_response.rb +11 -5
- data/lib/forgejo/models/create_access_token_option.rb +21 -5
- data/lib/forgejo/models/create_branch_protection_option.rb +11 -5
- data/lib/forgejo/models/create_branch_repo_option.rb +21 -5
- data/lib/forgejo/models/create_email_option.rb +11 -5
- data/lib/forgejo/models/create_file_options.rb +21 -5
- data/lib/forgejo/models/create_fork_option.rb +11 -5
- data/lib/forgejo/models/create_gpg_key_option.rb +21 -5
- data/lib/forgejo/models/create_hook_option.rb +21 -5
- data/lib/forgejo/models/create_issue_comment_option.rb +21 -5
- data/lib/forgejo/models/create_issue_option.rb +21 -5
- data/lib/forgejo/models/create_key_option.rb +31 -5
- data/lib/forgejo/models/create_label_option.rb +31 -5
- data/lib/forgejo/models/create_milestone_option.rb +11 -5
- data/lib/forgejo/models/create_o_auth2_application_options.rb +11 -5
- data/lib/forgejo/models/create_or_update_secret_option.rb +21 -5
- data/lib/forgejo/models/create_org_option.rb +21 -5
- data/lib/forgejo/models/create_pull_request_option.rb +11 -5
- data/lib/forgejo/models/create_pull_review_comment.rb +11 -5
- data/lib/forgejo/models/create_pull_review_options.rb +11 -5
- data/lib/forgejo/models/create_push_mirror_option.rb +24 -9
- data/lib/forgejo/models/create_quota_group_options.rb +234 -0
- data/lib/forgejo/models/create_quota_rule_options.rb +244 -0
- data/lib/forgejo/models/create_release_option.rb +21 -5
- data/lib/forgejo/models/create_repo_option.rb +21 -5
- data/lib/forgejo/models/create_status_option.rb +11 -5
- data/lib/forgejo/models/create_tag_option.rb +21 -5
- data/lib/forgejo/models/create_tag_protection_option.rb +11 -5
- data/lib/forgejo/models/create_team_option.rb +21 -5
- data/lib/forgejo/models/create_user_option.rb +31 -5
- data/lib/forgejo/models/create_variable_option.rb +21 -5
- data/lib/forgejo/models/create_wiki_page_options.rb +11 -5
- data/lib/forgejo/models/cron.rb +11 -5
- data/lib/forgejo/models/delete_email_option.rb +11 -5
- data/lib/forgejo/models/delete_file_options.rb +21 -5
- data/lib/forgejo/models/delete_labels_option.rb +11 -5
- data/lib/forgejo/models/deploy_key.rb +11 -5
- data/lib/forgejo/models/dismiss_pull_review_options.rb +11 -5
- data/lib/forgejo/models/dispatch_workflow_option.rb +21 -5
- data/lib/forgejo/models/edit_attachment_options.rb +22 -6
- data/lib/forgejo/models/edit_branch_protection_option.rb +11 -5
- data/lib/forgejo/models/edit_deadline_option.rb +21 -5
- data/lib/forgejo/models/edit_git_hook_option.rb +11 -5
- data/lib/forgejo/models/edit_hook_option.rb +11 -5
- data/lib/forgejo/models/edit_issue_comment_option.rb +21 -5
- data/lib/forgejo/models/edit_issue_option.rb +11 -5
- data/lib/forgejo/models/edit_label_option.rb +11 -5
- data/lib/forgejo/models/edit_milestone_option.rb +11 -5
- data/lib/forgejo/models/edit_org_option.rb +11 -5
- data/lib/forgejo/models/edit_pull_request_option.rb +11 -5
- data/lib/forgejo/models/edit_quota_rule_options.rb +234 -0
- data/lib/forgejo/models/edit_reaction_option.rb +11 -5
- data/lib/forgejo/models/edit_release_option.rb +11 -5
- data/lib/forgejo/models/edit_repo_option.rb +22 -6
- data/lib/forgejo/models/edit_tag_protection_option.rb +11 -5
- data/lib/forgejo/models/edit_team_option.rb +21 -5
- data/lib/forgejo/models/edit_user_option.rb +11 -5
- data/lib/forgejo/models/email.rb +11 -5
- data/lib/forgejo/models/external_tracker.rb +11 -5
- data/lib/forgejo/models/external_wiki.rb +11 -5
- data/lib/forgejo/models/file_commit_response.rb +11 -5
- data/lib/forgejo/models/file_delete_response.rb +11 -5
- data/lib/forgejo/models/file_links_response.rb +11 -5
- data/lib/forgejo/models/file_response.rb +11 -5
- data/lib/forgejo/models/files_response.rb +11 -5
- data/lib/forgejo/models/general_api_settings.rb +11 -5
- data/lib/forgejo/models/general_attachment_settings.rb +11 -5
- data/lib/forgejo/models/general_repo_settings.rb +11 -5
- data/lib/forgejo/models/general_ui_settings.rb +11 -5
- data/lib/forgejo/models/generate_repo_option.rb +31 -5
- data/lib/forgejo/models/git_blob_response.rb +11 -5
- data/lib/forgejo/models/git_entry.rb +11 -5
- data/lib/forgejo/models/git_hook.rb +11 -5
- data/lib/forgejo/models/git_object.rb +11 -5
- data/lib/forgejo/models/git_tree_response.rb +11 -5
- data/lib/forgejo/models/gitignore_template_info.rb +11 -5
- data/lib/forgejo/models/gpg_key.rb +11 -5
- data/lib/forgejo/models/gpg_key_email.rb +11 -5
- data/lib/forgejo/models/hook.rb +11 -5
- data/lib/forgejo/models/identity.rb +11 -5
- data/lib/forgejo/models/internal_tracker.rb +11 -5
- data/lib/forgejo/models/issue.rb +11 -5
- data/lib/forgejo/models/issue_config.rb +11 -5
- data/lib/forgejo/models/issue_config_contact_link.rb +11 -5
- data/lib/forgejo/models/issue_config_validation.rb +11 -5
- data/lib/forgejo/models/issue_deadline.rb +11 -5
- data/lib/forgejo/models/issue_form_field.rb +11 -5
- data/lib/forgejo/models/issue_labels_option.rb +11 -5
- data/lib/forgejo/models/issue_meta.rb +11 -5
- data/lib/forgejo/models/issue_template.rb +11 -5
- data/lib/forgejo/models/label.rb +11 -5
- data/lib/forgejo/models/label_template.rb +11 -5
- data/lib/forgejo/models/license_template_info.rb +11 -5
- data/lib/forgejo/models/licenses_template_list_entry.rb +11 -5
- data/lib/forgejo/models/markdown_option.rb +11 -5
- data/lib/forgejo/models/markup_option.rb +22 -6
- data/lib/forgejo/models/merge_pull_request_option.rb +11 -5
- data/lib/forgejo/models/migrate_repo_options.rb +31 -5
- data/lib/forgejo/models/milestone.rb +11 -5
- data/lib/forgejo/models/new_issue_pins_allowed.rb +11 -5
- data/lib/forgejo/models/node_info.rb +11 -5
- data/lib/forgejo/models/node_info_services.rb +11 -5
- data/lib/forgejo/models/node_info_software.rb +11 -5
- data/lib/forgejo/models/node_info_usage.rb +11 -5
- data/lib/forgejo/models/node_info_usage_users.rb +11 -5
- data/lib/forgejo/models/note.rb +11 -5
- data/lib/forgejo/models/note_options.rb +220 -0
- data/lib/forgejo/models/notification_count.rb +11 -5
- data/lib/forgejo/models/notification_subject.rb +11 -5
- data/lib/forgejo/models/notification_thread.rb +11 -5
- data/lib/forgejo/models/o_auth2_application.rb +11 -5
- data/lib/forgejo/models/organization.rb +11 -5
- data/lib/forgejo/models/organization_permissions.rb +11 -5
- data/lib/forgejo/models/package.rb +11 -5
- data/lib/forgejo/models/package_file.rb +11 -5
- data/lib/forgejo/models/payload_commit.rb +11 -5
- data/lib/forgejo/models/payload_commit_verification.rb +11 -5
- data/lib/forgejo/models/payload_user.rb +11 -5
- data/lib/forgejo/models/permission.rb +11 -5
- data/lib/forgejo/models/pr_branch_info.rb +11 -5
- data/lib/forgejo/models/public_key.rb +11 -5
- data/lib/forgejo/models/pull_request.rb +23 -6
- data/lib/forgejo/models/pull_request_meta.rb +11 -5
- data/lib/forgejo/models/pull_review.rb +11 -5
- data/lib/forgejo/models/pull_review_comment.rb +11 -5
- data/lib/forgejo/models/pull_review_request_options.rb +11 -5
- data/lib/forgejo/models/push_mirror.rb +21 -6
- data/lib/forgejo/models/quota_group.rb +234 -0
- data/lib/forgejo/models/quota_info.rb +233 -0
- data/lib/forgejo/models/quota_rule_info.rb +244 -0
- data/lib/forgejo/models/quota_used.rb +221 -0
- data/lib/forgejo/models/quota_used_artifact.rb +242 -0
- data/lib/forgejo/models/quota_used_attachment.rb +251 -0
- data/lib/forgejo/models/quota_used_attachment_contained_in.rb +232 -0
- data/lib/forgejo/models/quota_used_package.rb +262 -0
- data/lib/forgejo/models/quota_used_size.rb +239 -0
- data/lib/forgejo/models/quota_used_size_assets.rb +240 -0
- data/lib/forgejo/models/quota_used_size_assets_attachments.rb +232 -0
- data/lib/forgejo/models/quota_used_size_assets_packages.rb +222 -0
- data/lib/forgejo/models/quota_used_size_git.rb +222 -0
- data/lib/forgejo/models/quota_used_size_repos.rb +232 -0
- data/lib/forgejo/models/reaction.rb +11 -5
- data/lib/forgejo/models/reference.rb +11 -5
- data/lib/forgejo/models/release.rb +11 -5
- data/lib/forgejo/models/rename_user_option.rb +21 -5
- data/lib/forgejo/models/replace_flags_option.rb +11 -5
- data/lib/forgejo/models/repo_collaborator_permission.rb +11 -5
- data/lib/forgejo/models/repo_commit.rb +11 -5
- data/lib/forgejo/models/repo_create_release_attachment_request.rb +26 -10
- data/lib/forgejo/models/repo_topic_options.rb +11 -5
- data/lib/forgejo/models/repo_transfer.rb +11 -5
- data/lib/forgejo/models/repository.rb +21 -6
- data/lib/forgejo/models/repository_meta.rb +11 -5
- data/lib/forgejo/models/search_results.rb +11 -5
- data/lib/forgejo/models/secret.rb +11 -5
- data/lib/forgejo/models/server_version.rb +11 -5
- data/lib/forgejo/models/set_user_quota_groups_options.rb +241 -0
- data/lib/forgejo/models/stop_watch.rb +11 -5
- data/lib/forgejo/models/submit_pull_review_options.rb +11 -5
- data/lib/forgejo/models/tag.rb +11 -5
- data/lib/forgejo/models/tag_archive_download_count.rb +11 -5
- data/lib/forgejo/models/tag_protection.rb +11 -5
- data/lib/forgejo/models/team.rb +11 -5
- data/lib/forgejo/models/team_search200_response.rb +11 -5
- data/lib/forgejo/models/timeline_comment.rb +11 -5
- data/lib/forgejo/models/topic_name.rb +11 -5
- data/lib/forgejo/models/topic_response.rb +11 -5
- data/lib/forgejo/models/tracked_time.rb +11 -5
- data/lib/forgejo/models/transfer_repo_option.rb +21 -5
- data/lib/forgejo/models/update_branch_repo_option.rb +239 -0
- data/lib/forgejo/models/update_file_options.rb +31 -5
- data/lib/forgejo/models/update_repo_avatar_option.rb +11 -5
- data/lib/forgejo/models/update_user_avatar_option.rb +11 -5
- data/lib/forgejo/models/update_variable_option.rb +21 -5
- data/lib/forgejo/models/user.rb +11 -5
- data/lib/forgejo/models/user_heatmap_data.rb +11 -5
- data/lib/forgejo/models/user_search200_response.rb +11 -5
- data/lib/forgejo/models/user_settings.rb +11 -5
- data/lib/forgejo/models/user_settings_options.rb +11 -5
- data/lib/forgejo/models/watch_info.rb +11 -5
- data/lib/forgejo/models/wiki_commit.rb +11 -5
- data/lib/forgejo/models/wiki_commit_list.rb +11 -5
- data/lib/forgejo/models/wiki_page.rb +11 -5
- data/lib/forgejo/models/wiki_page_meta_data.rb +11 -5
- data/lib/forgejo/version.rb +3 -3
- data/lib/forgejo.rb +28 -2
- data/manifest.scm +6 -2
- data/openapi-generator-cli.jar +0 -0
- data/pom.xml~ +22 -0
- data/smoke +1 -1
- data/spec/models/api_forbidden_error_spec.rb +42 -0
- data/spec/models/api_invalid_topics_error_spec.rb +42 -0
- data/spec/models/api_not_found_spec.rb +48 -0
- data/spec/models/api_repo_archived_error_spec.rb +42 -0
- data/spec/models/api_unauthorized_error_spec.rb +42 -0
- data/spec/models/api_validation_error_spec.rb +42 -0
- data/spec/models/create_quota_group_options_spec.rb +42 -0
- data/spec/models/create_quota_rule_options_spec.rb +48 -0
- data/spec/models/edit_quota_rule_options_spec.rb +42 -0
- data/spec/models/note_options_spec.rb +36 -0
- data/spec/models/quota_group_spec.rb +42 -0
- data/spec/models/quota_info_spec.rb +42 -0
- data/spec/models/quota_rule_info_spec.rb +48 -0
- data/spec/models/quota_used_artifact_spec.rb +48 -0
- data/spec/models/quota_used_attachment_contained_in_spec.rb +42 -0
- data/spec/models/quota_used_attachment_spec.rb +54 -0
- data/spec/models/quota_used_package_spec.rb +60 -0
- data/spec/models/quota_used_size_assets_attachments_spec.rb +42 -0
- data/spec/models/quota_used_size_assets_packages_spec.rb +36 -0
- data/spec/models/quota_used_size_assets_spec.rb +48 -0
- data/spec/models/quota_used_size_git_spec.rb +36 -0
- data/spec/models/quota_used_size_repos_spec.rb +42 -0
- data/spec/models/quota_used_size_spec.rb +48 -0
- data/spec/models/quota_used_spec.rb +36 -0
- data/spec/models/set_user_quota_groups_options_spec.rb +36 -0
- data/spec/models/update_branch_repo_option_spec.rb +36 -0
- data/spec/spec_helper.rb +2 -2
- data/swagger.v1.json +2563 -338
- data/swagger.v1.patched.json +1 -1
- metadata +291 -182
- data/LICENSE~ +0 -9
- data/Makefile~ +0 -2
- data/patch~ +0 -1
- 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:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,9 +31,14 @@ module Forgejo
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
+
# Returns attribute mapping this model knows about
|
35
|
+
def self.acceptable_attribute_map
|
36
|
+
attribute_map
|
37
|
+
end
|
38
|
+
|
34
39
|
# Returns all the JSON keys this model knows about
|
35
40
|
def self.acceptable_attributes
|
36
|
-
|
41
|
+
acceptable_attribute_map.values
|
37
42
|
end
|
38
43
|
|
39
44
|
# Attribute type mapping.
|
@@ -59,9 +64,10 @@ module Forgejo
|
|
59
64
|
end
|
60
65
|
|
61
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
62
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
-
if (!
|
64
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Permission`. Please check the name to make sure it's valid. List of attributes: " +
|
69
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::Permission`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
65
71
|
end
|
66
72
|
h[k.to_sym] = v
|
67
73
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This documentation describes the Forgejo API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -37,9 +37,14 @@ module Forgejo
|
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
|
+
# Returns attribute mapping this model knows about
|
41
|
+
def self.acceptable_attribute_map
|
42
|
+
attribute_map
|
43
|
+
end
|
44
|
+
|
40
45
|
# Returns all the JSON keys this model knows about
|
41
46
|
def self.acceptable_attributes
|
42
|
-
|
47
|
+
acceptable_attribute_map.values
|
43
48
|
end
|
44
49
|
|
45
50
|
# Attribute type mapping.
|
@@ -67,9 +72,10 @@ module Forgejo
|
|
67
72
|
end
|
68
73
|
|
69
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
70
76
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
-
if (!
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PRBranchInfo`. Please check the name to make sure it's valid. List of attributes: " +
|
77
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PRBranchInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
73
79
|
end
|
74
80
|
h[k.to_sym] = v
|
75
81
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This documentation describes the Forgejo API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
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
|
+
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
|
-
|
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 (!
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PublicKey`. Please check the name to make sure it's valid. List of attributes: " +
|
93
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PublicKey`. 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:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -76,6 +76,8 @@ module Forgejo
|
|
76
76
|
|
77
77
|
attr_accessor :requested_reviewers
|
78
78
|
|
79
|
+
attr_accessor :requested_reviewers_teams
|
80
|
+
|
79
81
|
# number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
|
80
82
|
attr_accessor :review_comments
|
81
83
|
|
@@ -123,6 +125,7 @@ module Forgejo
|
|
123
125
|
:'patch_url' => :'patch_url',
|
124
126
|
:'pin_order' => :'pin_order',
|
125
127
|
:'requested_reviewers' => :'requested_reviewers',
|
128
|
+
:'requested_reviewers_teams' => :'requested_reviewers_teams',
|
126
129
|
:'review_comments' => :'review_comments',
|
127
130
|
:'state' => :'state',
|
128
131
|
:'title' => :'title',
|
@@ -132,9 +135,14 @@ module Forgejo
|
|
132
135
|
}
|
133
136
|
end
|
134
137
|
|
138
|
+
# Returns attribute mapping this model knows about
|
139
|
+
def self.acceptable_attribute_map
|
140
|
+
attribute_map
|
141
|
+
end
|
142
|
+
|
135
143
|
# Returns all the JSON keys this model knows about
|
136
144
|
def self.acceptable_attributes
|
137
|
-
|
145
|
+
acceptable_attribute_map.values
|
138
146
|
end
|
139
147
|
|
140
148
|
# Attribute type mapping.
|
@@ -170,6 +178,7 @@ module Forgejo
|
|
170
178
|
:'patch_url' => :'String',
|
171
179
|
:'pin_order' => :'Integer',
|
172
180
|
:'requested_reviewers' => :'Array<User>',
|
181
|
+
:'requested_reviewers_teams' => :'Array<Team>',
|
173
182
|
:'review_comments' => :'Integer',
|
174
183
|
:'state' => :'String',
|
175
184
|
:'title' => :'String',
|
@@ -193,9 +202,10 @@ module Forgejo
|
|
193
202
|
end
|
194
203
|
|
195
204
|
# check to see if the attribute exists and convert string to symbol for hash key
|
205
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
196
206
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
197
|
-
if (!
|
198
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullRequest`. Please check the name to make sure it's valid. List of attributes: " +
|
207
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
208
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
199
209
|
end
|
200
210
|
h[k.to_sym] = v
|
201
211
|
}
|
@@ -326,6 +336,12 @@ module Forgejo
|
|
326
336
|
end
|
327
337
|
end
|
328
338
|
|
339
|
+
if attributes.key?(:'requested_reviewers_teams')
|
340
|
+
if (value = attributes[:'requested_reviewers_teams']).is_a?(Array)
|
341
|
+
self.requested_reviewers_teams = value
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
329
345
|
if attributes.key?(:'review_comments')
|
330
346
|
self.review_comments = attributes[:'review_comments']
|
331
347
|
end
|
@@ -401,6 +417,7 @@ module Forgejo
|
|
401
417
|
patch_url == o.patch_url &&
|
402
418
|
pin_order == o.pin_order &&
|
403
419
|
requested_reviewers == o.requested_reviewers &&
|
420
|
+
requested_reviewers_teams == o.requested_reviewers_teams &&
|
404
421
|
review_comments == o.review_comments &&
|
405
422
|
state == o.state &&
|
406
423
|
title == o.title &&
|
@@ -418,7 +435,7 @@ module Forgejo
|
|
418
435
|
# Calculates hash code according to all attributes.
|
419
436
|
# @return [Integer] Hash code
|
420
437
|
def hash
|
421
|
-
[additions, allow_maintainer_edit, assignee, assignees, base, body, changed_files, closed_at, comments, created_at, deletions, diff_url, draft, due_date, head, html_url, id, is_locked, labels, merge_base, merge_commit_sha, mergeable, merged, merged_at, merged_by, milestone, number, patch_url, pin_order, requested_reviewers, review_comments, state, title, updated_at, url, user].hash
|
438
|
+
[additions, allow_maintainer_edit, assignee, assignees, base, body, changed_files, closed_at, comments, created_at, deletions, diff_url, draft, due_date, head, html_url, id, is_locked, labels, merge_base, merge_commit_sha, mergeable, merged, merged_at, merged_by, milestone, number, patch_url, pin_order, requested_reviewers, requested_reviewers_teams, review_comments, state, title, updated_at, url, user].hash
|
422
439
|
end
|
423
440
|
|
424
441
|
# 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:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,9 +34,14 @@ module Forgejo
|
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
37
|
+
# Returns attribute mapping this model knows about
|
38
|
+
def self.acceptable_attribute_map
|
39
|
+
attribute_map
|
40
|
+
end
|
41
|
+
|
37
42
|
# Returns all the JSON keys this model knows about
|
38
43
|
def self.acceptable_attributes
|
39
|
-
|
44
|
+
acceptable_attribute_map.values
|
40
45
|
end
|
41
46
|
|
42
47
|
# Attribute type mapping.
|
@@ -63,9 +68,10 @@ module Forgejo
|
|
63
68
|
end
|
64
69
|
|
65
70
|
# check to see if the attribute exists and convert string to symbol for hash key
|
71
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
66
72
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
-
if (!
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullRequestMeta`. Please check the name to make sure it's valid. List of attributes: " +
|
73
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullRequestMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
69
75
|
end
|
70
76
|
h[k.to_sym] = v
|
71
77
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This documentation describes the Forgejo API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,9 +65,14 @@ module Forgejo
|
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
68
|
+
# Returns attribute mapping this model knows about
|
69
|
+
def self.acceptable_attribute_map
|
70
|
+
attribute_map
|
71
|
+
end
|
72
|
+
|
68
73
|
# Returns all the JSON keys this model knows about
|
69
74
|
def self.acceptable_attributes
|
70
|
-
|
75
|
+
acceptable_attribute_map.values
|
71
76
|
end
|
72
77
|
|
73
78
|
# Attribute type mapping.
|
@@ -104,9 +109,10 @@ module Forgejo
|
|
104
109
|
end
|
105
110
|
|
106
111
|
# check to see if the attribute exists and convert string to symbol for hash key
|
112
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
107
113
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
108
|
-
if (!
|
109
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullReview`. Please check the name to make sure it's valid. List of attributes: " +
|
114
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
115
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullReview`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
110
116
|
end
|
111
117
|
h[k.to_sym] = v
|
112
118
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This documentation describes the Forgejo API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,9 +67,14 @@ module Forgejo
|
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
70
|
+
# Returns attribute mapping this model knows about
|
71
|
+
def self.acceptable_attribute_map
|
72
|
+
attribute_map
|
73
|
+
end
|
74
|
+
|
70
75
|
# Returns all the JSON keys this model knows about
|
71
76
|
def self.acceptable_attributes
|
72
|
-
|
77
|
+
acceptable_attribute_map.values
|
73
78
|
end
|
74
79
|
|
75
80
|
# Attribute type mapping.
|
@@ -107,9 +112,10 @@ module Forgejo
|
|
107
112
|
end
|
108
113
|
|
109
114
|
# check to see if the attribute exists and convert string to symbol for hash key
|
115
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
110
116
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
111
|
-
if (!
|
112
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullReviewComment`. Please check the name to make sure it's valid. List of attributes: " +
|
117
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
118
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullReviewComment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
113
119
|
end
|
114
120
|
h[k.to_sym] = v
|
115
121
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This documentation describes the Forgejo API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
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
|
+
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
|
-
|
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 (!
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullReviewRequestOptions`. Please check the name to make sure it's valid. List of attributes: " +
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PullReviewRequestOptions`. 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:
|
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
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,6 +24,8 @@ module Forgejo
|
|
24
24
|
|
25
25
|
attr_accessor :last_update
|
26
26
|
|
27
|
+
attr_accessor :public_key
|
28
|
+
|
27
29
|
attr_accessor :remote_address
|
28
30
|
|
29
31
|
attr_accessor :remote_name
|
@@ -39,6 +41,7 @@ module Forgejo
|
|
39
41
|
:'interval' => :'interval',
|
40
42
|
:'last_error' => :'last_error',
|
41
43
|
:'last_update' => :'last_update',
|
44
|
+
:'public_key' => :'public_key',
|
42
45
|
:'remote_address' => :'remote_address',
|
43
46
|
:'remote_name' => :'remote_name',
|
44
47
|
:'repo_name' => :'repo_name',
|
@@ -46,9 +49,14 @@ module Forgejo
|
|
46
49
|
}
|
47
50
|
end
|
48
51
|
|
52
|
+
# Returns attribute mapping this model knows about
|
53
|
+
def self.acceptable_attribute_map
|
54
|
+
attribute_map
|
55
|
+
end
|
56
|
+
|
49
57
|
# Returns all the JSON keys this model knows about
|
50
58
|
def self.acceptable_attributes
|
51
|
-
|
59
|
+
acceptable_attribute_map.values
|
52
60
|
end
|
53
61
|
|
54
62
|
# Attribute type mapping.
|
@@ -58,6 +66,7 @@ module Forgejo
|
|
58
66
|
:'interval' => :'String',
|
59
67
|
:'last_error' => :'String',
|
60
68
|
:'last_update' => :'Time',
|
69
|
+
:'public_key' => :'String',
|
61
70
|
:'remote_address' => :'String',
|
62
71
|
:'remote_name' => :'String',
|
63
72
|
:'repo_name' => :'String',
|
@@ -79,9 +88,10 @@ module Forgejo
|
|
79
88
|
end
|
80
89
|
|
81
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
|
82
92
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
|
-
if (!
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PushMirror`. Please check the name to make sure it's valid. List of attributes: " +
|
93
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::PushMirror`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
85
95
|
end
|
86
96
|
h[k.to_sym] = v
|
87
97
|
}
|
@@ -102,6 +112,10 @@ module Forgejo
|
|
102
112
|
self.last_update = attributes[:'last_update']
|
103
113
|
end
|
104
114
|
|
115
|
+
if attributes.key?(:'public_key')
|
116
|
+
self.public_key = attributes[:'public_key']
|
117
|
+
end
|
118
|
+
|
105
119
|
if attributes.key?(:'remote_address')
|
106
120
|
self.remote_address = attributes[:'remote_address']
|
107
121
|
end
|
@@ -143,6 +157,7 @@ module Forgejo
|
|
143
157
|
interval == o.interval &&
|
144
158
|
last_error == o.last_error &&
|
145
159
|
last_update == o.last_update &&
|
160
|
+
public_key == o.public_key &&
|
146
161
|
remote_address == o.remote_address &&
|
147
162
|
remote_name == o.remote_name &&
|
148
163
|
repo_name == o.repo_name &&
|
@@ -158,7 +173,7 @@ module Forgejo
|
|
158
173
|
# Calculates hash code according to all attributes.
|
159
174
|
# @return [Integer] Hash code
|
160
175
|
def hash
|
161
|
-
[created, interval, last_error, last_update, remote_address, remote_name, repo_name, sync_on_commit].hash
|
176
|
+
[created, interval, last_error, last_update, public_key, remote_address, remote_name, repo_name, sync_on_commit].hash
|
162
177
|
end
|
163
178
|
|
164
179
|
# Builds the object from hash
|