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
|
|
data/lib/forgejo/api/user_api.rb
CHANGED
@@ -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
|
|
@@ -23,8 +23,8 @@ module Forgejo
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @option opts [CreateRepoOption] :body
|
25
25
|
# @return [Repository]
|
26
|
-
def
|
27
|
-
data, _status_code, _headers =
|
26
|
+
def create_current_user_repo(opts = {})
|
27
|
+
data, _status_code, _headers = create_current_user_repo_with_http_info(opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
@@ -32,9 +32,9 @@ module Forgejo
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
33
|
# @option opts [CreateRepoOption] :body
|
34
34
|
# @return [Array<(Repository, Integer, Hash)>] Repository data, response status code and response headers
|
35
|
-
def
|
35
|
+
def create_current_user_repo_with_http_info(opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: UserApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: UserApi.create_current_user_repo ...'
|
38
38
|
end
|
39
39
|
# resource path
|
40
40
|
local_var_path = '/user/repos'
|
@@ -65,7 +65,7 @@ module Forgejo
|
|
65
65
|
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
66
66
|
|
67
67
|
new_options = opts.merge(
|
68
|
-
:operation => :"UserApi.
|
68
|
+
:operation => :"UserApi.create_current_user_repo",
|
69
69
|
:header_params => header_params,
|
70
70
|
:query_params => query_params,
|
71
71
|
:form_params => form_params,
|
@@ -76,7 +76,7 @@ module Forgejo
|
|
76
76
|
|
77
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
78
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called: UserApi#
|
79
|
+
@api_client.config.logger.debug "API called: UserApi#create_current_user_repo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
80
|
end
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
@@ -112,6 +112,8 @@ module Forgejo
|
|
112
112
|
|
113
113
|
# header parameters
|
114
114
|
header_params = opts[:header_params] || {}
|
115
|
+
# HTTP header 'Accept' (if needed)
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
115
117
|
# HTTP header 'Content-Type'
|
116
118
|
content_type = @api_client.select_header_content_type(['application/json'])
|
117
119
|
if !content_type.nil?
|
@@ -176,6 +178,8 @@ module Forgejo
|
|
176
178
|
|
177
179
|
# header parameters
|
178
180
|
header_params = opts[:header_params] || {}
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
179
183
|
|
180
184
|
# form parameters
|
181
185
|
form_params = opts[:form_params] || {}
|
@@ -235,6 +239,8 @@ module Forgejo
|
|
235
239
|
|
236
240
|
# header parameters
|
237
241
|
header_params = opts[:header_params] || {}
|
242
|
+
# HTTP header 'Accept' (if needed)
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
238
244
|
|
239
245
|
# form parameters
|
240
246
|
form_params = opts[:form_params] || {}
|
@@ -528,6 +534,8 @@ module Forgejo
|
|
528
534
|
|
529
535
|
# header parameters
|
530
536
|
header_params = opts[:header_params] || {}
|
537
|
+
# HTTP header 'Accept' (if needed)
|
538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
531
539
|
# HTTP header 'Content-Type'
|
532
540
|
content_type = @api_client.select_header_content_type(['application/json'])
|
533
541
|
if !content_type.nil?
|
@@ -656,6 +664,8 @@ module Forgejo
|
|
656
664
|
|
657
665
|
# header parameters
|
658
666
|
header_params = opts[:header_params] || {}
|
667
|
+
# HTTP header 'Accept' (if needed)
|
668
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
659
669
|
# HTTP header 'Content-Type'
|
660
670
|
content_type = @api_client.select_header_content_type(['application/json'])
|
661
671
|
if !content_type.nil?
|
@@ -782,6 +792,8 @@ module Forgejo
|
|
782
792
|
|
783
793
|
# header parameters
|
784
794
|
header_params = opts[:header_params] || {}
|
795
|
+
# HTTP header 'Accept' (if needed)
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
785
797
|
|
786
798
|
# form parameters
|
787
799
|
form_params = opts[:form_params] || {}
|
@@ -847,6 +859,8 @@ module Forgejo
|
|
847
859
|
|
848
860
|
# header parameters
|
849
861
|
header_params = opts[:header_params] || {}
|
862
|
+
# HTTP header 'Accept' (if needed)
|
863
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
850
864
|
|
851
865
|
# form parameters
|
852
866
|
form_params = opts[:form_params] || {}
|
@@ -877,6 +891,61 @@ module Forgejo
|
|
877
891
|
return data, status_code, headers
|
878
892
|
end
|
879
893
|
|
894
|
+
# Check if the authenticated user is over quota for a given subject
|
895
|
+
# @param [Hash] opts the optional parameters
|
896
|
+
# @return [nil]
|
897
|
+
def user_check_quota(opts = {})
|
898
|
+
user_check_quota_with_http_info(opts)
|
899
|
+
nil
|
900
|
+
end
|
901
|
+
|
902
|
+
# Check if the authenticated user is over quota for a given subject
|
903
|
+
# @param [Hash] opts the optional parameters
|
904
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
905
|
+
def user_check_quota_with_http_info(opts = {})
|
906
|
+
if @api_client.config.debugging
|
907
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_check_quota ...'
|
908
|
+
end
|
909
|
+
# resource path
|
910
|
+
local_var_path = '/user/quota/check'
|
911
|
+
|
912
|
+
# query parameters
|
913
|
+
query_params = opts[:query_params] || {}
|
914
|
+
|
915
|
+
# header parameters
|
916
|
+
header_params = opts[:header_params] || {}
|
917
|
+
# HTTP header 'Accept' (if needed)
|
918
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
919
|
+
|
920
|
+
# form parameters
|
921
|
+
form_params = opts[:form_params] || {}
|
922
|
+
|
923
|
+
# http body (model)
|
924
|
+
post_body = opts[:debug_body]
|
925
|
+
|
926
|
+
# return_type
|
927
|
+
return_type = opts[:debug_return_type]
|
928
|
+
|
929
|
+
# auth_names
|
930
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
931
|
+
|
932
|
+
new_options = opts.merge(
|
933
|
+
:operation => :"UserApi.user_check_quota",
|
934
|
+
:header_params => header_params,
|
935
|
+
:query_params => query_params,
|
936
|
+
:form_params => form_params,
|
937
|
+
:body => post_body,
|
938
|
+
:auth_names => auth_names,
|
939
|
+
:return_type => return_type
|
940
|
+
)
|
941
|
+
|
942
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
943
|
+
if @api_client.config.debugging
|
944
|
+
@api_client.config.logger.debug "API called: UserApi#user_check_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
945
|
+
end
|
946
|
+
return data, status_code, headers
|
947
|
+
end
|
948
|
+
|
880
949
|
# Create a hook
|
881
950
|
# @param body [CreateHookOption]
|
882
951
|
# @param [Hash] opts the optional parameters
|
@@ -1106,6 +1175,8 @@ module Forgejo
|
|
1106
1175
|
|
1107
1176
|
# header parameters
|
1108
1177
|
header_params = opts[:header_params] || {}
|
1178
|
+
# HTTP header 'Accept' (if needed)
|
1179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
1109
1180
|
|
1110
1181
|
# form parameters
|
1111
1182
|
form_params = opts[:form_params] || {}
|
@@ -1171,6 +1242,8 @@ module Forgejo
|
|
1171
1242
|
|
1172
1243
|
# header parameters
|
1173
1244
|
header_params = opts[:header_params] || {}
|
1245
|
+
# HTTP header 'Accept' (if needed)
|
1246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
1174
1247
|
|
1175
1248
|
# form parameters
|
1176
1249
|
form_params = opts[:form_params] || {}
|
@@ -1230,6 +1303,8 @@ module Forgejo
|
|
1230
1303
|
|
1231
1304
|
# header parameters
|
1232
1305
|
header_params = opts[:header_params] || {}
|
1306
|
+
# HTTP header 'Accept' (if needed)
|
1307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
1233
1308
|
|
1234
1309
|
# form parameters
|
1235
1310
|
form_params = opts[:form_params] || {}
|
@@ -1289,6 +1364,8 @@ module Forgejo
|
|
1289
1364
|
|
1290
1365
|
# header parameters
|
1291
1366
|
header_params = opts[:header_params] || {}
|
1367
|
+
# HTTP header 'Accept' (if needed)
|
1368
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1292
1369
|
|
1293
1370
|
# form parameters
|
1294
1371
|
form_params = opts[:form_params] || {}
|
@@ -1348,6 +1425,8 @@ module Forgejo
|
|
1348
1425
|
|
1349
1426
|
# header parameters
|
1350
1427
|
header_params = opts[:header_params] || {}
|
1428
|
+
# HTTP header 'Accept' (if needed)
|
1429
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1351
1430
|
|
1352
1431
|
# form parameters
|
1353
1432
|
form_params = opts[:form_params] || {}
|
@@ -1413,6 +1492,8 @@ module Forgejo
|
|
1413
1492
|
|
1414
1493
|
# header parameters
|
1415
1494
|
header_params = opts[:header_params] || {}
|
1495
|
+
# HTTP header 'Accept' (if needed)
|
1496
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
1416
1497
|
|
1417
1498
|
# form parameters
|
1418
1499
|
form_params = opts[:form_params] || {}
|
@@ -1816,6 +1897,7 @@ module Forgejo
|
|
1816
1897
|
# @param [Hash] opts the optional parameters
|
1817
1898
|
# @option opts [Integer] :page page number of results to return (1-based)
|
1818
1899
|
# @option opts [Integer] :limit page size of results
|
1900
|
+
# @option opts [String] :order_by order the repositories by name (default), id, or size
|
1819
1901
|
# @return [Array<Repository>]
|
1820
1902
|
def user_current_list_repos(opts = {})
|
1821
1903
|
data, _status_code, _headers = user_current_list_repos_with_http_info(opts)
|
@@ -1826,6 +1908,7 @@ module Forgejo
|
|
1826
1908
|
# @param [Hash] opts the optional parameters
|
1827
1909
|
# @option opts [Integer] :page page number of results to return (1-based)
|
1828
1910
|
# @option opts [Integer] :limit page size of results
|
1911
|
+
# @option opts [String] :order_by order the repositories by name (default), id, or size
|
1829
1912
|
# @return [Array<(Array<Repository>, Integer, Hash)>] Array<Repository> data, response status code and response headers
|
1830
1913
|
def user_current_list_repos_with_http_info(opts = {})
|
1831
1914
|
if @api_client.config.debugging
|
@@ -1838,6 +1921,7 @@ module Forgejo
|
|
1838
1921
|
query_params = opts[:query_params] || {}
|
1839
1922
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1840
1923
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1924
|
+
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
1841
1925
|
|
1842
1926
|
# header parameters
|
1843
1927
|
header_params = opts[:header_params] || {}
|
@@ -2148,6 +2232,8 @@ module Forgejo
|
|
2148
2232
|
|
2149
2233
|
# header parameters
|
2150
2234
|
header_params = opts[:header_params] || {}
|
2235
|
+
# HTTP header 'Accept' (if needed)
|
2236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
2151
2237
|
|
2152
2238
|
# form parameters
|
2153
2239
|
form_params = opts[:form_params] || {}
|
@@ -2213,6 +2299,8 @@ module Forgejo
|
|
2213
2299
|
|
2214
2300
|
# header parameters
|
2215
2301
|
header_params = opts[:header_params] || {}
|
2302
|
+
# HTTP header 'Accept' (if needed)
|
2303
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html']) unless header_params['Accept']
|
2216
2304
|
|
2217
2305
|
# form parameters
|
2218
2306
|
form_params = opts[:form_params] || {}
|
@@ -2345,6 +2433,8 @@ module Forgejo
|
|
2345
2433
|
|
2346
2434
|
# header parameters
|
2347
2435
|
header_params = opts[:header_params] || {}
|
2436
|
+
# HTTP header 'Accept' (if needed)
|
2437
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2348
2438
|
|
2349
2439
|
# form parameters
|
2350
2440
|
form_params = opts[:form_params] || {}
|
@@ -2398,6 +2488,8 @@ module Forgejo
|
|
2398
2488
|
|
2399
2489
|
# header parameters
|
2400
2490
|
header_params = opts[:header_params] || {}
|
2491
|
+
# HTTP header 'Accept' (if needed)
|
2492
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2401
2493
|
|
2402
2494
|
# form parameters
|
2403
2495
|
form_params = opts[:form_params] || {}
|
@@ -2453,6 +2545,8 @@ module Forgejo
|
|
2453
2545
|
|
2454
2546
|
# header parameters
|
2455
2547
|
header_params = opts[:header_params] || {}
|
2548
|
+
# HTTP header 'Accept' (if needed)
|
2549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2456
2550
|
# HTTP header 'Content-Type'
|
2457
2551
|
content_type = @api_client.select_header_content_type(['application/json', 'text/plain'])
|
2458
2552
|
if !content_type.nil?
|
@@ -2517,6 +2611,8 @@ module Forgejo
|
|
2517
2611
|
|
2518
2612
|
# header parameters
|
2519
2613
|
header_params = opts[:header_params] || {}
|
2614
|
+
# HTTP header 'Accept' (if needed)
|
2615
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2520
2616
|
|
2521
2617
|
# form parameters
|
2522
2618
|
form_params = opts[:form_params] || {}
|
@@ -2576,6 +2672,8 @@ module Forgejo
|
|
2576
2672
|
|
2577
2673
|
# header parameters
|
2578
2674
|
header_params = opts[:header_params] || {}
|
2675
|
+
# HTTP header 'Accept' (if needed)
|
2676
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2579
2677
|
|
2580
2678
|
# form parameters
|
2581
2679
|
form_params = opts[:form_params] || {}
|
@@ -3034,6 +3132,61 @@ module Forgejo
|
|
3034
3132
|
return data, status_code, headers
|
3035
3133
|
end
|
3036
3134
|
|
3135
|
+
# Get quota information for the authenticated user
|
3136
|
+
# @param [Hash] opts the optional parameters
|
3137
|
+
# @return [QuotaInfo]
|
3138
|
+
def user_get_quota(opts = {})
|
3139
|
+
data, _status_code, _headers = user_get_quota_with_http_info(opts)
|
3140
|
+
data
|
3141
|
+
end
|
3142
|
+
|
3143
|
+
# Get quota information for the authenticated user
|
3144
|
+
# @param [Hash] opts the optional parameters
|
3145
|
+
# @return [Array<(QuotaInfo, Integer, Hash)>] QuotaInfo data, response status code and response headers
|
3146
|
+
def user_get_quota_with_http_info(opts = {})
|
3147
|
+
if @api_client.config.debugging
|
3148
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_get_quota ...'
|
3149
|
+
end
|
3150
|
+
# resource path
|
3151
|
+
local_var_path = '/user/quota'
|
3152
|
+
|
3153
|
+
# query parameters
|
3154
|
+
query_params = opts[:query_params] || {}
|
3155
|
+
|
3156
|
+
# header parameters
|
3157
|
+
header_params = opts[:header_params] || {}
|
3158
|
+
# HTTP header 'Accept' (if needed)
|
3159
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
3160
|
+
|
3161
|
+
# form parameters
|
3162
|
+
form_params = opts[:form_params] || {}
|
3163
|
+
|
3164
|
+
# http body (model)
|
3165
|
+
post_body = opts[:debug_body]
|
3166
|
+
|
3167
|
+
# return_type
|
3168
|
+
return_type = opts[:debug_return_type] || 'QuotaInfo'
|
3169
|
+
|
3170
|
+
# auth_names
|
3171
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
3172
|
+
|
3173
|
+
new_options = opts.merge(
|
3174
|
+
:operation => :"UserApi.user_get_quota",
|
3175
|
+
:header_params => header_params,
|
3176
|
+
:query_params => query_params,
|
3177
|
+
:form_params => form_params,
|
3178
|
+
:body => post_body,
|
3179
|
+
:auth_names => auth_names,
|
3180
|
+
:return_type => return_type
|
3181
|
+
)
|
3182
|
+
|
3183
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
3184
|
+
if @api_client.config.debugging
|
3185
|
+
@api_client.config.logger.debug "API called: UserApi#user_get_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3186
|
+
end
|
3187
|
+
return data, status_code, headers
|
3188
|
+
end
|
3189
|
+
|
3037
3190
|
# Get an user's actions runner registration token
|
3038
3191
|
# @param [Hash] opts the optional parameters
|
3039
3192
|
# @return [nil]
|
@@ -3057,6 +3210,8 @@ module Forgejo
|
|
3057
3210
|
|
3058
3211
|
# header parameters
|
3059
3212
|
header_params = opts[:header_params] || {}
|
3213
|
+
# HTTP header 'Accept' (if needed)
|
3214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
3060
3215
|
|
3061
3216
|
# form parameters
|
3062
3217
|
form_params = opts[:form_params] || {}
|
@@ -3736,6 +3891,189 @@ module Forgejo
|
|
3736
3891
|
return data, status_code, headers
|
3737
3892
|
end
|
3738
3893
|
|
3894
|
+
# List the artifacts affecting the authenticated user's quota
|
3895
|
+
# @param [Hash] opts the optional parameters
|
3896
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
3897
|
+
# @option opts [Integer] :limit page size of results
|
3898
|
+
# @return [Array<QuotaUsedArtifact>]
|
3899
|
+
def user_list_quota_artifacts(opts = {})
|
3900
|
+
data, _status_code, _headers = user_list_quota_artifacts_with_http_info(opts)
|
3901
|
+
data
|
3902
|
+
end
|
3903
|
+
|
3904
|
+
# List the artifacts affecting the authenticated user's quota
|
3905
|
+
# @param [Hash] opts the optional parameters
|
3906
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
3907
|
+
# @option opts [Integer] :limit page size of results
|
3908
|
+
# @return [Array<(Array<QuotaUsedArtifact>, Integer, Hash)>] Array<QuotaUsedArtifact> data, response status code and response headers
|
3909
|
+
def user_list_quota_artifacts_with_http_info(opts = {})
|
3910
|
+
if @api_client.config.debugging
|
3911
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_list_quota_artifacts ...'
|
3912
|
+
end
|
3913
|
+
# resource path
|
3914
|
+
local_var_path = '/user/quota/artifacts'
|
3915
|
+
|
3916
|
+
# query parameters
|
3917
|
+
query_params = opts[:query_params] || {}
|
3918
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
3919
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
3920
|
+
|
3921
|
+
# header parameters
|
3922
|
+
header_params = opts[:header_params] || {}
|
3923
|
+
# HTTP header 'Accept' (if needed)
|
3924
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
3925
|
+
|
3926
|
+
# form parameters
|
3927
|
+
form_params = opts[:form_params] || {}
|
3928
|
+
|
3929
|
+
# http body (model)
|
3930
|
+
post_body = opts[:debug_body]
|
3931
|
+
|
3932
|
+
# return_type
|
3933
|
+
return_type = opts[:debug_return_type] || 'Array<QuotaUsedArtifact>'
|
3934
|
+
|
3935
|
+
# auth_names
|
3936
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
3937
|
+
|
3938
|
+
new_options = opts.merge(
|
3939
|
+
:operation => :"UserApi.user_list_quota_artifacts",
|
3940
|
+
:header_params => header_params,
|
3941
|
+
:query_params => query_params,
|
3942
|
+
:form_params => form_params,
|
3943
|
+
:body => post_body,
|
3944
|
+
:auth_names => auth_names,
|
3945
|
+
:return_type => return_type
|
3946
|
+
)
|
3947
|
+
|
3948
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
3949
|
+
if @api_client.config.debugging
|
3950
|
+
@api_client.config.logger.debug "API called: UserApi#user_list_quota_artifacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3951
|
+
end
|
3952
|
+
return data, status_code, headers
|
3953
|
+
end
|
3954
|
+
|
3955
|
+
# List the attachments affecting the authenticated user's quota
|
3956
|
+
# @param [Hash] opts the optional parameters
|
3957
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
3958
|
+
# @option opts [Integer] :limit page size of results
|
3959
|
+
# @return [Array<QuotaUsedAttachment>]
|
3960
|
+
def user_list_quota_attachments(opts = {})
|
3961
|
+
data, _status_code, _headers = user_list_quota_attachments_with_http_info(opts)
|
3962
|
+
data
|
3963
|
+
end
|
3964
|
+
|
3965
|
+
# List the attachments affecting the authenticated user's quota
|
3966
|
+
# @param [Hash] opts the optional parameters
|
3967
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
3968
|
+
# @option opts [Integer] :limit page size of results
|
3969
|
+
# @return [Array<(Array<QuotaUsedAttachment>, Integer, Hash)>] Array<QuotaUsedAttachment> data, response status code and response headers
|
3970
|
+
def user_list_quota_attachments_with_http_info(opts = {})
|
3971
|
+
if @api_client.config.debugging
|
3972
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_list_quota_attachments ...'
|
3973
|
+
end
|
3974
|
+
# resource path
|
3975
|
+
local_var_path = '/user/quota/attachments'
|
3976
|
+
|
3977
|
+
# query parameters
|
3978
|
+
query_params = opts[:query_params] || {}
|
3979
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
3980
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
3981
|
+
|
3982
|
+
# header parameters
|
3983
|
+
header_params = opts[:header_params] || {}
|
3984
|
+
# HTTP header 'Accept' (if needed)
|
3985
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
3986
|
+
|
3987
|
+
# form parameters
|
3988
|
+
form_params = opts[:form_params] || {}
|
3989
|
+
|
3990
|
+
# http body (model)
|
3991
|
+
post_body = opts[:debug_body]
|
3992
|
+
|
3993
|
+
# return_type
|
3994
|
+
return_type = opts[:debug_return_type] || 'Array<QuotaUsedAttachment>'
|
3995
|
+
|
3996
|
+
# auth_names
|
3997
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
3998
|
+
|
3999
|
+
new_options = opts.merge(
|
4000
|
+
:operation => :"UserApi.user_list_quota_attachments",
|
4001
|
+
:header_params => header_params,
|
4002
|
+
:query_params => query_params,
|
4003
|
+
:form_params => form_params,
|
4004
|
+
:body => post_body,
|
4005
|
+
:auth_names => auth_names,
|
4006
|
+
:return_type => return_type
|
4007
|
+
)
|
4008
|
+
|
4009
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4010
|
+
if @api_client.config.debugging
|
4011
|
+
@api_client.config.logger.debug "API called: UserApi#user_list_quota_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4012
|
+
end
|
4013
|
+
return data, status_code, headers
|
4014
|
+
end
|
4015
|
+
|
4016
|
+
# List the packages affecting the authenticated user's quota
|
4017
|
+
# @param [Hash] opts the optional parameters
|
4018
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
4019
|
+
# @option opts [Integer] :limit page size of results
|
4020
|
+
# @return [Array<QuotaUsedPackage>]
|
4021
|
+
def user_list_quota_packages(opts = {})
|
4022
|
+
data, _status_code, _headers = user_list_quota_packages_with_http_info(opts)
|
4023
|
+
data
|
4024
|
+
end
|
4025
|
+
|
4026
|
+
# List the packages affecting the authenticated user's quota
|
4027
|
+
# @param [Hash] opts the optional parameters
|
4028
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
4029
|
+
# @option opts [Integer] :limit page size of results
|
4030
|
+
# @return [Array<(Array<QuotaUsedPackage>, Integer, Hash)>] Array<QuotaUsedPackage> data, response status code and response headers
|
4031
|
+
def user_list_quota_packages_with_http_info(opts = {})
|
4032
|
+
if @api_client.config.debugging
|
4033
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_list_quota_packages ...'
|
4034
|
+
end
|
4035
|
+
# resource path
|
4036
|
+
local_var_path = '/user/quota/packages'
|
4037
|
+
|
4038
|
+
# query parameters
|
4039
|
+
query_params = opts[:query_params] || {}
|
4040
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
4041
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
4042
|
+
|
4043
|
+
# header parameters
|
4044
|
+
header_params = opts[:header_params] || {}
|
4045
|
+
# HTTP header 'Accept' (if needed)
|
4046
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
4047
|
+
|
4048
|
+
# form parameters
|
4049
|
+
form_params = opts[:form_params] || {}
|
4050
|
+
|
4051
|
+
# http body (model)
|
4052
|
+
post_body = opts[:debug_body]
|
4053
|
+
|
4054
|
+
# return_type
|
4055
|
+
return_type = opts[:debug_return_type] || 'Array<QuotaUsedPackage>'
|
4056
|
+
|
4057
|
+
# auth_names
|
4058
|
+
auth_names = opts[:debug_auth_names] || ['AuthorizationHeaderToken']
|
4059
|
+
|
4060
|
+
new_options = opts.merge(
|
4061
|
+
:operation => :"UserApi.user_list_quota_packages",
|
4062
|
+
:header_params => header_params,
|
4063
|
+
:query_params => query_params,
|
4064
|
+
:form_params => form_params,
|
4065
|
+
:body => post_body,
|
4066
|
+
:auth_names => auth_names,
|
4067
|
+
:return_type => return_type
|
4068
|
+
)
|
4069
|
+
|
4070
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4071
|
+
if @api_client.config.debugging
|
4072
|
+
@api_client.config.logger.debug "API called: UserApi#user_list_quota_packages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4073
|
+
end
|
4074
|
+
return data, status_code, headers
|
4075
|
+
end
|
4076
|
+
|
3739
4077
|
# List the repos owned by the given user
|
3740
4078
|
# @param username [String] username of user
|
3741
4079
|
# @param [Hash] opts the optional parameters
|
@@ -4094,6 +4432,8 @@ module Forgejo
|
|
4094
4432
|
|
4095
4433
|
# header parameters
|
4096
4434
|
header_params = opts[:header_params] || {}
|
4435
|
+
# HTTP header 'Accept' (if needed)
|
4436
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
4097
4437
|
|
4098
4438
|
# form parameters
|
4099
4439
|
form_params = opts[:form_params] || {}
|
@@ -4149,6 +4489,8 @@ module Forgejo
|
|
4149
4489
|
|
4150
4490
|
# header parameters
|
4151
4491
|
header_params = opts[:header_params] || {}
|
4492
|
+
# HTTP header 'Accept' (if needed)
|
4493
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
4152
4494
|
# HTTP header 'Content-Type'
|
4153
4495
|
content_type = @api_client.select_header_content_type(['application/json', 'text/plain'])
|
4154
4496
|
if !content_type.nil?
|
data/lib/forgejo/api_client.rb
CHANGED
@@ -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
|
|
data/lib/forgejo/api_error.rb
CHANGED
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -36,9 +36,14 @@ module Forgejo
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -66,9 +71,10 @@ module Forgejo
|
|
66
71
|
end
|
67
72
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
69
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
-
if (!
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::AccessToken`. Please check the name to make sure it's valid. List of attributes: " +
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Forgejo::AccessToken`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
72
78
|
end
|
73
79
|
h[k.to_sym] = v
|
74
80
|
}
|