nexuscli.api.task package¶
Submodules¶
nexuscli.api.task.collection module¶
-
class
nexuscli.api.task.collection.
TaskCollection
(nexus_http: nexuscli.nexus_http.NexusHttp = None)¶ Bases:
nexuscli.api.base_collection.BaseCollection
-
raw_list
() → list¶ List of all script names on the Nexus 3 service.
- Returns
a list of names
- Raises
exception.NexusClientAPIError – if list cannot be retrieved; i.e.: any HTTP code
other than 200.
-
run
(task_id: str) → None¶ Run a task by id
- Raises
exception.NexusClientAPIError – if task cannot be run
-
show
(task_id: str) → dict¶ Get a single task by id
- Raises
exception.NexusClientAPIError – if task cannot be retrieved
-
stop
(task_id: str) → None¶ Stop a running task by id
- Raises
exception.NexusClientAPIError – if task cannot be stopped
-
nexuscli.api.task.model module¶
-
class
nexuscli.api.task.model.
Task
(nexus_http: Optional[nexuscli.nexus_http.NexusHttp] = None, **kwargs)¶