| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2a0afc5 commit 1a7f672
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,55 +1,48 @@ | |||
| 1 | 1 | gitlab package | |
| 2 | 2 | ============== | |
| 3 | 3 | ||
| 4 | - Module contents | ||
| 5 | - --------------- | ||
| 4 | + Subpackages | ||
| 5 | + ----------- | ||
| 6 | 6 | ||
| 7 | - .. automodule:: gitlab | ||
| 7 | + .. toctree:: | ||
| 8 | + | ||
| 9 | + gitlab.v3 | ||
| 10 | + gitlab.v4 | ||
| 11 | + | ||
| 12 | + Submodules | ||
| 13 | + ---------- | ||
| 14 | + | ||
| 15 | + gitlab.base module | ||
| 16 | + ------------------ | ||
| 17 | + | ||
| 18 | + .. automodule:: gitlab.base | ||
| 8 | 19 | :members: | |
| 9 | 20 | :undoc-members: | |
| 10 | 21 | :show-inheritance: | |
| 11 | - :exclude-members: Hook, UserProject, Group, Issue, Team, User, | ||
| 12 | - all_projects, owned_projects, search_projects | ||
| 13 | 22 | ||
| 14 | - gitlab.base | ||
| 15 | - ----------- | ||
| 23 | + gitlab.cli module | ||
| 24 | + ----------------- | ||
| 16 | 25 | ||
| 17 | - .. automodule:: gitlab.base | ||
| 26 | + .. automodule:: gitlab.cli | ||
| 18 | 27 | :members: | |
| 19 | 28 | :undoc-members: | |
| 20 | 29 | :show-inheritance: | |
| 21 | 30 | ||
| 22 | - gitlab.v3.objects module | ||
| 23 | - ------------------------ | ||
| 31 | + gitlab.config module | ||
| 32 | + -------------------- | ||
| 24 | 33 | ||
| 25 | - .. automodule:: gitlab.v3.objects | ||
| 34 | + .. automodule:: gitlab.config | ||
| 26 | 35 | :members: | |
| 27 | 36 | :undoc-members: | |
| 28 | 37 | :show-inheritance: | |
| 29 | - :exclude-members: Branch, Commit, Content, Event, File, Hook, Issue, Key, | ||
| 30 | - Label, Member, MergeRequest, Milestone, Note, Snippet, | ||
| 31 | - Tag, canGet, canList, canUpdate, canCreate, canDelete, | ||
| 32 | - requiredUrlAttrs, requiredListAttrs, optionalListAttrs, | ||
| 33 | - optionalGetAttrs, requiredGetAttrs, requiredDeleteAttrs, | ||
| 34 | - requiredCreateAttrs, optionalCreateAttrs, | ||
| 35 | - requiredUpdateAttrs, optionalUpdateAttrs, getRequiresId, | ||
| 36 | - shortPrintAttr, idAttr | ||
| 37 | 38 | ||
| 38 | - gitlab.v4.objects module | ||
| 39 | - ------------------------ | ||
| 39 | + gitlab.const module | ||
| 40 | + ------------------- | ||
| 40 | 41 | ||
| 41 | - .. automodule:: gitlab.v4.objects | ||
| 42 | + .. automodule:: gitlab.const | ||
| 42 | 43 | :members: | |
| 43 | 44 | :undoc-members: | |
| 44 | 45 | :show-inheritance: | |
| 45 | - :exclude-members: Branch, Commit, Content, Event, File, Hook, Issue, Key, | ||
| 46 | - Label, Member, MergeRequest, Milestone, Note, Snippet, | ||
| 47 | - Tag, canGet, canList, canUpdate, canCreate, canDelete, | ||
| 48 | - requiredUrlAttrs, requiredListAttrs, optionalListAttrs, | ||
| 49 | - optionalGetAttrs, requiredGetAttrs, requiredDeleteAttrs, | ||
| 50 | - requiredCreateAttrs, optionalCreateAttrs, | ||
| 51 | - requiredUpdateAttrs, optionalUpdateAttrs, getRequiresId, | ||
| 52 | - shortPrintAttr, idAttr | ||
| 53 | 46 | ||
| 54 | 47 | gitlab.exceptions module | |
| 55 | 48 | ------------------------ | |
@@ -58,3 +51,28 @@ gitlab.exceptions module | |||
| 58 | 51 | :members: | |
| 59 | 52 | :undoc-members: | |
| 60 | 53 | :show-inheritance: | |
| 54 | + | ||
| 55 | + gitlab.mixins module | ||
| 56 | + -------------------- | ||
| 57 | + | ||
| 58 | + .. automodule:: gitlab.mixins | ||
| 59 | + :members: | ||
| 60 | + :undoc-members: | ||
| 61 | + :show-inheritance: | ||
| 62 | + | ||
| 63 | + gitlab.utils module | ||
| 64 | + ------------------- | ||
| 65 | + | ||
| 66 | + .. automodule:: gitlab.utils | ||
| 67 | + :members: | ||
| 68 | + :undoc-members: | ||
| 69 | + :show-inheritance: | ||
| 70 | + | ||
| 71 | + | ||
| 72 | + Module contents | ||
| 73 | + --------------- | ||
| 74 | + | ||
| 75 | + .. automodule:: gitlab | ||
| 76 | + :members: | ||
| 77 | + :undoc-members: | ||
| 78 | + :show-inheritance: | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | def classref(value, short=True): | |
| 13 | + return value | ||
| 14 | + | ||
| 13 | 15 | if not inspect.isclass(value): | |
| 14 | 16 | return ':class:%s' % value | |
| 15 | 17 | tilde = '~' if short else '' | |
@@ -46,8 +48,13 @@ def _build_doc(self, tmpl, **kwargs): | |||
| 46 | 48 | ||
| 47 | 49 | return output.split('\n') | |
| 48 | 50 | ||
| 49 | - def __init__(self, *args, **kwargs): | ||
| 50 | - super(GitlabDocstring, self).__init__(*args, **kwargs) | ||
| 51 | + def __init__(self, docstring, config=None, app=None, what='', name='', | ||
| 52 | + obj=None, options=None): | ||
| 53 | + super(GitlabDocstring, self).__init__(docstring, config, app, what, | ||
| 54 | + name, obj, options) | ||
| 55 | + | ||
| 56 | + if name and name.startswith('gitlab.v4.objects'): | ||
| 57 | + return | ||
| 51 | 58 | ||
| 52 | 59 | if getattr(self._obj, '__name__', None) == 'Gitlab': | |
| 53 | 60 | mgrs = [] | |
@@ -57,9 +64,12 @@ def __init__(self, *args, **kwargs): | |||
| 57 | 64 | mgrs.append(item) | |
| 58 | 65 | self._parsed_lines.extend(self._build_doc('gl_tmpl.j2', | |
| 59 | 66 | mgrs=sorted(mgrs))) | |
| 67 | + | ||
| 68 | + # BaseManager | ||
| 60 | 69 | elif hasattr(self._obj, 'obj_cls') and self._obj.obj_cls is not None: | |
| 61 | 70 | self._parsed_lines.extend(self._build_doc('manager_tmpl.j2', | |
| 62 | 71 | cls=self._obj.obj_cls)) | |
| 72 | + # GitlabObject | ||
| 63 | 73 | elif hasattr(self._obj, 'canUpdate') and self._obj.canUpdate: | |
| 64 | 74 | self._parsed_lines.extend(self._build_doc('object_tmpl.j2', | |
| 65 | 75 | obj=self._obj)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ Contents: | |||
| 16 | 16 | api-usage | |
| 17 | 17 | switching-to-v4 | |
| 18 | 18 | api-objects | |
| 19 | - api/modules | ||
| 19 | + api/gitlab | ||
| 20 | 20 | release_notes | |
| 21 | 21 | changelog | |
| 22 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -996,10 +996,6 @@ class ProjectMilestoneManager(RetrieveMixin, CreateMixin, DeleteMixin, | |||
| 996 | 996 | class ProjectLabel(SubscribableMixin, SaveMixin, ObjectDeleteMixin, | |
| 997 | 997 | RESTObject): | |
| 998 | 998 | _id_attr = 'name' | |
| 999 | - requiredCreateAttrs = ['name', 'color'] | ||
| 1000 | - optionalCreateAttrs = ['description', 'priority'] | ||
| 1001 | - requiredUpdateAttrs = ['name'] | ||
| 1002 | - optionalUpdateAttrs = ['new_name', 'color', 'description', 'priority'] | ||
| 1003 | 999 | ||
| 1004 | 1000 | ||
| 1005 | 1001 | class ProjectLabelManager(GetFromListMixin, CreateMixin, UpdateMixin, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments