diff options
Diffstat (limited to 'gitlab/v4/objects/geo_nodes.py')
-rw-r--r-- | gitlab/v4/objects/geo_nodes.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/gitlab/v4/objects/geo_nodes.py b/gitlab/v4/objects/geo_nodes.py index 7fffb63..1bb3412 100644 --- a/gitlab/v4/objects/geo_nodes.py +++ b/gitlab/v4/objects/geo_nodes.py @@ -41,15 +41,15 @@ class GeoNode(SaveMixin, ObjectDeleteMixin, RESTObject): def status(self, **kwargs: Any) -> Dict[str, Any]: """Get the status of the geo node. - Args: - **kwargs: Extra options to send to the server (e.g. sudo) + Args: + **kwargs: Extra options to send to the server (e.g. sudo) - Raises: - GitlabAuthenticationError: If authentication is not correct - GitlabGetError: If the server failed to perform the request + Raises: + GitlabAuthenticationError: If authentication is not correct + GitlabGetError: If the server failed to perform the request - Returns: - dict: The status of the geo node + Returns: + The status of the geo node """ path = f"/geo_nodes/{self.get_id()}/status" result = self.manager.gitlab.http_get(path, **kwargs) @@ -73,15 +73,15 @@ class GeoNodeManager(RetrieveMixin, UpdateMixin, DeleteMixin, RESTManager): def status(self, **kwargs: Any) -> List[Dict[str, Any]]: """Get the status of all the geo nodes. - Args: - **kwargs: Extra options to send to the server (e.g. sudo) + Args: + **kwargs: Extra options to send to the server (e.g. sudo) - Raises: - GitlabAuthenticationError: If authentication is not correct - GitlabGetError: If the server failed to perform the request + Raises: + GitlabAuthenticationError: If authentication is not correct + GitlabGetError: If the server failed to perform the request - Returns: - list: The status of all the geo nodes + Returns: + The status of all the geo nodes """ result = self.gitlab.http_list("/geo_nodes/status", **kwargs) if TYPE_CHECKING: @@ -93,15 +93,15 @@ class GeoNodeManager(RetrieveMixin, UpdateMixin, DeleteMixin, RESTManager): def current_failures(self, **kwargs: Any) -> List[Dict[str, Any]]: """Get the list of failures on the current geo node. - Args: - **kwargs: Extra options to send to the server (e.g. sudo) + Args: + **kwargs: Extra options to send to the server (e.g. sudo) - Raises: - GitlabAuthenticationError: If authentication is not correct - GitlabGetError: If the server failed to perform the request + Raises: + GitlabAuthenticationError: If authentication is not correct + GitlabGetError: If the server failed to perform the request - Returns: - list: The list of failures + Returns: + The list of failures """ result = self.gitlab.http_list("/geo_nodes/current/failures", **kwargs) if TYPE_CHECKING: |