diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-12-13 10:11:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-13 10:11:44 +0100 |
commit | 62b0b624695593a65c9fb1fe18f8fc108ed7c4f7 (patch) | |
tree | 3aed1112b12b69a91b4715e7b6e44e500e7a6fea /gitlab/v4/objects.py | |
parent | 36bbd37e6a79c6fd5e9b4d64119eda7812364387 (diff) | |
parent | 8760efc89bac394b01218b48dd3fcbef30c8b9a2 (diff) | |
download | gitlab-62b0b624695593a65c9fb1fe18f8fc108ed7c4f7.tar.gz |
Merge pull request #968 from mitar/stats
Stats
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 89e3259..91b946d 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -3997,6 +3997,26 @@ class ProjectImportManager(GetWithoutIdMixin, RESTManager): _from_parent_attrs = {"project_id": "id"} +class ProjectAdditionalStatistics(RefreshMixin, RESTObject): + _id_attr = None + + +class ProjectAdditionalStatisticsManager(GetWithoutIdMixin, RESTManager): + _path = "/projects/%(project_id)s/statistics" + _obj_cls = ProjectAdditionalStatistics + _from_parent_attrs = {"project_id": "id"} + + +class ProjectIssuesStatistics(RefreshMixin, RESTObject): + _id_attr = None + + +class ProjectIssuesStatisticsManager(GetWithoutIdMixin, RESTManager): + _path = "/projects/%(project_id)s/issues_statistics" + _obj_cls = ProjectIssuesStatistics + _from_parent_attrs = {"project_id": "id"} + + class Project(SaveMixin, ObjectDeleteMixin, RESTObject): _short_print_attr = "path" _managers = ( @@ -4042,6 +4062,8 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): ("variables", "ProjectVariableManager"), ("wikis", "ProjectWikiManager"), ("clusters", "ProjectClusterManager"), + ("additionalstatistics", "ProjectAdditionalStatisticsManager"), + ("issuesstatistics", "ProjectIssuesStatisticsManager"), ) @cli.register_custom_action("Project", ("submodule", "branch", "commit_sha")) |