Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #524
- Loading branch information
Gauvain Pocentek
committed
Jun 9, 2018
1 parent
5a855fd
commit 39c8ad5
Showing
6 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
######### | ||
Geo nodes | ||
######### | ||
|
||
Reference | ||
--------- | ||
|
||
* v4 API: | ||
|
||
+ :class:`gitlab.v4.objects.GeoNode` | ||
+ :class:`gitlab.v4.objects.GeoNodeManager` | ||
+ :attr:`gitlab.Gitlab.geonodes` | ||
|
||
* GitLab API: https://docs.gitlab.com/ee/api/geo_nodes.html | ||
|
||
Examples | ||
-------- | ||
|
||
List the geo nodes:: | ||
|
||
nodes = gl.geonodes.list() | ||
|
||
Get the status of all the nodes:: | ||
|
||
status = gl.geonodes.status() | ||
|
||
Get a specific node and its status:: | ||
|
||
node = gl.geonodes.get(node_id) | ||
node.status() | ||
|
||
Edit a node configuration:: | ||
|
||
node.url = 'https://secondary.mygitlab.domain' | ||
node.save() | ||
|
||
Delete a node:: | ||
|
||
node.delete() | ||
|
||
List the sync failure on the current node:: | ||
|
||
failures = gl.geonodes.current_failures() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters