diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-11-11 08:28:04 +0100 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2019-11-11 08:28:04 +0100 |
commit | 9ebd9d0cca7541160e38d5130bfd2a3630a5b31e (patch) | |
tree | 69b691404a92beeeb623155c7a9ebc9c1d87d862 /gitlab/v4/objects.py | |
parent | 4efa6e6e5b9b57a3c4eda9ef20a4194b384055dc (diff) | |
download | gitlab-feat/project-clusters.tar.gz |
feat: add project cluster apifeat/project-clusters
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index ee659ed..6216d30 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -3897,6 +3897,16 @@ class ProjectImportManager(GetWithoutIdMixin, RESTManager): _from_parent_attrs = {"project_id": "id"} +class ProjectCluster: + pass + + +class ProjectClusterManager(ListMixin, RestObject): + _path = "/projects/%(project_id)s/clusters" + _obj_cls = ProjectCluster + _from_parent_attrs = {"project_id": "id"} + + class Project(SaveMixin, ObjectDeleteMixin, RESTObject): _short_print_attr = "path" _managers = ( @@ -3906,6 +3916,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): ("badges", "ProjectBadgeManager"), ("boards", "ProjectBoardManager"), ("branches", "ProjectBranchManager"), + ("clusters", "ProjectClusterManager"), ("jobs", "ProjectJobManager"), ("commits", "ProjectCommitManager"), ("customattributes", "ProjectCustomAttributeManager"), |