labclient 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/labclient/appearance/show.rb +1 -1
- data/lib/labclient/appearance/update.rb +1 -1
- data/lib/labclient/application_settings/show.rb +1 -1
- data/lib/labclient/application_settings/update.rb +1 -1
- data/lib/labclient/application_statistics/application_statistics.rb +13 -1
- data/lib/labclient/applications/application.rb +1 -0
- data/lib/labclient/applications/create.rb +1 -1
- data/lib/labclient/applications/list.rb +1 -1
- data/lib/labclient/approvals/merge_request/approve.rb +1 -1
- data/lib/labclient/approvals/merge_request/create_rule.rb +1 -1
- data/lib/labclient/approvals/merge_request/rules.rb +1 -1
- data/lib/labclient/approvals/merge_request/show.rb +1 -1
- data/lib/labclient/approvals/merge_request/unapprove.rb +1 -1
- data/lib/labclient/approvals/merge_request/update.rb +1 -1
- data/lib/labclient/approvals/merge_request/update_rule.rb +1 -1
- data/lib/labclient/approvals/project/create_rule.rb +1 -1
- data/lib/labclient/approvals/project/rules.rb +1 -1
- data/lib/labclient/approvals/project/update.rb +1 -1
- data/lib/labclient/approvals/project/update_rule.rb +1 -1
- data/lib/labclient/audit_events/audit_event.rb +1 -0
- data/lib/labclient/audit_events/group_list.rb +2 -2
- data/lib/labclient/audit_events/group_show.rb +1 -1
- data/lib/labclient/audit_events/instance_list.rb +2 -2
- data/lib/labclient/audit_events/instance_show.rb +1 -1
- data/lib/labclient/avatar/avatar.rb +1 -0
- data/lib/labclient/avatar/show.rb +1 -1
- data/lib/labclient/awards/issues/create.rb +1 -1
- data/lib/labclient/awards/issues/list.rb +1 -1
- data/lib/labclient/awards/issues/show.rb +1 -1
- data/lib/labclient/awards/merge_requests/create.rb +1 -1
- data/lib/labclient/awards/merge_requests/list.rb +1 -1
- data/lib/labclient/awards/merge_requests/show.rb +1 -1
- data/lib/labclient/awards/snippets/create.rb +1 -1
- data/lib/labclient/awards/snippets/list.rb +1 -1
- data/lib/labclient/awards/snippets/show.rb +1 -1
- data/lib/labclient/branches/create.rb +2 -2
- data/lib/labclient/branches/list.rb +1 -1
- data/lib/labclient/branches/show.rb +1 -1
- data/lib/labclient/broadcast_messages/create.rb +1 -1
- data/lib/labclient/broadcast_messages/list.rb +1 -1
- data/lib/labclient/broadcast_messages/show.rb +1 -1
- data/lib/labclient/broadcast_messages/update.rb +1 -1
- data/lib/labclient/ci_lint/ci_lint.rb +1 -1
- data/lib/labclient/client/helpers.rb +1 -1
- data/lib/labclient/client/setup.rb +2 -2
- data/lib/labclient/client.rb +2 -2
- data/lib/labclient/commits/cherry_pick.rb +1 -1
- data/lib/labclient/commits/comment_create.rb +1 -1
- data/lib/labclient/commits/comments.rb +1 -1
- data/lib/labclient/commits/commit.rb +3 -3
- data/lib/labclient/commits/create.rb +1 -1
- data/lib/labclient/commits/diff.rb +1 -1
- data/lib/labclient/commits/list.rb +1 -1
- data/lib/labclient/commits/merge_requests.rb +1 -1
- data/lib/labclient/commits/refs.rb +1 -1
- data/lib/labclient/commits/revert.rb +1 -1
- data/lib/labclient/commits/show.rb +1 -1
- data/lib/labclient/commits/status/list.rb +1 -1
- data/lib/labclient/commits/status/update.rb +1 -1
- data/lib/labclient/deploy_keys/add.rb +1 -1
- data/lib/labclient/deploy_keys/delete.rb +1 -1
- data/lib/labclient/deploy_keys/enable.rb +1 -1
- data/lib/labclient/deploy_keys/list.rb +2 -2
- data/lib/labclient/deploy_keys/show.rb +1 -1
- data/lib/labclient/deploy_keys/update.rb +1 -1
- data/lib/labclient/discussions/commits/create.rb +1 -1
- data/lib/labclient/discussions/commits/list.rb +1 -1
- data/lib/labclient/discussions/commits/show.rb +1 -1
- data/lib/labclient/discussions/commits/update.rb +1 -1
- data/lib/labclient/discussions/epics/create.rb +1 -1
- data/lib/labclient/discussions/epics/list.rb +1 -1
- data/lib/labclient/discussions/epics/show.rb +1 -1
- data/lib/labclient/discussions/epics/update.rb +1 -1
- data/lib/labclient/discussions/issues/create.rb +1 -1
- data/lib/labclient/discussions/issues/list.rb +1 -1
- data/lib/labclient/discussions/issues/show.rb +1 -1
- data/lib/labclient/discussions/issues/update.rb +1 -1
- data/lib/labclient/discussions/merge_requests/create.rb +1 -1
- data/lib/labclient/discussions/merge_requests/list.rb +1 -1
- data/lib/labclient/discussions/merge_requests/show.rb +1 -1
- data/lib/labclient/discussions/merge_requests/update.rb +1 -1
- data/lib/labclient/discussions/snippets/create.rb +1 -1
- data/lib/labclient/discussions/snippets/list.rb +1 -1
- data/lib/labclient/discussions/snippets/show.rb +1 -1
- data/lib/labclient/discussions/snippets/update.rb +1 -1
- data/lib/labclient/docs.rb +12 -4
- data/lib/labclient/epics/create.rb +1 -1
- data/lib/labclient/epics/epic.rb +3 -2
- data/lib/labclient/epics/issues/list.rb +1 -1
- data/lib/labclient/epics/issues/update.rb +1 -1
- data/lib/labclient/epics/list.rb +1 -1
- data/lib/labclient/epics/show.rb +1 -1
- data/lib/labclient/epics/todo.rb +1 -1
- data/lib/labclient/epics/update.rb +1 -1
- data/lib/labclient/events/event.rb +1 -0
- data/lib/labclient/events/list.rb +1 -1
- data/lib/labclient/events/project.rb +1 -1
- data/lib/labclient/events/user.rb +1 -1
- data/lib/labclient/feature_flags/create.rb +1 -1
- data/lib/labclient/feature_flags/feature_flag.rb +2 -1
- data/lib/labclient/feature_flags/list.rb +1 -1
- data/lib/labclient/files/create.rb +1 -1
- data/lib/labclient/files/delete.rb +1 -1
- data/lib/labclient/files/show.rb +1 -1
- data/lib/labclient/files/update.rb +1 -1
- data/lib/labclient/generator/generator.rb +2 -4
- data/lib/labclient/generator/template_helper.rb +1 -0
- data/lib/labclient/generator/wizard.rb +1 -0
- data/lib/labclient/groups/access_requests/access_request.rb +1 -0
- data/lib/labclient/groups/access_requests/approve.rb +1 -1
- data/lib/labclient/groups/access_requests/create.rb +1 -1
- data/lib/labclient/groups/access_requests/list.rb +1 -1
- data/lib/labclient/groups/badges/create.rb +1 -1
- data/lib/labclient/groups/badges/group_badge.rb +2 -1
- data/lib/labclient/groups/badges/list.rb +1 -1
- data/lib/labclient/groups/badges/preview.rb +1 -1
- data/lib/labclient/groups/badges/show.rb +1 -1
- data/lib/labclient/groups/badges/update.rb +1 -1
- data/lib/labclient/groups/clusters/add.rb +1 -1
- data/lib/labclient/groups/clusters/delete.rb +1 -1
- data/lib/labclient/groups/clusters/group_cluster.rb +3 -2
- data/lib/labclient/groups/clusters/list.rb +1 -1
- data/lib/labclient/groups/clusters/show.rb +1 -1
- data/lib/labclient/groups/clusters/update.rb +1 -1
- data/lib/labclient/groups/create.rb +1 -1
- data/lib/labclient/groups/delete.rb +1 -1
- data/lib/labclient/groups/group.rb +3 -2
- data/lib/labclient/groups/hooks/create.rb +1 -1
- data/lib/labclient/groups/hooks/group_hook.rb +2 -1
- data/lib/labclient/groups/hooks/list.rb +1 -1
- data/lib/labclient/groups/hooks/show.rb +1 -1
- data/lib/labclient/groups/hooks/update.rb +1 -1
- data/lib/labclient/groups/labels/create.rb +1 -1
- data/lib/labclient/groups/labels/delete.rb +1 -1
- data/lib/labclient/groups/labels/group_label.rb +1 -0
- data/lib/labclient/groups/labels/list.rb +1 -1
- data/lib/labclient/groups/labels/show.rb +1 -1
- data/lib/labclient/groups/labels/subscribe.rb +1 -1
- data/lib/labclient/groups/labels/unsubscribe.rb +1 -1
- data/lib/labclient/groups/labels/update.rb +1 -1
- data/lib/labclient/groups/ldap/create.rb +1 -1
- data/lib/labclient/groups/ldap/link.rb +1 -0
- data/lib/labclient/groups/ldap/list.rb +1 -1
- data/lib/labclient/groups/list.rb +1 -1
- data/lib/labclient/groups/milestones/create.rb +1 -1
- data/lib/labclient/groups/milestones/group_milestone.rb +1 -1
- data/lib/labclient/groups/milestones/issues.rb +1 -1
- data/lib/labclient/groups/milestones/list.rb +1 -1
- data/lib/labclient/groups/milestones/merge_requests.rb +1 -1
- data/lib/labclient/groups/milestones/show.rb +1 -1
- data/lib/labclient/groups/milestones/update.rb +1 -1
- data/lib/labclient/groups/projects.rb +18 -19
- data/lib/labclient/groups/restore.rb +1 -1
- data/lib/labclient/groups/runners.rb +1 -1
- data/lib/labclient/groups/search.rb +2 -2
- data/lib/labclient/groups/show.rb +1 -1
- data/lib/labclient/groups/subgroups.rb +2 -2
- data/lib/labclient/groups/transfer.rb +1 -1
- data/lib/labclient/groups/update.rb +1 -1
- data/lib/labclient/http.rb +8 -5
- data/lib/labclient/impersonation_tokens/create.rb +1 -1
- data/lib/labclient/impersonation_tokens/list.rb +1 -1
- data/lib/labclient/impersonation_tokens/show.rb +1 -1
- data/lib/labclient/issues/closed_by.rb +1 -1
- data/lib/labclient/issues/create.rb +1 -1
- data/lib/labclient/issues/group_issues.rb +1 -1
- data/lib/labclient/issues/list.rb +1 -1
- data/lib/labclient/issues/move.rb +1 -1
- data/lib/labclient/issues/participants.rb +1 -1
- data/lib/labclient/issues/project_issues.rb +1 -1
- data/lib/labclient/issues/related_merge_requests.rb +1 -1
- data/lib/labclient/issues/show.rb +1 -1
- data/lib/labclient/issues/subscribe.rb +1 -1
- data/lib/labclient/issues/time_stats.rb +2 -2
- data/lib/labclient/issues/todo.rb +1 -1
- data/lib/labclient/issues/unsubscribe.rb +1 -1
- data/lib/labclient/issues/update.rb +1 -1
- data/lib/labclient/jobs/artifacts.rb +1 -1
- data/lib/labclient/jobs/artifacts_latest.rb +1 -1
- data/lib/labclient/jobs/artifacts_path.rb +1 -1
- data/lib/labclient/jobs/cancel.rb +1 -1
- data/lib/labclient/jobs/erase.rb +1 -1
- data/lib/labclient/jobs/keep.rb +1 -1
- data/lib/labclient/jobs/pipeline_list.rb +1 -1
- data/lib/labclient/jobs/play.rb +1 -1
- data/lib/labclient/jobs/project_list.rb +1 -1
- data/lib/labclient/jobs/retry.rb +1 -1
- data/lib/labclient/jobs/show.rb +1 -1
- data/lib/labclient/keys/fingerprint.rb +1 -1
- data/lib/labclient/keys/project.rb +1 -1
- data/lib/labclient/keys/show.rb +1 -1
- data/lib/labclient/keys/user.rb +1 -1
- data/lib/labclient/lab_struct.rb +1 -0
- data/lib/labclient/license/add.rb +1 -1
- data/lib/labclient/license/list.rb +2 -2
- data/lib/labclient/markdown/markdown.rb +2 -2
- data/lib/labclient/members/groups/add.rb +1 -1
- data/lib/labclient/members/groups/list.rb +2 -2
- data/lib/labclient/members/groups/show.rb +1 -1
- data/lib/labclient/members/groups/update.rb +1 -1
- data/lib/labclient/members/projects/add.rb +1 -1
- data/lib/labclient/members/projects/list.rb +2 -2
- data/lib/labclient/members/projects/show.rb +1 -1
- data/lib/labclient/members/projects/update.rb +1 -1
- data/lib/labclient/merge_requests/accept.rb +1 -1
- data/lib/labclient/merge_requests/cancel_auto_merge.rb +1 -1
- data/lib/labclient/merge_requests/change.rb +1 -0
- data/lib/labclient/merge_requests/changes.rb +1 -1
- data/lib/labclient/merge_requests/closes_issues.rb +1 -1
- data/lib/labclient/merge_requests/commits.rb +1 -1
- data/lib/labclient/merge_requests/create.rb +1 -1
- data/lib/labclient/merge_requests/diff.rb +1 -0
- data/lib/labclient/merge_requests/diff_versions.rb +2 -2
- data/lib/labclient/merge_requests/list.rb +4 -4
- data/lib/labclient/merge_requests/merge_request.rb +1 -3
- data/lib/labclient/merge_requests/participants.rb +1 -1
- data/lib/labclient/merge_requests/pipelines.rb +2 -2
- data/lib/labclient/merge_requests/rebase.rb +1 -1
- data/lib/labclient/merge_requests/show.rb +1 -1
- data/lib/labclient/merge_requests/subscribe.rb +1 -1
- data/lib/labclient/merge_requests/time_stats.rb +2 -2
- data/lib/labclient/merge_requests/todo.rb +1 -1
- data/lib/labclient/merge_requests/unsubscribe.rb +1 -1
- data/lib/labclient/merge_requests/update.rb +1 -1
- data/lib/labclient/namespaces/list.rb +2 -2
- data/lib/labclient/namespaces/namespace.rb +1 -0
- data/lib/labclient/namespaces/show.rb +1 -1
- data/lib/labclient/notes/epics/create.rb +1 -1
- data/lib/labclient/notes/epics/list.rb +1 -1
- data/lib/labclient/notes/epics/show.rb +1 -1
- data/lib/labclient/notes/epics/update.rb +1 -1
- data/lib/labclient/notes/issues/create.rb +1 -1
- data/lib/labclient/notes/issues/list.rb +1 -1
- data/lib/labclient/notes/issues/show.rb +1 -1
- data/lib/labclient/notes/issues/update.rb +1 -1
- data/lib/labclient/notes/merge_requests/create.rb +1 -1
- data/lib/labclient/notes/merge_requests/list.rb +1 -1
- data/lib/labclient/notes/merge_requests/show.rb +1 -1
- data/lib/labclient/notes/merge_requests/update.rb +1 -1
- data/lib/labclient/notes/snippets/create.rb +1 -1
- data/lib/labclient/notes/snippets/list.rb +1 -1
- data/lib/labclient/notes/snippets/show.rb +1 -1
- data/lib/labclient/notes/snippets/update.rb +1 -1
- data/lib/labclient/notifications/update.rb +3 -3
- data/lib/labclient/overview.rb +1 -1
- data/lib/labclient/paginated_response.rb +1 -1
- data/lib/labclient/pipelines/cancel.rb +1 -1
- data/lib/labclient/pipelines/create.rb +4 -3
- data/lib/labclient/pipelines/list.rb +1 -1
- data/lib/labclient/pipelines/retry.rb +1 -1
- data/lib/labclient/pipelines/show.rb +1 -1
- data/lib/labclient/projects/access_requests/access_request.rb +1 -0
- data/lib/labclient/projects/access_requests/approve.rb +1 -1
- data/lib/labclient/projects/access_requests/create.rb +1 -1
- data/lib/labclient/projects/access_requests/list.rb +1 -1
- data/lib/labclient/projects/archive.rb +1 -1
- data/lib/labclient/projects/badges/create.rb +1 -1
- data/lib/labclient/projects/badges/list.rb +1 -1
- data/lib/labclient/projects/badges/preview.rb +1 -1
- data/lib/labclient/projects/badges/project_badge.rb +2 -1
- data/lib/labclient/projects/badges/show.rb +1 -1
- data/lib/labclient/projects/badges/update.rb +1 -1
- data/lib/labclient/projects/clusters/add.rb +1 -1
- data/lib/labclient/projects/clusters/delete.rb +1 -1
- data/lib/labclient/projects/clusters/list.rb +1 -1
- data/lib/labclient/projects/clusters/project_cluster.rb +2 -1
- data/lib/labclient/projects/clusters/show.rb +1 -1
- data/lib/labclient/projects/clusters/update.rb +1 -1
- data/lib/labclient/projects/create.rb +2 -2
- data/lib/labclient/projects/deployments/create.rb +1 -1
- data/lib/labclient/projects/deployments/list.rb +1 -1
- data/lib/labclient/projects/deployments/merge_requests.rb +1 -1
- data/lib/labclient/projects/deployments/project_deployment.rb +2 -1
- data/lib/labclient/projects/deployments/show.rb +1 -1
- data/lib/labclient/projects/deployments/update.rb +1 -1
- data/lib/labclient/projects/environments/create.rb +1 -1
- data/lib/labclient/projects/environments/list.rb +1 -1
- data/lib/labclient/projects/environments/project_environment.rb +2 -1
- data/lib/labclient/projects/environments/show.rb +1 -1
- data/lib/labclient/projects/environments/stop.rb +1 -1
- data/lib/labclient/projects/environments/update.rb +1 -1
- data/lib/labclient/projects/forks/existing.rb +1 -1
- data/lib/labclient/projects/forks/fork.rb +1 -1
- data/lib/labclient/projects/forks/list.rb +1 -1
- data/lib/labclient/projects/github_import.rb +1 -1
- data/lib/labclient/projects/hooks/create.rb +1 -1
- data/lib/labclient/projects/hooks/list.rb +1 -1
- data/lib/labclient/projects/hooks/project_hook.rb +2 -1
- data/lib/labclient/projects/hooks/show.rb +1 -1
- data/lib/labclient/projects/hooks/update.rb +1 -1
- data/lib/labclient/projects/housekeeping.rb +1 -1
- data/lib/labclient/projects/labels/create.rb +1 -1
- data/lib/labclient/projects/labels/delete.rb +1 -1
- data/lib/labclient/projects/labels/list.rb +1 -1
- data/lib/labclient/projects/labels/project_label.rb +2 -1
- data/lib/labclient/projects/labels/promote.rb +1 -1
- data/lib/labclient/projects/labels/show.rb +1 -1
- data/lib/labclient/projects/labels/subscribe.rb +1 -1
- data/lib/labclient/projects/labels/unsubscribe.rb +1 -1
- data/lib/labclient/projects/labels/update.rb +1 -1
- data/lib/labclient/projects/list.rb +3 -3
- data/lib/labclient/projects/milestones/create.rb +1 -1
- data/lib/labclient/projects/milestones/issues.rb +1 -1
- data/lib/labclient/projects/milestones/list.rb +1 -1
- data/lib/labclient/projects/milestones/merge_requests.rb +1 -1
- data/lib/labclient/projects/milestones/project_milestone.rb +1 -1
- data/lib/labclient/projects/milestones/show.rb +1 -1
- data/lib/labclient/projects/milestones/update.rb +1 -1
- data/lib/labclient/projects/mirror_start.rb +1 -1
- data/lib/labclient/projects/mirrors/create.rb +1 -1
- data/lib/labclient/projects/mirrors/list.rb +1 -1
- data/lib/labclient/projects/mirrors/project_mirror.rb +2 -1
- data/lib/labclient/projects/mirrors/update.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/create.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/list.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb +3 -3
- data/lib/labclient/projects/pipeline_schedules/show.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/take_ownership.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/update.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/variables/create.rb +1 -1
- data/lib/labclient/projects/pipeline_schedules/variables/update.rb +1 -1
- data/lib/labclient/projects/project.rb +1 -0
- data/lib/labclient/projects/push_rules/create.rb +5 -5
- data/lib/labclient/projects/push_rules/push_rule.rb +1 -0
- data/lib/labclient/projects/push_rules/show.rb +1 -1
- data/lib/labclient/projects/push_rules/update.rb +4 -4
- data/lib/labclient/projects/reference.rb +1 -1
- data/lib/labclient/projects/release_links/create.rb +1 -1
- data/lib/labclient/projects/release_links/delete.rb +1 -1
- data/lib/labclient/projects/release_links/list.rb +1 -1
- data/lib/labclient/projects/release_links/project_release_link.rb +2 -1
- data/lib/labclient/projects/release_links/show.rb +1 -1
- data/lib/labclient/projects/release_links/update.rb +1 -1
- data/lib/labclient/projects/releases/create.rb +1 -1
- data/lib/labclient/projects/releases/delete.rb +1 -1
- data/lib/labclient/projects/releases/evidence.rb +1 -1
- data/lib/labclient/projects/releases/list.rb +1 -1
- data/lib/labclient/projects/releases/project_release.rb +2 -1
- data/lib/labclient/projects/releases/show.rb +1 -1
- data/lib/labclient/projects/releases/update.rb +1 -1
- data/lib/labclient/projects/resources.rb +7 -10
- data/lib/labclient/projects/restore.rb +1 -1
- data/lib/labclient/projects/runners/enable.rb +1 -1
- data/lib/labclient/projects/runners/list.rb +1 -1
- data/lib/labclient/projects/search.rb +2 -2
- data/lib/labclient/projects/services/list.rb +1 -1
- data/lib/labclient/projects/services/project_service.rb +2 -1
- data/lib/labclient/projects/services/show.rb +1 -1
- data/lib/labclient/projects/services/update.rb +1 -1
- data/lib/labclient/projects/share.rb +3 -3
- data/lib/labclient/projects/show.rb +1 -1
- data/lib/labclient/projects/snapshot.rb +1 -1
- data/lib/labclient/projects/snippets/create.rb +2 -2
- data/lib/labclient/projects/snippets/list.rb +1 -1
- data/lib/labclient/projects/snippets/show.rb +1 -1
- data/lib/labclient/projects/snippets/update.rb +2 -2
- data/lib/labclient/projects/stars/star.rb +2 -2
- data/lib/labclient/projects/stars/starred_projects.rb +3 -3
- data/lib/labclient/projects/stars/starrers.rb +2 -2
- data/lib/labclient/projects/submodule.rb +1 -1
- data/lib/labclient/projects/templates/show.rb +8 -8
- data/lib/labclient/projects/transfer.rb +1 -1
- data/lib/labclient/projects/triggers/create.rb +1 -1
- data/lib/labclient/projects/triggers/list.rb +1 -1
- data/lib/labclient/projects/triggers/project_trigger.rb +1 -0
- data/lib/labclient/projects/triggers/show.rb +1 -1
- data/lib/labclient/projects/unarchive.rb +1 -1
- data/lib/labclient/projects/unshare.rb +1 -1
- data/lib/labclient/projects/update.rb +1 -1
- data/lib/labclient/projects/upload.rb +2 -2
- data/lib/labclient/projects/user.rb +3 -3
- data/lib/labclient/projects/users.rb +1 -1
- data/lib/labclient/projects/variables/create.rb +1 -1
- data/lib/labclient/projects/variables/list.rb +1 -1
- data/lib/labclient/projects/variables/project_variable.rb +2 -1
- data/lib/labclient/projects/variables/show.rb +1 -1
- data/lib/labclient/projects/variables/update.rb +1 -1
- data/lib/labclient/protected_branches/code_owner_approval.rb +1 -1
- data/lib/labclient/protected_branches/list.rb +1 -1
- data/lib/labclient/protected_branches/protect.rb +1 -1
- data/lib/labclient/protected_branches/show.rb +1 -1
- data/lib/labclient/protected_branches/unprotect.rb +1 -1
- data/lib/labclient/protected_environments/list.rb +1 -1
- data/lib/labclient/protected_environments/protect.rb +2 -2
- data/lib/labclient/protected_environments/protected_environment.rb +1 -0
- data/lib/labclient/protected_environments/show.rb +1 -1
- data/lib/labclient/protected_tags/list.rb +1 -1
- data/lib/labclient/protected_tags/protect.rb +1 -1
- data/lib/labclient/protected_tags/show.rb +1 -1
- data/lib/labclient/protected_tags/unprotect.rb +1 -1
- data/lib/labclient/registry/group.rb +1 -1
- data/lib/labclient/registry/list.rb +1 -1
- data/lib/labclient/registry/tags/bulk.rb +1 -1
- data/lib/labclient/registry/tags/details.rb +1 -1
- data/lib/labclient/registry/tags/list.rb +1 -1
- data/lib/labclient/repository/archive.rb +2 -2
- data/lib/labclient/repository/blob.rb +1 -1
- data/lib/labclient/repository/compare.rb +1 -1
- data/lib/labclient/repository/contributors.rb +1 -1
- data/lib/labclient/repository/merge_base.rb +1 -1
- data/lib/labclient/repository/raw_blob.rb +1 -1
- data/lib/labclient/repository/tree.rb +1 -1
- data/lib/labclient/resource_labels/epics/list.rb +1 -1
- data/lib/labclient/resource_labels/epics/show.rb +1 -1
- data/lib/labclient/resource_labels/issues/list.rb +1 -1
- data/lib/labclient/resource_labels/issues/show.rb +1 -1
- data/lib/labclient/resource_labels/merge_requests/list.rb +1 -1
- data/lib/labclient/resource_labels/merge_requests/show.rb +1 -1
- data/lib/labclient/runners/all.rb +1 -1
- data/lib/labclient/runners/create.rb +33 -0
- data/lib/labclient/runners/delete.rb +1 -1
- data/lib/labclient/runners/jobs.rb +1 -1
- data/lib/labclient/runners/list.rb +1 -1
- data/lib/labclient/runners/register.rb +1 -1
- data/lib/labclient/runners/runner.rb +2 -2
- data/lib/labclient/runners/show.rb +1 -1
- data/lib/labclient/runners/update.rb +1 -1
- data/lib/labclient/runners/verify.rb +1 -1
- data/lib/labclient/search/search.rb +3 -3
- data/lib/labclient/snippets/create.rb +2 -2
- data/lib/labclient/snippets/list.rb +1 -1
- data/lib/labclient/snippets/public.rb +1 -1
- data/lib/labclient/snippets/show.rb +1 -1
- data/lib/labclient/snippets/update.rb +2 -2
- data/lib/labclient/system_hooks/add.rb +1 -1
- data/lib/labclient/system_hooks/list.rb +1 -1
- data/lib/labclient/system_hooks/system_hook.rb +1 -0
- data/lib/labclient/tags/create.rb +1 -1
- data/lib/labclient/tags/delete.rb +1 -1
- data/lib/labclient/tags/list.rb +1 -1
- data/lib/labclient/tags/release.rb +1 -1
- data/lib/labclient/tags/show.rb +1 -1
- data/lib/labclient/tags/tag.rb +1 -0
- data/lib/labclient/tags/update.rb +1 -1
- data/lib/labclient/terraform/create.rb +1 -1
- data/lib/labclient/terraform/lock.rb +1 -1
- data/lib/labclient/terraform/show.rb +1 -1
- data/lib/labclient/todos/list.rb +1 -1
- data/lib/labclient/todos/mark_done.rb +1 -1
- data/lib/labclient/users/activity.rb +1 -1
- data/lib/labclient/users/create.rb +1 -1
- data/lib/labclient/users/current.rb +2 -2
- data/lib/labclient/users/email/create.rb +2 -2
- data/lib/labclient/users/email/list.rb +2 -2
- data/lib/labclient/users/email/show.rb +1 -1
- data/lib/labclient/users/gpg/create.rb +2 -2
- data/lib/labclient/users/gpg/list.rb +2 -2
- data/lib/labclient/users/gpg/show.rb +1 -1
- data/lib/labclient/users/keys/create.rb +2 -2
- data/lib/labclient/users/keys/list.rb +2 -2
- data/lib/labclient/users/keys/show.rb +1 -1
- data/lib/labclient/users/list.rb +1 -1
- data/lib/labclient/users/memberships.rb +1 -1
- data/lib/labclient/users/search.rb +1 -1
- data/lib/labclient/users/show.rb +1 -1
- data/lib/labclient/users/status_set.rb +1 -1
- data/lib/labclient/users/update.rb +1 -1
- data/lib/labclient/users/user.rb +6 -6
- data/lib/labclient/version.rb +1 -1
- data/lib/labclient/wikis/create.rb +1 -1
- data/lib/labclient/wikis/list.rb +1 -1
- data/lib/labclient/wikis/show.rb +1 -1
- data/lib/labclient/wikis/update.rb +1 -1
- data/lib/labclient/wikis/upload.rb +1 -1
- data/lib/labclient/wikis/wiki.rb +1 -1
- data/lib/labclient.rb +2 -1
- metadata +4 -188
@@ -35,7 +35,7 @@ module LabClient
|
|
35
35
|
pipeline_schedule_id = format_id(pipeline_schedule_id)
|
36
36
|
project_id = format_id(project_id)
|
37
37
|
|
38
|
-
client.request(:post, "projects/#{project_id}/pipeline_schedules/#{pipeline_schedule_id}/variables",
|
38
|
+
client.request(:post, "projects/#{project_id}/pipeline_schedules/#{pipeline_schedule_id}/variables", body: query)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -35,7 +35,7 @@ module LabClient
|
|
35
35
|
pipeline_schedule_id = format_id(pipeline_schedule_id)
|
36
36
|
project_id = format_id(project_id)
|
37
37
|
|
38
|
-
client.request(:put, "projects/#{project_id}/pipeline_schedules/#{pipeline_schedule_id}/variables/#{variable_key}",
|
38
|
+
client.request(:put, "projects/#{project_id}/pipeline_schedules/#{pipeline_schedule_id}/variables/#{variable_key}", body: query)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -5,7 +5,7 @@ module LabClient
|
|
5
5
|
doc 'Create' do
|
6
6
|
desc 'Adds a push rule to a specified project. [Project ID]'
|
7
7
|
example <<~DOC
|
8
|
-
client.projects.push_rules.create(16, deny_delete_tag: true, branch_name_regex: '\d
|
8
|
+
client.projects.push_rules.create(16, deny_delete_tag: true, branch_name_regex: '\d+..*' )
|
9
9
|
DOC
|
10
10
|
end
|
11
11
|
|
@@ -16,9 +16,9 @@ module LabClient
|
|
16
16
|
| deny_delete_tag | boolean | no | Deny deleting a tag |
|
17
17
|
| member_check | boolean | no | Restrict commits by author (email) to existing GitLab users |
|
18
18
|
| prevent_secrets | boolean | no | GitLab will reject any files that are likely to contain secrets |
|
19
|
-
| commit_message_regex | string | no | All commit messages must match this, e.g. Fixed \d
|
20
|
-
| commit_message_negative_regex | string | no | No commit message is allowed to match this, e.g. ssh
|
21
|
-
| branch_name_regex | string | no | All branch names must match this, e.g. (feature|hotfix)
|
19
|
+
| commit_message_regex | string | no | All commit messages must match this, e.g. Fixed \d+..* |
|
20
|
+
| commit_message_negative_regex | string | no | No commit message is allowed to match this, e.g. ssh:// |
|
21
|
+
| branch_name_regex | string | no | All branch names must match this, e.g. (feature|hotfix)/* |
|
22
22
|
| author_email_regex | string | no | All commit author emails must match this, e.g. @my-company.com$ |
|
23
23
|
| file_name_regex | string | no | All committed filenames must **not** match this, e.g. (jar|exe)$ |
|
24
24
|
| max_file_size | integer | no | Maximum file size (MB) |
|
@@ -38,7 +38,7 @@ module LabClient
|
|
38
38
|
def create(project_id, query)
|
39
39
|
project_id = format_id(project_id)
|
40
40
|
|
41
|
-
client.request(:post, "projects/#{project_id}/push_rule", PushRule, query)
|
41
|
+
client.request(:post, "projects/#{project_id}/push_rule", klass: PushRule, body: query)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -15,9 +15,9 @@ module LabClient
|
|
15
15
|
| deny_delete_tag | boolean | no | Deny deleting a tag |
|
16
16
|
| member_check | boolean | no | Restrict commits by author (email) to existing GitLab users |
|
17
17
|
| prevent_secrets | boolean | no | GitLab will reject any files that are likely to contain secrets |
|
18
|
-
| commit_message_regex | string | no | All commit messages must match this, e.g. Fixed \d
|
19
|
-
| commit_message_negative_regex | string | no | No commit message is allowed to match this, e.g. ssh
|
20
|
-
| branch_name_regex | string | no | All branch names must match this, e.g. (feature|hotfix)
|
18
|
+
| commit_message_regex | string | no | All commit messages must match this, e.g. Fixed \d+..* |
|
19
|
+
| commit_message_negative_regex | string | no | No commit message is allowed to match this, e.g. ssh:// |
|
20
|
+
| branch_name_regex | string | no | All branch names must match this, e.g. (feature|hotfix)/* |
|
21
21
|
| author_email_regex | string | no | All commit author emails must match this, e.g. @my-company.com$ |
|
22
22
|
| file_name_regex | string | no | All committed filenames must **not** match this, e.g. (jar|exe)$ |
|
23
23
|
| max_file_size | integer | no | Maximum file size (MB) |
|
@@ -45,7 +45,7 @@ module LabClient
|
|
45
45
|
def update(project_id, query)
|
46
46
|
project_id = format_id(project_id)
|
47
47
|
|
48
|
-
client.request(:put, "projects/#{project_id}/push_rule", PushRule, query)
|
48
|
+
client.request(:put, "projects/#{project_id}/push_rule", klass: PushRule, body: query)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
@@ -34,7 +34,7 @@ module LabClient
|
|
34
34
|
option 'push_rules', 'List the project push rules'
|
35
35
|
option 'restore', 'Restores project marked for deletion'
|
36
36
|
option 'search', 'Search by scope within project [scope, search_string]'
|
37
|
-
option 'share', 'Share project with group [{group_id, group_access }]'
|
37
|
+
option 'share', 'Share project with group [\{group_id, group_access \}]'
|
38
38
|
option 'star', 'Star this project'
|
39
39
|
option 'starrers', 'List users who have starred this project'
|
40
40
|
option 'transfer', 'Transfer to namespace [Namespace Name/ID]'
|
@@ -34,7 +34,7 @@ module LabClient
|
|
34
34
|
project_id = format_id(project_id)
|
35
35
|
release_id = format_id(release_id)
|
36
36
|
|
37
|
-
client.request(:post, "projects/#{project_id}/releases/#{release_id}/assets/links", ProjectReleaseLink, query)
|
37
|
+
client.request(:post, "projects/#{project_id}/releases/#{release_id}/assets/links", klass: ProjectReleaseLink, body: query)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -28,7 +28,7 @@ module LabClient
|
|
28
28
|
release_id = format_id(release_id)
|
29
29
|
link_id = format_id(link_id)
|
30
30
|
|
31
|
-
client.request(:delete, "projects/#{project_id}/releases/#{release_id}/assets/links/#{link_id}", ProjectReleaseLink)
|
31
|
+
client.request(:delete, "projects/#{project_id}/releases/#{release_id}/assets/links/#{link_id}", klass: ProjectReleaseLink)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -31,7 +31,7 @@ module LabClient
|
|
31
31
|
project_id = format_id(project_id)
|
32
32
|
release_id = format_id(release_id)
|
33
33
|
|
34
|
-
client.request(:get, "projects/#{project_id}/releases/#{release_id}/assets/links", ProjectReleaseLink)
|
34
|
+
client.request(:get, "projects/#{project_id}/releases/#{release_id}/assets/links", klass: ProjectReleaseLink)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -3,6 +3,7 @@ module LabClient
|
|
3
3
|
# Inspect Helper
|
4
4
|
class ProjectReleaseLink < Klass
|
5
5
|
include ClassHelpers
|
6
|
+
|
6
7
|
def inspect
|
7
8
|
"#<ProjectReleaseLink id: #{id}, name: #{name}>"
|
8
9
|
end
|
@@ -16,7 +17,7 @@ module LabClient
|
|
16
17
|
project_id = collect_project_id
|
17
18
|
release_id = collect_release_id
|
18
19
|
|
19
|
-
update_self client.projects.release_links.update(project_id, release_id, id, query)
|
20
|
+
update_self client.projects.release_links.update(project_id, release_id, id, body: query)
|
20
21
|
end
|
21
22
|
|
22
23
|
def delete
|
@@ -22,7 +22,7 @@ module LabClient
|
|
22
22
|
release_id = format_id(release_id)
|
23
23
|
link_id = format_id(link_id)
|
24
24
|
|
25
|
-
client.request(:get, "projects/#{project_id}/releases/#{release_id}/assets/links/#{link_id}", ProjectReleaseLink)
|
25
|
+
client.request(:get, "projects/#{project_id}/releases/#{release_id}/assets/links/#{link_id}", klass: ProjectReleaseLink)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -39,7 +39,7 @@ module LabClient
|
|
39
39
|
release_id = format_id(release_id)
|
40
40
|
link_id = format_id(link_id)
|
41
41
|
|
42
|
-
client.request(:put, "projects/#{project_id}/releases/#{release_id}/assets/links/#{link_id}", ProjectReleaseLink, query)
|
42
|
+
client.request(:put, "projects/#{project_id}/releases/#{release_id}/assets/links/#{link_id}", klass: ProjectReleaseLink, body: query)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -41,7 +41,7 @@ module LabClient
|
|
41
41
|
|
42
42
|
query[:released_at] = query[:released_at].to_time.iso8601 if format_time?(query[:released_at])
|
43
43
|
|
44
|
-
client.request(:post, "projects/#{project_id}/releases", ProjectRelease, query)
|
44
|
+
client.request(:post, "projects/#{project_id}/releases", klass: ProjectRelease, body: query)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -27,7 +27,7 @@ module LabClient
|
|
27
27
|
project_id = format_id(project_id)
|
28
28
|
release_id = format_id(release_id)
|
29
29
|
|
30
|
-
client.request(:delete, "projects/#{project_id}/releases/#{release_id}", ProjectRelease)
|
30
|
+
client.request(:delete, "projects/#{project_id}/releases/#{release_id}", klass: ProjectRelease)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -28,7 +28,7 @@ module LabClient
|
|
28
28
|
project_id = format_id(project_id)
|
29
29
|
release_id = format_id(release_id)
|
30
30
|
|
31
|
-
client.request(:post, "projects/#{project_id}/releases/#{release_id}/evidence", ProjectRelease)
|
31
|
+
client.request(:post, "projects/#{project_id}/releases/#{release_id}/evidence", klass: ProjectRelease)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,6 +3,7 @@ module LabClient
|
|
3
3
|
# Inspect Helper
|
4
4
|
class ProjectRelease < Klass
|
5
5
|
include ClassHelpers
|
6
|
+
|
6
7
|
def inspect
|
7
8
|
"#<ProjectRelease tag_name: #{tag_name}, name: #{name}>"
|
8
9
|
end
|
@@ -15,7 +16,7 @@ module LabClient
|
|
15
16
|
def update(query)
|
16
17
|
project_id = collect_project_id
|
17
18
|
|
18
|
-
update_self client.projects.releases.update(project_id, tag_name, query)
|
19
|
+
update_self client.projects.releases.update(project_id, tag_name, body: query)
|
19
20
|
end
|
20
21
|
|
21
22
|
def delete
|
@@ -21,7 +21,7 @@ module LabClient
|
|
21
21
|
project_id = format_id(project_id)
|
22
22
|
release_id = format_id(release_id)
|
23
23
|
|
24
|
-
client.request(:get, "projects/#{project_id}/releases/#{release_id}", ProjectRelease)
|
24
|
+
client.request(:get, "projects/#{project_id}/releases/#{release_id}", klass: ProjectRelease)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -41,7 +41,7 @@ module LabClient
|
|
41
41
|
project_id = format_id(project_id)
|
42
42
|
release_id = format_id(release_id)
|
43
43
|
|
44
|
-
client.request(:put, "projects/#{project_id}/releases/#{release_id}", ProjectRelease, query)
|
44
|
+
client.request(:put, "projects/#{project_id}/releases/#{release_id}", klass: ProjectRelease, body: query)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -8,16 +8,13 @@ module LabClient
|
|
8
8
|
markdown <<~DOC
|
9
9
|
| Name | Description |
|
10
10
|
| ---- | ----------- |
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
| <a target="_" href="/#Project_Hooks">Hooks</a> | Hooks |
|
19
|
-
| <a target="_" href="/#Project_Badges">Badges</a> | Badges |
|
20
|
-
| <a target="_" href="/#Project_Access_Requests">Access Requests</a> | Access Requests |
|
11
|
+
| [Hooks](Project-Hooks) | Project specific Hooks and Webhooks |
|
12
|
+
| [Push Rules](Push-Rules) | Push Rules |
|
13
|
+
| [Deploy Keys](Deploy-Keys) | Deploy Keys |
|
14
|
+
| [Runners](Project-Runners) | Project Specific Runners |
|
15
|
+
| [Mirrors](Project-Mirrors) | Push Mirrors |
|
16
|
+
| [Badges](Project-Badges) | Badges |
|
17
|
+
| [Access Requests](Project-Access-Requests) | Access Requests |
|
21
18
|
DOC
|
22
19
|
end
|
23
20
|
end
|
@@ -21,7 +21,7 @@ module LabClient
|
|
21
21
|
project_id = format_id(project_id)
|
22
22
|
runner_id = format_id(runner_id)
|
23
23
|
|
24
|
-
client.request(:post, "projects/#{project_id}/runners", Runner, { runner_id: runner_id })
|
24
|
+
client.request(:post, "projects/#{project_id}/runners", klass: Runner, body: { runner_id: runner_id })
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -28,7 +28,7 @@ module LabClient
|
|
28
28
|
|
29
29
|
def list(project_id, query = {})
|
30
30
|
project_id = format_id(project_id)
|
31
|
-
client.request(:get, "projects/#{project_id}/runners", Runner, query)
|
31
|
+
client.request(:get, "projects/#{project_id}/runners", klass: Runner, body: query)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -57,7 +57,7 @@ module LabClient
|
|
57
57
|
|
58
58
|
klass = klass_type(scope)
|
59
59
|
|
60
|
-
client.request(:get, "projects/#{project_id}/search", klass, query)
|
60
|
+
client.request(:get, "projects/#{project_id}/search", klass: klass, body: query)
|
61
61
|
end
|
62
62
|
|
63
63
|
# Search All Projects
|
@@ -67,7 +67,7 @@ module LabClient
|
|
67
67
|
search: search_string
|
68
68
|
}
|
69
69
|
|
70
|
-
client.request(:get, 'search', Project, query)
|
70
|
+
client.request(:get, 'search', klass: Project, body: query)
|
71
71
|
end
|
72
72
|
|
73
73
|
private
|
@@ -3,6 +3,7 @@ module LabClient
|
|
3
3
|
# Inspect Helper
|
4
4
|
class ProjectService < Klass
|
5
5
|
include ClassHelpers
|
6
|
+
|
6
7
|
def inspect
|
7
8
|
"#<ProjectService slug: #{slug}, title: #{title}, active: #{active}>"
|
8
9
|
end
|
@@ -15,7 +16,7 @@ module LabClient
|
|
15
16
|
def update(query)
|
16
17
|
project_id = collect_project_id
|
17
18
|
|
18
|
-
update_self(client.projects.services.update(project_id, slug, query))
|
19
|
+
update_self(client.projects.services.update(project_id, slug, body: query))
|
19
20
|
end
|
20
21
|
|
21
22
|
def delete
|
@@ -21,7 +21,7 @@ module LabClient
|
|
21
21
|
project_id = format_id(project_id)
|
22
22
|
service_slug = format_id(service_slug)
|
23
23
|
|
24
|
-
client.request(:get, "projects/#{project_id}/services/#{service_slug}", ProjectService)
|
24
|
+
client.request(:get, "projects/#{project_id}/services/#{service_slug}", klass: ProjectService)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -35,7 +35,7 @@ module LabClient
|
|
35
35
|
project_id = format_id(project_id)
|
36
36
|
service_slug = format_id(service_slug)
|
37
37
|
|
38
|
-
client.request(:put, "projects/#{project_id}/services/#{service_slug}", ProjectService, query)
|
38
|
+
client.request(:put, "projects/#{project_id}/services/#{service_slug}", klass: ProjectService, body: query)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -4,7 +4,7 @@ module LabClient
|
|
4
4
|
class Projects < Common
|
5
5
|
doc 'Update' do
|
6
6
|
title 'Share'
|
7
|
-
desc 'Allow to share project with group. [Project ID, {group_id, :groups_access}]'
|
7
|
+
desc 'Allow to share project with group. [Project ID, \{group_id, :groups_access\}]'
|
8
8
|
example 'client.projects.share(25, group_id: 78, group_access: :developer)'
|
9
9
|
result '{:id=>3, :project_id=>25, :group_id=>78, :group_access=>30, :expires_at=>nil}'
|
10
10
|
end
|
@@ -15,7 +15,7 @@ module LabClient
|
|
15
15
|
| --------- | ---- | -------- | ----------- |
|
16
16
|
| id | integer/string | yes | The ID or URL-encoded path of the project|
|
17
17
|
| group_id | integer | yes | The ID of the group to share with |
|
18
|
-
| group_access | integer | yes | The [permissions level](
|
18
|
+
| group_access | integer | yes | The [permissions level](Members) to grant the group |
|
19
19
|
| expires_at | string | no | Share expiration date in ISO 8601 format: 2016-09-26 |
|
20
20
|
DOC
|
21
21
|
end
|
@@ -50,7 +50,7 @@ module LabClient
|
|
50
50
|
# Convert Time if needed
|
51
51
|
query_format_time(query, :expires_at)
|
52
52
|
|
53
|
-
client.request(:post, "projects/#{project_id}/share",
|
53
|
+
client.request(:post, "projects/#{project_id}/share", body: query)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -18,7 +18,7 @@ module LabClient
|
|
18
18
|
def snapshot(project_id, file_name, wiki = false)
|
19
19
|
project_id = format_id(project_id)
|
20
20
|
|
21
|
-
raw = client.request(:get, "projects/#{project_id}/snapshot"
|
21
|
+
raw = client.request(:get, "projects/#{project_id}/snapshot", body: { wiki: wiki })
|
22
22
|
File.write(file_name, raw)
|
23
23
|
end
|
24
24
|
end
|
@@ -28,13 +28,13 @@ module LabClient
|
|
28
28
|
| file_name | string | yes | Name of a snippet file. |
|
29
29
|
| content | string | yes | Content of a snippet. |
|
30
30
|
| description | string | no | Description of a snippet. |
|
31
|
-
| visibility | string | no | Snippet's [visibility](
|
31
|
+
| visibility | string | no | Snippet's [visibility](https://docs.gitlab.com/api/snippets/#snippet-visibility-level). |
|
32
32
|
DOC
|
33
33
|
end
|
34
34
|
|
35
35
|
def create(project_id, query = {})
|
36
36
|
project_id = format_id(project_id)
|
37
|
-
client.request(:post, "projects/#{project_id}/snippets", ProjectSnippet, query)
|
37
|
+
client.request(:post, "projects/#{project_id}/snippets", klass: ProjectSnippet, body: query)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -14,7 +14,7 @@ module LabClient
|
|
14
14
|
def show(project_id, snippet_id)
|
15
15
|
snippet_id = format_id(snippet_id)
|
16
16
|
project_id = format_id(project_id)
|
17
|
-
client.request(:get, "projects/#{project_id}/snippets/#{snippet_id}", ProjectSnippet)
|
17
|
+
client.request(:get, "projects/#{project_id}/snippets/#{snippet_id}", klass: ProjectSnippet)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -22,7 +22,7 @@ module LabClient
|
|
22
22
|
| file_name | string | no | Name of a snippet file. |
|
23
23
|
| content | string | no | Content of a snippet. |
|
24
24
|
| description | string | no | Description of a snippet. |
|
25
|
-
| visibility | string | no | Snippet's [visibility](
|
25
|
+
| visibility | string | no | Snippet's [visibility](https://docs.gitlab.com/api/snippets/#snippet-visibility-level). |
|
26
26
|
DOC
|
27
27
|
end
|
28
28
|
|
@@ -36,7 +36,7 @@ module LabClient
|
|
36
36
|
def update(project_id, snippet_id, query = {})
|
37
37
|
snippet_id = format_id(snippet_id)
|
38
38
|
project_id = format_id(project_id)
|
39
|
-
client.request(:put, "projects/#{project_id}/snippets/#{snippet_id}", ProjectSnippet, query)
|
39
|
+
client.request(:put, "projects/#{project_id}/snippets/#{snippet_id}", klass: ProjectSnippet, body: query)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -35,13 +35,13 @@ module LabClient
|
|
35
35
|
def star(project_id)
|
36
36
|
project_id = format_id(project_id)
|
37
37
|
|
38
|
-
client.request(:post, "projects/#{project_id}/star", Project)
|
38
|
+
client.request(:post, "projects/#{project_id}/star", klass: Project)
|
39
39
|
end
|
40
40
|
|
41
41
|
def unstar(project_id)
|
42
42
|
project_id = format_id(project_id)
|
43
43
|
|
44
|
-
client.request(:post, "projects/#{project_id}/unstar", Project)
|
44
|
+
client.request(:post, "projects/#{project_id}/unstar", klass: Project)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -28,11 +28,11 @@ module LabClient
|
|
28
28
|
| membership | boolean | no | Limit by projects that the current user is a member of |
|
29
29
|
| starred | boolean | no | Limit by projects starred by the current user |
|
30
30
|
| statistics | boolean | no | Include project statistics |
|
31
|
-
| with_custom_attributes | boolean | no | Include [custom attributes](custom_attributes
|
31
|
+
| with_custom_attributes | boolean | no | Include [custom attributes](https://docs.gitlab.com/api/custom_attributes/) in response (admins only) |
|
32
32
|
| with_issues_enabled | boolean | no | Limit by enabled issues feature |
|
33
33
|
| with_merge_requests_enabled | boolean | no | Limit by enabled merge requests feature |
|
34
34
|
| with_programming_language | string | no | Limit by projects which use the given programming language |
|
35
|
-
| min_access_level | integer | no | Limit by current user minimal [access level](
|
35
|
+
| min_access_level | integer | no | Limit by current user minimal [access level](Members) |
|
36
36
|
| id_after | integer | no | Limit results to projects with IDs greater than the specified ID |
|
37
37
|
| id_before | integer | no | Limit results to projects with IDs less than the specified ID |
|
38
38
|
|
@@ -43,7 +43,7 @@ module LabClient
|
|
43
43
|
def starred(user_id, query = {})
|
44
44
|
query_access_level(query, :min_access_level)
|
45
45
|
|
46
|
-
client.request(:get, "users/#{user_id}/starred_projects", Project, query)
|
46
|
+
client.request(:get, "users/#{user_id}/starred_projects", klass: Project, body: query)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
@@ -30,9 +30,9 @@ module LabClient
|
|
30
30
|
project_id = format_id(project_id)
|
31
31
|
|
32
32
|
results = if search.empty?
|
33
|
-
client.request(:get, "projects/#{project_id}/starrers"
|
33
|
+
client.request(:get, "projects/#{project_id}/starrers")
|
34
34
|
else
|
35
|
-
client.request(:get, "projects/#{project_id}/starrers",
|
35
|
+
client.request(:get, "projects/#{project_id}/starrers", body: { search: search })
|
36
36
|
end
|
37
37
|
|
38
38
|
results.map do |star_data|
|
@@ -28,7 +28,7 @@ module LabClient
|
|
28
28
|
def submodule(project_id, submodule_id, query)
|
29
29
|
project_id = format_id(project_id)
|
30
30
|
|
31
|
-
client.request(:put, "projects/#{project_id}/repository/submodules/#{submodule_id}", Commit, query)
|
31
|
+
client.request(:put, "projects/#{project_id}/repository/submodules/#{submodule_id}", klass: Commit, body: query)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -8,14 +8,14 @@ module LabClient
|
|
8
8
|
result '[#<Runner id: 1, status: online>, ... ]'
|
9
9
|
|
10
10
|
markdown <<~DOC
|
11
|
+
| Attribute | Type | Required | Description |
|
12
|
+
| ------------------------ | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
13
|
+
| type | string | yes | The type of the template. One of: `dockerfiles`, `gitignores`, `gitlab_ci_ymls`, `licenses`, `issues`, or `merge_requests`. |
|
14
|
+
| name | string | yes | The key of the template, as obtained from the collection endpoint. |
|
15
|
+
| source_template_project_id | integer | no | The project ID where a given template is being stored. This is useful when multiple templates from different projects have the same name. If multiple templates have the same name, the match from `closest ancestor` is returned if `source_template_project_id` is not specified. |
|
16
|
+
| project | string | no | The project name to use when expanding placeholders in the template. Only affects licenses. |
|
17
|
+
| fullname | string | no | The full name of the copyright holder to use when expanding placeholders in the template. Only affects licenses. |
|
11
18
|
|
12
|
-
| Attribute | Type | Required | Description |
|
13
|
-
| ---------------------------- | ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
|
14
|
-
| type | string | yes | The type of the template. One of: `dockerfiles`, `gitignores`, `gitlab_ci_ymls`, `licenses`, `issues`, or `merge_requests`. |
|
15
|
-
| name | string | yes | The key of the template, as obtained from the collection endpoint |
|
16
|
-
| source_template_project_id | integer | no | The project ID where a given template is being stored. This is useful when multiple templates from different projects have the same name. If multiple templates have the same name, the match from `closest ancestor` is returned if `source_template_project_id` is not specified |
|
17
|
-
| project | string | no | The project name to use when expanding placeholders in the template. Only affects licenses |
|
18
|
-
| fullname | string | no | The full name of the copyright holder to use when expanding placeholders in the template. Only affects licenses |
|
19
19
|
DOC
|
20
20
|
end
|
21
21
|
|
@@ -30,7 +30,7 @@ module LabClient
|
|
30
30
|
def show(project_id, template_type, template_name, query = {})
|
31
31
|
project_id = format_id(project_id)
|
32
32
|
|
33
|
-
client.request(:get, "projects/#{project_id}/templates/#{template_type}/#{template_name}",
|
33
|
+
client.request(:get, "projects/#{project_id}/templates/#{template_type}/#{template_name}", body: query)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -21,7 +21,7 @@ module LabClient
|
|
21
21
|
project_id = format_id(project_id)
|
22
22
|
namespace_id = format_id(namespace_id)
|
23
23
|
|
24
|
-
client.request(:put, "projects/#{project_id}/transfer", Project, { namespace: namespace_id })
|
24
|
+
client.request(:put, "projects/#{project_id}/transfer", klass: Project, body: { namespace: namespace_id })
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -31,7 +31,7 @@ module LabClient
|
|
31
31
|
project_id = format_id(project_id)
|
32
32
|
query = { description: description }
|
33
33
|
|
34
|
-
client.request(:post, "projects/#{project_id}/triggers", ProjectTrigger, query)
|
34
|
+
client.request(:post, "projects/#{project_id}/triggers", klass: ProjectTrigger, body: query)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|