cosmotech-api 3.2.0.post1__py3-none-any.whl → 5.0.0rc3__py3-none-any.whl
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.
- cosmotech_api/__init__.py +180 -130
- cosmotech_api/api/__init__.py +1 -4
- cosmotech_api/api/connector_api.py +31 -27
- cosmotech_api/api/dataset_api.py +1762 -3918
- cosmotech_api/api/meta_api.py +281 -0
- cosmotech_api/api/organization_api.py +654 -1460
- cosmotech_api/api/run_api.py +170 -817
- cosmotech_api/api/runner_api.py +688 -631
- cosmotech_api/api/scenario_api.py +141 -121
- cosmotech_api/api/scenariorun_api.py +76 -66
- cosmotech_api/api/scenariorunresult_api.py +341 -659
- cosmotech_api/api/solution_api.py +2504 -956
- cosmotech_api/api/twingraph_api.py +83 -72
- cosmotech_api/api/validator_api.py +1249 -2501
- cosmotech_api/api/workspace_api.py +835 -1658
- cosmotech_api/api_client.py +79 -33
- cosmotech_api/configuration.py +185 -48
- cosmotech_api/exceptions.py +18 -1
- cosmotech_api/model/component_role_permissions.py +1 -1
- cosmotech_api/model/connector.py +1 -1
- cosmotech_api/model/connector_parameter.py +1 -1
- cosmotech_api/model/connector_parameter_group.py +1 -1
- cosmotech_api/model/container_resource_size_info.py +1 -1
- cosmotech_api/model/container_resource_sizing.py +1 -1
- cosmotech_api/model/dataset.py +1 -1
- cosmotech_api/model/dataset_access_control.py +1 -1
- cosmotech_api/model/dataset_compatibility.py +1 -1
- cosmotech_api/model/dataset_connector.py +1 -1
- cosmotech_api/model/dataset_copy_parameters.py +1 -1
- cosmotech_api/model/dataset_role.py +1 -1
- cosmotech_api/model/dataset_search.py +1 -1
- cosmotech_api/model/dataset_security.py +1 -1
- cosmotech_api/model/dataset_source_type.py +1 -1
- cosmotech_api/model/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/model/dataset_twin_graph_info.py +1 -1
- cosmotech_api/model/dataset_twin_graph_query.py +1 -1
- cosmotech_api/model/delete_historical_data.py +1 -1
- cosmotech_api/model/file_upload_metadata.py +1 -1
- cosmotech_api/model/file_upload_validation.py +1 -1
- cosmotech_api/model/graph_properties.py +1 -1
- cosmotech_api/model/organization.py +1 -1
- cosmotech_api/model/organization_access_control.py +1 -1
- cosmotech_api/model/organization_role.py +1 -1
- cosmotech_api/model/organization_security.py +1 -1
- cosmotech_api/model/organization_service.py +1 -1
- cosmotech_api/model/organization_services.py +1 -1
- cosmotech_api/model/resource_size_info.py +1 -1
- cosmotech_api/model/run.py +1 -1
- cosmotech_api/model/run_container.py +1 -1
- cosmotech_api/model/run_container_artifact.py +1 -1
- cosmotech_api/model/run_container_logs.py +1 -1
- cosmotech_api/model/run_logs.py +1 -1
- cosmotech_api/model/run_resource_requested.py +1 -1
- cosmotech_api/model/run_search.py +1 -1
- cosmotech_api/model/run_start_containers.py +1 -1
- cosmotech_api/model/run_state.py +1 -1
- cosmotech_api/model/run_status.py +1 -1
- cosmotech_api/model/run_status_node.py +1 -1
- cosmotech_api/model/run_template.py +1 -1
- cosmotech_api/model/run_template_handler_id.py +1 -1
- cosmotech_api/model/run_template_orchestrator.py +1 -1
- cosmotech_api/model/run_template_parameter.py +1 -1
- cosmotech_api/model/run_template_parameter_group.py +1 -1
- cosmotech_api/model/run_template_parameter_value.py +1 -1
- cosmotech_api/model/run_template_resource_sizing.py +1 -1
- cosmotech_api/model/run_template_step_source.py +1 -1
- cosmotech_api/model/runner.py +1 -1
- cosmotech_api/model/runner_access_control.py +1 -1
- cosmotech_api/model/runner_changed_parameter_value.py +1 -1
- cosmotech_api/model/runner_comparison_result.py +1 -1
- cosmotech_api/model/runner_data_download_info.py +1 -1
- cosmotech_api/model/runner_data_download_job.py +1 -1
- cosmotech_api/model/runner_job_state.py +1 -1
- cosmotech_api/model/runner_last_run.py +1 -1
- cosmotech_api/model/runner_resource_sizing.py +1 -1
- cosmotech_api/model/runner_role.py +1 -1
- cosmotech_api/model/runner_run_template_parameter_value.py +1 -1
- cosmotech_api/model/runner_security.py +1 -1
- cosmotech_api/model/runner_validation_status.py +1 -1
- cosmotech_api/model/scenario.py +1 -1
- cosmotech_api/model/scenario_access_control.py +1 -1
- cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
- cosmotech_api/model/scenario_comparison_result.py +1 -1
- cosmotech_api/model/scenario_data_download_info.py +1 -1
- cosmotech_api/model/scenario_data_download_job.py +1 -1
- cosmotech_api/model/scenario_job_state.py +1 -1
- cosmotech_api/model/scenario_last_run.py +1 -1
- cosmotech_api/model/scenario_resource_sizing.py +1 -1
- cosmotech_api/model/scenario_role.py +1 -1
- cosmotech_api/model/scenario_run.py +1 -1
- cosmotech_api/model/scenario_run_container.py +1 -1
- cosmotech_api/model/scenario_run_container_artifact.py +1 -1
- cosmotech_api/model/scenario_run_container_logs.py +1 -1
- cosmotech_api/model/scenario_run_logs.py +1 -1
- cosmotech_api/model/scenario_run_resource_requested.py +1 -1
- cosmotech_api/model/scenario_run_result.py +1 -1
- cosmotech_api/model/scenario_run_search.py +1 -1
- cosmotech_api/model/scenario_run_start_containers.py +1 -1
- cosmotech_api/model/scenario_run_state.py +1 -1
- cosmotech_api/model/scenario_run_status.py +1 -1
- cosmotech_api/model/scenario_run_status_node.py +1 -1
- cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
- cosmotech_api/model/scenario_security.py +1 -1
- cosmotech_api/model/scenario_validation_status.py +1 -1
- cosmotech_api/model/solution.py +1 -1
- cosmotech_api/model/solution_access_control.py +1 -1
- cosmotech_api/model/solution_role.py +1 -1
- cosmotech_api/model/solution_security.py +1 -1
- cosmotech_api/model/source_info.py +1 -1
- cosmotech_api/model/sub_dataset_graph_query.py +1 -1
- cosmotech_api/model/translated_labels.py +1 -1
- cosmotech_api/model/twin_graph_batch_result.py +1 -1
- cosmotech_api/model/twin_graph_hash.py +1 -1
- cosmotech_api/model/twin_graph_query.py +1 -1
- cosmotech_api/model/validator.py +1 -1
- cosmotech_api/model/validator_run.py +1 -1
- cosmotech_api/model/workspace.py +1 -1
- cosmotech_api/model/workspace_access_control.py +1 -1
- cosmotech_api/model/workspace_file.py +1 -1
- cosmotech_api/model/workspace_role.py +1 -1
- cosmotech_api/model/workspace_secret.py +1 -1
- cosmotech_api/model/workspace_security.py +1 -1
- cosmotech_api/model/workspace_solution.py +1 -1
- cosmotech_api/model/workspace_web_app.py +1 -1
- cosmotech_api/model_utils.py +1 -1
- cosmotech_api/models/__init__.py +33 -72
- cosmotech_api/models/about_info.py +92 -0
- cosmotech_api/models/about_info_version.py +100 -0
- cosmotech_api/models/component_role_permissions.py +11 -11
- cosmotech_api/models/connector.py +12 -22
- cosmotech_api/models/connector_parameter.py +7 -7
- cosmotech_api/models/connector_parameter_group.py +10 -10
- cosmotech_api/models/container_resource_size_info.py +7 -7
- cosmotech_api/models/container_resource_sizing.py +7 -7
- cosmotech_api/models/create_info.py +103 -0
- cosmotech_api/models/created_run.py +88 -0
- cosmotech_api/models/dataset.py +47 -103
- cosmotech_api/models/dataset_access_control.py +7 -7
- cosmotech_api/models/dataset_compatibility.py +7 -7
- cosmotech_api/models/dataset_connector.py +7 -7
- cosmotech_api/models/dataset_copy_parameters.py +7 -7
- cosmotech_api/models/dataset_create_info.py +103 -0
- cosmotech_api/models/dataset_create_request.py +111 -0
- cosmotech_api/models/dataset_edit_info.py +90 -0
- cosmotech_api/models/dataset_part.py +132 -0
- cosmotech_api/models/dataset_part_create_request.py +100 -0
- cosmotech_api/models/dataset_part_type_enum.py +38 -0
- cosmotech_api/models/dataset_part_update_request.py +95 -0
- cosmotech_api/models/dataset_role.py +7 -7
- cosmotech_api/models/dataset_search.py +7 -7
- cosmotech_api/models/dataset_security.py +10 -10
- cosmotech_api/models/dataset_source_type.py +1 -1
- cosmotech_api/models/dataset_twin_graph_hash.py +7 -7
- cosmotech_api/models/dataset_twin_graph_info.py +7 -7
- cosmotech_api/models/dataset_twin_graph_query.py +7 -7
- cosmotech_api/models/dataset_update_request.py +105 -0
- cosmotech_api/models/delete_historical_data.py +7 -7
- cosmotech_api/models/edit_info.py +90 -0
- cosmotech_api/models/file_upload_metadata.py +7 -7
- cosmotech_api/models/file_upload_validation.py +13 -13
- cosmotech_api/models/graph_properties.py +7 -7
- cosmotech_api/models/ingestion_status_enum.py +40 -0
- cosmotech_api/models/io_types_enum.py +38 -0
- cosmotech_api/models/last_run_info.py +100 -0
- cosmotech_api/models/organization.py +24 -23
- cosmotech_api/models/organization_access_control.py +10 -10
- cosmotech_api/models/organization_create_request.py +95 -0
- cosmotech_api/models/organization_edit_info.py +90 -0
- cosmotech_api/models/organization_role.py +9 -9
- cosmotech_api/models/organization_security.py +13 -13
- cosmotech_api/models/organization_service.py +7 -7
- cosmotech_api/models/organization_services.py +7 -7
- cosmotech_api/models/organization_update_request.py +89 -0
- cosmotech_api/models/query_result.py +7 -7
- cosmotech_api/models/resource_size_info.py +7 -7
- cosmotech_api/models/run.py +20 -22
- cosmotech_api/models/run_container.py +9 -19
- cosmotech_api/models/run_container_artifact.py +7 -7
- cosmotech_api/models/run_container_logs.py +7 -7
- cosmotech_api/models/run_data.py +7 -7
- cosmotech_api/models/run_data_query.py +7 -7
- cosmotech_api/models/run_edit_info.py +90 -0
- cosmotech_api/models/run_logs.py +10 -10
- cosmotech_api/models/run_logs_entry.py +88 -0
- cosmotech_api/models/run_resource_requested.py +7 -7
- cosmotech_api/models/run_search.py +9 -18
- cosmotech_api/models/run_search_state.py +46 -0
- cosmotech_api/models/run_start_containers.py +10 -10
- cosmotech_api/models/run_state.py +2 -1
- cosmotech_api/models/run_status.py +17 -11
- cosmotech_api/models/run_status_node.py +7 -7
- cosmotech_api/models/run_template.py +20 -75
- cosmotech_api/models/run_template_create_request.py +109 -0
- cosmotech_api/models/run_template_handler_id.py +1 -1
- cosmotech_api/models/run_template_orchestrator.py +1 -1
- cosmotech_api/models/run_template_parameter.py +21 -20
- cosmotech_api/models/run_template_parameter_create_request.py +103 -0
- cosmotech_api/models/run_template_parameter_group.py +17 -18
- cosmotech_api/models/run_template_parameter_group_create_request.py +97 -0
- cosmotech_api/models/run_template_parameter_group_update_request.py +94 -0
- cosmotech_api/models/run_template_parameter_update_request.py +101 -0
- cosmotech_api/models/run_template_parameter_value.py +7 -7
- cosmotech_api/models/run_template_resource_sizing.py +8 -8
- cosmotech_api/models/run_template_step_source.py +1 -1
- cosmotech_api/models/run_template_update_request.py +107 -0
- cosmotech_api/models/runner.py +48 -62
- cosmotech_api/models/runner_access_control.py +7 -7
- cosmotech_api/models/runner_changed_parameter_value.py +7 -7
- cosmotech_api/models/runner_comparison_result.py +10 -10
- cosmotech_api/models/runner_create_request.py +146 -0
- cosmotech_api/models/runner_data_download_info.py +7 -7
- cosmotech_api/models/runner_data_download_job.py +7 -7
- cosmotech_api/models/runner_datasets.py +92 -0
- cosmotech_api/models/runner_edit_info.py +90 -0
- cosmotech_api/models/runner_job_state.py +1 -1
- cosmotech_api/models/runner_last_run.py +7 -7
- cosmotech_api/models/runner_parent_last_run.py +7 -7
- cosmotech_api/models/runner_resource_sizing.py +7 -7
- cosmotech_api/models/runner_role.py +7 -7
- cosmotech_api/models/runner_root_last_run.py +7 -7
- cosmotech_api/models/runner_run_template_parameter_value.py +7 -9
- cosmotech_api/models/runner_security.py +10 -10
- cosmotech_api/models/runner_update_request.py +119 -0
- cosmotech_api/models/runner_validation_status.py +1 -1
- cosmotech_api/models/scenario.py +10 -10
- cosmotech_api/models/scenario_access_control.py +7 -7
- cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
- cosmotech_api/models/scenario_comparison_result.py +10 -10
- cosmotech_api/models/scenario_data_download_info.py +7 -7
- cosmotech_api/models/scenario_data_download_job.py +7 -7
- cosmotech_api/models/scenario_job_state.py +1 -1
- cosmotech_api/models/scenario_last_run.py +7 -7
- cosmotech_api/models/scenario_resource_sizing.py +7 -7
- cosmotech_api/models/scenario_role.py +7 -7
- cosmotech_api/models/scenario_run.py +13 -13
- cosmotech_api/models/scenario_run_container.py +10 -10
- cosmotech_api/models/scenario_run_container_artifact.py +7 -7
- cosmotech_api/models/scenario_run_container_logs.py +7 -7
- cosmotech_api/models/scenario_run_logs.py +10 -10
- cosmotech_api/models/scenario_run_resource_requested.py +7 -7
- cosmotech_api/models/scenario_run_search.py +9 -18
- cosmotech_api/models/scenario_run_search_state.py +46 -0
- cosmotech_api/models/scenario_run_start_containers.py +10 -10
- cosmotech_api/models/scenario_run_state.py +1 -1
- cosmotech_api/models/scenario_run_status.py +10 -10
- cosmotech_api/models/scenario_run_status_node.py +7 -7
- cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
- cosmotech_api/models/scenario_security.py +10 -10
- cosmotech_api/models/scenario_validation_status.py +1 -1
- cosmotech_api/models/send_run_data_request.py +7 -7
- cosmotech_api/models/solution.py +60 -44
- cosmotech_api/models/solution_access_control.py +10 -10
- cosmotech_api/models/solution_create_request.py +139 -0
- cosmotech_api/models/solution_edit_info.py +90 -0
- cosmotech_api/models/solution_file.py +88 -0
- cosmotech_api/models/solution_role.py +9 -9
- cosmotech_api/models/solution_security.py +13 -13
- cosmotech_api/models/solution_update_request.py +133 -0
- cosmotech_api/models/source_info.py +7 -7
- cosmotech_api/models/sub_dataset_graph_query.py +7 -7
- cosmotech_api/models/twin_graph_batch_result.py +7 -7
- cosmotech_api/models/twin_graph_hash.py +7 -7
- cosmotech_api/models/twin_graph_query.py +7 -7
- cosmotech_api/models/twincache_status_enum.py +38 -0
- cosmotech_api/models/validator.py +7 -7
- cosmotech_api/models/workspace.py +46 -42
- cosmotech_api/models/workspace_access_control.py +10 -10
- cosmotech_api/models/workspace_create_request.py +113 -0
- cosmotech_api/models/workspace_edit_info.py +90 -0
- cosmotech_api/models/workspace_file.py +10 -10
- cosmotech_api/models/workspace_role.py +9 -9
- cosmotech_api/models/workspace_secret.py +7 -7
- cosmotech_api/models/workspace_security.py +13 -13
- cosmotech_api/models/workspace_solution.py +33 -15
- cosmotech_api/models/workspace_update_request.py +105 -0
- cosmotech_api/models/workspace_web_app.py +7 -7
- cosmotech_api/rest.py +5 -2
- cosmotech_api-5.0.0rc3.dist-info/METADATA +314 -0
- cosmotech_api-5.0.0rc3.dist-info/RECORD +297 -0
- {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/WHEEL +1 -1
- {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info/licenses}/LICENSE +1 -1
- cosmotech_api-3.2.0.post1.dist-info/METADATA +0 -18
- cosmotech_api-3.2.0.post1.dist-info/RECORD +0 -255
- {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/top_level.txt +0 -0
cosmotech_api/api/run_api.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Cosmo Tech Platform API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 5.0.0-rc3
|
|
9
9
|
Contact: platform@cosmotech.com
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -17,16 +17,11 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
|
-
from pydantic import Field, StrictInt, StrictStr
|
|
21
|
-
from typing import Optional
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
|
-
from cosmotech_api.models.query_result import QueryResult
|
|
24
23
|
from cosmotech_api.models.run import Run
|
|
25
|
-
from cosmotech_api.models.run_data import RunData
|
|
26
|
-
from cosmotech_api.models.run_data_query import RunDataQuery
|
|
27
|
-
from cosmotech_api.models.run_logs import RunLogs
|
|
28
24
|
from cosmotech_api.models.run_status import RunStatus
|
|
29
|
-
from cosmotech_api.models.send_run_data_request import SendRunDataRequest
|
|
30
25
|
|
|
31
26
|
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
32
27
|
from cosmotech_api.api_response import ApiResponse
|
|
@@ -49,10 +44,10 @@ class RunApi:
|
|
|
49
44
|
@validate_call
|
|
50
45
|
def delete_run(
|
|
51
46
|
self,
|
|
52
|
-
organization_id: Annotated[
|
|
53
|
-
workspace_id: Annotated[
|
|
54
|
-
runner_id: Annotated[
|
|
55
|
-
run_id: Annotated[
|
|
47
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
48
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
49
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
50
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
56
51
|
_request_timeout: Union[
|
|
57
52
|
None,
|
|
58
53
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -69,13 +64,13 @@ class RunApi:
|
|
|
69
64
|
"""Delete a run
|
|
70
65
|
|
|
71
66
|
|
|
72
|
-
:param organization_id:
|
|
67
|
+
:param organization_id: The Organization identifier (required)
|
|
73
68
|
:type organization_id: str
|
|
74
|
-
:param workspace_id:
|
|
69
|
+
:param workspace_id: The Workspace identifier (required)
|
|
75
70
|
:type workspace_id: str
|
|
76
|
-
:param runner_id:
|
|
71
|
+
:param runner_id: The Runner identifier (required)
|
|
77
72
|
:type runner_id: str
|
|
78
|
-
:param run_id:
|
|
73
|
+
:param run_id: The Run identifier (required)
|
|
79
74
|
:type run_id: str
|
|
80
75
|
:param _request_timeout: timeout setting for this request. If one
|
|
81
76
|
number provided, it will be total request
|
|
@@ -129,10 +124,10 @@ class RunApi:
|
|
|
129
124
|
@validate_call
|
|
130
125
|
def delete_run_with_http_info(
|
|
131
126
|
self,
|
|
132
|
-
organization_id: Annotated[
|
|
133
|
-
workspace_id: Annotated[
|
|
134
|
-
runner_id: Annotated[
|
|
135
|
-
run_id: Annotated[
|
|
127
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
128
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
129
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
130
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
136
131
|
_request_timeout: Union[
|
|
137
132
|
None,
|
|
138
133
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -149,13 +144,13 @@ class RunApi:
|
|
|
149
144
|
"""Delete a run
|
|
150
145
|
|
|
151
146
|
|
|
152
|
-
:param organization_id:
|
|
147
|
+
:param organization_id: The Organization identifier (required)
|
|
153
148
|
:type organization_id: str
|
|
154
|
-
:param workspace_id:
|
|
149
|
+
:param workspace_id: The Workspace identifier (required)
|
|
155
150
|
:type workspace_id: str
|
|
156
|
-
:param runner_id:
|
|
151
|
+
:param runner_id: The Runner identifier (required)
|
|
157
152
|
:type runner_id: str
|
|
158
|
-
:param run_id:
|
|
153
|
+
:param run_id: The Run identifier (required)
|
|
159
154
|
:type run_id: str
|
|
160
155
|
:param _request_timeout: timeout setting for this request. If one
|
|
161
156
|
number provided, it will be total request
|
|
@@ -209,10 +204,10 @@ class RunApi:
|
|
|
209
204
|
@validate_call
|
|
210
205
|
def delete_run_without_preload_content(
|
|
211
206
|
self,
|
|
212
|
-
organization_id: Annotated[
|
|
213
|
-
workspace_id: Annotated[
|
|
214
|
-
runner_id: Annotated[
|
|
215
|
-
run_id: Annotated[
|
|
207
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
208
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
209
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
210
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
216
211
|
_request_timeout: Union[
|
|
217
212
|
None,
|
|
218
213
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -229,13 +224,13 @@ class RunApi:
|
|
|
229
224
|
"""Delete a run
|
|
230
225
|
|
|
231
226
|
|
|
232
|
-
:param organization_id:
|
|
227
|
+
:param organization_id: The Organization identifier (required)
|
|
233
228
|
:type organization_id: str
|
|
234
|
-
:param workspace_id:
|
|
229
|
+
:param workspace_id: The Workspace identifier (required)
|
|
235
230
|
:type workspace_id: str
|
|
236
|
-
:param runner_id:
|
|
231
|
+
:param runner_id: The Runner identifier (required)
|
|
237
232
|
:type runner_id: str
|
|
238
|
-
:param run_id:
|
|
233
|
+
:param run_id: The Run identifier (required)
|
|
239
234
|
:type run_id: str
|
|
240
235
|
:param _request_timeout: timeout setting for this request. If one
|
|
241
236
|
number provided, it will be total request
|
|
@@ -303,7 +298,9 @@ class RunApi:
|
|
|
303
298
|
_query_params: List[Tuple[str, str]] = []
|
|
304
299
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
305
300
|
_form_params: List[Tuple[str, str]] = []
|
|
306
|
-
_files: Dict[
|
|
301
|
+
_files: Dict[
|
|
302
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
303
|
+
] = {}
|
|
307
304
|
_body_params: Optional[bytes] = None
|
|
308
305
|
|
|
309
306
|
# process the path parameters
|
|
@@ -349,10 +346,10 @@ class RunApi:
|
|
|
349
346
|
@validate_call
|
|
350
347
|
def get_run(
|
|
351
348
|
self,
|
|
352
|
-
organization_id: Annotated[
|
|
353
|
-
workspace_id: Annotated[
|
|
354
|
-
runner_id: Annotated[
|
|
355
|
-
run_id: Annotated[
|
|
349
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
350
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
351
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
352
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
356
353
|
_request_timeout: Union[
|
|
357
354
|
None,
|
|
358
355
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -369,13 +366,13 @@ class RunApi:
|
|
|
369
366
|
"""Get the details of a run
|
|
370
367
|
|
|
371
368
|
|
|
372
|
-
:param organization_id:
|
|
369
|
+
:param organization_id: The Organization identifier (required)
|
|
373
370
|
:type organization_id: str
|
|
374
|
-
:param workspace_id:
|
|
371
|
+
:param workspace_id: The Workspace identifier (required)
|
|
375
372
|
:type workspace_id: str
|
|
376
|
-
:param runner_id:
|
|
373
|
+
:param runner_id: The Runner identifier (required)
|
|
377
374
|
:type runner_id: str
|
|
378
|
-
:param run_id:
|
|
375
|
+
:param run_id: The Run identifier (required)
|
|
379
376
|
:type run_id: str
|
|
380
377
|
:param _request_timeout: timeout setting for this request. If one
|
|
381
378
|
number provided, it will be total request
|
|
@@ -428,10 +425,10 @@ class RunApi:
|
|
|
428
425
|
@validate_call
|
|
429
426
|
def get_run_with_http_info(
|
|
430
427
|
self,
|
|
431
|
-
organization_id: Annotated[
|
|
432
|
-
workspace_id: Annotated[
|
|
433
|
-
runner_id: Annotated[
|
|
434
|
-
run_id: Annotated[
|
|
428
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
429
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
430
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
431
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
435
432
|
_request_timeout: Union[
|
|
436
433
|
None,
|
|
437
434
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -448,13 +445,13 @@ class RunApi:
|
|
|
448
445
|
"""Get the details of a run
|
|
449
446
|
|
|
450
447
|
|
|
451
|
-
:param organization_id:
|
|
448
|
+
:param organization_id: The Organization identifier (required)
|
|
452
449
|
:type organization_id: str
|
|
453
|
-
:param workspace_id:
|
|
450
|
+
:param workspace_id: The Workspace identifier (required)
|
|
454
451
|
:type workspace_id: str
|
|
455
|
-
:param runner_id:
|
|
452
|
+
:param runner_id: The Runner identifier (required)
|
|
456
453
|
:type runner_id: str
|
|
457
|
-
:param run_id:
|
|
454
|
+
:param run_id: The Run identifier (required)
|
|
458
455
|
:type run_id: str
|
|
459
456
|
:param _request_timeout: timeout setting for this request. If one
|
|
460
457
|
number provided, it will be total request
|
|
@@ -507,10 +504,10 @@ class RunApi:
|
|
|
507
504
|
@validate_call
|
|
508
505
|
def get_run_without_preload_content(
|
|
509
506
|
self,
|
|
510
|
-
organization_id: Annotated[
|
|
511
|
-
workspace_id: Annotated[
|
|
512
|
-
runner_id: Annotated[
|
|
513
|
-
run_id: Annotated[
|
|
507
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
508
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
509
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
510
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
514
511
|
_request_timeout: Union[
|
|
515
512
|
None,
|
|
516
513
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -527,13 +524,13 @@ class RunApi:
|
|
|
527
524
|
"""Get the details of a run
|
|
528
525
|
|
|
529
526
|
|
|
530
|
-
:param organization_id:
|
|
527
|
+
:param organization_id: The Organization identifier (required)
|
|
531
528
|
:type organization_id: str
|
|
532
|
-
:param workspace_id:
|
|
529
|
+
:param workspace_id: The Workspace identifier (required)
|
|
533
530
|
:type workspace_id: str
|
|
534
|
-
:param runner_id:
|
|
531
|
+
:param runner_id: The Runner identifier (required)
|
|
535
532
|
:type runner_id: str
|
|
536
|
-
:param run_id:
|
|
533
|
+
:param run_id: The Run identifier (required)
|
|
537
534
|
:type run_id: str
|
|
538
535
|
:param _request_timeout: timeout setting for this request. If one
|
|
539
536
|
number provided, it will be total request
|
|
@@ -600,7 +597,9 @@ class RunApi:
|
|
|
600
597
|
_query_params: List[Tuple[str, str]] = []
|
|
601
598
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
602
599
|
_form_params: List[Tuple[str, str]] = []
|
|
603
|
-
_files: Dict[
|
|
600
|
+
_files: Dict[
|
|
601
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
602
|
+
] = {}
|
|
604
603
|
_body_params: Optional[bytes] = None
|
|
605
604
|
|
|
606
605
|
# process the path parameters
|
|
@@ -619,11 +618,13 @@ class RunApi:
|
|
|
619
618
|
|
|
620
619
|
|
|
621
620
|
# set the HTTP header `Accept`
|
|
622
|
-
|
|
623
|
-
[
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
621
|
+
if 'Accept' not in _header_params:
|
|
622
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
623
|
+
[
|
|
624
|
+
'application/json',
|
|
625
|
+
'application/yaml'
|
|
626
|
+
]
|
|
627
|
+
)
|
|
627
628
|
|
|
628
629
|
|
|
629
630
|
# authentication setting
|
|
@@ -652,10 +653,10 @@ class RunApi:
|
|
|
652
653
|
@validate_call
|
|
653
654
|
def get_run_logs(
|
|
654
655
|
self,
|
|
655
|
-
organization_id: Annotated[
|
|
656
|
-
workspace_id: Annotated[
|
|
657
|
-
runner_id: Annotated[
|
|
658
|
-
run_id: Annotated[
|
|
656
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
657
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
658
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
659
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
659
660
|
_request_timeout: Union[
|
|
660
661
|
None,
|
|
661
662
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -668,17 +669,17 @@ class RunApi:
|
|
|
668
669
|
_content_type: Optional[StrictStr] = None,
|
|
669
670
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
670
671
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
671
|
-
) ->
|
|
672
|
+
) -> str:
|
|
672
673
|
"""get the logs for the Run
|
|
673
674
|
|
|
674
675
|
|
|
675
|
-
:param organization_id:
|
|
676
|
+
:param organization_id: The Organization identifier (required)
|
|
676
677
|
:type organization_id: str
|
|
677
|
-
:param workspace_id:
|
|
678
|
+
:param workspace_id: The Workspace identifier (required)
|
|
678
679
|
:type workspace_id: str
|
|
679
|
-
:param runner_id:
|
|
680
|
+
:param runner_id: The Runner identifier (required)
|
|
680
681
|
:type runner_id: str
|
|
681
|
-
:param run_id:
|
|
682
|
+
:param run_id: The Run identifier (required)
|
|
682
683
|
:type run_id: str
|
|
683
684
|
:param _request_timeout: timeout setting for this request. If one
|
|
684
685
|
number provided, it will be total request
|
|
@@ -714,7 +715,7 @@ class RunApi:
|
|
|
714
715
|
)
|
|
715
716
|
|
|
716
717
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
717
|
-
'200': "
|
|
718
|
+
'200': "str",
|
|
718
719
|
}
|
|
719
720
|
response_data = self.api_client.call_api(
|
|
720
721
|
*_param,
|
|
@@ -730,10 +731,10 @@ class RunApi:
|
|
|
730
731
|
@validate_call
|
|
731
732
|
def get_run_logs_with_http_info(
|
|
732
733
|
self,
|
|
733
|
-
organization_id: Annotated[
|
|
734
|
-
workspace_id: Annotated[
|
|
735
|
-
runner_id: Annotated[
|
|
736
|
-
run_id: Annotated[
|
|
734
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
735
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
736
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
737
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
737
738
|
_request_timeout: Union[
|
|
738
739
|
None,
|
|
739
740
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -746,17 +747,17 @@ class RunApi:
|
|
|
746
747
|
_content_type: Optional[StrictStr] = None,
|
|
747
748
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
748
749
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
749
|
-
) -> ApiResponse[
|
|
750
|
+
) -> ApiResponse[str]:
|
|
750
751
|
"""get the logs for the Run
|
|
751
752
|
|
|
752
753
|
|
|
753
|
-
:param organization_id:
|
|
754
|
+
:param organization_id: The Organization identifier (required)
|
|
754
755
|
:type organization_id: str
|
|
755
|
-
:param workspace_id:
|
|
756
|
+
:param workspace_id: The Workspace identifier (required)
|
|
756
757
|
:type workspace_id: str
|
|
757
|
-
:param runner_id:
|
|
758
|
+
:param runner_id: The Runner identifier (required)
|
|
758
759
|
:type runner_id: str
|
|
759
|
-
:param run_id:
|
|
760
|
+
:param run_id: The Run identifier (required)
|
|
760
761
|
:type run_id: str
|
|
761
762
|
:param _request_timeout: timeout setting for this request. If one
|
|
762
763
|
number provided, it will be total request
|
|
@@ -792,7 +793,7 @@ class RunApi:
|
|
|
792
793
|
)
|
|
793
794
|
|
|
794
795
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
795
|
-
'200': "
|
|
796
|
+
'200': "str",
|
|
796
797
|
}
|
|
797
798
|
response_data = self.api_client.call_api(
|
|
798
799
|
*_param,
|
|
@@ -808,10 +809,10 @@ class RunApi:
|
|
|
808
809
|
@validate_call
|
|
809
810
|
def get_run_logs_without_preload_content(
|
|
810
811
|
self,
|
|
811
|
-
organization_id: Annotated[
|
|
812
|
-
workspace_id: Annotated[
|
|
813
|
-
runner_id: Annotated[
|
|
814
|
-
run_id: Annotated[
|
|
812
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
813
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
814
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
815
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
815
816
|
_request_timeout: Union[
|
|
816
817
|
None,
|
|
817
818
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -828,13 +829,13 @@ class RunApi:
|
|
|
828
829
|
"""get the logs for the Run
|
|
829
830
|
|
|
830
831
|
|
|
831
|
-
:param organization_id:
|
|
832
|
+
:param organization_id: The Organization identifier (required)
|
|
832
833
|
:type organization_id: str
|
|
833
|
-
:param workspace_id:
|
|
834
|
+
:param workspace_id: The Workspace identifier (required)
|
|
834
835
|
:type workspace_id: str
|
|
835
|
-
:param runner_id:
|
|
836
|
+
:param runner_id: The Runner identifier (required)
|
|
836
837
|
:type runner_id: str
|
|
837
|
-
:param run_id:
|
|
838
|
+
:param run_id: The Run identifier (required)
|
|
838
839
|
:type run_id: str
|
|
839
840
|
:param _request_timeout: timeout setting for this request. If one
|
|
840
841
|
number provided, it will be total request
|
|
@@ -870,7 +871,7 @@ class RunApi:
|
|
|
870
871
|
)
|
|
871
872
|
|
|
872
873
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
873
|
-
'200': "
|
|
874
|
+
'200': "str",
|
|
874
875
|
}
|
|
875
876
|
response_data = self.api_client.call_api(
|
|
876
877
|
*_param,
|
|
@@ -900,7 +901,9 @@ class RunApi:
|
|
|
900
901
|
_query_params: List[Tuple[str, str]] = []
|
|
901
902
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
902
903
|
_form_params: List[Tuple[str, str]] = []
|
|
903
|
-
_files: Dict[
|
|
904
|
+
_files: Dict[
|
|
905
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
906
|
+
] = {}
|
|
904
907
|
_body_params: Optional[bytes] = None
|
|
905
908
|
|
|
906
909
|
# process the path parameters
|
|
@@ -919,11 +922,12 @@ class RunApi:
|
|
|
919
922
|
|
|
920
923
|
|
|
921
924
|
# set the HTTP header `Accept`
|
|
922
|
-
|
|
923
|
-
[
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
925
|
+
if 'Accept' not in _header_params:
|
|
926
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
927
|
+
[
|
|
928
|
+
'text/plain'
|
|
929
|
+
]
|
|
930
|
+
)
|
|
927
931
|
|
|
928
932
|
|
|
929
933
|
# authentication setting
|
|
@@ -952,10 +956,10 @@ class RunApi:
|
|
|
952
956
|
@validate_call
|
|
953
957
|
def get_run_status(
|
|
954
958
|
self,
|
|
955
|
-
organization_id: Annotated[
|
|
956
|
-
workspace_id: Annotated[
|
|
957
|
-
runner_id: Annotated[
|
|
958
|
-
run_id: Annotated[
|
|
959
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
960
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
961
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
962
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
959
963
|
_request_timeout: Union[
|
|
960
964
|
None,
|
|
961
965
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -972,13 +976,13 @@ class RunApi:
|
|
|
972
976
|
"""get the status for the Run
|
|
973
977
|
|
|
974
978
|
|
|
975
|
-
:param organization_id:
|
|
979
|
+
:param organization_id: The Organization identifier (required)
|
|
976
980
|
:type organization_id: str
|
|
977
|
-
:param workspace_id:
|
|
981
|
+
:param workspace_id: The Workspace identifier (required)
|
|
978
982
|
:type workspace_id: str
|
|
979
|
-
:param runner_id:
|
|
983
|
+
:param runner_id: The Runner identifier (required)
|
|
980
984
|
:type runner_id: str
|
|
981
|
-
:param run_id:
|
|
985
|
+
:param run_id: The Run identifier (required)
|
|
982
986
|
:type run_id: str
|
|
983
987
|
:param _request_timeout: timeout setting for this request. If one
|
|
984
988
|
number provided, it will be total request
|
|
@@ -1030,10 +1034,10 @@ class RunApi:
|
|
|
1030
1034
|
@validate_call
|
|
1031
1035
|
def get_run_status_with_http_info(
|
|
1032
1036
|
self,
|
|
1033
|
-
organization_id: Annotated[
|
|
1034
|
-
workspace_id: Annotated[
|
|
1035
|
-
runner_id: Annotated[
|
|
1036
|
-
run_id: Annotated[
|
|
1037
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1038
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
1039
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
1040
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
1037
1041
|
_request_timeout: Union[
|
|
1038
1042
|
None,
|
|
1039
1043
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1050,13 +1054,13 @@ class RunApi:
|
|
|
1050
1054
|
"""get the status for the Run
|
|
1051
1055
|
|
|
1052
1056
|
|
|
1053
|
-
:param organization_id:
|
|
1057
|
+
:param organization_id: The Organization identifier (required)
|
|
1054
1058
|
:type organization_id: str
|
|
1055
|
-
:param workspace_id:
|
|
1059
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1056
1060
|
:type workspace_id: str
|
|
1057
|
-
:param runner_id:
|
|
1061
|
+
:param runner_id: The Runner identifier (required)
|
|
1058
1062
|
:type runner_id: str
|
|
1059
|
-
:param run_id:
|
|
1063
|
+
:param run_id: The Run identifier (required)
|
|
1060
1064
|
:type run_id: str
|
|
1061
1065
|
:param _request_timeout: timeout setting for this request. If one
|
|
1062
1066
|
number provided, it will be total request
|
|
@@ -1108,10 +1112,10 @@ class RunApi:
|
|
|
1108
1112
|
@validate_call
|
|
1109
1113
|
def get_run_status_without_preload_content(
|
|
1110
1114
|
self,
|
|
1111
|
-
organization_id: Annotated[
|
|
1112
|
-
workspace_id: Annotated[
|
|
1113
|
-
runner_id: Annotated[
|
|
1114
|
-
run_id: Annotated[
|
|
1115
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1116
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
1117
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
1118
|
+
run_id: Annotated[str, Field(strict=True, description="The Run identifier")],
|
|
1115
1119
|
_request_timeout: Union[
|
|
1116
1120
|
None,
|
|
1117
1121
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1128,13 +1132,13 @@ class RunApi:
|
|
|
1128
1132
|
"""get the status for the Run
|
|
1129
1133
|
|
|
1130
1134
|
|
|
1131
|
-
:param organization_id:
|
|
1135
|
+
:param organization_id: The Organization identifier (required)
|
|
1132
1136
|
:type organization_id: str
|
|
1133
|
-
:param workspace_id:
|
|
1137
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1134
1138
|
:type workspace_id: str
|
|
1135
|
-
:param runner_id:
|
|
1139
|
+
:param runner_id: The Runner identifier (required)
|
|
1136
1140
|
:type runner_id: str
|
|
1137
|
-
:param run_id:
|
|
1141
|
+
:param run_id: The Run identifier (required)
|
|
1138
1142
|
:type run_id: str
|
|
1139
1143
|
:param _request_timeout: timeout setting for this request. If one
|
|
1140
1144
|
number provided, it will be total request
|
|
@@ -1200,7 +1204,9 @@ class RunApi:
|
|
|
1200
1204
|
_query_params: List[Tuple[str, str]] = []
|
|
1201
1205
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1202
1206
|
_form_params: List[Tuple[str, str]] = []
|
|
1203
|
-
_files: Dict[
|
|
1207
|
+
_files: Dict[
|
|
1208
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1209
|
+
] = {}
|
|
1204
1210
|
_body_params: Optional[bytes] = None
|
|
1205
1211
|
|
|
1206
1212
|
# process the path parameters
|
|
@@ -1219,11 +1225,13 @@ class RunApi:
|
|
|
1219
1225
|
|
|
1220
1226
|
|
|
1221
1227
|
# set the HTTP header `Accept`
|
|
1222
|
-
|
|
1223
|
-
[
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1228
|
+
if 'Accept' not in _header_params:
|
|
1229
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1230
|
+
[
|
|
1231
|
+
'application/json',
|
|
1232
|
+
'application/yaml'
|
|
1233
|
+
]
|
|
1234
|
+
)
|
|
1227
1235
|
|
|
1228
1236
|
|
|
1229
1237
|
# authentication setting
|
|
@@ -1252,10 +1260,10 @@ class RunApi:
|
|
|
1252
1260
|
@validate_call
|
|
1253
1261
|
def list_runs(
|
|
1254
1262
|
self,
|
|
1255
|
-
organization_id: Annotated[
|
|
1256
|
-
workspace_id: Annotated[
|
|
1257
|
-
runner_id: Annotated[
|
|
1258
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
1263
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1264
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
1265
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
1266
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
1259
1267
|
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
1260
1268
|
_request_timeout: Union[
|
|
1261
1269
|
None,
|
|
@@ -1273,13 +1281,13 @@ class RunApi:
|
|
|
1273
1281
|
"""get the list of Runs for the Runner
|
|
1274
1282
|
|
|
1275
1283
|
|
|
1276
|
-
:param organization_id:
|
|
1284
|
+
:param organization_id: The Organization identifier (required)
|
|
1277
1285
|
:type organization_id: str
|
|
1278
|
-
:param workspace_id:
|
|
1286
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1279
1287
|
:type workspace_id: str
|
|
1280
|
-
:param runner_id:
|
|
1288
|
+
:param runner_id: The Runner identifier (required)
|
|
1281
1289
|
:type runner_id: str
|
|
1282
|
-
:param page: page number to query
|
|
1290
|
+
:param page: page number to query (first page is at index 0)
|
|
1283
1291
|
:type page: int
|
|
1284
1292
|
:param size: amount of result by page
|
|
1285
1293
|
:type size: int
|
|
@@ -1334,10 +1342,10 @@ class RunApi:
|
|
|
1334
1342
|
@validate_call
|
|
1335
1343
|
def list_runs_with_http_info(
|
|
1336
1344
|
self,
|
|
1337
|
-
organization_id: Annotated[
|
|
1338
|
-
workspace_id: Annotated[
|
|
1339
|
-
runner_id: Annotated[
|
|
1340
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
1345
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1346
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
1347
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
1348
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
1341
1349
|
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
1342
1350
|
_request_timeout: Union[
|
|
1343
1351
|
None,
|
|
@@ -1355,13 +1363,13 @@ class RunApi:
|
|
|
1355
1363
|
"""get the list of Runs for the Runner
|
|
1356
1364
|
|
|
1357
1365
|
|
|
1358
|
-
:param organization_id:
|
|
1366
|
+
:param organization_id: The Organization identifier (required)
|
|
1359
1367
|
:type organization_id: str
|
|
1360
|
-
:param workspace_id:
|
|
1368
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1361
1369
|
:type workspace_id: str
|
|
1362
|
-
:param runner_id:
|
|
1370
|
+
:param runner_id: The Runner identifier (required)
|
|
1363
1371
|
:type runner_id: str
|
|
1364
|
-
:param page: page number to query
|
|
1372
|
+
:param page: page number to query (first page is at index 0)
|
|
1365
1373
|
:type page: int
|
|
1366
1374
|
:param size: amount of result by page
|
|
1367
1375
|
:type size: int
|
|
@@ -1416,10 +1424,10 @@ class RunApi:
|
|
|
1416
1424
|
@validate_call
|
|
1417
1425
|
def list_runs_without_preload_content(
|
|
1418
1426
|
self,
|
|
1419
|
-
organization_id: Annotated[
|
|
1420
|
-
workspace_id: Annotated[
|
|
1421
|
-
runner_id: Annotated[
|
|
1422
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
1427
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1428
|
+
workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
|
|
1429
|
+
runner_id: Annotated[str, Field(strict=True, description="The Runner identifier")],
|
|
1430
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
1423
1431
|
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
1424
1432
|
_request_timeout: Union[
|
|
1425
1433
|
None,
|
|
@@ -1437,13 +1445,13 @@ class RunApi:
|
|
|
1437
1445
|
"""get the list of Runs for the Runner
|
|
1438
1446
|
|
|
1439
1447
|
|
|
1440
|
-
:param organization_id:
|
|
1448
|
+
:param organization_id: The Organization identifier (required)
|
|
1441
1449
|
:type organization_id: str
|
|
1442
|
-
:param workspace_id:
|
|
1450
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1443
1451
|
:type workspace_id: str
|
|
1444
|
-
:param runner_id:
|
|
1452
|
+
:param runner_id: The Runner identifier (required)
|
|
1445
1453
|
:type runner_id: str
|
|
1446
|
-
:param page: page number to query
|
|
1454
|
+
:param page: page number to query (first page is at index 0)
|
|
1447
1455
|
:type page: int
|
|
1448
1456
|
:param size: amount of result by page
|
|
1449
1457
|
:type size: int
|
|
@@ -1513,7 +1521,9 @@ class RunApi:
|
|
|
1513
1521
|
_query_params: List[Tuple[str, str]] = []
|
|
1514
1522
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1515
1523
|
_form_params: List[Tuple[str, str]] = []
|
|
1516
|
-
_files: Dict[
|
|
1524
|
+
_files: Dict[
|
|
1525
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1526
|
+
] = {}
|
|
1517
1527
|
_body_params: Optional[bytes] = None
|
|
1518
1528
|
|
|
1519
1529
|
# process the path parameters
|
|
@@ -1538,11 +1548,13 @@ class RunApi:
|
|
|
1538
1548
|
|
|
1539
1549
|
|
|
1540
1550
|
# set the HTTP header `Accept`
|
|
1541
|
-
|
|
1542
|
-
[
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1551
|
+
if 'Accept' not in _header_params:
|
|
1552
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1553
|
+
[
|
|
1554
|
+
'application/json',
|
|
1555
|
+
'application/yaml'
|
|
1556
|
+
]
|
|
1557
|
+
)
|
|
1546
1558
|
|
|
1547
1559
|
|
|
1548
1560
|
# authentication setting
|
|
@@ -1566,662 +1578,3 @@ class RunApi:
|
|
|
1566
1578
|
)
|
|
1567
1579
|
|
|
1568
1580
|
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
@validate_call
|
|
1572
|
-
def query_run_data(
|
|
1573
|
-
self,
|
|
1574
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1575
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
1576
|
-
runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
|
|
1577
|
-
run_id: Annotated[StrictStr, Field(description="the Run identifier")],
|
|
1578
|
-
run_data_query: Annotated[RunDataQuery, Field(description="the query to run")],
|
|
1579
|
-
_request_timeout: Union[
|
|
1580
|
-
None,
|
|
1581
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1582
|
-
Tuple[
|
|
1583
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1584
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1585
|
-
]
|
|
1586
|
-
] = None,
|
|
1587
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1588
|
-
_content_type: Optional[StrictStr] = None,
|
|
1589
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1590
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1591
|
-
) -> QueryResult:
|
|
1592
|
-
"""query the run data
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
:param organization_id: the Organization identifier (required)
|
|
1596
|
-
:type organization_id: str
|
|
1597
|
-
:param workspace_id: the Workspace identifier (required)
|
|
1598
|
-
:type workspace_id: str
|
|
1599
|
-
:param runner_id: the Runner identifier (required)
|
|
1600
|
-
:type runner_id: str
|
|
1601
|
-
:param run_id: the Run identifier (required)
|
|
1602
|
-
:type run_id: str
|
|
1603
|
-
:param run_data_query: the query to run (required)
|
|
1604
|
-
:type run_data_query: RunDataQuery
|
|
1605
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1606
|
-
number provided, it will be total request
|
|
1607
|
-
timeout. It can also be a pair (tuple) of
|
|
1608
|
-
(connection, read) timeouts.
|
|
1609
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1610
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1611
|
-
request; this effectively ignores the
|
|
1612
|
-
authentication in the spec for a single request.
|
|
1613
|
-
:type _request_auth: dict, optional
|
|
1614
|
-
:param _content_type: force content-type for the request.
|
|
1615
|
-
:type _content_type: str, Optional
|
|
1616
|
-
:param _headers: set to override the headers for a single
|
|
1617
|
-
request; this effectively ignores the headers
|
|
1618
|
-
in the spec for a single request.
|
|
1619
|
-
:type _headers: dict, optional
|
|
1620
|
-
:param _host_index: set to override the host_index for a single
|
|
1621
|
-
request; this effectively ignores the host_index
|
|
1622
|
-
in the spec for a single request.
|
|
1623
|
-
:type _host_index: int, optional
|
|
1624
|
-
:return: Returns the result object.
|
|
1625
|
-
""" # noqa: E501
|
|
1626
|
-
|
|
1627
|
-
_param = self._query_run_data_serialize(
|
|
1628
|
-
organization_id=organization_id,
|
|
1629
|
-
workspace_id=workspace_id,
|
|
1630
|
-
runner_id=runner_id,
|
|
1631
|
-
run_id=run_id,
|
|
1632
|
-
run_data_query=run_data_query,
|
|
1633
|
-
_request_auth=_request_auth,
|
|
1634
|
-
_content_type=_content_type,
|
|
1635
|
-
_headers=_headers,
|
|
1636
|
-
_host_index=_host_index
|
|
1637
|
-
)
|
|
1638
|
-
|
|
1639
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1640
|
-
'200': "QueryResult",
|
|
1641
|
-
}
|
|
1642
|
-
response_data = self.api_client.call_api(
|
|
1643
|
-
*_param,
|
|
1644
|
-
_request_timeout=_request_timeout
|
|
1645
|
-
)
|
|
1646
|
-
response_data.read()
|
|
1647
|
-
return self.api_client.response_deserialize(
|
|
1648
|
-
response_data=response_data,
|
|
1649
|
-
response_types_map=_response_types_map,
|
|
1650
|
-
).data
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
@validate_call
|
|
1654
|
-
def query_run_data_with_http_info(
|
|
1655
|
-
self,
|
|
1656
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1657
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
1658
|
-
runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
|
|
1659
|
-
run_id: Annotated[StrictStr, Field(description="the Run identifier")],
|
|
1660
|
-
run_data_query: Annotated[RunDataQuery, Field(description="the query to run")],
|
|
1661
|
-
_request_timeout: Union[
|
|
1662
|
-
None,
|
|
1663
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1664
|
-
Tuple[
|
|
1665
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1666
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1667
|
-
]
|
|
1668
|
-
] = None,
|
|
1669
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1670
|
-
_content_type: Optional[StrictStr] = None,
|
|
1671
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1672
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1673
|
-
) -> ApiResponse[QueryResult]:
|
|
1674
|
-
"""query the run data
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
:param organization_id: the Organization identifier (required)
|
|
1678
|
-
:type organization_id: str
|
|
1679
|
-
:param workspace_id: the Workspace identifier (required)
|
|
1680
|
-
:type workspace_id: str
|
|
1681
|
-
:param runner_id: the Runner identifier (required)
|
|
1682
|
-
:type runner_id: str
|
|
1683
|
-
:param run_id: the Run identifier (required)
|
|
1684
|
-
:type run_id: str
|
|
1685
|
-
:param run_data_query: the query to run (required)
|
|
1686
|
-
:type run_data_query: RunDataQuery
|
|
1687
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1688
|
-
number provided, it will be total request
|
|
1689
|
-
timeout. It can also be a pair (tuple) of
|
|
1690
|
-
(connection, read) timeouts.
|
|
1691
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1692
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1693
|
-
request; this effectively ignores the
|
|
1694
|
-
authentication in the spec for a single request.
|
|
1695
|
-
:type _request_auth: dict, optional
|
|
1696
|
-
:param _content_type: force content-type for the request.
|
|
1697
|
-
:type _content_type: str, Optional
|
|
1698
|
-
:param _headers: set to override the headers for a single
|
|
1699
|
-
request; this effectively ignores the headers
|
|
1700
|
-
in the spec for a single request.
|
|
1701
|
-
:type _headers: dict, optional
|
|
1702
|
-
:param _host_index: set to override the host_index for a single
|
|
1703
|
-
request; this effectively ignores the host_index
|
|
1704
|
-
in the spec for a single request.
|
|
1705
|
-
:type _host_index: int, optional
|
|
1706
|
-
:return: Returns the result object.
|
|
1707
|
-
""" # noqa: E501
|
|
1708
|
-
|
|
1709
|
-
_param = self._query_run_data_serialize(
|
|
1710
|
-
organization_id=organization_id,
|
|
1711
|
-
workspace_id=workspace_id,
|
|
1712
|
-
runner_id=runner_id,
|
|
1713
|
-
run_id=run_id,
|
|
1714
|
-
run_data_query=run_data_query,
|
|
1715
|
-
_request_auth=_request_auth,
|
|
1716
|
-
_content_type=_content_type,
|
|
1717
|
-
_headers=_headers,
|
|
1718
|
-
_host_index=_host_index
|
|
1719
|
-
)
|
|
1720
|
-
|
|
1721
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1722
|
-
'200': "QueryResult",
|
|
1723
|
-
}
|
|
1724
|
-
response_data = self.api_client.call_api(
|
|
1725
|
-
*_param,
|
|
1726
|
-
_request_timeout=_request_timeout
|
|
1727
|
-
)
|
|
1728
|
-
response_data.read()
|
|
1729
|
-
return self.api_client.response_deserialize(
|
|
1730
|
-
response_data=response_data,
|
|
1731
|
-
response_types_map=_response_types_map,
|
|
1732
|
-
)
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
@validate_call
|
|
1736
|
-
def query_run_data_without_preload_content(
|
|
1737
|
-
self,
|
|
1738
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1739
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
1740
|
-
runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
|
|
1741
|
-
run_id: Annotated[StrictStr, Field(description="the Run identifier")],
|
|
1742
|
-
run_data_query: Annotated[RunDataQuery, Field(description="the query to run")],
|
|
1743
|
-
_request_timeout: Union[
|
|
1744
|
-
None,
|
|
1745
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1746
|
-
Tuple[
|
|
1747
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1748
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1749
|
-
]
|
|
1750
|
-
] = None,
|
|
1751
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1752
|
-
_content_type: Optional[StrictStr] = None,
|
|
1753
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1754
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1755
|
-
) -> RESTResponseType:
|
|
1756
|
-
"""query the run data
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
:param organization_id: the Organization identifier (required)
|
|
1760
|
-
:type organization_id: str
|
|
1761
|
-
:param workspace_id: the Workspace identifier (required)
|
|
1762
|
-
:type workspace_id: str
|
|
1763
|
-
:param runner_id: the Runner identifier (required)
|
|
1764
|
-
:type runner_id: str
|
|
1765
|
-
:param run_id: the Run identifier (required)
|
|
1766
|
-
:type run_id: str
|
|
1767
|
-
:param run_data_query: the query to run (required)
|
|
1768
|
-
:type run_data_query: RunDataQuery
|
|
1769
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1770
|
-
number provided, it will be total request
|
|
1771
|
-
timeout. It can also be a pair (tuple) of
|
|
1772
|
-
(connection, read) timeouts.
|
|
1773
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1774
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1775
|
-
request; this effectively ignores the
|
|
1776
|
-
authentication in the spec for a single request.
|
|
1777
|
-
:type _request_auth: dict, optional
|
|
1778
|
-
:param _content_type: force content-type for the request.
|
|
1779
|
-
:type _content_type: str, Optional
|
|
1780
|
-
:param _headers: set to override the headers for a single
|
|
1781
|
-
request; this effectively ignores the headers
|
|
1782
|
-
in the spec for a single request.
|
|
1783
|
-
:type _headers: dict, optional
|
|
1784
|
-
:param _host_index: set to override the host_index for a single
|
|
1785
|
-
request; this effectively ignores the host_index
|
|
1786
|
-
in the spec for a single request.
|
|
1787
|
-
:type _host_index: int, optional
|
|
1788
|
-
:return: Returns the result object.
|
|
1789
|
-
""" # noqa: E501
|
|
1790
|
-
|
|
1791
|
-
_param = self._query_run_data_serialize(
|
|
1792
|
-
organization_id=organization_id,
|
|
1793
|
-
workspace_id=workspace_id,
|
|
1794
|
-
runner_id=runner_id,
|
|
1795
|
-
run_id=run_id,
|
|
1796
|
-
run_data_query=run_data_query,
|
|
1797
|
-
_request_auth=_request_auth,
|
|
1798
|
-
_content_type=_content_type,
|
|
1799
|
-
_headers=_headers,
|
|
1800
|
-
_host_index=_host_index
|
|
1801
|
-
)
|
|
1802
|
-
|
|
1803
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1804
|
-
'200': "QueryResult",
|
|
1805
|
-
}
|
|
1806
|
-
response_data = self.api_client.call_api(
|
|
1807
|
-
*_param,
|
|
1808
|
-
_request_timeout=_request_timeout
|
|
1809
|
-
)
|
|
1810
|
-
return response_data.response
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
def _query_run_data_serialize(
|
|
1814
|
-
self,
|
|
1815
|
-
organization_id,
|
|
1816
|
-
workspace_id,
|
|
1817
|
-
runner_id,
|
|
1818
|
-
run_id,
|
|
1819
|
-
run_data_query,
|
|
1820
|
-
_request_auth,
|
|
1821
|
-
_content_type,
|
|
1822
|
-
_headers,
|
|
1823
|
-
_host_index,
|
|
1824
|
-
) -> RequestSerialized:
|
|
1825
|
-
|
|
1826
|
-
_host = None
|
|
1827
|
-
|
|
1828
|
-
_collection_formats: Dict[str, str] = {
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
_path_params: Dict[str, str] = {}
|
|
1832
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1833
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1834
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1835
|
-
_files: Dict[str, str] = {}
|
|
1836
|
-
_body_params: Optional[bytes] = None
|
|
1837
|
-
|
|
1838
|
-
# process the path parameters
|
|
1839
|
-
if organization_id is not None:
|
|
1840
|
-
_path_params['organization_id'] = organization_id
|
|
1841
|
-
if workspace_id is not None:
|
|
1842
|
-
_path_params['workspace_id'] = workspace_id
|
|
1843
|
-
if runner_id is not None:
|
|
1844
|
-
_path_params['runner_id'] = runner_id
|
|
1845
|
-
if run_id is not None:
|
|
1846
|
-
_path_params['run_id'] = run_id
|
|
1847
|
-
# process the query parameters
|
|
1848
|
-
# process the header parameters
|
|
1849
|
-
# process the form parameters
|
|
1850
|
-
# process the body parameter
|
|
1851
|
-
if run_data_query is not None:
|
|
1852
|
-
_body_params = run_data_query
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
# set the HTTP header `Accept`
|
|
1856
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1857
|
-
[
|
|
1858
|
-
'application/json'
|
|
1859
|
-
]
|
|
1860
|
-
)
|
|
1861
|
-
|
|
1862
|
-
# set the HTTP header `Content-Type`
|
|
1863
|
-
if _content_type:
|
|
1864
|
-
_header_params['Content-Type'] = _content_type
|
|
1865
|
-
else:
|
|
1866
|
-
_default_content_type = (
|
|
1867
|
-
self.api_client.select_header_content_type(
|
|
1868
|
-
[
|
|
1869
|
-
'application/json'
|
|
1870
|
-
]
|
|
1871
|
-
)
|
|
1872
|
-
)
|
|
1873
|
-
if _default_content_type is not None:
|
|
1874
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1875
|
-
|
|
1876
|
-
# authentication setting
|
|
1877
|
-
_auth_settings: List[str] = [
|
|
1878
|
-
'oAuth2AuthCode'
|
|
1879
|
-
]
|
|
1880
|
-
|
|
1881
|
-
return self.api_client.param_serialize(
|
|
1882
|
-
method='POST',
|
|
1883
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/query',
|
|
1884
|
-
path_params=_path_params,
|
|
1885
|
-
query_params=_query_params,
|
|
1886
|
-
header_params=_header_params,
|
|
1887
|
-
body=_body_params,
|
|
1888
|
-
post_params=_form_params,
|
|
1889
|
-
files=_files,
|
|
1890
|
-
auth_settings=_auth_settings,
|
|
1891
|
-
collection_formats=_collection_formats,
|
|
1892
|
-
_host=_host,
|
|
1893
|
-
_request_auth=_request_auth
|
|
1894
|
-
)
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
@validate_call
|
|
1900
|
-
def send_run_data(
|
|
1901
|
-
self,
|
|
1902
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1903
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
1904
|
-
runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
|
|
1905
|
-
run_id: Annotated[StrictStr, Field(description="the Run identifier")],
|
|
1906
|
-
send_run_data_request: Annotated[SendRunDataRequest, Field(description="Custom data to register")],
|
|
1907
|
-
_request_timeout: Union[
|
|
1908
|
-
None,
|
|
1909
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1910
|
-
Tuple[
|
|
1911
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1912
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1913
|
-
]
|
|
1914
|
-
] = None,
|
|
1915
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1916
|
-
_content_type: Optional[StrictStr] = None,
|
|
1917
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1918
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1919
|
-
) -> RunData:
|
|
1920
|
-
"""Send data associated to a run
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
:param organization_id: the Organization identifier (required)
|
|
1924
|
-
:type organization_id: str
|
|
1925
|
-
:param workspace_id: the Workspace identifier (required)
|
|
1926
|
-
:type workspace_id: str
|
|
1927
|
-
:param runner_id: the Runner identifier (required)
|
|
1928
|
-
:type runner_id: str
|
|
1929
|
-
:param run_id: the Run identifier (required)
|
|
1930
|
-
:type run_id: str
|
|
1931
|
-
:param send_run_data_request: Custom data to register (required)
|
|
1932
|
-
:type send_run_data_request: SendRunDataRequest
|
|
1933
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1934
|
-
number provided, it will be total request
|
|
1935
|
-
timeout. It can also be a pair (tuple) of
|
|
1936
|
-
(connection, read) timeouts.
|
|
1937
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1938
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1939
|
-
request; this effectively ignores the
|
|
1940
|
-
authentication in the spec for a single request.
|
|
1941
|
-
:type _request_auth: dict, optional
|
|
1942
|
-
:param _content_type: force content-type for the request.
|
|
1943
|
-
:type _content_type: str, Optional
|
|
1944
|
-
:param _headers: set to override the headers for a single
|
|
1945
|
-
request; this effectively ignores the headers
|
|
1946
|
-
in the spec for a single request.
|
|
1947
|
-
:type _headers: dict, optional
|
|
1948
|
-
:param _host_index: set to override the host_index for a single
|
|
1949
|
-
request; this effectively ignores the host_index
|
|
1950
|
-
in the spec for a single request.
|
|
1951
|
-
:type _host_index: int, optional
|
|
1952
|
-
:return: Returns the result object.
|
|
1953
|
-
""" # noqa: E501
|
|
1954
|
-
|
|
1955
|
-
_param = self._send_run_data_serialize(
|
|
1956
|
-
organization_id=organization_id,
|
|
1957
|
-
workspace_id=workspace_id,
|
|
1958
|
-
runner_id=runner_id,
|
|
1959
|
-
run_id=run_id,
|
|
1960
|
-
send_run_data_request=send_run_data_request,
|
|
1961
|
-
_request_auth=_request_auth,
|
|
1962
|
-
_content_type=_content_type,
|
|
1963
|
-
_headers=_headers,
|
|
1964
|
-
_host_index=_host_index
|
|
1965
|
-
)
|
|
1966
|
-
|
|
1967
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1968
|
-
'201': "RunData",
|
|
1969
|
-
'400': None,
|
|
1970
|
-
}
|
|
1971
|
-
response_data = self.api_client.call_api(
|
|
1972
|
-
*_param,
|
|
1973
|
-
_request_timeout=_request_timeout
|
|
1974
|
-
)
|
|
1975
|
-
response_data.read()
|
|
1976
|
-
return self.api_client.response_deserialize(
|
|
1977
|
-
response_data=response_data,
|
|
1978
|
-
response_types_map=_response_types_map,
|
|
1979
|
-
).data
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
@validate_call
|
|
1983
|
-
def send_run_data_with_http_info(
|
|
1984
|
-
self,
|
|
1985
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1986
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
1987
|
-
runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
|
|
1988
|
-
run_id: Annotated[StrictStr, Field(description="the Run identifier")],
|
|
1989
|
-
send_run_data_request: Annotated[SendRunDataRequest, Field(description="Custom data to register")],
|
|
1990
|
-
_request_timeout: Union[
|
|
1991
|
-
None,
|
|
1992
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1993
|
-
Tuple[
|
|
1994
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1995
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1996
|
-
]
|
|
1997
|
-
] = None,
|
|
1998
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1999
|
-
_content_type: Optional[StrictStr] = None,
|
|
2000
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2001
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2002
|
-
) -> ApiResponse[RunData]:
|
|
2003
|
-
"""Send data associated to a run
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
:param organization_id: the Organization identifier (required)
|
|
2007
|
-
:type organization_id: str
|
|
2008
|
-
:param workspace_id: the Workspace identifier (required)
|
|
2009
|
-
:type workspace_id: str
|
|
2010
|
-
:param runner_id: the Runner identifier (required)
|
|
2011
|
-
:type runner_id: str
|
|
2012
|
-
:param run_id: the Run identifier (required)
|
|
2013
|
-
:type run_id: str
|
|
2014
|
-
:param send_run_data_request: Custom data to register (required)
|
|
2015
|
-
:type send_run_data_request: SendRunDataRequest
|
|
2016
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2017
|
-
number provided, it will be total request
|
|
2018
|
-
timeout. It can also be a pair (tuple) of
|
|
2019
|
-
(connection, read) timeouts.
|
|
2020
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2021
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2022
|
-
request; this effectively ignores the
|
|
2023
|
-
authentication in the spec for a single request.
|
|
2024
|
-
:type _request_auth: dict, optional
|
|
2025
|
-
:param _content_type: force content-type for the request.
|
|
2026
|
-
:type _content_type: str, Optional
|
|
2027
|
-
:param _headers: set to override the headers for a single
|
|
2028
|
-
request; this effectively ignores the headers
|
|
2029
|
-
in the spec for a single request.
|
|
2030
|
-
:type _headers: dict, optional
|
|
2031
|
-
:param _host_index: set to override the host_index for a single
|
|
2032
|
-
request; this effectively ignores the host_index
|
|
2033
|
-
in the spec for a single request.
|
|
2034
|
-
:type _host_index: int, optional
|
|
2035
|
-
:return: Returns the result object.
|
|
2036
|
-
""" # noqa: E501
|
|
2037
|
-
|
|
2038
|
-
_param = self._send_run_data_serialize(
|
|
2039
|
-
organization_id=organization_id,
|
|
2040
|
-
workspace_id=workspace_id,
|
|
2041
|
-
runner_id=runner_id,
|
|
2042
|
-
run_id=run_id,
|
|
2043
|
-
send_run_data_request=send_run_data_request,
|
|
2044
|
-
_request_auth=_request_auth,
|
|
2045
|
-
_content_type=_content_type,
|
|
2046
|
-
_headers=_headers,
|
|
2047
|
-
_host_index=_host_index
|
|
2048
|
-
)
|
|
2049
|
-
|
|
2050
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2051
|
-
'201': "RunData",
|
|
2052
|
-
'400': None,
|
|
2053
|
-
}
|
|
2054
|
-
response_data = self.api_client.call_api(
|
|
2055
|
-
*_param,
|
|
2056
|
-
_request_timeout=_request_timeout
|
|
2057
|
-
)
|
|
2058
|
-
response_data.read()
|
|
2059
|
-
return self.api_client.response_deserialize(
|
|
2060
|
-
response_data=response_data,
|
|
2061
|
-
response_types_map=_response_types_map,
|
|
2062
|
-
)
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
@validate_call
|
|
2066
|
-
def send_run_data_without_preload_content(
|
|
2067
|
-
self,
|
|
2068
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2069
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
2070
|
-
runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
|
|
2071
|
-
run_id: Annotated[StrictStr, Field(description="the Run identifier")],
|
|
2072
|
-
send_run_data_request: Annotated[SendRunDataRequest, Field(description="Custom data to register")],
|
|
2073
|
-
_request_timeout: Union[
|
|
2074
|
-
None,
|
|
2075
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2076
|
-
Tuple[
|
|
2077
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2078
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2079
|
-
]
|
|
2080
|
-
] = None,
|
|
2081
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2082
|
-
_content_type: Optional[StrictStr] = None,
|
|
2083
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2084
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2085
|
-
) -> RESTResponseType:
|
|
2086
|
-
"""Send data associated to a run
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
:param organization_id: the Organization identifier (required)
|
|
2090
|
-
:type organization_id: str
|
|
2091
|
-
:param workspace_id: the Workspace identifier (required)
|
|
2092
|
-
:type workspace_id: str
|
|
2093
|
-
:param runner_id: the Runner identifier (required)
|
|
2094
|
-
:type runner_id: str
|
|
2095
|
-
:param run_id: the Run identifier (required)
|
|
2096
|
-
:type run_id: str
|
|
2097
|
-
:param send_run_data_request: Custom data to register (required)
|
|
2098
|
-
:type send_run_data_request: SendRunDataRequest
|
|
2099
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2100
|
-
number provided, it will be total request
|
|
2101
|
-
timeout. It can also be a pair (tuple) of
|
|
2102
|
-
(connection, read) timeouts.
|
|
2103
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2104
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2105
|
-
request; this effectively ignores the
|
|
2106
|
-
authentication in the spec for a single request.
|
|
2107
|
-
:type _request_auth: dict, optional
|
|
2108
|
-
:param _content_type: force content-type for the request.
|
|
2109
|
-
:type _content_type: str, Optional
|
|
2110
|
-
:param _headers: set to override the headers for a single
|
|
2111
|
-
request; this effectively ignores the headers
|
|
2112
|
-
in the spec for a single request.
|
|
2113
|
-
:type _headers: dict, optional
|
|
2114
|
-
:param _host_index: set to override the host_index for a single
|
|
2115
|
-
request; this effectively ignores the host_index
|
|
2116
|
-
in the spec for a single request.
|
|
2117
|
-
:type _host_index: int, optional
|
|
2118
|
-
:return: Returns the result object.
|
|
2119
|
-
""" # noqa: E501
|
|
2120
|
-
|
|
2121
|
-
_param = self._send_run_data_serialize(
|
|
2122
|
-
organization_id=organization_id,
|
|
2123
|
-
workspace_id=workspace_id,
|
|
2124
|
-
runner_id=runner_id,
|
|
2125
|
-
run_id=run_id,
|
|
2126
|
-
send_run_data_request=send_run_data_request,
|
|
2127
|
-
_request_auth=_request_auth,
|
|
2128
|
-
_content_type=_content_type,
|
|
2129
|
-
_headers=_headers,
|
|
2130
|
-
_host_index=_host_index
|
|
2131
|
-
)
|
|
2132
|
-
|
|
2133
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2134
|
-
'201': "RunData",
|
|
2135
|
-
'400': None,
|
|
2136
|
-
}
|
|
2137
|
-
response_data = self.api_client.call_api(
|
|
2138
|
-
*_param,
|
|
2139
|
-
_request_timeout=_request_timeout
|
|
2140
|
-
)
|
|
2141
|
-
return response_data.response
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
def _send_run_data_serialize(
|
|
2145
|
-
self,
|
|
2146
|
-
organization_id,
|
|
2147
|
-
workspace_id,
|
|
2148
|
-
runner_id,
|
|
2149
|
-
run_id,
|
|
2150
|
-
send_run_data_request,
|
|
2151
|
-
_request_auth,
|
|
2152
|
-
_content_type,
|
|
2153
|
-
_headers,
|
|
2154
|
-
_host_index,
|
|
2155
|
-
) -> RequestSerialized:
|
|
2156
|
-
|
|
2157
|
-
_host = None
|
|
2158
|
-
|
|
2159
|
-
_collection_formats: Dict[str, str] = {
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
_path_params: Dict[str, str] = {}
|
|
2163
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2164
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2165
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2166
|
-
_files: Dict[str, str] = {}
|
|
2167
|
-
_body_params: Optional[bytes] = None
|
|
2168
|
-
|
|
2169
|
-
# process the path parameters
|
|
2170
|
-
if organization_id is not None:
|
|
2171
|
-
_path_params['organization_id'] = organization_id
|
|
2172
|
-
if workspace_id is not None:
|
|
2173
|
-
_path_params['workspace_id'] = workspace_id
|
|
2174
|
-
if runner_id is not None:
|
|
2175
|
-
_path_params['runner_id'] = runner_id
|
|
2176
|
-
if run_id is not None:
|
|
2177
|
-
_path_params['run_id'] = run_id
|
|
2178
|
-
# process the query parameters
|
|
2179
|
-
# process the header parameters
|
|
2180
|
-
# process the form parameters
|
|
2181
|
-
# process the body parameter
|
|
2182
|
-
if send_run_data_request is not None:
|
|
2183
|
-
_body_params = send_run_data_request
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
# set the HTTP header `Accept`
|
|
2187
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2188
|
-
[
|
|
2189
|
-
'application/json'
|
|
2190
|
-
]
|
|
2191
|
-
)
|
|
2192
|
-
|
|
2193
|
-
# set the HTTP header `Content-Type`
|
|
2194
|
-
if _content_type:
|
|
2195
|
-
_header_params['Content-Type'] = _content_type
|
|
2196
|
-
else:
|
|
2197
|
-
_default_content_type = (
|
|
2198
|
-
self.api_client.select_header_content_type(
|
|
2199
|
-
[
|
|
2200
|
-
'application/json'
|
|
2201
|
-
]
|
|
2202
|
-
)
|
|
2203
|
-
)
|
|
2204
|
-
if _default_content_type is not None:
|
|
2205
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2206
|
-
|
|
2207
|
-
# authentication setting
|
|
2208
|
-
_auth_settings: List[str] = [
|
|
2209
|
-
'oAuth2AuthCode'
|
|
2210
|
-
]
|
|
2211
|
-
|
|
2212
|
-
return self.api_client.param_serialize(
|
|
2213
|
-
method='POST',
|
|
2214
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/send',
|
|
2215
|
-
path_params=_path_params,
|
|
2216
|
-
query_params=_query_params,
|
|
2217
|
-
header_params=_header_params,
|
|
2218
|
-
body=_body_params,
|
|
2219
|
-
post_params=_form_params,
|
|
2220
|
-
files=_files,
|
|
2221
|
-
auth_settings=_auth_settings,
|
|
2222
|
-
collection_formats=_collection_formats,
|
|
2223
|
-
_host=_host,
|
|
2224
|
-
_request_auth=_request_auth
|
|
2225
|
-
)
|
|
2226
|
-
|
|
2227
|
-
|