cosmotech-api 3.2.0__py3-none-any.whl → 3.2.6__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.
Potentially problematic release.
This version of cosmotech-api might be problematic. Click here for more details.
- cosmotech_api/__init__.py +6 -6
- cosmotech_api/api/connector_api.py +1 -1
- cosmotech_api/api/dataset_api.py +6 -6
- cosmotech_api/api/organization_api.py +1 -1
- cosmotech_api/api/run_api.py +1 -1
- cosmotech_api/api/runner_api.py +6 -7
- cosmotech_api/api/scenario_api.py +1 -1
- cosmotech_api/api/scenariorun_api.py +1 -1
- cosmotech_api/api/scenariorunresult_api.py +341 -659
- cosmotech_api/api/solution_api.py +1 -1
- cosmotech_api/api/twingraph_api.py +1 -1
- cosmotech_api/api/validator_api.py +1249 -2501
- cosmotech_api/api/workspace_api.py +1 -1
- cosmotech_api/api_client.py +1 -1
- cosmotech_api/configuration.py +2 -2
- cosmotech_api/exceptions.py +1 -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 +5 -21
- 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 -11
- 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 +6 -6
- cosmotech_api/models/component_role_permissions.py +1 -1
- cosmotech_api/models/connector.py +4 -14
- 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 +6 -24
- 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/ingestion_status_enum.py +40 -0
- cosmotech_api/models/io_types_enum.py +38 -0
- 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 +1 -1
- 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 +1 -1
- cosmotech_api/models/run_data_query.py +1 -1
- cosmotech_api/models/run_logs.py +1 -1
- cosmotech_api/models/run_resource_requested.py +1 -1
- cosmotech_api/models/run_search.py +4 -13
- cosmotech_api/models/run_search_state.py +46 -0
- 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 +4 -23
- 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 +3 -6
- 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 +4 -13
- cosmotech_api/models/scenario_run_search_state.py +46 -0
- 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 +1 -1
- 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/twincache_status_enum.py +38 -0
- cosmotech_api/models/validator.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 +1 -1
- {cosmotech_api-3.2.0.dist-info → cosmotech_api-3.2.6.dist-info}/METADATA +1 -1
- cosmotech_api-3.2.6.dist-info/RECORD +260 -0
- cosmotech_api-3.2.0.dist-info/RECORD +0 -255
- {cosmotech_api-3.2.0.dist-info → cosmotech_api-3.2.6.dist-info}/LICENSE +0 -0
- {cosmotech_api-3.2.0.dist-info → cosmotech_api-3.2.6.dist-info}/WHEEL +0 -0
- {cosmotech_api-3.2.0.dist-info → cosmotech_api-3.2.6.dist-info}/top_level.txt +0 -0
|
@@ -1,621 +1,293 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
Cosmo Tech Platform API
|
|
5
3
|
|
|
6
|
-
Cosmo Tech Platform API
|
|
4
|
+
Cosmo Tech Platform API # noqa: E501
|
|
7
5
|
|
|
8
|
-
The version of the OpenAPI document: 3.1.
|
|
6
|
+
The version of the OpenAPI document: 3.1.9
|
|
9
7
|
Contact: platform@cosmotech.com
|
|
10
|
-
Generated by
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
"""
|
|
14
10
|
|
|
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
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
from typing_extensions import Annotated
|
|
23
|
-
from cosmotech_api.models.scenario_run_result import ScenarioRunResult
|
|
12
|
+
import re # noqa: F401
|
|
13
|
+
import sys # noqa: F401
|
|
24
14
|
|
|
25
|
-
from cosmotech_api.api_client import ApiClient,
|
|
26
|
-
from cosmotech_api.
|
|
27
|
-
|
|
15
|
+
from cosmotech_api.api_client import ApiClient, Endpoint as _Endpoint
|
|
16
|
+
from cosmotech_api.model_utils import ( # noqa: F401
|
|
17
|
+
check_allowed_values,
|
|
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
|
|
28
26
|
|
|
29
27
|
|
|
30
|
-
class ScenariorunresultApi:
|
|
28
|
+
class ScenariorunresultApi(object):
|
|
31
29
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
30
|
Ref: https://openapi-generator.tech
|
|
33
31
|
|
|
34
32
|
Do not edit the class manually.
|
|
35
33
|
"""
|
|
36
34
|
|
|
37
|
-
def __init__(self, api_client=None)
|
|
35
|
+
def __init__(self, api_client=None):
|
|
38
36
|
if api_client is None:
|
|
39
|
-
api_client = ApiClient
|
|
37
|
+
api_client = ApiClient()
|
|
40
38
|
self.api_client = api_client
|
|
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
|
-
|
|
108
|
-
|
|
39
|
+
self.get_scenario_run_result_endpoint = _Endpoint(
|
|
40
|
+
settings={
|
|
41
|
+
'response_type': (ScenarioRunResult,),
|
|
42
|
+
'auth': [
|
|
43
|
+
'oAuth2AuthCode'
|
|
44
|
+
],
|
|
45
|
+
'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}',
|
|
46
|
+
'operation_id': 'get_scenario_run_result',
|
|
47
|
+
'http_method': 'GET',
|
|
48
|
+
'servers': None,
|
|
49
|
+
},
|
|
50
|
+
params_map={
|
|
51
|
+
'all': [
|
|
52
|
+
'organization_id',
|
|
53
|
+
'workspace_id',
|
|
54
|
+
'scenario_id',
|
|
55
|
+
'scenariorun_id',
|
|
56
|
+
'probe_id',
|
|
57
|
+
],
|
|
58
|
+
'required': [
|
|
59
|
+
'organization_id',
|
|
60
|
+
'workspace_id',
|
|
61
|
+
'scenario_id',
|
|
62
|
+
'scenariorun_id',
|
|
63
|
+
'probe_id',
|
|
64
|
+
],
|
|
65
|
+
'nullable': [
|
|
66
|
+
],
|
|
67
|
+
'enum': [
|
|
68
|
+
],
|
|
69
|
+
'validation': [
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
root_map={
|
|
73
|
+
'validations': {
|
|
74
|
+
},
|
|
75
|
+
'allowed_values': {
|
|
76
|
+
},
|
|
77
|
+
'openapi_types': {
|
|
78
|
+
'organization_id':
|
|
79
|
+
(str,),
|
|
80
|
+
'workspace_id':
|
|
81
|
+
(str,),
|
|
82
|
+
'scenario_id':
|
|
83
|
+
(str,),
|
|
84
|
+
'scenariorun_id':
|
|
85
|
+
(str,),
|
|
86
|
+
'probe_id':
|
|
87
|
+
(str,),
|
|
88
|
+
},
|
|
89
|
+
'attribute_map': {
|
|
90
|
+
'organization_id': 'organization_id',
|
|
91
|
+
'workspace_id': 'workspace_id',
|
|
92
|
+
'scenario_id': 'scenario_id',
|
|
93
|
+
'scenariorun_id': 'scenariorun_id',
|
|
94
|
+
'probe_id': 'probe_id',
|
|
95
|
+
},
|
|
96
|
+
'location_map': {
|
|
97
|
+
'organization_id': 'path',
|
|
98
|
+
'workspace_id': 'path',
|
|
99
|
+
'scenario_id': 'path',
|
|
100
|
+
'scenariorun_id': 'path',
|
|
101
|
+
'probe_id': 'path',
|
|
102
|
+
},
|
|
103
|
+
'collection_format_map': {
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
headers_map={
|
|
107
|
+
'accept': [
|
|
108
|
+
'application/json'
|
|
109
|
+
],
|
|
110
|
+
'content_type': [],
|
|
111
|
+
},
|
|
112
|
+
api_client=api_client
|
|
109
113
|
)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
self.send_scenario_run_result_endpoint = _Endpoint(
|
|
115
|
+
settings={
|
|
116
|
+
'response_type': (ScenarioRunResult,),
|
|
117
|
+
'auth': [
|
|
118
|
+
'oAuth2AuthCode'
|
|
119
|
+
],
|
|
120
|
+
'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}',
|
|
121
|
+
'operation_id': 'send_scenario_run_result',
|
|
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
|
|
118
195
|
)
|
|
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
|
|
124
|
-
|
|
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
196
|
|
|
150
|
-
|
|
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(
|
|
197
|
+
def get_scenario_run_result(
|
|
289
198
|
self,
|
|
290
199
|
organization_id,
|
|
291
200
|
workspace_id,
|
|
292
201
|
scenario_id,
|
|
293
202
|
scenariorun_id,
|
|
294
203
|
probe_id,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
|
204
|
+
**kwargs
|
|
205
|
+
):
|
|
206
|
+
"""Get a ScenarioRunResult in the Organization # noqa: E501
|
|
207
|
+
|
|
208
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
209
|
+
asynchronous HTTP request, please pass async_req=True
|
|
210
|
+
|
|
211
|
+
>>> thread = api.get_scenario_run_result(organization_id, workspace_id, scenario_id, scenariorun_id, probe_id, async_req=True)
|
|
212
|
+
>>> result = thread.get()
|
|
213
|
+
|
|
214
|
+
Args:
|
|
215
|
+
organization_id (str): the Organization identifier
|
|
216
|
+
workspace_id (str): the Workspace identifier
|
|
217
|
+
scenario_id (str): the Scenario identifier
|
|
218
|
+
scenariorun_id (str): the ScenarioRun identifier
|
|
219
|
+
probe_id (str): the Probe identifier
|
|
220
|
+
|
|
221
|
+
Keyword Args:
|
|
222
|
+
_return_http_data_only (bool): response data without head status
|
|
223
|
+
code and headers. Default is True.
|
|
224
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
225
|
+
will be returned without reading/decoding response data.
|
|
226
|
+
Default is True.
|
|
227
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
228
|
+
one number provided, it will be total request timeout. It can also
|
|
229
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
230
|
+
Default is None.
|
|
231
|
+
_check_input_type (bool): specifies if type checking
|
|
232
|
+
should be done one the data sent to the server.
|
|
233
|
+
Default is True.
|
|
234
|
+
_check_return_type (bool): specifies if type checking
|
|
235
|
+
should be done one the data received from the server.
|
|
236
|
+
Default is True.
|
|
237
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
238
|
+
are serialized names, as specified in the OpenAPI document.
|
|
239
|
+
False if the variable names in the input data
|
|
240
|
+
are pythonic names, e.g. snake case (default)
|
|
241
|
+
_content_type (str/None): force body content-type.
|
|
242
|
+
Default is None and content-type will be predicted by allowed
|
|
243
|
+
content-types and body.
|
|
244
|
+
_host_index (int/None): specifies the index of the server
|
|
245
|
+
that we want to use.
|
|
246
|
+
Default is read from the configuration.
|
|
247
|
+
async_req (bool): execute request asynchronously
|
|
248
|
+
|
|
249
|
+
Returns:
|
|
250
|
+
ScenarioRunResult
|
|
251
|
+
If the method is called asynchronously, returns the request
|
|
252
|
+
thread.
|
|
253
|
+
"""
|
|
254
|
+
kwargs['async_req'] = kwargs.get(
|
|
255
|
+
'async_req', False
|
|
356
256
|
)
|
|
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
|
|
257
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
258
|
+
'_return_http_data_only', True
|
|
431
259
|
)
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
'200': "ScenarioRunResult",
|
|
435
|
-
'400': None,
|
|
436
|
-
}
|
|
437
|
-
response_data = self.api_client.call_api(
|
|
438
|
-
*_param,
|
|
439
|
-
_request_timeout=_request_timeout
|
|
260
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
261
|
+
'_preload_content', True
|
|
440
262
|
)
|
|
441
|
-
|
|
442
|
-
|
|
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
|
|
263
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
264
|
+
'_request_timeout', None
|
|
518
265
|
)
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
'200': "ScenarioRunResult",
|
|
522
|
-
'400': None,
|
|
523
|
-
}
|
|
524
|
-
response_data = self.api_client.call_api(
|
|
525
|
-
*_param,
|
|
526
|
-
_request_timeout=_request_timeout
|
|
266
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
267
|
+
'_check_input_type', True
|
|
527
268
|
)
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
response_data=response_data,
|
|
531
|
-
response_types_map=_response_types_map,
|
|
269
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
270
|
+
'_check_return_type', True
|
|
532
271
|
)
|
|
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
|
|
605
|
-
)
|
|
606
|
-
|
|
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
|
|
272
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
273
|
+
'_spec_property_naming', False
|
|
614
274
|
)
|
|
615
|
-
|
|
616
|
-
|
|
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)
|
|
617
289
|
|
|
618
|
-
def
|
|
290
|
+
def send_scenario_run_result(
|
|
619
291
|
self,
|
|
620
292
|
organization_id,
|
|
621
293
|
workspace_id,
|
|
@@ -623,82 +295,92 @@ class ScenariorunresultApi:
|
|
|
623
295
|
scenariorun_id,
|
|
624
296
|
probe_id,
|
|
625
297
|
request_body,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
298
|
+
**kwargs
|
|
299
|
+
):
|
|
300
|
+
"""Create a new ScenarioRunResult in the Organization # noqa: E501
|
|
301
|
+
|
|
302
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
303
|
+
asynchronous HTTP request, please pass async_req=True
|
|
304
|
+
|
|
305
|
+
>>> thread = api.send_scenario_run_result(organization_id, workspace_id, scenario_id, scenariorun_id, probe_id, request_body, async_req=True)
|
|
306
|
+
>>> result = thread.get()
|
|
307
|
+
|
|
308
|
+
Args:
|
|
309
|
+
organization_id (str): the Organization identifier
|
|
310
|
+
workspace_id (str): the Workspace identifier
|
|
311
|
+
scenario_id (str): the Scenario identifier
|
|
312
|
+
scenariorun_id (str): the ScenarioRun identifier
|
|
313
|
+
probe_id (str): the Probe identifier
|
|
314
|
+
request_body ({str: (str,)}): the ScenarioRunResult to register
|
|
315
|
+
|
|
316
|
+
Keyword Args:
|
|
317
|
+
_return_http_data_only (bool): response data without head status
|
|
318
|
+
code and headers. Default is True.
|
|
319
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
320
|
+
will be returned without reading/decoding response data.
|
|
321
|
+
Default is True.
|
|
322
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
323
|
+
one number provided, it will be total request timeout. It can also
|
|
324
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
325
|
+
Default is None.
|
|
326
|
+
_check_input_type (bool): specifies if type checking
|
|
327
|
+
should be done one the data sent to the server.
|
|
328
|
+
Default is True.
|
|
329
|
+
_check_return_type (bool): specifies if type checking
|
|
330
|
+
should be done one the data received from the server.
|
|
331
|
+
Default is True.
|
|
332
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
333
|
+
are serialized names, as specified in the OpenAPI document.
|
|
334
|
+
False if the variable names in the input data
|
|
335
|
+
are pythonic names, e.g. snake case (default)
|
|
336
|
+
_content_type (str/None): force body content-type.
|
|
337
|
+
Default is None and content-type will be predicted by allowed
|
|
338
|
+
content-types and body.
|
|
339
|
+
_host_index (int/None): specifies the index of the server
|
|
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
|
|
668
351
|
)
|
|
669
|
-
|
|
670
|
-
|
|
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
|
|
352
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
353
|
+
'_return_http_data_only', True
|
|
702
354
|
)
|
|
703
|
-
|
|
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
|
|
366
|
+
)
|
|
367
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
368
|
+
'_spec_property_naming', False
|
|
369
|
+
)
|
|
370
|
+
kwargs['_content_type'] = kwargs.get(
|
|
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)
|
|
704
386
|
|