diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-07-05 11:51:56 +0200 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2022-07-05 09:19:34 -0700 |
| commit | 6e1342fc0b7cf740b25a939942ea02cdd18a9625 (patch) | |
| tree | e487e4d70e137fcee65958211c7e97dba0c75174 /gitlab | |
| parent | 6491f1bbb68ffe04c719eb9d326b7ca3e78eba84 (diff) | |
| download | gitlab-6e1342fc0b7cf740b25a939942ea02cdd18a9625.tar.gz | |
chore(ci_lint): add create attributes
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/v4/objects/ci_lint.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/v4/objects/ci_lint.py b/gitlab/v4/objects/ci_lint.py index 3d5d488..4f781dc 100644 --- a/gitlab/v4/objects/ci_lint.py +++ b/gitlab/v4/objects/ci_lint.py @@ -7,6 +7,7 @@ from typing import Any, cast from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, GetWithoutIdMixin +from gitlab.types import RequiredOptional class ProjectCiLint(RESTObject): @@ -17,6 +18,9 @@ class ProjectCiLintManager(GetWithoutIdMixin, CreateMixin, RESTManager): _path = "/projects/{project_id}/ci/lint" _obj_cls = ProjectCiLint _from_parent_attrs = {"project_id": "id"} + _create_attrs = RequiredOptional( + required=("content",), optional=("dry_run", "include_jobs", "ref") + ) def get(self, **kwargs: Any) -> ProjectCiLint: return cast(ProjectCiLint, super().get(**kwargs)) |
