| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e0f2290 commit 1f52cd2
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ API objects manipulation | |||
| 9 | 9 | gl_objects/commits | |
| 10 | 10 | gl_objects/groups | |
| 11 | 11 | gl_objects/issues | |
| 12 | + gl_objects/namespaces | ||
| 12 | 13 | gl_objects/projects | |
| 13 | 14 | gl_objects/runners | |
| 14 | 15 | gl_objects/users | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + # list | ||
| 2 | + namespaces = gl.namespaces.list() | ||
| 3 | + # end list | ||
| 4 | + | ||
| 5 | + # search | ||
| 6 | + namespaces = gl.namespaces.list(search='foo') | ||
| 7 | + # end search | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,21 @@ | |||
| 1 | + ########## | ||
| 2 | + Namespaces | ||
| 3 | + ########## | ||
| 4 | + | ||
| 5 | + Use :class:`~gitlab.objects.Namespace` objects to manipulate namespaces. The | ||
| 6 | + :attr:`gitlab.Gitlab.namespaces` manager objects provides helper functions. | ||
| 7 | + | ||
| 8 | + Examples | ||
| 9 | + ======== | ||
| 10 | + | ||
| 11 | + List namespaces: | ||
| 12 | + | ||
| 13 | + .. literalinclude:: namespaces.py | ||
| 14 | + :start-after: # list | ||
| 15 | + :end-before: # end list | ||
| 16 | + | ||
| 17 | + Search namespaces: | ||
| 18 | + | ||
| 19 | + .. literalinclude:: namespaces.py | ||
| 20 | + :start-after: # search | ||
| 21 | + :end-before: # end search | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ Examples | |||
| 13 | 13 | ||
| 14 | 14 | Use the ``list()`` and ``all()`` methods to list runners. | |
| 15 | 15 | ||
| 16 | - The ``all()`` method accepts a ``scope`` parameter to filter the list. Allowed | ||
| 16 | + The ``all()`` method accepts a ``scope`` parameter to filter the list. Allowed | ||
| 17 | 17 | values for this parameter are ``specific``, ``shared``, ``active``, ``paused`` | |
| 18 | 18 | and ``online``. | |
| 19 | 19 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments