semaphoreui-client 0.1.8__tar.gz → 0.1.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/PKG-INFO +1 -1
- semaphoreui_client-0.1.10/semaphoreui_client/__about__.py +1 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/semaphoreui_client/client.py +28 -13
- semaphoreui_client-0.1.8/semaphoreui_client/__about__.py +0 -1
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/.github/workflows/checks.yml +0 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/.github/workflows/pre-release.yml +0 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/.github/workflows/release.yml +0 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/.gitignore +0 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/README.md +0 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/pyproject.toml +0 -0
- {semaphoreui_client-0.1.8 → semaphoreui_client-0.1.10}/semaphoreui_client/__init__.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: semaphoreui-client
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.10
|
4
4
|
Summary: An api client for interacting with Semaphore UI
|
5
5
|
Project-URL: Documentation, https://github.com/rockstar/semaphoreui-client#readme
|
6
6
|
Project-URL: Issues, https://github.com/rockstar/semaphoreui-client/issues
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.1.10"
|
@@ -510,9 +510,7 @@ class SemaphoreUIClient:
|
|
510
510
|
def get_project_tasks(self, project_id: int) -> typing.List["Task"]:
|
511
511
|
response = self.http.get(f"{self.api_endpoint}/project/{project_id}/tasks")
|
512
512
|
assert response.status_code == 200
|
513
|
-
return [
|
514
|
-
Task(**task, project_id=project_id, client=self) for task in response.json()
|
515
|
-
]
|
513
|
+
return [Task(**task, client=self) for task in response.json()]
|
516
514
|
|
517
515
|
def stop_project_task(self, project_id: int, id: int) -> None:
|
518
516
|
response = self.http.post(
|
@@ -901,7 +899,7 @@ class Template:
|
|
901
899
|
build_template_id: int
|
902
900
|
autorun: bool
|
903
901
|
vault_key_id: int
|
904
|
-
last_task:
|
902
|
+
last_task: typing.Optional["Task"]
|
905
903
|
tasks: int
|
906
904
|
|
907
905
|
client: SemaphoreUIClient
|
@@ -938,20 +936,37 @@ class Schedule:
|
|
938
936
|
|
939
937
|
@dataclass
|
940
938
|
class Task:
|
941
|
-
|
942
|
-
|
943
|
-
|
939
|
+
arguments: typing.Optional[str]
|
940
|
+
build_task: typing.Optional["Task"]
|
941
|
+
build_task_id: typing.Optional[int]
|
942
|
+
commit_hash: typing.Optional[str]
|
943
|
+
commit_message: str
|
944
|
+
created: str
|
944
945
|
debug: bool
|
945
|
-
|
946
|
+
diff: bool
|
947
|
+
dry_run: bool
|
948
|
+
end: bool
|
946
949
|
environment: str
|
947
|
-
|
950
|
+
id: int
|
951
|
+
integration_id: typing.Optional[int]
|
952
|
+
inventory_id: typing.Optional[int]
|
948
953
|
limit: str
|
949
|
-
git_branch: str
|
950
954
|
message: str
|
951
|
-
|
952
|
-
# Project id isn't included in the api type, but is required
|
953
|
-
# to perform operations.
|
955
|
+
playbook: str
|
954
956
|
project_id: int
|
957
|
+
schedule_id: typing.Optional[int]
|
958
|
+
secret: str
|
959
|
+
start: str
|
960
|
+
status: str
|
961
|
+
template_id: int
|
962
|
+
tpl_alias: str
|
963
|
+
tpl_app: str
|
964
|
+
tpl_playbook: str
|
965
|
+
tpl_type: str
|
966
|
+
user_id: typing.Optional[int]
|
967
|
+
user_name: typing.Optional[str]
|
968
|
+
version: typing.Optional[str]
|
969
|
+
|
955
970
|
client: SemaphoreUIClient
|
956
971
|
|
957
972
|
def stop(self) -> None:
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.1.8"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|