⚡ Sangsakala Proxy 🏠 Home
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions gitlab/v4/objects/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@
from gitlab import cli
from gitlab import exceptions as exc
from gitlab.base import RESTObject
from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin
from gitlab.mixins import (
CreateMixin,
DeleteMixin,
ObjectDeleteMixin,
RetrieveMixin,
SaveMixin,
UpdateMixin,
)
from gitlab.types import RequiredOptional

from .merge_requests import ProjectDeploymentMergeRequestManager # noqa: F401

__all__ = ["ProjectDeployment", "ProjectDeploymentManager"]


class ProjectDeployment(SaveMixin, RESTObject):
class ProjectDeployment(SaveMixin, ObjectDeleteMixin, RESTObject):
mergerequests: ProjectDeploymentMergeRequestManager

@cli.register_custom_action(
Expand Down Expand Up @@ -70,6 +77,7 @@ class ProjectDeploymentManager(
RetrieveMixin[ProjectDeployment],
CreateMixin[ProjectDeployment],
UpdateMixin[ProjectDeployment],
DeleteMixin[ProjectDeployment],
):
_path = "/projects/{project_id}/deployments"
_obj_cls = ProjectDeployment
Expand Down
Loading