cosmotech-api 2.4.7__py3-none-any.whl → 3.0.9.dev0__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 (110) hide show
  1. cosmotech_api/__init__.py +1 -1
  2. cosmotech_api/api/connector_api.py +20 -21
  3. cosmotech_api/api/dataset_api.py +2612 -153
  4. cosmotech_api/api/organization_api.py +1 -131
  5. cosmotech_api/api/scenario_api.py +13 -158
  6. cosmotech_api/api/scenariorun_api.py +1 -160
  7. cosmotech_api/api/scenariorunresult_api.py +386 -0
  8. cosmotech_api/api/solution_api.py +639 -36
  9. cosmotech_api/api/twingraph_api.py +2 -145
  10. cosmotech_api/api/user_api.py +1 -1
  11. cosmotech_api/api/validator_api.py +1 -1
  12. cosmotech_api/api/workspace_api.py +1 -141
  13. cosmotech_api/api_client.py +1 -1
  14. cosmotech_api/apis/__init__.py +1 -0
  15. cosmotech_api/configuration.py +2 -2
  16. cosmotech_api/exceptions.py +1 -1
  17. cosmotech_api/model/component_role_permissions.py +1 -1
  18. cosmotech_api/model/connector.py +1 -1
  19. cosmotech_api/model/connector_parameter.py +1 -1
  20. cosmotech_api/model/connector_parameter_group.py +1 -1
  21. cosmotech_api/model/container_resource_size_info.py +1 -1
  22. cosmotech_api/model/container_resource_sizing.py +1 -1
  23. cosmotech_api/model/dataset.py +55 -1
  24. cosmotech_api/model/dataset_access_control.py +268 -0
  25. cosmotech_api/model/dataset_compatibility.py +1 -1
  26. cosmotech_api/model/dataset_connector.py +1 -1
  27. cosmotech_api/model/dataset_copy_parameters.py +1 -1
  28. cosmotech_api/model/dataset_role.py +262 -0
  29. cosmotech_api/model/dataset_search.py +1 -1
  30. cosmotech_api/model/dataset_security.py +274 -0
  31. cosmotech_api/model/dataset_source_type.py +286 -0
  32. cosmotech_api/model/dataset_twin_graph_hash.py +256 -0
  33. cosmotech_api/model/dataset_twin_graph_info.py +264 -0
  34. cosmotech_api/model/dataset_twin_graph_query.py +262 -0
  35. cosmotech_api/model/delete_historical_data.py +1 -1
  36. cosmotech_api/model/graph_properties.py +1 -1
  37. cosmotech_api/model/organization.py +1 -1
  38. cosmotech_api/model/organization_access_control.py +1 -1
  39. cosmotech_api/model/organization_role.py +1 -1
  40. cosmotech_api/model/organization_security.py +1 -1
  41. cosmotech_api/model/organization_service.py +1 -1
  42. cosmotech_api/model/organization_services.py +1 -1
  43. cosmotech_api/model/resource_size_info.py +1 -1
  44. cosmotech_api/model/run_template.py +7 -1
  45. cosmotech_api/model/run_template_handler_id.py +1 -1
  46. cosmotech_api/model/run_template_orchestrator.py +283 -0
  47. cosmotech_api/model/run_template_parameter.py +1 -1
  48. cosmotech_api/model/run_template_parameter_group.py +1 -1
  49. cosmotech_api/model/run_template_parameter_value.py +1 -1
  50. cosmotech_api/model/run_template_resource_sizing.py +1 -1
  51. cosmotech_api/model/run_template_step_source.py +1 -1
  52. cosmotech_api/model/scenario.py +1 -1
  53. cosmotech_api/model/scenario_access_control.py +1 -1
  54. cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
  55. cosmotech_api/model/scenario_comparison_result.py +1 -1
  56. cosmotech_api/model/scenario_data_download_info.py +1 -1
  57. cosmotech_api/model/scenario_data_download_job.py +1 -1
  58. cosmotech_api/model/scenario_job_state.py +1 -1
  59. cosmotech_api/model/scenario_last_run.py +1 -1
  60. cosmotech_api/model/scenario_resource_sizing.py +1 -1
  61. cosmotech_api/model/scenario_role.py +1 -1
  62. cosmotech_api/model/scenario_run.py +6 -1
  63. cosmotech_api/model/scenario_run_container.py +1 -1
  64. cosmotech_api/model/scenario_run_container_artifact.py +1 -1
  65. cosmotech_api/model/scenario_run_container_logs.py +1 -1
  66. cosmotech_api/model/scenario_run_logs.py +1 -1
  67. cosmotech_api/model/scenario_run_resource_requested.py +1 -1
  68. cosmotech_api/model/scenario_run_result.py +260 -0
  69. cosmotech_api/model/scenario_run_search.py +1 -1
  70. cosmotech_api/model/scenario_run_start_containers.py +1 -1
  71. cosmotech_api/model/scenario_run_state.py +1 -1
  72. cosmotech_api/model/scenario_run_status.py +1 -1
  73. cosmotech_api/model/scenario_run_status_node.py +16 -1
  74. cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
  75. cosmotech_api/model/scenario_security.py +1 -1
  76. cosmotech_api/model/scenario_validation_status.py +1 -1
  77. cosmotech_api/model/solution.py +7 -1
  78. cosmotech_api/model/solution_access_control.py +268 -0
  79. cosmotech_api/model/solution_role.py +262 -0
  80. cosmotech_api/model/solution_security.py +274 -0
  81. cosmotech_api/model/source_info.py +3 -13
  82. cosmotech_api/model/sub_dataset_graph_query.py +268 -0
  83. cosmotech_api/model/translated_labels.py +1 -1
  84. cosmotech_api/model/twin_graph_batch_result.py +1 -1
  85. cosmotech_api/model/twin_graph_hash.py +1 -1
  86. cosmotech_api/model/twin_graph_import.py +1 -1
  87. cosmotech_api/model/twin_graph_import_info.py +1 -1
  88. cosmotech_api/model/twin_graph_query.py +1 -1
  89. cosmotech_api/model/user.py +1 -1
  90. cosmotech_api/model/user_organization.py +1 -1
  91. cosmotech_api/model/user_workspace.py +1 -1
  92. cosmotech_api/model/validator.py +1 -1
  93. cosmotech_api/model/validator_run.py +1 -1
  94. cosmotech_api/model/workspace.py +1 -1
  95. cosmotech_api/model/workspace_access_control.py +1 -1
  96. cosmotech_api/model/workspace_file.py +1 -1
  97. cosmotech_api/model/workspace_role.py +1 -1
  98. cosmotech_api/model/workspace_secret.py +1 -1
  99. cosmotech_api/model/workspace_security.py +1 -1
  100. cosmotech_api/model/workspace_solution.py +1 -1
  101. cosmotech_api/model/workspace_web_app.py +1 -1
  102. cosmotech_api/model_utils.py +1 -1
  103. cosmotech_api/models/__init__.py +14 -2
  104. cosmotech_api/rest.py +1 -1
  105. {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/METADATA +2 -2
  106. cosmotech_api-3.0.9.dev0.dist-info/RECORD +114 -0
  107. {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/WHEEL +1 -1
  108. cosmotech_api-2.4.7.dist-info/RECORD +0 -100
  109. {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/LICENSE +0 -0
  110. {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,386 @@
1
+ """
2
+ Cosmo Tech Platform API
3
+
4
+ Cosmo Tech Platform API # noqa: E501
5
+
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
+ Contact: platform@cosmotech.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
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
26
+
27
+
28
+ class ScenariorunresultApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
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
113
+ )
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
195
+ )
196
+
197
+ def get_scenario_run_result(
198
+ self,
199
+ organization_id,
200
+ workspace_id,
201
+ scenario_id,
202
+ scenariorun_id,
203
+ probe_id,
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
256
+ )
257
+ kwargs['_return_http_data_only'] = kwargs.get(
258
+ '_return_http_data_only', True
259
+ )
260
+ kwargs['_preload_content'] = kwargs.get(
261
+ '_preload_content', True
262
+ )
263
+ kwargs['_request_timeout'] = kwargs.get(
264
+ '_request_timeout', None
265
+ )
266
+ kwargs['_check_input_type'] = kwargs.get(
267
+ '_check_input_type', True
268
+ )
269
+ kwargs['_check_return_type'] = kwargs.get(
270
+ '_check_return_type', True
271
+ )
272
+ kwargs['_spec_property_naming'] = kwargs.get(
273
+ '_spec_property_naming', False
274
+ )
275
+ kwargs['_content_type'] = kwargs.get(
276
+ '_content_type')
277
+ kwargs['_host_index'] = kwargs.get('_host_index')
278
+ kwargs['organization_id'] = \
279
+ organization_id
280
+ kwargs['workspace_id'] = \
281
+ workspace_id
282
+ kwargs['scenario_id'] = \
283
+ scenario_id
284
+ kwargs['scenariorun_id'] = \
285
+ scenariorun_id
286
+ kwargs['probe_id'] = \
287
+ probe_id
288
+ return self.get_scenario_run_result_endpoint.call_with_http_info(**kwargs)
289
+
290
+ def send_scenario_run_result(
291
+ self,
292
+ organization_id,
293
+ workspace_id,
294
+ scenario_id,
295
+ scenariorun_id,
296
+ probe_id,
297
+ request_body,
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
351
+ )
352
+ kwargs['_return_http_data_only'] = kwargs.get(
353
+ '_return_http_data_only', True
354
+ )
355
+ kwargs['_preload_content'] = kwargs.get(
356
+ '_preload_content', True
357
+ )
358
+ kwargs['_request_timeout'] = kwargs.get(
359
+ '_request_timeout', None
360
+ )
361
+ kwargs['_check_input_type'] = kwargs.get(
362
+ '_check_input_type', True
363
+ )
364
+ kwargs['_check_return_type'] = kwargs.get(
365
+ '_check_return_type', True
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)
386
+