summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/deployments.py
blob: cc15f66700db2e89c6d678be271d474be15a43fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from gitlab.base import *  # noqa
from gitlab.mixins import *  # noqa


class ProjectDeployment(RESTObject, SaveMixin):
    pass


class ProjectDeploymentManager(RetrieveMixin, CreateMixin, UpdateMixin, RESTManager):
    _path = "/projects/%(project_id)s/deployments"
    _obj_cls = ProjectDeployment
    _from_parent_attrs = {"project_id": "id"}
    _list_filters = ("order_by", "sort")
    _create_attrs = (("sha", "ref", "tag", "status", "environment"), tuple())