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
@@ -0,0 +1,18 @@
|
|
1
|
+
# Forgejo::SetUserQuotaGroupsOptions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **groups** | **Array<String>** | Quota groups the user shall have | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'forgejo'
|
13
|
+
|
14
|
+
instance = Forgejo::SetUserQuotaGroupsOptions.new(
|
15
|
+
groups: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Forgejo::UpdateBranchRepoOption
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | New branch name | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'forgejo'
|
13
|
+
|
14
|
+
instance = Forgejo::UpdateBranchRepoOption.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/UserApi.md
CHANGED
@@ -4,7 +4,7 @@ All URIs are relative to */api/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
7
|
+
| [**create_current_user_repo**](UserApi.md#create_current_user_repo) | **POST** /user/repos | Create a repository |
|
8
8
|
| [**create_user_variable**](UserApi.md#create_user_variable) | **POST** /user/actions/variables/{variablename} | Create a user-level variable |
|
9
9
|
| [**delete_user_secret**](UserApi.md#delete_user_secret) | **DELETE** /user/actions/secrets/{secretname} | Delete a secret in a user scope |
|
10
10
|
| [**delete_user_variable**](UserApi.md#delete_user_variable) | **DELETE** /user/actions/variables/{variablename} | Delete a user-level variable which is created by current doer |
|
@@ -18,6 +18,7 @@ All URIs are relative to */api/v1*
|
|
18
18
|
| [**user_add_email**](UserApi.md#user_add_email) | **POST** /user/emails | Add email addresses |
|
19
19
|
| [**user_block_user**](UserApi.md#user_block_user) | **PUT** /user/block/{username} | Blocks a user from the doer. |
|
20
20
|
| [**user_check_following**](UserApi.md#user_check_following) | **GET** /users/{username}/following/{target} | Check if one user is following another user |
|
21
|
+
| [**user_check_quota**](UserApi.md#user_check_quota) | **GET** /user/quota/check | Check if the authenticated user is over quota for a given subject |
|
21
22
|
| [**user_create_hook**](UserApi.md#user_create_hook) | **POST** /user/hooks | Create a hook |
|
22
23
|
| [**user_create_o_auth2_application**](UserApi.md#user_create_o_auth2_application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application |
|
23
24
|
| [**user_create_token**](UserApi.md#user_create_token) | **POST** /users/{username}/tokens | Create an access token |
|
@@ -53,6 +54,7 @@ All URIs are relative to */api/v1*
|
|
53
54
|
| [**user_get_hook**](UserApi.md#user_get_hook) | **GET** /user/hooks/{id} | Get a hook |
|
54
55
|
| [**user_get_o_auth2_application**](UserApi.md#user_get_o_auth2_application) | **GET** /user/applications/oauth2/{id} | get an OAuth2 Application |
|
55
56
|
| [**user_get_o_auth2_applications**](UserApi.md#user_get_o_auth2_applications) | **GET** /user/applications/oauth2 | List the authenticated user's oauth2 applications |
|
57
|
+
| [**user_get_quota**](UserApi.md#user_get_quota) | **GET** /user/quota | Get quota information for the authenticated user |
|
56
58
|
| [**user_get_runner_registration_token**](UserApi.md#user_get_runner_registration_token) | **GET** /user/actions/runners/registration-token | Get an user's actions runner registration token |
|
57
59
|
| [**user_get_stop_watches**](UserApi.md#user_get_stop_watches) | **GET** /user/stopwatches | Get list of all existing stopwatches |
|
58
60
|
| [**user_get_tokens**](UserApi.md#user_get_tokens) | **GET** /users/{username}/tokens | List the authenticated user's access tokens |
|
@@ -64,6 +66,9 @@ All URIs are relative to */api/v1*
|
|
64
66
|
| [**user_list_gpg_keys**](UserApi.md#user_list_gpg_keys) | **GET** /users/{username}/gpg_keys | List the given user's GPG keys |
|
65
67
|
| [**user_list_hooks**](UserApi.md#user_list_hooks) | **GET** /user/hooks | List the authenticated user's webhooks |
|
66
68
|
| [**user_list_keys**](UserApi.md#user_list_keys) | **GET** /users/{username}/keys | List the given user's public keys |
|
69
|
+
| [**user_list_quota_artifacts**](UserApi.md#user_list_quota_artifacts) | **GET** /user/quota/artifacts | List the artifacts affecting the authenticated user's quota |
|
70
|
+
| [**user_list_quota_attachments**](UserApi.md#user_list_quota_attachments) | **GET** /user/quota/attachments | List the attachments affecting the authenticated user's quota |
|
71
|
+
| [**user_list_quota_packages**](UserApi.md#user_list_quota_packages) | **GET** /user/quota/packages | List the packages affecting the authenticated user's quota |
|
67
72
|
| [**user_list_repos**](UserApi.md#user_list_repos) | **GET** /users/{username}/repos | List the repos owned by the given user |
|
68
73
|
| [**user_list_starred**](UserApi.md#user_list_starred) | **GET** /users/{username}/starred | The repos that the given user has starred |
|
69
74
|
| [**user_list_subscriptions**](UserApi.md#user_list_subscriptions) | **GET** /users/{username}/subscriptions | List the repositories watched by a user |
|
@@ -75,9 +80,9 @@ All URIs are relative to */api/v1*
|
|
75
80
|
| [**user_verify_gpg_key**](UserApi.md#user_verify_gpg_key) | **POST** /user/gpg_key_verify | Verify a GPG key |
|
76
81
|
|
77
82
|
|
78
|
-
##
|
83
|
+
## create_current_user_repo
|
79
84
|
|
80
|
-
> <Repository>
|
85
|
+
> <Repository> create_current_user_repo(opts)
|
81
86
|
|
82
87
|
Create a repository
|
83
88
|
|
@@ -101,28 +106,28 @@ opts = {
|
|
101
106
|
|
102
107
|
begin
|
103
108
|
# Create a repository
|
104
|
-
result = api_instance.
|
109
|
+
result = api_instance.create_current_user_repo(opts)
|
105
110
|
p result
|
106
111
|
rescue Forgejo::ApiError => e
|
107
|
-
puts "Error when calling UserApi->
|
112
|
+
puts "Error when calling UserApi->create_current_user_repo: #{e}"
|
108
113
|
end
|
109
114
|
```
|
110
115
|
|
111
|
-
#### Using the
|
116
|
+
#### Using the create_current_user_repo_with_http_info variant
|
112
117
|
|
113
118
|
This returns an Array which contains the response data, status code and headers.
|
114
119
|
|
115
|
-
> <Array(<Repository>, Integer, Hash)>
|
120
|
+
> <Array(<Repository>, Integer, Hash)> create_current_user_repo_with_http_info(opts)
|
116
121
|
|
117
122
|
```ruby
|
118
123
|
begin
|
119
124
|
# Create a repository
|
120
|
-
data, status_code, headers = api_instance.
|
125
|
+
data, status_code, headers = api_instance.create_current_user_repo_with_http_info(opts)
|
121
126
|
p status_code # => 2xx
|
122
127
|
p headers # => { ... }
|
123
128
|
p data # => <Repository>
|
124
129
|
rescue Forgejo::ApiError => e
|
125
|
-
puts "Error when calling UserApi->
|
130
|
+
puts "Error when calling UserApi->create_current_user_repo_with_http_info: #{e}"
|
126
131
|
end
|
127
132
|
```
|
128
133
|
|
@@ -215,7 +220,7 @@ nil (empty response body)
|
|
215
220
|
### HTTP request headers
|
216
221
|
|
217
222
|
- **Content-Type**: application/json
|
218
|
-
- **Accept**:
|
223
|
+
- **Accept**: application/json
|
219
224
|
|
220
225
|
|
221
226
|
## delete_user_secret
|
@@ -283,7 +288,7 @@ nil (empty response body)
|
|
283
288
|
### HTTP request headers
|
284
289
|
|
285
290
|
- **Content-Type**: Not defined
|
286
|
-
- **Accept**:
|
291
|
+
- **Accept**: application/json
|
287
292
|
|
288
293
|
|
289
294
|
## delete_user_variable
|
@@ -351,7 +356,7 @@ nil (empty response body)
|
|
351
356
|
### HTTP request headers
|
352
357
|
|
353
358
|
- **Content-Type**: Not defined
|
354
|
-
- **Accept**:
|
359
|
+
- **Accept**: application/json
|
355
360
|
|
356
361
|
|
357
362
|
## get_user_settings
|
@@ -697,7 +702,7 @@ nil (empty response body)
|
|
697
702
|
### HTTP request headers
|
698
703
|
|
699
704
|
- **Content-Type**: application/json
|
700
|
-
- **Accept**:
|
705
|
+
- **Accept**: application/json
|
701
706
|
|
702
707
|
|
703
708
|
## update_user_settings
|
@@ -840,7 +845,7 @@ nil (empty response body)
|
|
840
845
|
### HTTP request headers
|
841
846
|
|
842
847
|
- **Content-Type**: application/json
|
843
|
-
- **Accept**:
|
848
|
+
- **Accept**: application/json
|
844
849
|
|
845
850
|
|
846
851
|
## user_add_email
|
@@ -979,7 +984,7 @@ nil (empty response body)
|
|
979
984
|
### HTTP request headers
|
980
985
|
|
981
986
|
- **Content-Type**: Not defined
|
982
|
-
- **Accept**:
|
987
|
+
- **Accept**: application/json
|
983
988
|
|
984
989
|
|
985
990
|
## user_check_following
|
@@ -1049,7 +1054,72 @@ nil (empty response body)
|
|
1049
1054
|
### HTTP request headers
|
1050
1055
|
|
1051
1056
|
- **Content-Type**: Not defined
|
1052
|
-
- **Accept**:
|
1057
|
+
- **Accept**: application/json, text/html
|
1058
|
+
|
1059
|
+
|
1060
|
+
## user_check_quota
|
1061
|
+
|
1062
|
+
> user_check_quota
|
1063
|
+
|
1064
|
+
Check if the authenticated user is over quota for a given subject
|
1065
|
+
|
1066
|
+
### Examples
|
1067
|
+
|
1068
|
+
```ruby
|
1069
|
+
require 'time'
|
1070
|
+
require 'forgejo'
|
1071
|
+
# setup authorization
|
1072
|
+
Forgejo.configure do |config|
|
1073
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
1074
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
1075
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1076
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
api_instance = Forgejo::UserApi.new
|
1080
|
+
|
1081
|
+
begin
|
1082
|
+
# Check if the authenticated user is over quota for a given subject
|
1083
|
+
api_instance.user_check_quota
|
1084
|
+
rescue Forgejo::ApiError => e
|
1085
|
+
puts "Error when calling UserApi->user_check_quota: #{e}"
|
1086
|
+
end
|
1087
|
+
```
|
1088
|
+
|
1089
|
+
#### Using the user_check_quota_with_http_info variant
|
1090
|
+
|
1091
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
1092
|
+
|
1093
|
+
> <Array(nil, Integer, Hash)> user_check_quota_with_http_info
|
1094
|
+
|
1095
|
+
```ruby
|
1096
|
+
begin
|
1097
|
+
# Check if the authenticated user is over quota for a given subject
|
1098
|
+
data, status_code, headers = api_instance.user_check_quota_with_http_info
|
1099
|
+
p status_code # => 2xx
|
1100
|
+
p headers # => { ... }
|
1101
|
+
p data # => nil
|
1102
|
+
rescue Forgejo::ApiError => e
|
1103
|
+
puts "Error when calling UserApi->user_check_quota_with_http_info: #{e}"
|
1104
|
+
end
|
1105
|
+
```
|
1106
|
+
|
1107
|
+
### Parameters
|
1108
|
+
|
1109
|
+
This endpoint does not need any parameter.
|
1110
|
+
|
1111
|
+
### Return type
|
1112
|
+
|
1113
|
+
nil (empty response body)
|
1114
|
+
|
1115
|
+
### Authorization
|
1116
|
+
|
1117
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
1118
|
+
|
1119
|
+
### HTTP request headers
|
1120
|
+
|
1121
|
+
- **Content-Type**: Not defined
|
1122
|
+
- **Accept**: application/json
|
1053
1123
|
|
1054
1124
|
|
1055
1125
|
## user_create_hook
|
@@ -1328,7 +1398,7 @@ nil (empty response body)
|
|
1328
1398
|
### HTTP request headers
|
1329
1399
|
|
1330
1400
|
- **Content-Type**: Not defined
|
1331
|
-
- **Accept**:
|
1401
|
+
- **Accept**: application/json, text/html
|
1332
1402
|
|
1333
1403
|
|
1334
1404
|
## user_current_check_starring
|
@@ -1398,7 +1468,7 @@ nil (empty response body)
|
|
1398
1468
|
### HTTP request headers
|
1399
1469
|
|
1400
1470
|
- **Content-Type**: Not defined
|
1401
|
-
- **Accept**:
|
1471
|
+
- **Accept**: application/json, text/html
|
1402
1472
|
|
1403
1473
|
|
1404
1474
|
## user_current_delete_follow
|
@@ -1466,7 +1536,7 @@ nil (empty response body)
|
|
1466
1536
|
### HTTP request headers
|
1467
1537
|
|
1468
1538
|
- **Content-Type**: Not defined
|
1469
|
-
- **Accept**:
|
1539
|
+
- **Accept**: application/json, text/html
|
1470
1540
|
|
1471
1541
|
|
1472
1542
|
## user_current_delete_gpg_key
|
@@ -1534,7 +1604,7 @@ nil (empty response body)
|
|
1534
1604
|
### HTTP request headers
|
1535
1605
|
|
1536
1606
|
- **Content-Type**: Not defined
|
1537
|
-
- **Accept**:
|
1607
|
+
- **Accept**: application/json
|
1538
1608
|
|
1539
1609
|
|
1540
1610
|
## user_current_delete_key
|
@@ -1602,7 +1672,7 @@ nil (empty response body)
|
|
1602
1672
|
### HTTP request headers
|
1603
1673
|
|
1604
1674
|
- **Content-Type**: Not defined
|
1605
|
-
- **Accept**:
|
1675
|
+
- **Accept**: application/json
|
1606
1676
|
|
1607
1677
|
|
1608
1678
|
## user_current_delete_star
|
@@ -1672,7 +1742,7 @@ nil (empty response body)
|
|
1672
1742
|
### HTTP request headers
|
1673
1743
|
|
1674
1744
|
- **Content-Type**: Not defined
|
1675
|
-
- **Accept**:
|
1745
|
+
- **Accept**: application/json, text/html
|
1676
1746
|
|
1677
1747
|
|
1678
1748
|
## user_current_get_gpg_key
|
@@ -2129,7 +2199,8 @@ end
|
|
2129
2199
|
api_instance = Forgejo::UserApi.new
|
2130
2200
|
opts = {
|
2131
2201
|
page: 56, # Integer | page number of results to return (1-based)
|
2132
|
-
limit: 56 # Integer | page size of results
|
2202
|
+
limit: 56, # Integer | page size of results
|
2203
|
+
order_by: 'order_by_example' # String | order the repositories by name (default), id, or size
|
2133
2204
|
}
|
2134
2205
|
|
2135
2206
|
begin
|
@@ -2165,6 +2236,7 @@ end
|
|
2165
2236
|
| ---- | ---- | ----------- | ----- |
|
2166
2237
|
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
2167
2238
|
| **limit** | **Integer** | page size of results | [optional] |
|
2239
|
+
| **order_by** | **String** | order the repositories by name (default), id, or size | [optional] |
|
2168
2240
|
|
2169
2241
|
### Return type
|
2170
2242
|
|
@@ -2533,7 +2605,7 @@ nil (empty response body)
|
|
2533
2605
|
### HTTP request headers
|
2534
2606
|
|
2535
2607
|
- **Content-Type**: Not defined
|
2536
|
-
- **Accept**:
|
2608
|
+
- **Accept**: application/json, text/html
|
2537
2609
|
|
2538
2610
|
|
2539
2611
|
## user_current_put_star
|
@@ -2603,7 +2675,7 @@ nil (empty response body)
|
|
2603
2675
|
### HTTP request headers
|
2604
2676
|
|
2605
2677
|
- **Content-Type**: Not defined
|
2606
|
-
- **Accept**:
|
2678
|
+
- **Accept**: application/json, text/html
|
2607
2679
|
|
2608
2680
|
|
2609
2681
|
## user_current_tracked_times
|
@@ -2750,7 +2822,7 @@ nil (empty response body)
|
|
2750
2822
|
### HTTP request headers
|
2751
2823
|
|
2752
2824
|
- **Content-Type**: Not defined
|
2753
|
-
- **Accept**:
|
2825
|
+
- **Accept**: application/json
|
2754
2826
|
|
2755
2827
|
|
2756
2828
|
## user_delete_avatar
|
@@ -2815,7 +2887,7 @@ nil (empty response body)
|
|
2815
2887
|
### HTTP request headers
|
2816
2888
|
|
2817
2889
|
- **Content-Type**: Not defined
|
2818
|
-
- **Accept**:
|
2890
|
+
- **Accept**: application/json
|
2819
2891
|
|
2820
2892
|
|
2821
2893
|
## user_delete_email
|
@@ -2885,7 +2957,7 @@ nil (empty response body)
|
|
2885
2957
|
### HTTP request headers
|
2886
2958
|
|
2887
2959
|
- **Content-Type**: application/json, text/plain
|
2888
|
-
- **Accept**:
|
2960
|
+
- **Accept**: application/json
|
2889
2961
|
|
2890
2962
|
|
2891
2963
|
## user_delete_hook
|
@@ -2953,7 +3025,7 @@ nil (empty response body)
|
|
2953
3025
|
### HTTP request headers
|
2954
3026
|
|
2955
3027
|
- **Content-Type**: Not defined
|
2956
|
-
- **Accept**:
|
3028
|
+
- **Accept**: application/json
|
2957
3029
|
|
2958
3030
|
|
2959
3031
|
## user_delete_o_auth2_application
|
@@ -3021,7 +3093,7 @@ nil (empty response body)
|
|
3021
3093
|
### HTTP request headers
|
3022
3094
|
|
3023
3095
|
- **Content-Type**: Not defined
|
3024
|
-
- **Accept**:
|
3096
|
+
- **Accept**: application/json
|
3025
3097
|
|
3026
3098
|
|
3027
3099
|
## user_edit_hook
|
@@ -3512,6 +3584,72 @@ end
|
|
3512
3584
|
- **Accept**: application/json
|
3513
3585
|
|
3514
3586
|
|
3587
|
+
## user_get_quota
|
3588
|
+
|
3589
|
+
> <QuotaInfo> user_get_quota
|
3590
|
+
|
3591
|
+
Get quota information for the authenticated user
|
3592
|
+
|
3593
|
+
### Examples
|
3594
|
+
|
3595
|
+
```ruby
|
3596
|
+
require 'time'
|
3597
|
+
require 'forgejo'
|
3598
|
+
# setup authorization
|
3599
|
+
Forgejo.configure do |config|
|
3600
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
3601
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
3602
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
3603
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
3604
|
+
end
|
3605
|
+
|
3606
|
+
api_instance = Forgejo::UserApi.new
|
3607
|
+
|
3608
|
+
begin
|
3609
|
+
# Get quota information for the authenticated user
|
3610
|
+
result = api_instance.user_get_quota
|
3611
|
+
p result
|
3612
|
+
rescue Forgejo::ApiError => e
|
3613
|
+
puts "Error when calling UserApi->user_get_quota: #{e}"
|
3614
|
+
end
|
3615
|
+
```
|
3616
|
+
|
3617
|
+
#### Using the user_get_quota_with_http_info variant
|
3618
|
+
|
3619
|
+
This returns an Array which contains the response data, status code and headers.
|
3620
|
+
|
3621
|
+
> <Array(<QuotaInfo>, Integer, Hash)> user_get_quota_with_http_info
|
3622
|
+
|
3623
|
+
```ruby
|
3624
|
+
begin
|
3625
|
+
# Get quota information for the authenticated user
|
3626
|
+
data, status_code, headers = api_instance.user_get_quota_with_http_info
|
3627
|
+
p status_code # => 2xx
|
3628
|
+
p headers # => { ... }
|
3629
|
+
p data # => <QuotaInfo>
|
3630
|
+
rescue Forgejo::ApiError => e
|
3631
|
+
puts "Error when calling UserApi->user_get_quota_with_http_info: #{e}"
|
3632
|
+
end
|
3633
|
+
```
|
3634
|
+
|
3635
|
+
### Parameters
|
3636
|
+
|
3637
|
+
This endpoint does not need any parameter.
|
3638
|
+
|
3639
|
+
### Return type
|
3640
|
+
|
3641
|
+
[**QuotaInfo**](QuotaInfo.md)
|
3642
|
+
|
3643
|
+
### Authorization
|
3644
|
+
|
3645
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
3646
|
+
|
3647
|
+
### HTTP request headers
|
3648
|
+
|
3649
|
+
- **Content-Type**: Not defined
|
3650
|
+
- **Accept**: application/json
|
3651
|
+
|
3652
|
+
|
3515
3653
|
## user_get_runner_registration_token
|
3516
3654
|
|
3517
3655
|
> user_get_runner_registration_token
|
@@ -3574,7 +3712,7 @@ nil (empty response body)
|
|
3574
3712
|
### HTTP request headers
|
3575
3713
|
|
3576
3714
|
- **Content-Type**: Not defined
|
3577
|
-
- **Accept**:
|
3715
|
+
- **Accept**: application/json
|
3578
3716
|
|
3579
3717
|
|
3580
3718
|
## user_get_stop_watches
|
@@ -4318,6 +4456,225 @@ end
|
|
4318
4456
|
- **Accept**: application/json
|
4319
4457
|
|
4320
4458
|
|
4459
|
+
## user_list_quota_artifacts
|
4460
|
+
|
4461
|
+
> <Array<QuotaUsedArtifact>> user_list_quota_artifacts(opts)
|
4462
|
+
|
4463
|
+
List the artifacts affecting the authenticated user's quota
|
4464
|
+
|
4465
|
+
### Examples
|
4466
|
+
|
4467
|
+
```ruby
|
4468
|
+
require 'time'
|
4469
|
+
require 'forgejo'
|
4470
|
+
# setup authorization
|
4471
|
+
Forgejo.configure do |config|
|
4472
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
4473
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
4474
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
4475
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
4476
|
+
end
|
4477
|
+
|
4478
|
+
api_instance = Forgejo::UserApi.new
|
4479
|
+
opts = {
|
4480
|
+
page: 56, # Integer | page number of results to return (1-based)
|
4481
|
+
limit: 56 # Integer | page size of results
|
4482
|
+
}
|
4483
|
+
|
4484
|
+
begin
|
4485
|
+
# List the artifacts affecting the authenticated user's quota
|
4486
|
+
result = api_instance.user_list_quota_artifacts(opts)
|
4487
|
+
p result
|
4488
|
+
rescue Forgejo::ApiError => e
|
4489
|
+
puts "Error when calling UserApi->user_list_quota_artifacts: #{e}"
|
4490
|
+
end
|
4491
|
+
```
|
4492
|
+
|
4493
|
+
#### Using the user_list_quota_artifacts_with_http_info variant
|
4494
|
+
|
4495
|
+
This returns an Array which contains the response data, status code and headers.
|
4496
|
+
|
4497
|
+
> <Array(<Array<QuotaUsedArtifact>>, Integer, Hash)> user_list_quota_artifacts_with_http_info(opts)
|
4498
|
+
|
4499
|
+
```ruby
|
4500
|
+
begin
|
4501
|
+
# List the artifacts affecting the authenticated user's quota
|
4502
|
+
data, status_code, headers = api_instance.user_list_quota_artifacts_with_http_info(opts)
|
4503
|
+
p status_code # => 2xx
|
4504
|
+
p headers # => { ... }
|
4505
|
+
p data # => <Array<QuotaUsedArtifact>>
|
4506
|
+
rescue Forgejo::ApiError => e
|
4507
|
+
puts "Error when calling UserApi->user_list_quota_artifacts_with_http_info: #{e}"
|
4508
|
+
end
|
4509
|
+
```
|
4510
|
+
|
4511
|
+
### Parameters
|
4512
|
+
|
4513
|
+
| Name | Type | Description | Notes |
|
4514
|
+
| ---- | ---- | ----------- | ----- |
|
4515
|
+
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
4516
|
+
| **limit** | **Integer** | page size of results | [optional] |
|
4517
|
+
|
4518
|
+
### Return type
|
4519
|
+
|
4520
|
+
[**Array<QuotaUsedArtifact>**](QuotaUsedArtifact.md)
|
4521
|
+
|
4522
|
+
### Authorization
|
4523
|
+
|
4524
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
4525
|
+
|
4526
|
+
### HTTP request headers
|
4527
|
+
|
4528
|
+
- **Content-Type**: Not defined
|
4529
|
+
- **Accept**: application/json
|
4530
|
+
|
4531
|
+
|
4532
|
+
## user_list_quota_attachments
|
4533
|
+
|
4534
|
+
> <Array<QuotaUsedAttachment>> user_list_quota_attachments(opts)
|
4535
|
+
|
4536
|
+
List the attachments affecting the authenticated user's quota
|
4537
|
+
|
4538
|
+
### Examples
|
4539
|
+
|
4540
|
+
```ruby
|
4541
|
+
require 'time'
|
4542
|
+
require 'forgejo'
|
4543
|
+
# setup authorization
|
4544
|
+
Forgejo.configure do |config|
|
4545
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
4546
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
4547
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
4548
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
4549
|
+
end
|
4550
|
+
|
4551
|
+
api_instance = Forgejo::UserApi.new
|
4552
|
+
opts = {
|
4553
|
+
page: 56, # Integer | page number of results to return (1-based)
|
4554
|
+
limit: 56 # Integer | page size of results
|
4555
|
+
}
|
4556
|
+
|
4557
|
+
begin
|
4558
|
+
# List the attachments affecting the authenticated user's quota
|
4559
|
+
result = api_instance.user_list_quota_attachments(opts)
|
4560
|
+
p result
|
4561
|
+
rescue Forgejo::ApiError => e
|
4562
|
+
puts "Error when calling UserApi->user_list_quota_attachments: #{e}"
|
4563
|
+
end
|
4564
|
+
```
|
4565
|
+
|
4566
|
+
#### Using the user_list_quota_attachments_with_http_info variant
|
4567
|
+
|
4568
|
+
This returns an Array which contains the response data, status code and headers.
|
4569
|
+
|
4570
|
+
> <Array(<Array<QuotaUsedAttachment>>, Integer, Hash)> user_list_quota_attachments_with_http_info(opts)
|
4571
|
+
|
4572
|
+
```ruby
|
4573
|
+
begin
|
4574
|
+
# List the attachments affecting the authenticated user's quota
|
4575
|
+
data, status_code, headers = api_instance.user_list_quota_attachments_with_http_info(opts)
|
4576
|
+
p status_code # => 2xx
|
4577
|
+
p headers # => { ... }
|
4578
|
+
p data # => <Array<QuotaUsedAttachment>>
|
4579
|
+
rescue Forgejo::ApiError => e
|
4580
|
+
puts "Error when calling UserApi->user_list_quota_attachments_with_http_info: #{e}"
|
4581
|
+
end
|
4582
|
+
```
|
4583
|
+
|
4584
|
+
### Parameters
|
4585
|
+
|
4586
|
+
| Name | Type | Description | Notes |
|
4587
|
+
| ---- | ---- | ----------- | ----- |
|
4588
|
+
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
4589
|
+
| **limit** | **Integer** | page size of results | [optional] |
|
4590
|
+
|
4591
|
+
### Return type
|
4592
|
+
|
4593
|
+
[**Array<QuotaUsedAttachment>**](QuotaUsedAttachment.md)
|
4594
|
+
|
4595
|
+
### Authorization
|
4596
|
+
|
4597
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
4598
|
+
|
4599
|
+
### HTTP request headers
|
4600
|
+
|
4601
|
+
- **Content-Type**: Not defined
|
4602
|
+
- **Accept**: application/json
|
4603
|
+
|
4604
|
+
|
4605
|
+
## user_list_quota_packages
|
4606
|
+
|
4607
|
+
> <Array<QuotaUsedPackage>> user_list_quota_packages(opts)
|
4608
|
+
|
4609
|
+
List the packages affecting the authenticated user's quota
|
4610
|
+
|
4611
|
+
### Examples
|
4612
|
+
|
4613
|
+
```ruby
|
4614
|
+
require 'time'
|
4615
|
+
require 'forgejo'
|
4616
|
+
# setup authorization
|
4617
|
+
Forgejo.configure do |config|
|
4618
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
4619
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
4620
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
4621
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
4622
|
+
end
|
4623
|
+
|
4624
|
+
api_instance = Forgejo::UserApi.new
|
4625
|
+
opts = {
|
4626
|
+
page: 56, # Integer | page number of results to return (1-based)
|
4627
|
+
limit: 56 # Integer | page size of results
|
4628
|
+
}
|
4629
|
+
|
4630
|
+
begin
|
4631
|
+
# List the packages affecting the authenticated user's quota
|
4632
|
+
result = api_instance.user_list_quota_packages(opts)
|
4633
|
+
p result
|
4634
|
+
rescue Forgejo::ApiError => e
|
4635
|
+
puts "Error when calling UserApi->user_list_quota_packages: #{e}"
|
4636
|
+
end
|
4637
|
+
```
|
4638
|
+
|
4639
|
+
#### Using the user_list_quota_packages_with_http_info variant
|
4640
|
+
|
4641
|
+
This returns an Array which contains the response data, status code and headers.
|
4642
|
+
|
4643
|
+
> <Array(<Array<QuotaUsedPackage>>, Integer, Hash)> user_list_quota_packages_with_http_info(opts)
|
4644
|
+
|
4645
|
+
```ruby
|
4646
|
+
begin
|
4647
|
+
# List the packages affecting the authenticated user's quota
|
4648
|
+
data, status_code, headers = api_instance.user_list_quota_packages_with_http_info(opts)
|
4649
|
+
p status_code # => 2xx
|
4650
|
+
p headers # => { ... }
|
4651
|
+
p data # => <Array<QuotaUsedPackage>>
|
4652
|
+
rescue Forgejo::ApiError => e
|
4653
|
+
puts "Error when calling UserApi->user_list_quota_packages_with_http_info: #{e}"
|
4654
|
+
end
|
4655
|
+
```
|
4656
|
+
|
4657
|
+
### Parameters
|
4658
|
+
|
4659
|
+
| Name | Type | Description | Notes |
|
4660
|
+
| ---- | ---- | ----------- | ----- |
|
4661
|
+
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
4662
|
+
| **limit** | **Integer** | page size of results | [optional] |
|
4663
|
+
|
4664
|
+
### Return type
|
4665
|
+
|
4666
|
+
[**Array<QuotaUsedPackage>**](QuotaUsedPackage.md)
|
4667
|
+
|
4668
|
+
### Authorization
|
4669
|
+
|
4670
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
4671
|
+
|
4672
|
+
### HTTP request headers
|
4673
|
+
|
4674
|
+
- **Content-Type**: Not defined
|
4675
|
+
- **Accept**: application/json
|
4676
|
+
|
4677
|
+
|
4321
4678
|
## user_list_repos
|
4322
4679
|
|
4323
4680
|
> <Array<Repository>> user_list_repos(username, opts)
|
@@ -4758,7 +5115,7 @@ nil (empty response body)
|
|
4758
5115
|
### HTTP request headers
|
4759
5116
|
|
4760
5117
|
- **Content-Type**: Not defined
|
4761
|
-
- **Accept**:
|
5118
|
+
- **Accept**: application/json
|
4762
5119
|
|
4763
5120
|
|
4764
5121
|
## user_update_avatar
|
@@ -4828,7 +5185,7 @@ nil (empty response body)
|
|
4828
5185
|
### HTTP request headers
|
4829
5186
|
|
4830
5187
|
- **Content-Type**: application/json, text/plain
|
4831
|
-
- **Accept**:
|
5188
|
+
- **Accept**: application/json
|
4832
5189
|
|
4833
5190
|
|
4834
5191
|
## user_update_o_auth2_application
|