cosmotech-api 3.2.0.post1__py3-none-any.whl → 5.0.0rc3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. cosmotech_api/__init__.py +180 -130
  2. cosmotech_api/api/__init__.py +1 -4
  3. cosmotech_api/api/connector_api.py +31 -27
  4. cosmotech_api/api/dataset_api.py +1762 -3918
  5. cosmotech_api/api/meta_api.py +281 -0
  6. cosmotech_api/api/organization_api.py +654 -1460
  7. cosmotech_api/api/run_api.py +170 -817
  8. cosmotech_api/api/runner_api.py +688 -631
  9. cosmotech_api/api/scenario_api.py +141 -121
  10. cosmotech_api/api/scenariorun_api.py +76 -66
  11. cosmotech_api/api/scenariorunresult_api.py +341 -659
  12. cosmotech_api/api/solution_api.py +2504 -956
  13. cosmotech_api/api/twingraph_api.py +83 -72
  14. cosmotech_api/api/validator_api.py +1249 -2501
  15. cosmotech_api/api/workspace_api.py +835 -1658
  16. cosmotech_api/api_client.py +79 -33
  17. cosmotech_api/configuration.py +185 -48
  18. cosmotech_api/exceptions.py +18 -1
  19. cosmotech_api/model/component_role_permissions.py +1 -1
  20. cosmotech_api/model/connector.py +1 -1
  21. cosmotech_api/model/connector_parameter.py +1 -1
  22. cosmotech_api/model/connector_parameter_group.py +1 -1
  23. cosmotech_api/model/container_resource_size_info.py +1 -1
  24. cosmotech_api/model/container_resource_sizing.py +1 -1
  25. cosmotech_api/model/dataset.py +1 -1
  26. cosmotech_api/model/dataset_access_control.py +1 -1
  27. cosmotech_api/model/dataset_compatibility.py +1 -1
  28. cosmotech_api/model/dataset_connector.py +1 -1
  29. cosmotech_api/model/dataset_copy_parameters.py +1 -1
  30. cosmotech_api/model/dataset_role.py +1 -1
  31. cosmotech_api/model/dataset_search.py +1 -1
  32. cosmotech_api/model/dataset_security.py +1 -1
  33. cosmotech_api/model/dataset_source_type.py +1 -1
  34. cosmotech_api/model/dataset_twin_graph_hash.py +1 -1
  35. cosmotech_api/model/dataset_twin_graph_info.py +1 -1
  36. cosmotech_api/model/dataset_twin_graph_query.py +1 -1
  37. cosmotech_api/model/delete_historical_data.py +1 -1
  38. cosmotech_api/model/file_upload_metadata.py +1 -1
  39. cosmotech_api/model/file_upload_validation.py +1 -1
  40. cosmotech_api/model/graph_properties.py +1 -1
  41. cosmotech_api/model/organization.py +1 -1
  42. cosmotech_api/model/organization_access_control.py +1 -1
  43. cosmotech_api/model/organization_role.py +1 -1
  44. cosmotech_api/model/organization_security.py +1 -1
  45. cosmotech_api/model/organization_service.py +1 -1
  46. cosmotech_api/model/organization_services.py +1 -1
  47. cosmotech_api/model/resource_size_info.py +1 -1
  48. cosmotech_api/model/run.py +1 -1
  49. cosmotech_api/model/run_container.py +1 -1
  50. cosmotech_api/model/run_container_artifact.py +1 -1
  51. cosmotech_api/model/run_container_logs.py +1 -1
  52. cosmotech_api/model/run_logs.py +1 -1
  53. cosmotech_api/model/run_resource_requested.py +1 -1
  54. cosmotech_api/model/run_search.py +1 -1
  55. cosmotech_api/model/run_start_containers.py +1 -1
  56. cosmotech_api/model/run_state.py +1 -1
  57. cosmotech_api/model/run_status.py +1 -1
  58. cosmotech_api/model/run_status_node.py +1 -1
  59. cosmotech_api/model/run_template.py +1 -1
  60. cosmotech_api/model/run_template_handler_id.py +1 -1
  61. cosmotech_api/model/run_template_orchestrator.py +1 -1
  62. cosmotech_api/model/run_template_parameter.py +1 -1
  63. cosmotech_api/model/run_template_parameter_group.py +1 -1
  64. cosmotech_api/model/run_template_parameter_value.py +1 -1
  65. cosmotech_api/model/run_template_resource_sizing.py +1 -1
  66. cosmotech_api/model/run_template_step_source.py +1 -1
  67. cosmotech_api/model/runner.py +1 -1
  68. cosmotech_api/model/runner_access_control.py +1 -1
  69. cosmotech_api/model/runner_changed_parameter_value.py +1 -1
  70. cosmotech_api/model/runner_comparison_result.py +1 -1
  71. cosmotech_api/model/runner_data_download_info.py +1 -1
  72. cosmotech_api/model/runner_data_download_job.py +1 -1
  73. cosmotech_api/model/runner_job_state.py +1 -1
  74. cosmotech_api/model/runner_last_run.py +1 -1
  75. cosmotech_api/model/runner_resource_sizing.py +1 -1
  76. cosmotech_api/model/runner_role.py +1 -1
  77. cosmotech_api/model/runner_run_template_parameter_value.py +1 -1
  78. cosmotech_api/model/runner_security.py +1 -1
  79. cosmotech_api/model/runner_validation_status.py +1 -1
  80. cosmotech_api/model/scenario.py +1 -1
  81. cosmotech_api/model/scenario_access_control.py +1 -1
  82. cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
  83. cosmotech_api/model/scenario_comparison_result.py +1 -1
  84. cosmotech_api/model/scenario_data_download_info.py +1 -1
  85. cosmotech_api/model/scenario_data_download_job.py +1 -1
  86. cosmotech_api/model/scenario_job_state.py +1 -1
  87. cosmotech_api/model/scenario_last_run.py +1 -1
  88. cosmotech_api/model/scenario_resource_sizing.py +1 -1
  89. cosmotech_api/model/scenario_role.py +1 -1
  90. cosmotech_api/model/scenario_run.py +1 -1
  91. cosmotech_api/model/scenario_run_container.py +1 -1
  92. cosmotech_api/model/scenario_run_container_artifact.py +1 -1
  93. cosmotech_api/model/scenario_run_container_logs.py +1 -1
  94. cosmotech_api/model/scenario_run_logs.py +1 -1
  95. cosmotech_api/model/scenario_run_resource_requested.py +1 -1
  96. cosmotech_api/model/scenario_run_result.py +1 -1
  97. cosmotech_api/model/scenario_run_search.py +1 -1
  98. cosmotech_api/model/scenario_run_start_containers.py +1 -1
  99. cosmotech_api/model/scenario_run_state.py +1 -1
  100. cosmotech_api/model/scenario_run_status.py +1 -1
  101. cosmotech_api/model/scenario_run_status_node.py +1 -1
  102. cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
  103. cosmotech_api/model/scenario_security.py +1 -1
  104. cosmotech_api/model/scenario_validation_status.py +1 -1
  105. cosmotech_api/model/solution.py +1 -1
  106. cosmotech_api/model/solution_access_control.py +1 -1
  107. cosmotech_api/model/solution_role.py +1 -1
  108. cosmotech_api/model/solution_security.py +1 -1
  109. cosmotech_api/model/source_info.py +1 -1
  110. cosmotech_api/model/sub_dataset_graph_query.py +1 -1
  111. cosmotech_api/model/translated_labels.py +1 -1
  112. cosmotech_api/model/twin_graph_batch_result.py +1 -1
  113. cosmotech_api/model/twin_graph_hash.py +1 -1
  114. cosmotech_api/model/twin_graph_query.py +1 -1
  115. cosmotech_api/model/validator.py +1 -1
  116. cosmotech_api/model/validator_run.py +1 -1
  117. cosmotech_api/model/workspace.py +1 -1
  118. cosmotech_api/model/workspace_access_control.py +1 -1
  119. cosmotech_api/model/workspace_file.py +1 -1
  120. cosmotech_api/model/workspace_role.py +1 -1
  121. cosmotech_api/model/workspace_secret.py +1 -1
  122. cosmotech_api/model/workspace_security.py +1 -1
  123. cosmotech_api/model/workspace_solution.py +1 -1
  124. cosmotech_api/model/workspace_web_app.py +1 -1
  125. cosmotech_api/model_utils.py +1 -1
  126. cosmotech_api/models/__init__.py +33 -72
  127. cosmotech_api/models/about_info.py +92 -0
  128. cosmotech_api/models/about_info_version.py +100 -0
  129. cosmotech_api/models/component_role_permissions.py +11 -11
  130. cosmotech_api/models/connector.py +12 -22
  131. cosmotech_api/models/connector_parameter.py +7 -7
  132. cosmotech_api/models/connector_parameter_group.py +10 -10
  133. cosmotech_api/models/container_resource_size_info.py +7 -7
  134. cosmotech_api/models/container_resource_sizing.py +7 -7
  135. cosmotech_api/models/create_info.py +103 -0
  136. cosmotech_api/models/created_run.py +88 -0
  137. cosmotech_api/models/dataset.py +47 -103
  138. cosmotech_api/models/dataset_access_control.py +7 -7
  139. cosmotech_api/models/dataset_compatibility.py +7 -7
  140. cosmotech_api/models/dataset_connector.py +7 -7
  141. cosmotech_api/models/dataset_copy_parameters.py +7 -7
  142. cosmotech_api/models/dataset_create_info.py +103 -0
  143. cosmotech_api/models/dataset_create_request.py +111 -0
  144. cosmotech_api/models/dataset_edit_info.py +90 -0
  145. cosmotech_api/models/dataset_part.py +132 -0
  146. cosmotech_api/models/dataset_part_create_request.py +100 -0
  147. cosmotech_api/models/dataset_part_type_enum.py +38 -0
  148. cosmotech_api/models/dataset_part_update_request.py +95 -0
  149. cosmotech_api/models/dataset_role.py +7 -7
  150. cosmotech_api/models/dataset_search.py +7 -7
  151. cosmotech_api/models/dataset_security.py +10 -10
  152. cosmotech_api/models/dataset_source_type.py +1 -1
  153. cosmotech_api/models/dataset_twin_graph_hash.py +7 -7
  154. cosmotech_api/models/dataset_twin_graph_info.py +7 -7
  155. cosmotech_api/models/dataset_twin_graph_query.py +7 -7
  156. cosmotech_api/models/dataset_update_request.py +105 -0
  157. cosmotech_api/models/delete_historical_data.py +7 -7
  158. cosmotech_api/models/edit_info.py +90 -0
  159. cosmotech_api/models/file_upload_metadata.py +7 -7
  160. cosmotech_api/models/file_upload_validation.py +13 -13
  161. cosmotech_api/models/graph_properties.py +7 -7
  162. cosmotech_api/models/ingestion_status_enum.py +40 -0
  163. cosmotech_api/models/io_types_enum.py +38 -0
  164. cosmotech_api/models/last_run_info.py +100 -0
  165. cosmotech_api/models/organization.py +24 -23
  166. cosmotech_api/models/organization_access_control.py +10 -10
  167. cosmotech_api/models/organization_create_request.py +95 -0
  168. cosmotech_api/models/organization_edit_info.py +90 -0
  169. cosmotech_api/models/organization_role.py +9 -9
  170. cosmotech_api/models/organization_security.py +13 -13
  171. cosmotech_api/models/organization_service.py +7 -7
  172. cosmotech_api/models/organization_services.py +7 -7
  173. cosmotech_api/models/organization_update_request.py +89 -0
  174. cosmotech_api/models/query_result.py +7 -7
  175. cosmotech_api/models/resource_size_info.py +7 -7
  176. cosmotech_api/models/run.py +20 -22
  177. cosmotech_api/models/run_container.py +9 -19
  178. cosmotech_api/models/run_container_artifact.py +7 -7
  179. cosmotech_api/models/run_container_logs.py +7 -7
  180. cosmotech_api/models/run_data.py +7 -7
  181. cosmotech_api/models/run_data_query.py +7 -7
  182. cosmotech_api/models/run_edit_info.py +90 -0
  183. cosmotech_api/models/run_logs.py +10 -10
  184. cosmotech_api/models/run_logs_entry.py +88 -0
  185. cosmotech_api/models/run_resource_requested.py +7 -7
  186. cosmotech_api/models/run_search.py +9 -18
  187. cosmotech_api/models/run_search_state.py +46 -0
  188. cosmotech_api/models/run_start_containers.py +10 -10
  189. cosmotech_api/models/run_state.py +2 -1
  190. cosmotech_api/models/run_status.py +17 -11
  191. cosmotech_api/models/run_status_node.py +7 -7
  192. cosmotech_api/models/run_template.py +20 -75
  193. cosmotech_api/models/run_template_create_request.py +109 -0
  194. cosmotech_api/models/run_template_handler_id.py +1 -1
  195. cosmotech_api/models/run_template_orchestrator.py +1 -1
  196. cosmotech_api/models/run_template_parameter.py +21 -20
  197. cosmotech_api/models/run_template_parameter_create_request.py +103 -0
  198. cosmotech_api/models/run_template_parameter_group.py +17 -18
  199. cosmotech_api/models/run_template_parameter_group_create_request.py +97 -0
  200. cosmotech_api/models/run_template_parameter_group_update_request.py +94 -0
  201. cosmotech_api/models/run_template_parameter_update_request.py +101 -0
  202. cosmotech_api/models/run_template_parameter_value.py +7 -7
  203. cosmotech_api/models/run_template_resource_sizing.py +8 -8
  204. cosmotech_api/models/run_template_step_source.py +1 -1
  205. cosmotech_api/models/run_template_update_request.py +107 -0
  206. cosmotech_api/models/runner.py +48 -62
  207. cosmotech_api/models/runner_access_control.py +7 -7
  208. cosmotech_api/models/runner_changed_parameter_value.py +7 -7
  209. cosmotech_api/models/runner_comparison_result.py +10 -10
  210. cosmotech_api/models/runner_create_request.py +146 -0
  211. cosmotech_api/models/runner_data_download_info.py +7 -7
  212. cosmotech_api/models/runner_data_download_job.py +7 -7
  213. cosmotech_api/models/runner_datasets.py +92 -0
  214. cosmotech_api/models/runner_edit_info.py +90 -0
  215. cosmotech_api/models/runner_job_state.py +1 -1
  216. cosmotech_api/models/runner_last_run.py +7 -7
  217. cosmotech_api/models/runner_parent_last_run.py +7 -7
  218. cosmotech_api/models/runner_resource_sizing.py +7 -7
  219. cosmotech_api/models/runner_role.py +7 -7
  220. cosmotech_api/models/runner_root_last_run.py +7 -7
  221. cosmotech_api/models/runner_run_template_parameter_value.py +7 -9
  222. cosmotech_api/models/runner_security.py +10 -10
  223. cosmotech_api/models/runner_update_request.py +119 -0
  224. cosmotech_api/models/runner_validation_status.py +1 -1
  225. cosmotech_api/models/scenario.py +10 -10
  226. cosmotech_api/models/scenario_access_control.py +7 -7
  227. cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
  228. cosmotech_api/models/scenario_comparison_result.py +10 -10
  229. cosmotech_api/models/scenario_data_download_info.py +7 -7
  230. cosmotech_api/models/scenario_data_download_job.py +7 -7
  231. cosmotech_api/models/scenario_job_state.py +1 -1
  232. cosmotech_api/models/scenario_last_run.py +7 -7
  233. cosmotech_api/models/scenario_resource_sizing.py +7 -7
  234. cosmotech_api/models/scenario_role.py +7 -7
  235. cosmotech_api/models/scenario_run.py +13 -13
  236. cosmotech_api/models/scenario_run_container.py +10 -10
  237. cosmotech_api/models/scenario_run_container_artifact.py +7 -7
  238. cosmotech_api/models/scenario_run_container_logs.py +7 -7
  239. cosmotech_api/models/scenario_run_logs.py +10 -10
  240. cosmotech_api/models/scenario_run_resource_requested.py +7 -7
  241. cosmotech_api/models/scenario_run_search.py +9 -18
  242. cosmotech_api/models/scenario_run_search_state.py +46 -0
  243. cosmotech_api/models/scenario_run_start_containers.py +10 -10
  244. cosmotech_api/models/scenario_run_state.py +1 -1
  245. cosmotech_api/models/scenario_run_status.py +10 -10
  246. cosmotech_api/models/scenario_run_status_node.py +7 -7
  247. cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
  248. cosmotech_api/models/scenario_security.py +10 -10
  249. cosmotech_api/models/scenario_validation_status.py +1 -1
  250. cosmotech_api/models/send_run_data_request.py +7 -7
  251. cosmotech_api/models/solution.py +60 -44
  252. cosmotech_api/models/solution_access_control.py +10 -10
  253. cosmotech_api/models/solution_create_request.py +139 -0
  254. cosmotech_api/models/solution_edit_info.py +90 -0
  255. cosmotech_api/models/solution_file.py +88 -0
  256. cosmotech_api/models/solution_role.py +9 -9
  257. cosmotech_api/models/solution_security.py +13 -13
  258. cosmotech_api/models/solution_update_request.py +133 -0
  259. cosmotech_api/models/source_info.py +7 -7
  260. cosmotech_api/models/sub_dataset_graph_query.py +7 -7
  261. cosmotech_api/models/twin_graph_batch_result.py +7 -7
  262. cosmotech_api/models/twin_graph_hash.py +7 -7
  263. cosmotech_api/models/twin_graph_query.py +7 -7
  264. cosmotech_api/models/twincache_status_enum.py +38 -0
  265. cosmotech_api/models/validator.py +7 -7
  266. cosmotech_api/models/workspace.py +46 -42
  267. cosmotech_api/models/workspace_access_control.py +10 -10
  268. cosmotech_api/models/workspace_create_request.py +113 -0
  269. cosmotech_api/models/workspace_edit_info.py +90 -0
  270. cosmotech_api/models/workspace_file.py +10 -10
  271. cosmotech_api/models/workspace_role.py +9 -9
  272. cosmotech_api/models/workspace_secret.py +7 -7
  273. cosmotech_api/models/workspace_security.py +13 -13
  274. cosmotech_api/models/workspace_solution.py +33 -15
  275. cosmotech_api/models/workspace_update_request.py +105 -0
  276. cosmotech_api/models/workspace_web_app.py +7 -7
  277. cosmotech_api/rest.py +5 -2
  278. cosmotech_api-5.0.0rc3.dist-info/METADATA +314 -0
  279. cosmotech_api-5.0.0rc3.dist-info/RECORD +297 -0
  280. {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/WHEEL +1 -1
  281. {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info/licenses}/LICENSE +1 -1
  282. cosmotech_api-3.2.0.post1.dist-info/METADATA +0 -18
  283. cosmotech_api-3.2.0.post1.dist-info/RECORD +0 -255
  284. {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.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.1-SNAPSHOT
6
+ The version of the OpenAPI document: 3.1.13
9
7
  Contact: platform@cosmotech.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
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
- 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
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
24
14
 
25
- from cosmotech_api.api_client import ApiClient, RequestSerialized
26
- from cosmotech_api.api_response import ApiResponse
27
- from cosmotech_api.rest import RESTResponseType
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) -> None:
35
+ def __init__(self, api_client=None):
38
36
  if api_client is None:
39
- api_client = ApiClient.get_default()
37
+ api_client = ApiClient()
40
38
  self.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
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
- _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
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
- :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(
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
- _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
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
- _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
260
+ kwargs['_preload_content'] = kwargs.get(
261
+ '_preload_content', True
440
262
  )
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
263
+ kwargs['_request_timeout'] = kwargs.get(
264
+ '_request_timeout', None
518
265
  )
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
266
+ kwargs['_check_input_type'] = kwargs.get(
267
+ '_check_input_type', True
527
268
  )
528
- response_data.read()
529
- return self.api_client.response_deserialize(
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
- return response_data.response
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 _send_scenario_run_result_serialize(
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
- _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
- ]
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
- # 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
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