summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 4bf6776..397bfb5 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -723,6 +723,15 @@ class NamespaceManager(GetFromListMixin, RESTManager):
_list_filters = ('search', )
+class PagesDomain(RESTObject):
+ _id_attr = 'domain'
+
+
+class PagesDomainManager(ListMixin, RESTManager):
+ _path = '/pages/domains'
+ _obj_cls = PagesDomain
+
+
class ProjectBoardList(SaveMixin, ObjectDeleteMixin, RESTObject):
pass
@@ -1249,6 +1258,18 @@ class ProjectNotificationSettingsManager(NotificationSettingsManager):
_from_parent_attrs = {'project_id': 'id'}
+class ProjectPagesDomain(SaveMixin, ObjectDeleteMixin, RESTObject):
+ _id_attr = 'domain'
+
+
+class ProjectPagesDomainManager(CRUDMixin, RESTManager):
+ _path = '/projects/%(project_id)s/pages/domains'
+ _obj_cls = ProjectPagesDomain
+ _from_parent_attrs = {'project_id': 'id'}
+ _create_attrs = (('domain', ), ('certificate', 'key'))
+ _update_attrs = (tuple(), ('certificate', 'key'))
+
+
class ProjectTag(ObjectDeleteMixin, RESTObject):
_id_attr = 'name'
_short_print_attr = 'name'
@@ -2161,6 +2182,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
('milestones', 'ProjectMilestoneManager'),
('notes', 'ProjectNoteManager'),
('notificationsettings', 'ProjectNotificationSettingsManager'),
+ ('pagesdomains', 'ProjectPagesDomainManager'),
('pipelines', 'ProjectPipelineManager'),
('protectedbranches', 'ProjectProtectedBranchManager'),
('runners', 'ProjectRunnerManager'),