blob: f9c9191412f32904b97f937d875db86c5090809a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
from gitlab.base import * # noqa
from gitlab.exceptions import * # noqa
from gitlab.mixins import * # noqa
from gitlab import types
from gitlab import utils
class Dockerfile(RESTObject):
_id_attr = "name"
class DockerfileManager(RetrieveMixin, RESTManager):
_path = "/templates/dockerfiles"
_obj_cls = Dockerfile
class Gitignore(RESTObject):
_id_attr = "name"
class GitignoreManager(RetrieveMixin, RESTManager):
_path = "/templates/gitignores"
_obj_cls = Gitignore
class Gitlabciyml(RESTObject):
_id_attr = "name"
class GitlabciymlManager(RetrieveMixin, RESTManager):
_path = "/templates/gitlab_ci_ymls"
_obj_cls = Gitlabciyml
class License(RESTObject):
_id_attr = "key"
class LicenseManager(RetrieveMixin, RESTManager):
_path = "/templates/licenses"
_obj_cls = License
_list_filters = ("popular",)
_optional_get_attrs = ("project", "fullname")
|