cosmotech-api 3.1.1__py3-none-any.whl → 3.2.0.post1__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 +134 -9
- cosmotech_api/api/__init__.py +14 -3
- cosmotech_api/api/connector_api.py +1313 -641
- cosmotech_api/api/dataset_api.py +8974 -4465
- cosmotech_api/api/organization_api.py +4633 -2269
- cosmotech_api/api/run_api.py +2174 -778
- cosmotech_api/api/runner_api.py +4483 -2280
- cosmotech_api/api/scenario_api.py +6544 -3265
- cosmotech_api/api/scenariorun_api.py +4007 -1960
- cosmotech_api/api/scenariorunresult_api.py +659 -341
- cosmotech_api/api/solution_api.py +6341 -3140
- cosmotech_api/api/twingraph_api.py +4134 -2077
- cosmotech_api/api/validator_api.py +2501 -1249
- cosmotech_api/api/workspace_api.py +5999 -2977
- cosmotech_api/api_client.py +529 -637
- cosmotech_api/configuration.py +63 -73
- cosmotech_api/exceptions.py +71 -31
- 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_import.py +1 -1
- cosmotech_api/model/twin_graph_import_info.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 +124 -114
- cosmotech_api/models/component_role_permissions.py +1 -1
- cosmotech_api/models/connector.py +1 -1
- cosmotech_api/models/connector_parameter.py +1 -1
- cosmotech_api/models/connector_parameter_group.py +1 -1
- cosmotech_api/models/container_resource_size_info.py +1 -1
- cosmotech_api/models/container_resource_sizing.py +1 -1
- cosmotech_api/models/dataset.py +1 -1
- cosmotech_api/models/dataset_access_control.py +1 -1
- cosmotech_api/models/dataset_compatibility.py +1 -1
- cosmotech_api/models/dataset_connector.py +1 -1
- cosmotech_api/models/dataset_copy_parameters.py +1 -1
- cosmotech_api/models/dataset_role.py +1 -1
- cosmotech_api/models/dataset_search.py +1 -1
- cosmotech_api/models/dataset_security.py +1 -1
- cosmotech_api/models/dataset_source_type.py +1 -1
- cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/models/dataset_twin_graph_info.py +1 -1
- cosmotech_api/models/dataset_twin_graph_query.py +1 -1
- cosmotech_api/models/delete_historical_data.py +1 -1
- cosmotech_api/models/file_upload_metadata.py +1 -1
- cosmotech_api/models/file_upload_validation.py +1 -1
- cosmotech_api/models/graph_properties.py +1 -1
- cosmotech_api/models/organization.py +1 -1
- cosmotech_api/models/organization_access_control.py +1 -1
- cosmotech_api/models/organization_role.py +1 -1
- cosmotech_api/models/organization_security.py +1 -1
- cosmotech_api/models/organization_service.py +1 -1
- cosmotech_api/models/organization_services.py +1 -1
- cosmotech_api/models/query_result.py +88 -0
- cosmotech_api/models/resource_size_info.py +1 -1
- cosmotech_api/models/run.py +1 -1
- cosmotech_api/models/run_container.py +1 -1
- cosmotech_api/models/run_container_artifact.py +1 -1
- cosmotech_api/models/run_container_logs.py +1 -1
- cosmotech_api/models/run_data.py +92 -0
- cosmotech_api/models/run_data_query.py +88 -0
- cosmotech_api/models/run_logs.py +1 -1
- cosmotech_api/models/run_resource_requested.py +1 -1
- cosmotech_api/models/run_search.py +1 -1
- cosmotech_api/models/run_start_containers.py +1 -1
- cosmotech_api/models/run_state.py +1 -1
- cosmotech_api/models/run_status.py +1 -1
- cosmotech_api/models/run_status_node.py +1 -1
- cosmotech_api/models/run_template.py +1 -1
- 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 +1 -1
- cosmotech_api/models/run_template_parameter_group.py +1 -1
- cosmotech_api/models/run_template_parameter_value.py +1 -1
- cosmotech_api/models/run_template_resource_sizing.py +1 -1
- cosmotech_api/models/run_template_step_source.py +1 -1
- cosmotech_api/models/runner.py +1 -1
- cosmotech_api/models/runner_access_control.py +1 -1
- cosmotech_api/models/runner_changed_parameter_value.py +1 -1
- cosmotech_api/models/runner_comparison_result.py +1 -1
- cosmotech_api/models/runner_data_download_info.py +1 -1
- cosmotech_api/models/runner_data_download_job.py +1 -1
- cosmotech_api/models/runner_job_state.py +1 -1
- cosmotech_api/models/runner_last_run.py +1 -1
- cosmotech_api/models/runner_parent_last_run.py +1 -1
- cosmotech_api/models/runner_resource_sizing.py +1 -1
- cosmotech_api/models/runner_role.py +1 -1
- cosmotech_api/models/runner_root_last_run.py +1 -1
- cosmotech_api/models/runner_run_template_parameter_value.py +1 -1
- cosmotech_api/models/runner_security.py +1 -1
- cosmotech_api/models/runner_validation_status.py +1 -1
- cosmotech_api/models/scenario.py +1 -1
- cosmotech_api/models/scenario_access_control.py +1 -1
- cosmotech_api/models/scenario_changed_parameter_value.py +1 -1
- cosmotech_api/models/scenario_comparison_result.py +1 -1
- cosmotech_api/models/scenario_data_download_info.py +1 -1
- cosmotech_api/models/scenario_data_download_job.py +1 -1
- cosmotech_api/models/scenario_job_state.py +1 -1
- cosmotech_api/models/scenario_last_run.py +1 -1
- cosmotech_api/models/scenario_resource_sizing.py +1 -1
- cosmotech_api/models/scenario_role.py +1 -1
- cosmotech_api/models/scenario_run.py +1 -1
- cosmotech_api/models/scenario_run_container.py +1 -1
- cosmotech_api/models/scenario_run_container_artifact.py +1 -1
- cosmotech_api/models/scenario_run_container_logs.py +1 -1
- cosmotech_api/models/scenario_run_logs.py +1 -1
- cosmotech_api/models/scenario_run_resource_requested.py +1 -1
- cosmotech_api/models/scenario_run_search.py +1 -1
- cosmotech_api/models/scenario_run_start_containers.py +1 -1
- cosmotech_api/models/scenario_run_state.py +1 -1
- cosmotech_api/models/scenario_run_status.py +1 -1
- cosmotech_api/models/scenario_run_status_node.py +1 -1
- cosmotech_api/models/scenario_run_template_parameter_value.py +1 -1
- cosmotech_api/models/scenario_security.py +1 -1
- cosmotech_api/models/scenario_validation_status.py +1 -1
- cosmotech_api/models/send_run_data_request.py +90 -0
- cosmotech_api/models/solution.py +1 -1
- cosmotech_api/models/solution_access_control.py +1 -1
- cosmotech_api/models/solution_role.py +1 -1
- cosmotech_api/models/solution_security.py +1 -1
- cosmotech_api/models/source_info.py +1 -1
- cosmotech_api/models/sub_dataset_graph_query.py +1 -1
- cosmotech_api/models/twin_graph_batch_result.py +1 -1
- cosmotech_api/models/twin_graph_hash.py +1 -1
- cosmotech_api/models/twin_graph_query.py +1 -1
- cosmotech_api/models/validator.py +1 -1
- cosmotech_api/models/validator_run.py +1 -1
- cosmotech_api/models/workspace.py +1 -1
- cosmotech_api/models/workspace_access_control.py +1 -1
- cosmotech_api/models/workspace_file.py +1 -1
- cosmotech_api/models/workspace_role.py +1 -1
- cosmotech_api/models/workspace_secret.py +1 -1
- cosmotech_api/models/workspace_security.py +1 -1
- cosmotech_api/models/workspace_solution.py +1 -1
- cosmotech_api/models/workspace_web_app.py +1 -1
- cosmotech_api/rest.py +139 -230
- {cosmotech_api-3.1.1.dist-info → cosmotech_api-3.2.0.post1.dist-info}/METADATA +6 -4
- cosmotech_api-3.2.0.post1.dist-info/RECORD +255 -0
- cosmotech_api-3.1.1.dist-info/RECORD +0 -251
- {cosmotech_api-3.1.1.dist-info → cosmotech_api-3.2.0.post1.dist-info}/LICENSE +0 -0
- {cosmotech_api-3.1.1.dist-info → cosmotech_api-3.2.0.post1.dist-info}/WHEEL +0 -0
- {cosmotech_api-3.1.1.dist-info → cosmotech_api-3.2.0.post1.dist-info}/top_level.txt +0 -0
|
@@ -1,293 +1,621 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
1
3
|
"""
|
|
2
4
|
Cosmo Tech Platform API
|
|
3
5
|
|
|
4
|
-
Cosmo Tech Platform API
|
|
6
|
+
Cosmo Tech Platform API
|
|
5
7
|
|
|
6
|
-
The version of the OpenAPI document: 3.1.1
|
|
8
|
+
The version of the OpenAPI document: 3.1.1-SNAPSHOT
|
|
7
9
|
Contact: platform@cosmotech.com
|
|
8
|
-
Generated by
|
|
9
|
-
"""
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
11
|
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
11
19
|
|
|
12
|
-
import
|
|
13
|
-
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import Dict
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from cosmotech_api.models.scenario_run_result import ScenarioRunResult
|
|
14
24
|
|
|
15
|
-
from cosmotech_api.api_client import ApiClient,
|
|
16
|
-
from cosmotech_api.
|
|
17
|
-
|
|
18
|
-
check_validations,
|
|
19
|
-
date,
|
|
20
|
-
datetime,
|
|
21
|
-
file_type,
|
|
22
|
-
none_type,
|
|
23
|
-
validate_and_convert_types
|
|
24
|
-
)
|
|
25
|
-
from cosmotech_api.model.scenario_run_result import ScenarioRunResult
|
|
25
|
+
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from cosmotech_api.api_response import ApiResponse
|
|
27
|
+
from cosmotech_api.rest import RESTResponseType
|
|
26
28
|
|
|
27
29
|
|
|
28
|
-
class ScenariorunresultApi
|
|
30
|
+
class ScenariorunresultApi:
|
|
29
31
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
32
|
Ref: https://openapi-generator.tech
|
|
31
33
|
|
|
32
34
|
Do not edit the class manually.
|
|
33
35
|
"""
|
|
34
36
|
|
|
35
|
-
def __init__(self, api_client=None):
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
36
38
|
if api_client is None:
|
|
37
|
-
api_client = ApiClient()
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
38
40
|
self.api_client = api_client
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
'accept': [
|
|
108
|
-
'application/json'
|
|
109
|
-
],
|
|
110
|
-
'content_type': [],
|
|
111
|
-
},
|
|
112
|
-
api_client=api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def get_scenario_run_result(
|
|
45
|
+
self,
|
|
46
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
47
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
48
|
+
scenario_id: Annotated[StrictStr, Field(description="the Scenario identifier")],
|
|
49
|
+
scenariorun_id: Annotated[StrictStr, Field(description="the ScenarioRun identifier")],
|
|
50
|
+
probe_id: Annotated[StrictStr, Field(description="the Probe identifier")],
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> ScenarioRunResult:
|
|
64
|
+
"""Get a ScenarioRunResult in the Organization
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
:param organization_id: the Organization identifier (required)
|
|
68
|
+
:type organization_id: str
|
|
69
|
+
:param workspace_id: the Workspace identifier (required)
|
|
70
|
+
:type workspace_id: str
|
|
71
|
+
:param scenario_id: the Scenario identifier (required)
|
|
72
|
+
:type scenario_id: str
|
|
73
|
+
:param scenariorun_id: the ScenarioRun identifier (required)
|
|
74
|
+
:type scenariorun_id: str
|
|
75
|
+
:param probe_id: the Probe identifier (required)
|
|
76
|
+
:type probe_id: str
|
|
77
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
78
|
+
number provided, it will be total request
|
|
79
|
+
timeout. It can also be a pair (tuple) of
|
|
80
|
+
(connection, read) timeouts.
|
|
81
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
82
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
83
|
+
request; this effectively ignores the
|
|
84
|
+
authentication in the spec for a single request.
|
|
85
|
+
:type _request_auth: dict, optional
|
|
86
|
+
:param _content_type: force content-type for the request.
|
|
87
|
+
:type _content_type: str, Optional
|
|
88
|
+
:param _headers: set to override the headers for a single
|
|
89
|
+
request; this effectively ignores the headers
|
|
90
|
+
in the spec for a single request.
|
|
91
|
+
:type _headers: dict, optional
|
|
92
|
+
:param _host_index: set to override the host_index for a single
|
|
93
|
+
request; this effectively ignores the host_index
|
|
94
|
+
in the spec for a single request.
|
|
95
|
+
:type _host_index: int, optional
|
|
96
|
+
:return: Returns the result object.
|
|
97
|
+
""" # noqa: E501
|
|
98
|
+
|
|
99
|
+
_param = self._get_scenario_run_result_serialize(
|
|
100
|
+
organization_id=organization_id,
|
|
101
|
+
workspace_id=workspace_id,
|
|
102
|
+
scenario_id=scenario_id,
|
|
103
|
+
scenariorun_id=scenariorun_id,
|
|
104
|
+
probe_id=probe_id,
|
|
105
|
+
_request_auth=_request_auth,
|
|
106
|
+
_content_type=_content_type,
|
|
107
|
+
_headers=_headers,
|
|
108
|
+
_host_index=_host_index
|
|
113
109
|
)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
'http_method': 'POST',
|
|
123
|
-
'servers': None,
|
|
124
|
-
},
|
|
125
|
-
params_map={
|
|
126
|
-
'all': [
|
|
127
|
-
'organization_id',
|
|
128
|
-
'workspace_id',
|
|
129
|
-
'scenario_id',
|
|
130
|
-
'scenariorun_id',
|
|
131
|
-
'probe_id',
|
|
132
|
-
'request_body',
|
|
133
|
-
],
|
|
134
|
-
'required': [
|
|
135
|
-
'organization_id',
|
|
136
|
-
'workspace_id',
|
|
137
|
-
'scenario_id',
|
|
138
|
-
'scenariorun_id',
|
|
139
|
-
'probe_id',
|
|
140
|
-
'request_body',
|
|
141
|
-
],
|
|
142
|
-
'nullable': [
|
|
143
|
-
],
|
|
144
|
-
'enum': [
|
|
145
|
-
],
|
|
146
|
-
'validation': [
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
root_map={
|
|
150
|
-
'validations': {
|
|
151
|
-
},
|
|
152
|
-
'allowed_values': {
|
|
153
|
-
},
|
|
154
|
-
'openapi_types': {
|
|
155
|
-
'organization_id':
|
|
156
|
-
(str,),
|
|
157
|
-
'workspace_id':
|
|
158
|
-
(str,),
|
|
159
|
-
'scenario_id':
|
|
160
|
-
(str,),
|
|
161
|
-
'scenariorun_id':
|
|
162
|
-
(str,),
|
|
163
|
-
'probe_id':
|
|
164
|
-
(str,),
|
|
165
|
-
'request_body':
|
|
166
|
-
({str: (str,)},),
|
|
167
|
-
},
|
|
168
|
-
'attribute_map': {
|
|
169
|
-
'organization_id': 'organization_id',
|
|
170
|
-
'workspace_id': 'workspace_id',
|
|
171
|
-
'scenario_id': 'scenario_id',
|
|
172
|
-
'scenariorun_id': 'scenariorun_id',
|
|
173
|
-
'probe_id': 'probe_id',
|
|
174
|
-
},
|
|
175
|
-
'location_map': {
|
|
176
|
-
'organization_id': 'path',
|
|
177
|
-
'workspace_id': 'path',
|
|
178
|
-
'scenario_id': 'path',
|
|
179
|
-
'scenariorun_id': 'path',
|
|
180
|
-
'probe_id': 'path',
|
|
181
|
-
'request_body': 'body',
|
|
182
|
-
},
|
|
183
|
-
'collection_format_map': {
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
headers_map={
|
|
187
|
-
'accept': [
|
|
188
|
-
'application/json'
|
|
189
|
-
],
|
|
190
|
-
'content_type': [
|
|
191
|
-
'application/json'
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
api_client=api_client
|
|
110
|
+
|
|
111
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
112
|
+
'200': "ScenarioRunResult",
|
|
113
|
+
'404': None,
|
|
114
|
+
}
|
|
115
|
+
response_data = self.api_client.call_api(
|
|
116
|
+
*_param,
|
|
117
|
+
_request_timeout=_request_timeout
|
|
195
118
|
)
|
|
119
|
+
response_data.read()
|
|
120
|
+
return self.api_client.response_deserialize(
|
|
121
|
+
response_data=response_data,
|
|
122
|
+
response_types_map=_response_types_map,
|
|
123
|
+
).data
|
|
196
124
|
|
|
197
|
-
|
|
125
|
+
|
|
126
|
+
@validate_call
|
|
127
|
+
def get_scenario_run_result_with_http_info(
|
|
128
|
+
self,
|
|
129
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
130
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
131
|
+
scenario_id: Annotated[StrictStr, Field(description="the Scenario identifier")],
|
|
132
|
+
scenariorun_id: Annotated[StrictStr, Field(description="the ScenarioRun identifier")],
|
|
133
|
+
probe_id: Annotated[StrictStr, Field(description="the Probe identifier")],
|
|
134
|
+
_request_timeout: Union[
|
|
135
|
+
None,
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
137
|
+
Tuple[
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
139
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
140
|
+
]
|
|
141
|
+
] = None,
|
|
142
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
143
|
+
_content_type: Optional[StrictStr] = None,
|
|
144
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
146
|
+
) -> ApiResponse[ScenarioRunResult]:
|
|
147
|
+
"""Get a ScenarioRunResult in the Organization
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param organization_id: the Organization identifier (required)
|
|
151
|
+
:type organization_id: str
|
|
152
|
+
:param workspace_id: the Workspace identifier (required)
|
|
153
|
+
:type workspace_id: str
|
|
154
|
+
:param scenario_id: the Scenario identifier (required)
|
|
155
|
+
:type scenario_id: str
|
|
156
|
+
:param scenariorun_id: the ScenarioRun identifier (required)
|
|
157
|
+
:type scenariorun_id: str
|
|
158
|
+
:param probe_id: the Probe identifier (required)
|
|
159
|
+
:type probe_id: str
|
|
160
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
161
|
+
number provided, it will be total request
|
|
162
|
+
timeout. It can also be a pair (tuple) of
|
|
163
|
+
(connection, read) timeouts.
|
|
164
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
165
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
166
|
+
request; this effectively ignores the
|
|
167
|
+
authentication in the spec for a single request.
|
|
168
|
+
:type _request_auth: dict, optional
|
|
169
|
+
:param _content_type: force content-type for the request.
|
|
170
|
+
:type _content_type: str, Optional
|
|
171
|
+
:param _headers: set to override the headers for a single
|
|
172
|
+
request; this effectively ignores the headers
|
|
173
|
+
in the spec for a single request.
|
|
174
|
+
:type _headers: dict, optional
|
|
175
|
+
:param _host_index: set to override the host_index for a single
|
|
176
|
+
request; this effectively ignores the host_index
|
|
177
|
+
in the spec for a single request.
|
|
178
|
+
:type _host_index: int, optional
|
|
179
|
+
:return: Returns the result object.
|
|
180
|
+
""" # noqa: E501
|
|
181
|
+
|
|
182
|
+
_param = self._get_scenario_run_result_serialize(
|
|
183
|
+
organization_id=organization_id,
|
|
184
|
+
workspace_id=workspace_id,
|
|
185
|
+
scenario_id=scenario_id,
|
|
186
|
+
scenariorun_id=scenariorun_id,
|
|
187
|
+
probe_id=probe_id,
|
|
188
|
+
_request_auth=_request_auth,
|
|
189
|
+
_content_type=_content_type,
|
|
190
|
+
_headers=_headers,
|
|
191
|
+
_host_index=_host_index
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
195
|
+
'200': "ScenarioRunResult",
|
|
196
|
+
'404': None,
|
|
197
|
+
}
|
|
198
|
+
response_data = self.api_client.call_api(
|
|
199
|
+
*_param,
|
|
200
|
+
_request_timeout=_request_timeout
|
|
201
|
+
)
|
|
202
|
+
response_data.read()
|
|
203
|
+
return self.api_client.response_deserialize(
|
|
204
|
+
response_data=response_data,
|
|
205
|
+
response_types_map=_response_types_map,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
@validate_call
|
|
210
|
+
def get_scenario_run_result_without_preload_content(
|
|
211
|
+
self,
|
|
212
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
213
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
214
|
+
scenario_id: Annotated[StrictStr, Field(description="the Scenario identifier")],
|
|
215
|
+
scenariorun_id: Annotated[StrictStr, Field(description="the ScenarioRun identifier")],
|
|
216
|
+
probe_id: Annotated[StrictStr, Field(description="the Probe identifier")],
|
|
217
|
+
_request_timeout: Union[
|
|
218
|
+
None,
|
|
219
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
220
|
+
Tuple[
|
|
221
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
222
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
223
|
+
]
|
|
224
|
+
] = None,
|
|
225
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
226
|
+
_content_type: Optional[StrictStr] = None,
|
|
227
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
228
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
229
|
+
) -> RESTResponseType:
|
|
230
|
+
"""Get a ScenarioRunResult in the Organization
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param organization_id: the Organization identifier (required)
|
|
234
|
+
:type organization_id: str
|
|
235
|
+
:param workspace_id: the Workspace identifier (required)
|
|
236
|
+
:type workspace_id: str
|
|
237
|
+
:param scenario_id: the Scenario identifier (required)
|
|
238
|
+
:type scenario_id: str
|
|
239
|
+
:param scenariorun_id: the ScenarioRun identifier (required)
|
|
240
|
+
:type scenariorun_id: str
|
|
241
|
+
:param probe_id: the Probe identifier (required)
|
|
242
|
+
:type probe_id: str
|
|
243
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
244
|
+
number provided, it will be total request
|
|
245
|
+
timeout. It can also be a pair (tuple) of
|
|
246
|
+
(connection, read) timeouts.
|
|
247
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
248
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
249
|
+
request; this effectively ignores the
|
|
250
|
+
authentication in the spec for a single request.
|
|
251
|
+
:type _request_auth: dict, optional
|
|
252
|
+
:param _content_type: force content-type for the request.
|
|
253
|
+
:type _content_type: str, Optional
|
|
254
|
+
:param _headers: set to override the headers for a single
|
|
255
|
+
request; this effectively ignores the headers
|
|
256
|
+
in the spec for a single request.
|
|
257
|
+
:type _headers: dict, optional
|
|
258
|
+
:param _host_index: set to override the host_index for a single
|
|
259
|
+
request; this effectively ignores the host_index
|
|
260
|
+
in the spec for a single request.
|
|
261
|
+
:type _host_index: int, optional
|
|
262
|
+
:return: Returns the result object.
|
|
263
|
+
""" # noqa: E501
|
|
264
|
+
|
|
265
|
+
_param = self._get_scenario_run_result_serialize(
|
|
266
|
+
organization_id=organization_id,
|
|
267
|
+
workspace_id=workspace_id,
|
|
268
|
+
scenario_id=scenario_id,
|
|
269
|
+
scenariorun_id=scenariorun_id,
|
|
270
|
+
probe_id=probe_id,
|
|
271
|
+
_request_auth=_request_auth,
|
|
272
|
+
_content_type=_content_type,
|
|
273
|
+
_headers=_headers,
|
|
274
|
+
_host_index=_host_index
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
278
|
+
'200': "ScenarioRunResult",
|
|
279
|
+
'404': None,
|
|
280
|
+
}
|
|
281
|
+
response_data = self.api_client.call_api(
|
|
282
|
+
*_param,
|
|
283
|
+
_request_timeout=_request_timeout
|
|
284
|
+
)
|
|
285
|
+
return response_data.response
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
def _get_scenario_run_result_serialize(
|
|
198
289
|
self,
|
|
199
290
|
organization_id,
|
|
200
291
|
workspace_id,
|
|
201
292
|
scenario_id,
|
|
202
293
|
scenariorun_id,
|
|
203
294
|
probe_id,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
295
|
+
_request_auth,
|
|
296
|
+
_content_type,
|
|
297
|
+
_headers,
|
|
298
|
+
_host_index,
|
|
299
|
+
) -> RequestSerialized:
|
|
300
|
+
|
|
301
|
+
_host = None
|
|
302
|
+
|
|
303
|
+
_collection_formats: Dict[str, str] = {
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
_path_params: Dict[str, str] = {}
|
|
307
|
+
_query_params: List[Tuple[str, str]] = []
|
|
308
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
309
|
+
_form_params: List[Tuple[str, str]] = []
|
|
310
|
+
_files: Dict[str, str] = {}
|
|
311
|
+
_body_params: Optional[bytes] = None
|
|
312
|
+
|
|
313
|
+
# process the path parameters
|
|
314
|
+
if organization_id is not None:
|
|
315
|
+
_path_params['organization_id'] = organization_id
|
|
316
|
+
if workspace_id is not None:
|
|
317
|
+
_path_params['workspace_id'] = workspace_id
|
|
318
|
+
if scenario_id is not None:
|
|
319
|
+
_path_params['scenario_id'] = scenario_id
|
|
320
|
+
if scenariorun_id is not None:
|
|
321
|
+
_path_params['scenariorun_id'] = scenariorun_id
|
|
322
|
+
if probe_id is not None:
|
|
323
|
+
_path_params['probe_id'] = probe_id
|
|
324
|
+
# process the query parameters
|
|
325
|
+
# process the header parameters
|
|
326
|
+
# process the form parameters
|
|
327
|
+
# process the body parameter
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
# set the HTTP header `Accept`
|
|
331
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
332
|
+
[
|
|
333
|
+
'application/json'
|
|
334
|
+
]
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
# authentication setting
|
|
339
|
+
_auth_settings: List[str] = [
|
|
340
|
+
'oAuth2AuthCode'
|
|
341
|
+
]
|
|
342
|
+
|
|
343
|
+
return self.api_client.param_serialize(
|
|
344
|
+
method='GET',
|
|
345
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}',
|
|
346
|
+
path_params=_path_params,
|
|
347
|
+
query_params=_query_params,
|
|
348
|
+
header_params=_header_params,
|
|
349
|
+
body=_body_params,
|
|
350
|
+
post_params=_form_params,
|
|
351
|
+
files=_files,
|
|
352
|
+
auth_settings=_auth_settings,
|
|
353
|
+
collection_formats=_collection_formats,
|
|
354
|
+
_host=_host,
|
|
355
|
+
_request_auth=_request_auth
|
|
256
356
|
)
|
|
257
|
-
|
|
258
|
-
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
@validate_call
|
|
362
|
+
def send_scenario_run_result(
|
|
363
|
+
self,
|
|
364
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
365
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
366
|
+
scenario_id: Annotated[StrictStr, Field(description="the Scenario identifier")],
|
|
367
|
+
scenariorun_id: Annotated[StrictStr, Field(description="the ScenarioRun identifier")],
|
|
368
|
+
probe_id: Annotated[StrictStr, Field(description="the Probe identifier")],
|
|
369
|
+
request_body: Annotated[Dict[str, StrictStr], Field(description="the ScenarioRunResult to register")],
|
|
370
|
+
_request_timeout: Union[
|
|
371
|
+
None,
|
|
372
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
373
|
+
Tuple[
|
|
374
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
376
|
+
]
|
|
377
|
+
] = None,
|
|
378
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
379
|
+
_content_type: Optional[StrictStr] = None,
|
|
380
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
381
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
382
|
+
) -> ScenarioRunResult:
|
|
383
|
+
"""Create a new ScenarioRunResult in the Organization
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
:param organization_id: the Organization identifier (required)
|
|
387
|
+
:type organization_id: str
|
|
388
|
+
:param workspace_id: the Workspace identifier (required)
|
|
389
|
+
:type workspace_id: str
|
|
390
|
+
:param scenario_id: the Scenario identifier (required)
|
|
391
|
+
:type scenario_id: str
|
|
392
|
+
:param scenariorun_id: the ScenarioRun identifier (required)
|
|
393
|
+
:type scenariorun_id: str
|
|
394
|
+
:param probe_id: the Probe identifier (required)
|
|
395
|
+
:type probe_id: str
|
|
396
|
+
:param request_body: the ScenarioRunResult to register (required)
|
|
397
|
+
:type request_body: Dict[str, str]
|
|
398
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
399
|
+
number provided, it will be total request
|
|
400
|
+
timeout. It can also be a pair (tuple) of
|
|
401
|
+
(connection, read) timeouts.
|
|
402
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
403
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
404
|
+
request; this effectively ignores the
|
|
405
|
+
authentication in the spec for a single request.
|
|
406
|
+
:type _request_auth: dict, optional
|
|
407
|
+
:param _content_type: force content-type for the request.
|
|
408
|
+
:type _content_type: str, Optional
|
|
409
|
+
:param _headers: set to override the headers for a single
|
|
410
|
+
request; this effectively ignores the headers
|
|
411
|
+
in the spec for a single request.
|
|
412
|
+
:type _headers: dict, optional
|
|
413
|
+
:param _host_index: set to override the host_index for a single
|
|
414
|
+
request; this effectively ignores the host_index
|
|
415
|
+
in the spec for a single request.
|
|
416
|
+
:type _host_index: int, optional
|
|
417
|
+
:return: Returns the result object.
|
|
418
|
+
""" # noqa: E501
|
|
419
|
+
|
|
420
|
+
_param = self._send_scenario_run_result_serialize(
|
|
421
|
+
organization_id=organization_id,
|
|
422
|
+
workspace_id=workspace_id,
|
|
423
|
+
scenario_id=scenario_id,
|
|
424
|
+
scenariorun_id=scenariorun_id,
|
|
425
|
+
probe_id=probe_id,
|
|
426
|
+
request_body=request_body,
|
|
427
|
+
_request_auth=_request_auth,
|
|
428
|
+
_content_type=_content_type,
|
|
429
|
+
_headers=_headers,
|
|
430
|
+
_host_index=_host_index
|
|
259
431
|
)
|
|
260
|
-
|
|
261
|
-
|
|
432
|
+
|
|
433
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
434
|
+
'200': "ScenarioRunResult",
|
|
435
|
+
'400': None,
|
|
436
|
+
}
|
|
437
|
+
response_data = self.api_client.call_api(
|
|
438
|
+
*_param,
|
|
439
|
+
_request_timeout=_request_timeout
|
|
262
440
|
)
|
|
263
|
-
|
|
264
|
-
|
|
441
|
+
response_data.read()
|
|
442
|
+
return self.api_client.response_deserialize(
|
|
443
|
+
response_data=response_data,
|
|
444
|
+
response_types_map=_response_types_map,
|
|
445
|
+
).data
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
@validate_call
|
|
449
|
+
def send_scenario_run_result_with_http_info(
|
|
450
|
+
self,
|
|
451
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
452
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
453
|
+
scenario_id: Annotated[StrictStr, Field(description="the Scenario identifier")],
|
|
454
|
+
scenariorun_id: Annotated[StrictStr, Field(description="the ScenarioRun identifier")],
|
|
455
|
+
probe_id: Annotated[StrictStr, Field(description="the Probe identifier")],
|
|
456
|
+
request_body: Annotated[Dict[str, StrictStr], Field(description="the ScenarioRunResult to register")],
|
|
457
|
+
_request_timeout: Union[
|
|
458
|
+
None,
|
|
459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
460
|
+
Tuple[
|
|
461
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
463
|
+
]
|
|
464
|
+
] = None,
|
|
465
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
466
|
+
_content_type: Optional[StrictStr] = None,
|
|
467
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
468
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
469
|
+
) -> ApiResponse[ScenarioRunResult]:
|
|
470
|
+
"""Create a new ScenarioRunResult in the Organization
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
:param organization_id: the Organization identifier (required)
|
|
474
|
+
:type organization_id: str
|
|
475
|
+
:param workspace_id: the Workspace identifier (required)
|
|
476
|
+
:type workspace_id: str
|
|
477
|
+
:param scenario_id: the Scenario identifier (required)
|
|
478
|
+
:type scenario_id: str
|
|
479
|
+
:param scenariorun_id: the ScenarioRun identifier (required)
|
|
480
|
+
:type scenariorun_id: str
|
|
481
|
+
:param probe_id: the Probe identifier (required)
|
|
482
|
+
:type probe_id: str
|
|
483
|
+
:param request_body: the ScenarioRunResult to register (required)
|
|
484
|
+
:type request_body: Dict[str, str]
|
|
485
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
486
|
+
number provided, it will be total request
|
|
487
|
+
timeout. It can also be a pair (tuple) of
|
|
488
|
+
(connection, read) timeouts.
|
|
489
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
490
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
491
|
+
request; this effectively ignores the
|
|
492
|
+
authentication in the spec for a single request.
|
|
493
|
+
:type _request_auth: dict, optional
|
|
494
|
+
:param _content_type: force content-type for the request.
|
|
495
|
+
:type _content_type: str, Optional
|
|
496
|
+
:param _headers: set to override the headers for a single
|
|
497
|
+
request; this effectively ignores the headers
|
|
498
|
+
in the spec for a single request.
|
|
499
|
+
:type _headers: dict, optional
|
|
500
|
+
:param _host_index: set to override the host_index for a single
|
|
501
|
+
request; this effectively ignores the host_index
|
|
502
|
+
in the spec for a single request.
|
|
503
|
+
:type _host_index: int, optional
|
|
504
|
+
:return: Returns the result object.
|
|
505
|
+
""" # noqa: E501
|
|
506
|
+
|
|
507
|
+
_param = self._send_scenario_run_result_serialize(
|
|
508
|
+
organization_id=organization_id,
|
|
509
|
+
workspace_id=workspace_id,
|
|
510
|
+
scenario_id=scenario_id,
|
|
511
|
+
scenariorun_id=scenariorun_id,
|
|
512
|
+
probe_id=probe_id,
|
|
513
|
+
request_body=request_body,
|
|
514
|
+
_request_auth=_request_auth,
|
|
515
|
+
_content_type=_content_type,
|
|
516
|
+
_headers=_headers,
|
|
517
|
+
_host_index=_host_index
|
|
265
518
|
)
|
|
266
|
-
|
|
267
|
-
|
|
519
|
+
|
|
520
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
521
|
+
'200': "ScenarioRunResult",
|
|
522
|
+
'400': None,
|
|
523
|
+
}
|
|
524
|
+
response_data = self.api_client.call_api(
|
|
525
|
+
*_param,
|
|
526
|
+
_request_timeout=_request_timeout
|
|
268
527
|
)
|
|
269
|
-
|
|
270
|
-
|
|
528
|
+
response_data.read()
|
|
529
|
+
return self.api_client.response_deserialize(
|
|
530
|
+
response_data=response_data,
|
|
531
|
+
response_types_map=_response_types_map,
|
|
271
532
|
)
|
|
272
|
-
|
|
273
|
-
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
@validate_call
|
|
536
|
+
def send_scenario_run_result_without_preload_content(
|
|
537
|
+
self,
|
|
538
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
539
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
540
|
+
scenario_id: Annotated[StrictStr, Field(description="the Scenario identifier")],
|
|
541
|
+
scenariorun_id: Annotated[StrictStr, Field(description="the ScenarioRun identifier")],
|
|
542
|
+
probe_id: Annotated[StrictStr, Field(description="the Probe identifier")],
|
|
543
|
+
request_body: Annotated[Dict[str, StrictStr], Field(description="the ScenarioRunResult to register")],
|
|
544
|
+
_request_timeout: Union[
|
|
545
|
+
None,
|
|
546
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
547
|
+
Tuple[
|
|
548
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
549
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
550
|
+
]
|
|
551
|
+
] = None,
|
|
552
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
553
|
+
_content_type: Optional[StrictStr] = None,
|
|
554
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
555
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
556
|
+
) -> RESTResponseType:
|
|
557
|
+
"""Create a new ScenarioRunResult in the Organization
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
:param organization_id: the Organization identifier (required)
|
|
561
|
+
:type organization_id: str
|
|
562
|
+
:param workspace_id: the Workspace identifier (required)
|
|
563
|
+
:type workspace_id: str
|
|
564
|
+
:param scenario_id: the Scenario identifier (required)
|
|
565
|
+
:type scenario_id: str
|
|
566
|
+
:param scenariorun_id: the ScenarioRun identifier (required)
|
|
567
|
+
:type scenariorun_id: str
|
|
568
|
+
:param probe_id: the Probe identifier (required)
|
|
569
|
+
:type probe_id: str
|
|
570
|
+
:param request_body: the ScenarioRunResult to register (required)
|
|
571
|
+
:type request_body: Dict[str, str]
|
|
572
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
573
|
+
number provided, it will be total request
|
|
574
|
+
timeout. It can also be a pair (tuple) of
|
|
575
|
+
(connection, read) timeouts.
|
|
576
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
577
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
578
|
+
request; this effectively ignores the
|
|
579
|
+
authentication in the spec for a single request.
|
|
580
|
+
:type _request_auth: dict, optional
|
|
581
|
+
:param _content_type: force content-type for the request.
|
|
582
|
+
:type _content_type: str, Optional
|
|
583
|
+
:param _headers: set to override the headers for a single
|
|
584
|
+
request; this effectively ignores the headers
|
|
585
|
+
in the spec for a single request.
|
|
586
|
+
:type _headers: dict, optional
|
|
587
|
+
:param _host_index: set to override the host_index for a single
|
|
588
|
+
request; this effectively ignores the host_index
|
|
589
|
+
in the spec for a single request.
|
|
590
|
+
:type _host_index: int, optional
|
|
591
|
+
:return: Returns the result object.
|
|
592
|
+
""" # noqa: E501
|
|
593
|
+
|
|
594
|
+
_param = self._send_scenario_run_result_serialize(
|
|
595
|
+
organization_id=organization_id,
|
|
596
|
+
workspace_id=workspace_id,
|
|
597
|
+
scenario_id=scenario_id,
|
|
598
|
+
scenariorun_id=scenariorun_id,
|
|
599
|
+
probe_id=probe_id,
|
|
600
|
+
request_body=request_body,
|
|
601
|
+
_request_auth=_request_auth,
|
|
602
|
+
_content_type=_content_type,
|
|
603
|
+
_headers=_headers,
|
|
604
|
+
_host_index=_host_index
|
|
274
605
|
)
|
|
275
|
-
kwargs['_content_type'] = kwargs.get(
|
|
276
|
-
'_content_type')
|
|
277
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
278
|
-
kwargs['organization_id'] = \
|
|
279
|
-
organization_id
|
|
280
|
-
kwargs['workspace_id'] = \
|
|
281
|
-
workspace_id
|
|
282
|
-
kwargs['scenario_id'] = \
|
|
283
|
-
scenario_id
|
|
284
|
-
kwargs['scenariorun_id'] = \
|
|
285
|
-
scenariorun_id
|
|
286
|
-
kwargs['probe_id'] = \
|
|
287
|
-
probe_id
|
|
288
|
-
return self.get_scenario_run_result_endpoint.call_with_http_info(**kwargs)
|
|
289
606
|
|
|
290
|
-
|
|
607
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
608
|
+
'200': "ScenarioRunResult",
|
|
609
|
+
'400': None,
|
|
610
|
+
}
|
|
611
|
+
response_data = self.api_client.call_api(
|
|
612
|
+
*_param,
|
|
613
|
+
_request_timeout=_request_timeout
|
|
614
|
+
)
|
|
615
|
+
return response_data.response
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
def _send_scenario_run_result_serialize(
|
|
291
619
|
self,
|
|
292
620
|
organization_id,
|
|
293
621
|
workspace_id,
|
|
@@ -295,92 +623,82 @@ class ScenariorunresultApi(object):
|
|
|
295
623
|
scenariorun_id,
|
|
296
624
|
probe_id,
|
|
297
625
|
request_body,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
that we want to use.
|
|
341
|
-
Default is read from the configuration.
|
|
342
|
-
async_req (bool): execute request asynchronously
|
|
343
|
-
|
|
344
|
-
Returns:
|
|
345
|
-
ScenarioRunResult
|
|
346
|
-
If the method is called asynchronously, returns the request
|
|
347
|
-
thread.
|
|
348
|
-
"""
|
|
349
|
-
kwargs['async_req'] = kwargs.get(
|
|
350
|
-
'async_req', False
|
|
351
|
-
)
|
|
352
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
353
|
-
'_return_http_data_only', True
|
|
354
|
-
)
|
|
355
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
356
|
-
'_preload_content', True
|
|
357
|
-
)
|
|
358
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
359
|
-
'_request_timeout', None
|
|
360
|
-
)
|
|
361
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
362
|
-
'_check_input_type', True
|
|
363
|
-
)
|
|
364
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
365
|
-
'_check_return_type', True
|
|
626
|
+
_request_auth,
|
|
627
|
+
_content_type,
|
|
628
|
+
_headers,
|
|
629
|
+
_host_index,
|
|
630
|
+
) -> RequestSerialized:
|
|
631
|
+
|
|
632
|
+
_host = None
|
|
633
|
+
|
|
634
|
+
_collection_formats: Dict[str, str] = {
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
_path_params: Dict[str, str] = {}
|
|
638
|
+
_query_params: List[Tuple[str, str]] = []
|
|
639
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
640
|
+
_form_params: List[Tuple[str, str]] = []
|
|
641
|
+
_files: Dict[str, str] = {}
|
|
642
|
+
_body_params: Optional[bytes] = None
|
|
643
|
+
|
|
644
|
+
# process the path parameters
|
|
645
|
+
if organization_id is not None:
|
|
646
|
+
_path_params['organization_id'] = organization_id
|
|
647
|
+
if workspace_id is not None:
|
|
648
|
+
_path_params['workspace_id'] = workspace_id
|
|
649
|
+
if scenario_id is not None:
|
|
650
|
+
_path_params['scenario_id'] = scenario_id
|
|
651
|
+
if scenariorun_id is not None:
|
|
652
|
+
_path_params['scenariorun_id'] = scenariorun_id
|
|
653
|
+
if probe_id is not None:
|
|
654
|
+
_path_params['probe_id'] = probe_id
|
|
655
|
+
# process the query parameters
|
|
656
|
+
# process the header parameters
|
|
657
|
+
# process the form parameters
|
|
658
|
+
# process the body parameter
|
|
659
|
+
if request_body is not None:
|
|
660
|
+
_body_params = request_body
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
# set the HTTP header `Accept`
|
|
664
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
665
|
+
[
|
|
666
|
+
'application/json'
|
|
667
|
+
]
|
|
366
668
|
)
|
|
367
|
-
|
|
368
|
-
|
|
669
|
+
|
|
670
|
+
# set the HTTP header `Content-Type`
|
|
671
|
+
if _content_type:
|
|
672
|
+
_header_params['Content-Type'] = _content_type
|
|
673
|
+
else:
|
|
674
|
+
_default_content_type = (
|
|
675
|
+
self.api_client.select_header_content_type(
|
|
676
|
+
[
|
|
677
|
+
'application/json'
|
|
678
|
+
]
|
|
679
|
+
)
|
|
680
|
+
)
|
|
681
|
+
if _default_content_type is not None:
|
|
682
|
+
_header_params['Content-Type'] = _default_content_type
|
|
683
|
+
|
|
684
|
+
# authentication setting
|
|
685
|
+
_auth_settings: List[str] = [
|
|
686
|
+
'oAuth2AuthCode'
|
|
687
|
+
]
|
|
688
|
+
|
|
689
|
+
return self.api_client.param_serialize(
|
|
690
|
+
method='POST',
|
|
691
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}',
|
|
692
|
+
path_params=_path_params,
|
|
693
|
+
query_params=_query_params,
|
|
694
|
+
header_params=_header_params,
|
|
695
|
+
body=_body_params,
|
|
696
|
+
post_params=_form_params,
|
|
697
|
+
files=_files,
|
|
698
|
+
auth_settings=_auth_settings,
|
|
699
|
+
collection_formats=_collection_formats,
|
|
700
|
+
_host=_host,
|
|
701
|
+
_request_auth=_request_auth
|
|
369
702
|
)
|
|
370
|
-
|
|
371
|
-
'_content_type')
|
|
372
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
373
|
-
kwargs['organization_id'] = \
|
|
374
|
-
organization_id
|
|
375
|
-
kwargs['workspace_id'] = \
|
|
376
|
-
workspace_id
|
|
377
|
-
kwargs['scenario_id'] = \
|
|
378
|
-
scenario_id
|
|
379
|
-
kwargs['scenariorun_id'] = \
|
|
380
|
-
scenariorun_id
|
|
381
|
-
kwargs['probe_id'] = \
|
|
382
|
-
probe_id
|
|
383
|
-
kwargs['request_body'] = \
|
|
384
|
-
request_body
|
|
385
|
-
return self.send_scenario_run_result_endpoint.call_with_http_info(**kwargs)
|
|
703
|
+
|
|
386
704
|
|