Skip to content

Commit 6e1342f

Browse files
nejchJohnVillalovos
authored andcommitted
chore(ci_lint): add create attributes
1 parent 6491f1b commit 6e1342f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab/v4/objects/ci_lint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from gitlab.base import RESTManager, RESTObject
99
from gitlab.mixins import CreateMixin, GetWithoutIdMixin
10+
from gitlab.types import RequiredOptional
1011

1112

1213
class ProjectCiLint(RESTObject):
@@ -17,6 +18,9 @@ class ProjectCiLintManager(GetWithoutIdMixin, CreateMixin, RESTManager):
1718
_path = "/projects/{project_id}/ci/lint"
1819
_obj_cls = ProjectCiLint
1920
_from_parent_attrs = {"project_id": "id"}
21+
_create_attrs = RequiredOptional(
22+
required=("content",), optional=("dry_run", "include_jobs", "ref")
23+
)
2024

2125
def get(self, **kwargs: Any) -> ProjectCiLint:
2226
return cast(ProjectCiLint, super().get(**kwargs))

0 commit comments

Comments
 (0)