cosmotech-api 3.2.6.dev0__py3-none-any.whl → 3.3.4__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.

Files changed (259) hide show
  1. cosmotech_api/__init__.py +49 -3
  2. cosmotech_api/api/__init__.py +3 -0
  3. cosmotech_api/api/connector_api.py +285 -26
  4. cosmotech_api/api/dataset_api.py +264 -233
  5. cosmotech_api/api/meta_api.py +281 -0
  6. cosmotech_api/api/organization_api.py +968 -89
  7. cosmotech_api/api/run_api.py +55 -47
  8. cosmotech_api/api/runner_api.py +109 -96
  9. cosmotech_api/api/scenario_api.py +6558 -3259
  10. cosmotech_api/api/scenariorun_api.py +4044 -1987
  11. cosmotech_api/api/scenariorunresult_api.py +1 -1
  12. cosmotech_api/api/solution_api.py +1143 -473
  13. cosmotech_api/api/twingraph_api.py +4152 -2084
  14. cosmotech_api/api/validator_api.py +1 -1
  15. cosmotech_api/api/workspace_api.py +428 -114
  16. cosmotech_api/api_client.py +59 -29
  17. cosmotech_api/configuration.py +29 -7
  18. cosmotech_api/exceptions.py +1 -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 +46 -3
  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 +7 -7
  130. cosmotech_api/models/connector.py +15 -11
  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/created_run.py +7 -7
  136. cosmotech_api/models/dataset.py +10 -10
  137. cosmotech_api/models/dataset_access_control.py +7 -7
  138. cosmotech_api/models/dataset_compatibility.py +7 -7
  139. cosmotech_api/models/dataset_connector.py +7 -7
  140. cosmotech_api/models/dataset_copy_parameters.py +7 -7
  141. cosmotech_api/models/dataset_role.py +7 -7
  142. cosmotech_api/models/dataset_search.py +7 -7
  143. cosmotech_api/models/dataset_security.py +10 -10
  144. cosmotech_api/models/dataset_source_type.py +1 -1
  145. cosmotech_api/models/dataset_twin_graph_hash.py +7 -7
  146. cosmotech_api/models/dataset_twin_graph_info.py +7 -7
  147. cosmotech_api/models/dataset_twin_graph_query.py +7 -7
  148. cosmotech_api/models/delete_historical_data.py +7 -7
  149. cosmotech_api/models/file_upload_metadata.py +7 -7
  150. cosmotech_api/models/file_upload_validation.py +13 -13
  151. cosmotech_api/models/graph_properties.py +7 -7
  152. cosmotech_api/models/ingestion_status_enum.py +1 -1
  153. cosmotech_api/models/io_types_enum.py +1 -1
  154. cosmotech_api/models/organization.py +14 -8
  155. cosmotech_api/models/organization_access_control.py +7 -7
  156. cosmotech_api/models/organization_create_request.py +95 -0
  157. cosmotech_api/models/organization_role.py +7 -7
  158. cosmotech_api/models/organization_security.py +10 -10
  159. cosmotech_api/models/organization_service.py +7 -7
  160. cosmotech_api/models/organization_services.py +7 -7
  161. cosmotech_api/models/organization_update_request.py +89 -0
  162. cosmotech_api/models/query_result.py +7 -7
  163. cosmotech_api/models/resource_size_info.py +7 -7
  164. cosmotech_api/models/run.py +13 -13
  165. cosmotech_api/models/run_container.py +19 -9
  166. cosmotech_api/models/run_container_artifact.py +7 -7
  167. cosmotech_api/models/run_container_logs.py +7 -7
  168. cosmotech_api/models/run_data.py +7 -7
  169. cosmotech_api/models/run_data_query.py +7 -7
  170. cosmotech_api/models/run_logs.py +27 -22
  171. cosmotech_api/models/run_logs_entry.py +7 -7
  172. cosmotech_api/models/run_resource_requested.py +7 -7
  173. cosmotech_api/models/run_search.py +7 -7
  174. cosmotech_api/models/run_search_state.py +1 -1
  175. cosmotech_api/models/run_start_containers.py +10 -10
  176. cosmotech_api/models/run_state.py +1 -1
  177. cosmotech_api/models/run_status.py +10 -10
  178. cosmotech_api/models/run_status_node.py +7 -7
  179. cosmotech_api/models/run_template.py +7 -7
  180. cosmotech_api/models/run_template_handler_id.py +1 -1
  181. cosmotech_api/models/run_template_orchestrator.py +1 -1
  182. cosmotech_api/models/run_template_parameter.py +7 -7
  183. cosmotech_api/models/run_template_parameter_group.py +7 -7
  184. cosmotech_api/models/run_template_parameter_value.py +7 -7
  185. cosmotech_api/models/run_template_resource_sizing.py +7 -7
  186. cosmotech_api/models/run_template_step_source.py +1 -1
  187. cosmotech_api/models/runner.py +33 -14
  188. cosmotech_api/models/runner_access_control.py +7 -7
  189. cosmotech_api/models/runner_changed_parameter_value.py +7 -7
  190. cosmotech_api/models/runner_comparison_result.py +10 -10
  191. cosmotech_api/models/runner_create_request.py +154 -0
  192. cosmotech_api/models/runner_data_download_info.py +12 -9
  193. cosmotech_api/models/runner_data_download_job.py +7 -7
  194. cosmotech_api/models/runner_job_state.py +1 -1
  195. cosmotech_api/models/runner_last_run.py +7 -7
  196. cosmotech_api/models/runner_parent_last_run.py +7 -7
  197. cosmotech_api/models/runner_resource_sizing.py +7 -7
  198. cosmotech_api/models/runner_role.py +7 -7
  199. cosmotech_api/models/runner_root_last_run.py +7 -7
  200. cosmotech_api/models/runner_run_template_parameter_value.py +7 -7
  201. cosmotech_api/models/runner_security.py +10 -10
  202. cosmotech_api/models/runner_update_request.py +123 -0
  203. cosmotech_api/models/runner_validation_status.py +1 -1
  204. cosmotech_api/models/scenario.py +11 -11
  205. cosmotech_api/models/scenario_access_control.py +7 -7
  206. cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
  207. cosmotech_api/models/scenario_comparison_result.py +10 -10
  208. cosmotech_api/models/scenario_data_download_info.py +7 -7
  209. cosmotech_api/models/scenario_data_download_job.py +7 -7
  210. cosmotech_api/models/scenario_job_state.py +1 -1
  211. cosmotech_api/models/scenario_last_run.py +7 -7
  212. cosmotech_api/models/scenario_resource_sizing.py +7 -7
  213. cosmotech_api/models/scenario_role.py +7 -7
  214. cosmotech_api/models/scenario_run.py +13 -13
  215. cosmotech_api/models/scenario_run_container.py +10 -10
  216. cosmotech_api/models/scenario_run_container_artifact.py +7 -7
  217. cosmotech_api/models/scenario_run_container_logs.py +7 -7
  218. cosmotech_api/models/scenario_run_logs.py +10 -10
  219. cosmotech_api/models/scenario_run_resource_requested.py +7 -7
  220. cosmotech_api/models/scenario_run_search.py +7 -7
  221. cosmotech_api/models/scenario_run_search_state.py +1 -1
  222. cosmotech_api/models/scenario_run_start_containers.py +10 -10
  223. cosmotech_api/models/scenario_run_state.py +1 -1
  224. cosmotech_api/models/scenario_run_status.py +10 -10
  225. cosmotech_api/models/scenario_run_status_node.py +7 -7
  226. cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
  227. cosmotech_api/models/scenario_security.py +10 -10
  228. cosmotech_api/models/scenario_validation_status.py +1 -1
  229. cosmotech_api/models/send_run_data_request.py +7 -7
  230. cosmotech_api/models/solution.py +17 -17
  231. cosmotech_api/models/solution_access_control.py +7 -7
  232. cosmotech_api/models/solution_create_request.py +143 -0
  233. cosmotech_api/models/solution_role.py +7 -7
  234. cosmotech_api/models/solution_security.py +10 -10
  235. cosmotech_api/models/solution_update_request.py +107 -0
  236. cosmotech_api/models/source_info.py +7 -7
  237. cosmotech_api/models/sub_dataset_graph_query.py +7 -7
  238. cosmotech_api/models/twin_graph_batch_result.py +7 -7
  239. cosmotech_api/models/twin_graph_hash.py +7 -7
  240. cosmotech_api/models/twin_graph_query.py +7 -7
  241. cosmotech_api/models/twincache_status_enum.py +1 -1
  242. cosmotech_api/models/validator.py +7 -7
  243. cosmotech_api/models/workspace.py +8 -8
  244. cosmotech_api/models/workspace_access_control.py +7 -7
  245. cosmotech_api/models/workspace_create_request.py +117 -0
  246. cosmotech_api/models/workspace_file.py +7 -7
  247. cosmotech_api/models/workspace_role.py +7 -7
  248. cosmotech_api/models/workspace_secret.py +11 -13
  249. cosmotech_api/models/workspace_security.py +10 -10
  250. cosmotech_api/models/workspace_solution.py +7 -7
  251. cosmotech_api/models/workspace_update_request.py +109 -0
  252. cosmotech_api/models/workspace_web_app.py +7 -7
  253. cosmotech_api/rest.py +3 -1
  254. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/METADATA +13 -5
  255. cosmotech_api-3.3.4.dist-info/RECORD +273 -0
  256. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/WHEEL +1 -1
  257. cosmotech_api-3.2.6.dev0.dist-info/RECORD +0 -262
  258. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/LICENSE +0 -0
  259. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/top_level.txt +0 -0
cosmotech_api/__init__.py CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Cosmo Tech Platform API
9
9
 
10
- The version of the OpenAPI document: 4.0.0-onprem.7
10
+ The version of the OpenAPI document: 3.3.4
11
11
  Contact: platform@cosmotech.com
12
12
  Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
@@ -23,7 +23,10 @@ from cosmotech_api.api.dataset_api import DatasetApi
23
23
  from cosmotech_api.api.organization_api import OrganizationApi
24
24
  from cosmotech_api.api.run_api import RunApi
25
25
  from cosmotech_api.api.runner_api import RunnerApi
26
+ from cosmotech_api.api.scenario_api import ScenarioApi
27
+ from cosmotech_api.api.scenariorun_api import ScenariorunApi
26
28
  from cosmotech_api.api.solution_api import SolutionApi
29
+ from cosmotech_api.api.twingraph_api import TwingraphApi
27
30
  from cosmotech_api.api.workspace_api import WorkspaceApi
28
31
 
29
32
  # import ApiClient
@@ -44,7 +47,6 @@ from cosmotech_api.models.connector_parameter import ConnectorParameter
44
47
  from cosmotech_api.models.connector_parameter_group import ConnectorParameterGroup
45
48
  from cosmotech_api.models.container_resource_size_info import ContainerResourceSizeInfo
46
49
  from cosmotech_api.models.container_resource_sizing import ContainerResourceSizing
47
- from cosmotech_api.models.created_run import CreatedRun
48
50
  from cosmotech_api.models.dataset import Dataset
49
51
  from cosmotech_api.models.dataset_access_control import DatasetAccessControl
50
52
  from cosmotech_api.models.dataset_compatibility import DatasetCompatibility
@@ -67,19 +69,26 @@ from cosmotech_api.models.organization import Organization
67
69
  from cosmotech_api.models.organization_access_control import OrganizationAccessControl
68
70
  from cosmotech_api.models.organization_role import OrganizationRole
69
71
  from cosmotech_api.models.organization_security import OrganizationSecurity
72
+ from cosmotech_api.models.organization_service import OrganizationService
73
+ from cosmotech_api.models.organization_services import OrganizationServices
70
74
  from cosmotech_api.models.query_result import QueryResult
71
75
  from cosmotech_api.models.resource_size_info import ResourceSizeInfo
72
76
  from cosmotech_api.models.run import Run
73
77
  from cosmotech_api.models.run_container import RunContainer
78
+ from cosmotech_api.models.run_container_artifact import RunContainerArtifact
79
+ from cosmotech_api.models.run_container_logs import RunContainerLogs
74
80
  from cosmotech_api.models.run_data import RunData
75
81
  from cosmotech_api.models.run_data_query import RunDataQuery
76
82
  from cosmotech_api.models.run_logs import RunLogs
77
- from cosmotech_api.models.run_logs_entry import RunLogsEntry
78
83
  from cosmotech_api.models.run_resource_requested import RunResourceRequested
84
+ from cosmotech_api.models.run_search import RunSearch
85
+ from cosmotech_api.models.run_search_state import RunSearchState
86
+ from cosmotech_api.models.run_start_containers import RunStartContainers
79
87
  from cosmotech_api.models.run_state import RunState
80
88
  from cosmotech_api.models.run_status import RunStatus
81
89
  from cosmotech_api.models.run_status_node import RunStatusNode
82
90
  from cosmotech_api.models.run_template import RunTemplate
91
+ from cosmotech_api.models.run_template_handler_id import RunTemplateHandlerId
83
92
  from cosmotech_api.models.run_template_orchestrator import RunTemplateOrchestrator
84
93
  from cosmotech_api.models.run_template_parameter import RunTemplateParameter
85
94
  from cosmotech_api.models.run_template_parameter_group import RunTemplateParameterGroup
@@ -88,11 +97,44 @@ from cosmotech_api.models.run_template_resource_sizing import RunTemplateResourc
88
97
  from cosmotech_api.models.run_template_step_source import RunTemplateStepSource
89
98
  from cosmotech_api.models.runner import Runner
90
99
  from cosmotech_api.models.runner_access_control import RunnerAccessControl
100
+ from cosmotech_api.models.runner_changed_parameter_value import RunnerChangedParameterValue
101
+ from cosmotech_api.models.runner_comparison_result import RunnerComparisonResult
102
+ from cosmotech_api.models.runner_data_download_info import RunnerDataDownloadInfo
103
+ from cosmotech_api.models.runner_data_download_job import RunnerDataDownloadJob
104
+ from cosmotech_api.models.runner_job_state import RunnerJobState
105
+ from cosmotech_api.models.runner_last_run import RunnerLastRun
106
+ from cosmotech_api.models.runner_parent_last_run import RunnerParentLastRun
91
107
  from cosmotech_api.models.runner_resource_sizing import RunnerResourceSizing
92
108
  from cosmotech_api.models.runner_role import RunnerRole
109
+ from cosmotech_api.models.runner_root_last_run import RunnerRootLastRun
93
110
  from cosmotech_api.models.runner_run_template_parameter_value import RunnerRunTemplateParameterValue
94
111
  from cosmotech_api.models.runner_security import RunnerSecurity
95
112
  from cosmotech_api.models.runner_validation_status import RunnerValidationStatus
113
+ from cosmotech_api.models.scenario import Scenario
114
+ from cosmotech_api.models.scenario_access_control import ScenarioAccessControl
115
+ from cosmotech_api.models.scenario_changed_parameter_value import ScenarioChangedParameterValue
116
+ from cosmotech_api.models.scenario_comparison_result import ScenarioComparisonResult
117
+ from cosmotech_api.models.scenario_data_download_info import ScenarioDataDownloadInfo
118
+ from cosmotech_api.models.scenario_data_download_job import ScenarioDataDownloadJob
119
+ from cosmotech_api.models.scenario_job_state import ScenarioJobState
120
+ from cosmotech_api.models.scenario_last_run import ScenarioLastRun
121
+ from cosmotech_api.models.scenario_resource_sizing import ScenarioResourceSizing
122
+ from cosmotech_api.models.scenario_role import ScenarioRole
123
+ from cosmotech_api.models.scenario_run import ScenarioRun
124
+ from cosmotech_api.models.scenario_run_container import ScenarioRunContainer
125
+ from cosmotech_api.models.scenario_run_container_artifact import ScenarioRunContainerArtifact
126
+ from cosmotech_api.models.scenario_run_container_logs import ScenarioRunContainerLogs
127
+ from cosmotech_api.models.scenario_run_logs import ScenarioRunLogs
128
+ from cosmotech_api.models.scenario_run_resource_requested import ScenarioRunResourceRequested
129
+ from cosmotech_api.models.scenario_run_search import ScenarioRunSearch
130
+ from cosmotech_api.models.scenario_run_search_state import ScenarioRunSearchState
131
+ from cosmotech_api.models.scenario_run_start_containers import ScenarioRunStartContainers
132
+ from cosmotech_api.models.scenario_run_state import ScenarioRunState
133
+ from cosmotech_api.models.scenario_run_status import ScenarioRunStatus
134
+ from cosmotech_api.models.scenario_run_status_node import ScenarioRunStatusNode
135
+ from cosmotech_api.models.scenario_run_template_parameter_value import ScenarioRunTemplateParameterValue
136
+ from cosmotech_api.models.scenario_security import ScenarioSecurity
137
+ from cosmotech_api.models.scenario_validation_status import ScenarioValidationStatus
96
138
  from cosmotech_api.models.send_run_data_request import SendRunDataRequest
97
139
  from cosmotech_api.models.solution import Solution
98
140
  from cosmotech_api.models.solution_access_control import SolutionAccessControl
@@ -101,11 +143,15 @@ from cosmotech_api.models.solution_security import SolutionSecurity
101
143
  from cosmotech_api.models.source_info import SourceInfo
102
144
  from cosmotech_api.models.sub_dataset_graph_query import SubDatasetGraphQuery
103
145
  from cosmotech_api.models.twin_graph_batch_result import TwinGraphBatchResult
146
+ from cosmotech_api.models.twin_graph_hash import TwinGraphHash
147
+ from cosmotech_api.models.twin_graph_query import TwinGraphQuery
104
148
  from cosmotech_api.models.twincache_status_enum import TwincacheStatusEnum
149
+ from cosmotech_api.models.validator import Validator
105
150
  from cosmotech_api.models.workspace import Workspace
106
151
  from cosmotech_api.models.workspace_access_control import WorkspaceAccessControl
107
152
  from cosmotech_api.models.workspace_file import WorkspaceFile
108
153
  from cosmotech_api.models.workspace_role import WorkspaceRole
154
+ from cosmotech_api.models.workspace_secret import WorkspaceSecret
109
155
  from cosmotech_api.models.workspace_security import WorkspaceSecurity
110
156
  from cosmotech_api.models.workspace_solution import WorkspaceSolution
111
157
  from cosmotech_api.models.workspace_web_app import WorkspaceWebApp
@@ -6,6 +6,9 @@ from cosmotech_api.api.dataset_api import DatasetApi
6
6
  from cosmotech_api.api.organization_api import OrganizationApi
7
7
  from cosmotech_api.api.run_api import RunApi
8
8
  from cosmotech_api.api.runner_api import RunnerApi
9
+ from cosmotech_api.api.scenario_api import ScenarioApi
10
+ from cosmotech_api.api.scenariorun_api import ScenariorunApi
9
11
  from cosmotech_api.api.solution_api import SolutionApi
12
+ from cosmotech_api.api.twingraph_api import TwingraphApi
10
13
  from cosmotech_api.api.workspace_api import WorkspaceApi
11
14
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 4.0.0-onprem.7
8
+ The version of the OpenAPI document: 3.3.4
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import Field, StrictInt, StrictStr
21
- from typing import Optional
21
+ from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from cosmotech_api.models.connector import Connector
24
24
 
@@ -43,7 +43,7 @@ class ConnectorApi:
43
43
  @validate_call
44
44
  def find_all_connectors(
45
45
  self,
46
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
46
+ page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
47
47
  size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
48
48
  _request_timeout: Union[
49
49
  None,
@@ -61,7 +61,7 @@ class ConnectorApi:
61
61
  """List all Connectors
62
62
 
63
63
 
64
- :param page: page number to query (first page is at index 0)
64
+ :param page: page number to query
65
65
  :type page: int
66
66
  :param size: amount of result by page
67
67
  :type size: int
@@ -113,7 +113,7 @@ class ConnectorApi:
113
113
  @validate_call
114
114
  def find_all_connectors_with_http_info(
115
115
  self,
116
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
116
+ page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
117
117
  size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
118
118
  _request_timeout: Union[
119
119
  None,
@@ -131,7 +131,7 @@ class ConnectorApi:
131
131
  """List all Connectors
132
132
 
133
133
 
134
- :param page: page number to query (first page is at index 0)
134
+ :param page: page number to query
135
135
  :type page: int
136
136
  :param size: amount of result by page
137
137
  :type size: int
@@ -183,7 +183,7 @@ class ConnectorApi:
183
183
  @validate_call
184
184
  def find_all_connectors_without_preload_content(
185
185
  self,
186
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
186
+ page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
187
187
  size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
188
188
  _request_timeout: Union[
189
189
  None,
@@ -201,7 +201,7 @@ class ConnectorApi:
201
201
  """List all Connectors
202
202
 
203
203
 
204
- :param page: page number to query (first page is at index 0)
204
+ :param page: page number to query
205
205
  :type page: int
206
206
  :param size: amount of result by page
207
207
  :type size: int
@@ -265,7 +265,7 @@ class ConnectorApi:
265
265
  _query_params: List[Tuple[str, str]] = []
266
266
  _header_params: Dict[str, Optional[str]] = _headers or {}
267
267
  _form_params: List[Tuple[str, str]] = []
268
- _files: Dict[str, str] = {}
268
+ _files: Dict[str, Union[str, bytes]] = {}
269
269
  _body_params: Optional[bytes] = None
270
270
 
271
271
  # process the path parameters
@@ -284,11 +284,12 @@ class ConnectorApi:
284
284
 
285
285
 
286
286
  # set the HTTP header `Accept`
287
- _header_params['Accept'] = self.api_client.select_header_accept(
288
- [
289
- 'application/json'
290
- ]
291
- )
287
+ if 'Accept' not in _header_params:
288
+ _header_params['Accept'] = self.api_client.select_header_accept(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
292
293
 
293
294
 
294
295
  # authentication setting
@@ -529,7 +530,7 @@ class ConnectorApi:
529
530
  _query_params: List[Tuple[str, str]] = []
530
531
  _header_params: Dict[str, Optional[str]] = _headers or {}
531
532
  _form_params: List[Tuple[str, str]] = []
532
- _files: Dict[str, str] = {}
533
+ _files: Dict[str, Union[str, bytes]] = {}
533
534
  _body_params: Optional[bytes] = None
534
535
 
535
536
  # process the path parameters
@@ -542,11 +543,268 @@ class ConnectorApi:
542
543
 
543
544
 
544
545
  # set the HTTP header `Accept`
545
- _header_params['Accept'] = self.api_client.select_header_accept(
546
- [
547
- 'application/json'
546
+ if 'Accept' not in _header_params:
547
+ _header_params['Accept'] = self.api_client.select_header_accept(
548
+ [
549
+ 'application/json'
550
+ ]
551
+ )
552
+
553
+
554
+ # authentication setting
555
+ _auth_settings: List[str] = [
556
+ 'oAuth2AuthCode'
557
+ ]
558
+
559
+ return self.api_client.param_serialize(
560
+ method='GET',
561
+ resource_path='/connectors/{connector_id}',
562
+ path_params=_path_params,
563
+ query_params=_query_params,
564
+ header_params=_header_params,
565
+ body=_body_params,
566
+ post_params=_form_params,
567
+ files=_files,
568
+ auth_settings=_auth_settings,
569
+ collection_formats=_collection_formats,
570
+ _host=_host,
571
+ _request_auth=_request_auth
572
+ )
573
+
574
+
575
+
576
+
577
+ @validate_call
578
+ def find_connector_by_name(
579
+ self,
580
+ connector_name: Annotated[StrictStr, Field(description="the Connector name")],
581
+ _request_timeout: Union[
582
+ None,
583
+ Annotated[StrictFloat, Field(gt=0)],
584
+ Tuple[
585
+ Annotated[StrictFloat, Field(gt=0)],
586
+ Annotated[StrictFloat, Field(gt=0)]
587
+ ]
588
+ ] = None,
589
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
590
+ _content_type: Optional[StrictStr] = None,
591
+ _headers: Optional[Dict[StrictStr, Any]] = None,
592
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
593
+ ) -> Connector:
594
+ """Get the details of a connector
595
+
596
+
597
+ :param connector_name: the Connector name (required)
598
+ :type connector_name: str
599
+ :param _request_timeout: timeout setting for this request. If one
600
+ number provided, it will be total request
601
+ timeout. It can also be a pair (tuple) of
602
+ (connection, read) timeouts.
603
+ :type _request_timeout: int, tuple(int, int), optional
604
+ :param _request_auth: set to override the auth_settings for an a single
605
+ request; this effectively ignores the
606
+ authentication in the spec for a single request.
607
+ :type _request_auth: dict, optional
608
+ :param _content_type: force content-type for the request.
609
+ :type _content_type: str, Optional
610
+ :param _headers: set to override the headers for a single
611
+ request; this effectively ignores the headers
612
+ in the spec for a single request.
613
+ :type _headers: dict, optional
614
+ :param _host_index: set to override the host_index for a single
615
+ request; this effectively ignores the host_index
616
+ in the spec for a single request.
617
+ :type _host_index: int, optional
618
+ :return: Returns the result object.
619
+ """ # noqa: E501
620
+
621
+ _param = self._find_connector_by_name_serialize(
622
+ connector_name=connector_name,
623
+ _request_auth=_request_auth,
624
+ _content_type=_content_type,
625
+ _headers=_headers,
626
+ _host_index=_host_index
627
+ )
628
+
629
+ _response_types_map: Dict[str, Optional[str]] = {
630
+ '200': "Connector",
631
+ }
632
+ response_data = self.api_client.call_api(
633
+ *_param,
634
+ _request_timeout=_request_timeout
635
+ )
636
+ response_data.read()
637
+ return self.api_client.response_deserialize(
638
+ response_data=response_data,
639
+ response_types_map=_response_types_map,
640
+ ).data
641
+
642
+
643
+ @validate_call
644
+ def find_connector_by_name_with_http_info(
645
+ self,
646
+ connector_name: Annotated[StrictStr, Field(description="the Connector name")],
647
+ _request_timeout: Union[
648
+ None,
649
+ Annotated[StrictFloat, Field(gt=0)],
650
+ Tuple[
651
+ Annotated[StrictFloat, Field(gt=0)],
652
+ Annotated[StrictFloat, Field(gt=0)]
653
+ ]
654
+ ] = None,
655
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
656
+ _content_type: Optional[StrictStr] = None,
657
+ _headers: Optional[Dict[StrictStr, Any]] = None,
658
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
659
+ ) -> ApiResponse[Connector]:
660
+ """Get the details of a connector
661
+
662
+
663
+ :param connector_name: the Connector name (required)
664
+ :type connector_name: str
665
+ :param _request_timeout: timeout setting for this request. If one
666
+ number provided, it will be total request
667
+ timeout. It can also be a pair (tuple) of
668
+ (connection, read) timeouts.
669
+ :type _request_timeout: int, tuple(int, int), optional
670
+ :param _request_auth: set to override the auth_settings for an a single
671
+ request; this effectively ignores the
672
+ authentication in the spec for a single request.
673
+ :type _request_auth: dict, optional
674
+ :param _content_type: force content-type for the request.
675
+ :type _content_type: str, Optional
676
+ :param _headers: set to override the headers for a single
677
+ request; this effectively ignores the headers
678
+ in the spec for a single request.
679
+ :type _headers: dict, optional
680
+ :param _host_index: set to override the host_index for a single
681
+ request; this effectively ignores the host_index
682
+ in the spec for a single request.
683
+ :type _host_index: int, optional
684
+ :return: Returns the result object.
685
+ """ # noqa: E501
686
+
687
+ _param = self._find_connector_by_name_serialize(
688
+ connector_name=connector_name,
689
+ _request_auth=_request_auth,
690
+ _content_type=_content_type,
691
+ _headers=_headers,
692
+ _host_index=_host_index
693
+ )
694
+
695
+ _response_types_map: Dict[str, Optional[str]] = {
696
+ '200': "Connector",
697
+ }
698
+ response_data = self.api_client.call_api(
699
+ *_param,
700
+ _request_timeout=_request_timeout
701
+ )
702
+ response_data.read()
703
+ return self.api_client.response_deserialize(
704
+ response_data=response_data,
705
+ response_types_map=_response_types_map,
706
+ )
707
+
708
+
709
+ @validate_call
710
+ def find_connector_by_name_without_preload_content(
711
+ self,
712
+ connector_name: Annotated[StrictStr, Field(description="the Connector name")],
713
+ _request_timeout: Union[
714
+ None,
715
+ Annotated[StrictFloat, Field(gt=0)],
716
+ Tuple[
717
+ Annotated[StrictFloat, Field(gt=0)],
718
+ Annotated[StrictFloat, Field(gt=0)]
548
719
  ]
720
+ ] = None,
721
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
722
+ _content_type: Optional[StrictStr] = None,
723
+ _headers: Optional[Dict[StrictStr, Any]] = None,
724
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
725
+ ) -> RESTResponseType:
726
+ """Get the details of a connector
727
+
728
+
729
+ :param connector_name: the Connector name (required)
730
+ :type connector_name: str
731
+ :param _request_timeout: timeout setting for this request. If one
732
+ number provided, it will be total request
733
+ timeout. It can also be a pair (tuple) of
734
+ (connection, read) timeouts.
735
+ :type _request_timeout: int, tuple(int, int), optional
736
+ :param _request_auth: set to override the auth_settings for an a single
737
+ request; this effectively ignores the
738
+ authentication in the spec for a single request.
739
+ :type _request_auth: dict, optional
740
+ :param _content_type: force content-type for the request.
741
+ :type _content_type: str, Optional
742
+ :param _headers: set to override the headers for a single
743
+ request; this effectively ignores the headers
744
+ in the spec for a single request.
745
+ :type _headers: dict, optional
746
+ :param _host_index: set to override the host_index for a single
747
+ request; this effectively ignores the host_index
748
+ in the spec for a single request.
749
+ :type _host_index: int, optional
750
+ :return: Returns the result object.
751
+ """ # noqa: E501
752
+
753
+ _param = self._find_connector_by_name_serialize(
754
+ connector_name=connector_name,
755
+ _request_auth=_request_auth,
756
+ _content_type=_content_type,
757
+ _headers=_headers,
758
+ _host_index=_host_index
759
+ )
760
+
761
+ _response_types_map: Dict[str, Optional[str]] = {
762
+ '200': "Connector",
763
+ }
764
+ response_data = self.api_client.call_api(
765
+ *_param,
766
+ _request_timeout=_request_timeout
549
767
  )
768
+ return response_data.response
769
+
770
+
771
+ def _find_connector_by_name_serialize(
772
+ self,
773
+ connector_name,
774
+ _request_auth,
775
+ _content_type,
776
+ _headers,
777
+ _host_index,
778
+ ) -> RequestSerialized:
779
+
780
+ _host = None
781
+
782
+ _collection_formats: Dict[str, str] = {
783
+ }
784
+
785
+ _path_params: Dict[str, str] = {}
786
+ _query_params: List[Tuple[str, str]] = []
787
+ _header_params: Dict[str, Optional[str]] = _headers or {}
788
+ _form_params: List[Tuple[str, str]] = []
789
+ _files: Dict[str, Union[str, bytes]] = {}
790
+ _body_params: Optional[bytes] = None
791
+
792
+ # process the path parameters
793
+ if connector_name is not None:
794
+ _path_params['connector_name'] = connector_name
795
+ # process the query parameters
796
+ # process the header parameters
797
+ # process the form parameters
798
+ # process the body parameter
799
+
800
+
801
+ # set the HTTP header `Accept`
802
+ if 'Accept' not in _header_params:
803
+ _header_params['Accept'] = self.api_client.select_header_accept(
804
+ [
805
+ 'application/json'
806
+ ]
807
+ )
550
808
 
551
809
 
552
810
  # authentication setting
@@ -556,7 +814,7 @@ class ConnectorApi:
556
814
 
557
815
  return self.api_client.param_serialize(
558
816
  method='GET',
559
- resource_path='/connectors/{connector_id}',
817
+ resource_path='/connectors/name/{connector_name}',
560
818
  path_params=_path_params,
561
819
  query_params=_query_params,
562
820
  header_params=_header_params,
@@ -787,7 +1045,7 @@ class ConnectorApi:
787
1045
  _query_params: List[Tuple[str, str]] = []
788
1046
  _header_params: Dict[str, Optional[str]] = _headers or {}
789
1047
  _form_params: List[Tuple[str, str]] = []
790
- _files: Dict[str, str] = {}
1048
+ _files: Dict[str, Union[str, bytes]] = {}
791
1049
  _body_params: Optional[bytes] = None
792
1050
 
793
1051
  # process the path parameters
@@ -800,11 +1058,12 @@ class ConnectorApi:
800
1058
 
801
1059
 
802
1060
  # set the HTTP header `Accept`
803
- _header_params['Accept'] = self.api_client.select_header_accept(
804
- [
805
- 'application/json'
806
- ]
807
- )
1061
+ if 'Accept' not in _header_params:
1062
+ _header_params['Accept'] = self.api_client.select_header_accept(
1063
+ [
1064
+ 'application/json'
1065
+ ]
1066
+ )
808
1067
 
809
1068
  # set the HTTP header `Content-Type`
810
1069
  if _content_type:
@@ -1059,7 +1318,7 @@ class ConnectorApi:
1059
1318
  _query_params: List[Tuple[str, str]] = []
1060
1319
  _header_params: Dict[str, Optional[str]] = _headers or {}
1061
1320
  _form_params: List[Tuple[str, str]] = []
1062
- _files: Dict[str, str] = {}
1321
+ _files: Dict[str, Union[str, bytes]] = {}
1063
1322
  _body_params: Optional[bytes] = None
1064
1323
 
1065
1324
  # process the path parameters