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.
- cosmotech_api/__init__.py +1 -1
- cosmotech_api/api/connector_api.py +20 -21
- cosmotech_api/api/dataset_api.py +2612 -153
- cosmotech_api/api/organization_api.py +1 -131
- cosmotech_api/api/scenario_api.py +13 -158
- cosmotech_api/api/scenariorun_api.py +1 -160
- cosmotech_api/api/scenariorunresult_api.py +386 -0
- cosmotech_api/api/solution_api.py +639 -36
- cosmotech_api/api/twingraph_api.py +2 -145
- cosmotech_api/api/user_api.py +1 -1
- cosmotech_api/api/validator_api.py +1 -1
- cosmotech_api/api/workspace_api.py +1 -141
- cosmotech_api/api_client.py +1 -1
- cosmotech_api/apis/__init__.py +1 -0
- cosmotech_api/configuration.py +2 -2
- cosmotech_api/exceptions.py +1 -1
- cosmotech_api/model/component_role_permissions.py +1 -1
- cosmotech_api/model/connector.py +1 -1
- cosmotech_api/model/connector_parameter.py +1 -1
- cosmotech_api/model/connector_parameter_group.py +1 -1
- cosmotech_api/model/container_resource_size_info.py +1 -1
- cosmotech_api/model/container_resource_sizing.py +1 -1
- cosmotech_api/model/dataset.py +55 -1
- cosmotech_api/model/dataset_access_control.py +268 -0
- cosmotech_api/model/dataset_compatibility.py +1 -1
- cosmotech_api/model/dataset_connector.py +1 -1
- cosmotech_api/model/dataset_copy_parameters.py +1 -1
- cosmotech_api/model/dataset_role.py +262 -0
- cosmotech_api/model/dataset_search.py +1 -1
- cosmotech_api/model/dataset_security.py +274 -0
- cosmotech_api/model/dataset_source_type.py +286 -0
- cosmotech_api/model/dataset_twin_graph_hash.py +256 -0
- cosmotech_api/model/dataset_twin_graph_info.py +264 -0
- cosmotech_api/model/dataset_twin_graph_query.py +262 -0
- cosmotech_api/model/delete_historical_data.py +1 -1
- cosmotech_api/model/graph_properties.py +1 -1
- cosmotech_api/model/organization.py +1 -1
- cosmotech_api/model/organization_access_control.py +1 -1
- cosmotech_api/model/organization_role.py +1 -1
- cosmotech_api/model/organization_security.py +1 -1
- cosmotech_api/model/organization_service.py +1 -1
- cosmotech_api/model/organization_services.py +1 -1
- cosmotech_api/model/resource_size_info.py +1 -1
- cosmotech_api/model/run_template.py +7 -1
- cosmotech_api/model/run_template_handler_id.py +1 -1
- cosmotech_api/model/run_template_orchestrator.py +283 -0
- cosmotech_api/model/run_template_parameter.py +1 -1
- cosmotech_api/model/run_template_parameter_group.py +1 -1
- cosmotech_api/model/run_template_parameter_value.py +1 -1
- cosmotech_api/model/run_template_resource_sizing.py +1 -1
- cosmotech_api/model/run_template_step_source.py +1 -1
- cosmotech_api/model/scenario.py +1 -1
- cosmotech_api/model/scenario_access_control.py +1 -1
- cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
- cosmotech_api/model/scenario_comparison_result.py +1 -1
- cosmotech_api/model/scenario_data_download_info.py +1 -1
- cosmotech_api/model/scenario_data_download_job.py +1 -1
- cosmotech_api/model/scenario_job_state.py +1 -1
- cosmotech_api/model/scenario_last_run.py +1 -1
- cosmotech_api/model/scenario_resource_sizing.py +1 -1
- cosmotech_api/model/scenario_role.py +1 -1
- cosmotech_api/model/scenario_run.py +6 -1
- cosmotech_api/model/scenario_run_container.py +1 -1
- cosmotech_api/model/scenario_run_container_artifact.py +1 -1
- cosmotech_api/model/scenario_run_container_logs.py +1 -1
- cosmotech_api/model/scenario_run_logs.py +1 -1
- cosmotech_api/model/scenario_run_resource_requested.py +1 -1
- cosmotech_api/model/scenario_run_result.py +260 -0
- cosmotech_api/model/scenario_run_search.py +1 -1
- cosmotech_api/model/scenario_run_start_containers.py +1 -1
- cosmotech_api/model/scenario_run_state.py +1 -1
- cosmotech_api/model/scenario_run_status.py +1 -1
- cosmotech_api/model/scenario_run_status_node.py +16 -1
- cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
- cosmotech_api/model/scenario_security.py +1 -1
- cosmotech_api/model/scenario_validation_status.py +1 -1
- cosmotech_api/model/solution.py +7 -1
- cosmotech_api/model/solution_access_control.py +268 -0
- cosmotech_api/model/solution_role.py +262 -0
- cosmotech_api/model/solution_security.py +274 -0
- cosmotech_api/model/source_info.py +3 -13
- cosmotech_api/model/sub_dataset_graph_query.py +268 -0
- cosmotech_api/model/translated_labels.py +1 -1
- cosmotech_api/model/twin_graph_batch_result.py +1 -1
- cosmotech_api/model/twin_graph_hash.py +1 -1
- cosmotech_api/model/twin_graph_import.py +1 -1
- cosmotech_api/model/twin_graph_import_info.py +1 -1
- cosmotech_api/model/twin_graph_query.py +1 -1
- cosmotech_api/model/user.py +1 -1
- cosmotech_api/model/user_organization.py +1 -1
- cosmotech_api/model/user_workspace.py +1 -1
- cosmotech_api/model/validator.py +1 -1
- cosmotech_api/model/validator_run.py +1 -1
- cosmotech_api/model/workspace.py +1 -1
- cosmotech_api/model/workspace_access_control.py +1 -1
- cosmotech_api/model/workspace_file.py +1 -1
- cosmotech_api/model/workspace_role.py +1 -1
- cosmotech_api/model/workspace_secret.py +1 -1
- cosmotech_api/model/workspace_security.py +1 -1
- cosmotech_api/model/workspace_solution.py +1 -1
- cosmotech_api/model/workspace_web_app.py +1 -1
- cosmotech_api/model_utils.py +1 -1
- cosmotech_api/models/__init__.py +14 -2
- cosmotech_api/rest.py +1 -1
- {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/METADATA +2 -2
- cosmotech_api-3.0.9.dev0.dist-info/RECORD +114 -0
- {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/WHEEL +1 -1
- cosmotech_api-2.4.7.dist-info/RECORD +0 -100
- {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/LICENSE +0 -0
- {cosmotech_api-2.4.7.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/top_level.txt +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Cosmo Tech Platform API # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.9-SNAPSHOT
|
|
7
7
|
Contact: platform@cosmotech.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -465,59 +465,6 @@ class OrganizationApi(object):
|
|
|
465
465
|
},
|
|
466
466
|
api_client=api_client
|
|
467
467
|
)
|
|
468
|
-
self.import_organization_endpoint = _Endpoint(
|
|
469
|
-
settings={
|
|
470
|
-
'response_type': (Organization,),
|
|
471
|
-
'auth': [
|
|
472
|
-
'oAuth2AuthCode'
|
|
473
|
-
],
|
|
474
|
-
'endpoint_path': '/organizations/import',
|
|
475
|
-
'operation_id': 'import_organization',
|
|
476
|
-
'http_method': 'POST',
|
|
477
|
-
'servers': None,
|
|
478
|
-
},
|
|
479
|
-
params_map={
|
|
480
|
-
'all': [
|
|
481
|
-
'organization',
|
|
482
|
-
],
|
|
483
|
-
'required': [
|
|
484
|
-
'organization',
|
|
485
|
-
],
|
|
486
|
-
'nullable': [
|
|
487
|
-
],
|
|
488
|
-
'enum': [
|
|
489
|
-
],
|
|
490
|
-
'validation': [
|
|
491
|
-
]
|
|
492
|
-
},
|
|
493
|
-
root_map={
|
|
494
|
-
'validations': {
|
|
495
|
-
},
|
|
496
|
-
'allowed_values': {
|
|
497
|
-
},
|
|
498
|
-
'openapi_types': {
|
|
499
|
-
'organization':
|
|
500
|
-
(Organization,),
|
|
501
|
-
},
|
|
502
|
-
'attribute_map': {
|
|
503
|
-
},
|
|
504
|
-
'location_map': {
|
|
505
|
-
'organization': 'body',
|
|
506
|
-
},
|
|
507
|
-
'collection_format_map': {
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
headers_map={
|
|
511
|
-
'accept': [
|
|
512
|
-
'application/json'
|
|
513
|
-
],
|
|
514
|
-
'content_type': [
|
|
515
|
-
'application/json',
|
|
516
|
-
'application/yaml'
|
|
517
|
-
]
|
|
518
|
-
},
|
|
519
|
-
api_client=api_client
|
|
520
|
-
)
|
|
521
468
|
self.register_organization_endpoint = _Endpoint(
|
|
522
469
|
settings={
|
|
523
470
|
'response_type': (Organization,),
|
|
@@ -1654,83 +1601,6 @@ class OrganizationApi(object):
|
|
|
1654
1601
|
organization_id
|
|
1655
1602
|
return self.get_organization_security_users_endpoint.call_with_http_info(**kwargs)
|
|
1656
1603
|
|
|
1657
|
-
def import_organization(
|
|
1658
|
-
self,
|
|
1659
|
-
organization,
|
|
1660
|
-
**kwargs
|
|
1661
|
-
):
|
|
1662
|
-
"""Import an organization # noqa: E501
|
|
1663
|
-
|
|
1664
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1665
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1666
|
-
|
|
1667
|
-
>>> thread = api.import_organization(organization, async_req=True)
|
|
1668
|
-
>>> result = thread.get()
|
|
1669
|
-
|
|
1670
|
-
Args:
|
|
1671
|
-
organization (Organization): the Organization to import
|
|
1672
|
-
|
|
1673
|
-
Keyword Args:
|
|
1674
|
-
_return_http_data_only (bool): response data without head status
|
|
1675
|
-
code and headers. Default is True.
|
|
1676
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1677
|
-
will be returned without reading/decoding response data.
|
|
1678
|
-
Default is True.
|
|
1679
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1680
|
-
one number provided, it will be total request timeout. It can also
|
|
1681
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
1682
|
-
Default is None.
|
|
1683
|
-
_check_input_type (bool): specifies if type checking
|
|
1684
|
-
should be done one the data sent to the server.
|
|
1685
|
-
Default is True.
|
|
1686
|
-
_check_return_type (bool): specifies if type checking
|
|
1687
|
-
should be done one the data received from the server.
|
|
1688
|
-
Default is True.
|
|
1689
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
1690
|
-
are serialized names, as specified in the OpenAPI document.
|
|
1691
|
-
False if the variable names in the input data
|
|
1692
|
-
are pythonic names, e.g. snake case (default)
|
|
1693
|
-
_content_type (str/None): force body content-type.
|
|
1694
|
-
Default is None and content-type will be predicted by allowed
|
|
1695
|
-
content-types and body.
|
|
1696
|
-
_host_index (int/None): specifies the index of the server
|
|
1697
|
-
that we want to use.
|
|
1698
|
-
Default is read from the configuration.
|
|
1699
|
-
async_req (bool): execute request asynchronously
|
|
1700
|
-
|
|
1701
|
-
Returns:
|
|
1702
|
-
Organization
|
|
1703
|
-
If the method is called asynchronously, returns the request
|
|
1704
|
-
thread.
|
|
1705
|
-
"""
|
|
1706
|
-
kwargs['async_req'] = kwargs.get(
|
|
1707
|
-
'async_req', False
|
|
1708
|
-
)
|
|
1709
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1710
|
-
'_return_http_data_only', True
|
|
1711
|
-
)
|
|
1712
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
1713
|
-
'_preload_content', True
|
|
1714
|
-
)
|
|
1715
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
1716
|
-
'_request_timeout', None
|
|
1717
|
-
)
|
|
1718
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
1719
|
-
'_check_input_type', True
|
|
1720
|
-
)
|
|
1721
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
1722
|
-
'_check_return_type', True
|
|
1723
|
-
)
|
|
1724
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1725
|
-
'_spec_property_naming', False
|
|
1726
|
-
)
|
|
1727
|
-
kwargs['_content_type'] = kwargs.get(
|
|
1728
|
-
'_content_type')
|
|
1729
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1730
|
-
kwargs['organization'] = \
|
|
1731
|
-
organization
|
|
1732
|
-
return self.import_organization_endpoint.call_with_http_info(**kwargs)
|
|
1733
|
-
|
|
1734
1604
|
def register_organization(
|
|
1735
1605
|
self,
|
|
1736
1606
|
organization,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Cosmo Tech Platform API # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.9-SNAPSHOT
|
|
7
7
|
Contact: platform@cosmotech.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -390,7 +390,6 @@ class ScenarioApi(object):
|
|
|
390
390
|
'organization_id',
|
|
391
391
|
'workspace_id',
|
|
392
392
|
'scenario_id',
|
|
393
|
-
'wait_relationship_propagation',
|
|
394
393
|
],
|
|
395
394
|
'required': [
|
|
396
395
|
'organization_id',
|
|
@@ -416,20 +415,16 @@ class ScenarioApi(object):
|
|
|
416
415
|
(str,),
|
|
417
416
|
'scenario_id':
|
|
418
417
|
(str,),
|
|
419
|
-
'wait_relationship_propagation':
|
|
420
|
-
(bool,),
|
|
421
418
|
},
|
|
422
419
|
'attribute_map': {
|
|
423
420
|
'organization_id': 'organization_id',
|
|
424
421
|
'workspace_id': 'workspace_id',
|
|
425
422
|
'scenario_id': 'scenario_id',
|
|
426
|
-
'wait_relationship_propagation': 'wait_relationship_propagation',
|
|
427
423
|
},
|
|
428
424
|
'location_map': {
|
|
429
425
|
'organization_id': 'path',
|
|
430
426
|
'workspace_id': 'path',
|
|
431
427
|
'scenario_id': 'path',
|
|
432
|
-
'wait_relationship_propagation': 'query',
|
|
433
428
|
},
|
|
434
429
|
'collection_format_map': {
|
|
435
430
|
}
|
|
@@ -850,7 +845,7 @@ class ScenarioApi(object):
|
|
|
850
845
|
'auth': [
|
|
851
846
|
'oAuth2AuthCode'
|
|
852
847
|
],
|
|
853
|
-
'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}',
|
|
848
|
+
'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/permissions/{role}',
|
|
854
849
|
'operation_id': 'get_scenario_permissions',
|
|
855
850
|
'http_method': 'GET',
|
|
856
851
|
'servers': None,
|
|
@@ -859,11 +854,13 @@ class ScenarioApi(object):
|
|
|
859
854
|
'all': [
|
|
860
855
|
'organization_id',
|
|
861
856
|
'workspace_id',
|
|
857
|
+
'scenario_id',
|
|
862
858
|
'role',
|
|
863
859
|
],
|
|
864
860
|
'required': [
|
|
865
861
|
'organization_id',
|
|
866
862
|
'workspace_id',
|
|
863
|
+
'scenario_id',
|
|
867
864
|
'role',
|
|
868
865
|
],
|
|
869
866
|
'nullable': [
|
|
@@ -883,17 +880,21 @@ class ScenarioApi(object):
|
|
|
883
880
|
(str,),
|
|
884
881
|
'workspace_id':
|
|
885
882
|
(str,),
|
|
883
|
+
'scenario_id':
|
|
884
|
+
(str,),
|
|
886
885
|
'role':
|
|
887
886
|
(str,),
|
|
888
887
|
},
|
|
889
888
|
'attribute_map': {
|
|
890
889
|
'organization_id': 'organization_id',
|
|
891
890
|
'workspace_id': 'workspace_id',
|
|
891
|
+
'scenario_id': 'scenario_id',
|
|
892
892
|
'role': 'role',
|
|
893
893
|
},
|
|
894
894
|
'location_map': {
|
|
895
895
|
'organization_id': 'path',
|
|
896
896
|
'workspace_id': 'path',
|
|
897
|
+
'scenario_id': 'path',
|
|
897
898
|
'role': 'path',
|
|
898
899
|
},
|
|
899
900
|
'collection_format_map': {
|
|
@@ -1153,70 +1154,6 @@ class ScenarioApi(object):
|
|
|
1153
1154
|
},
|
|
1154
1155
|
api_client=api_client
|
|
1155
1156
|
)
|
|
1156
|
-
self.import_scenario_endpoint = _Endpoint(
|
|
1157
|
-
settings={
|
|
1158
|
-
'response_type': (Scenario,),
|
|
1159
|
-
'auth': [
|
|
1160
|
-
'oAuth2AuthCode'
|
|
1161
|
-
],
|
|
1162
|
-
'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/import',
|
|
1163
|
-
'operation_id': 'import_scenario',
|
|
1164
|
-
'http_method': 'POST',
|
|
1165
|
-
'servers': None,
|
|
1166
|
-
},
|
|
1167
|
-
params_map={
|
|
1168
|
-
'all': [
|
|
1169
|
-
'organization_id',
|
|
1170
|
-
'workspace_id',
|
|
1171
|
-
'scenario',
|
|
1172
|
-
],
|
|
1173
|
-
'required': [
|
|
1174
|
-
'organization_id',
|
|
1175
|
-
'workspace_id',
|
|
1176
|
-
'scenario',
|
|
1177
|
-
],
|
|
1178
|
-
'nullable': [
|
|
1179
|
-
],
|
|
1180
|
-
'enum': [
|
|
1181
|
-
],
|
|
1182
|
-
'validation': [
|
|
1183
|
-
]
|
|
1184
|
-
},
|
|
1185
|
-
root_map={
|
|
1186
|
-
'validations': {
|
|
1187
|
-
},
|
|
1188
|
-
'allowed_values': {
|
|
1189
|
-
},
|
|
1190
|
-
'openapi_types': {
|
|
1191
|
-
'organization_id':
|
|
1192
|
-
(str,),
|
|
1193
|
-
'workspace_id':
|
|
1194
|
-
(str,),
|
|
1195
|
-
'scenario':
|
|
1196
|
-
(Scenario,),
|
|
1197
|
-
},
|
|
1198
|
-
'attribute_map': {
|
|
1199
|
-
'organization_id': 'organization_id',
|
|
1200
|
-
'workspace_id': 'workspace_id',
|
|
1201
|
-
},
|
|
1202
|
-
'location_map': {
|
|
1203
|
-
'organization_id': 'path',
|
|
1204
|
-
'workspace_id': 'path',
|
|
1205
|
-
'scenario': 'body',
|
|
1206
|
-
},
|
|
1207
|
-
'collection_format_map': {
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
headers_map={
|
|
1211
|
-
'accept': [
|
|
1212
|
-
'application/json'
|
|
1213
|
-
],
|
|
1214
|
-
'content_type': [
|
|
1215
|
-
'application/json'
|
|
1216
|
-
]
|
|
1217
|
-
},
|
|
1218
|
-
api_client=api_client
|
|
1219
|
-
)
|
|
1220
1157
|
self.remove_all_scenario_parameter_values_endpoint = _Endpoint(
|
|
1221
1158
|
settings={
|
|
1222
1159
|
'response_type': None,
|
|
@@ -2018,7 +1955,6 @@ class ScenarioApi(object):
|
|
|
2018
1955
|
scenario_id (str): the Scenario identifier
|
|
2019
1956
|
|
|
2020
1957
|
Keyword Args:
|
|
2021
|
-
wait_relationship_propagation (bool): whether to wait until child scenarios are effectively updated. [optional] if omitted the server will use the default value of False
|
|
2022
1958
|
_return_http_data_only (bool): response data without head status
|
|
2023
1959
|
code and headers. Default is True.
|
|
2024
1960
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -2605,6 +2541,7 @@ class ScenarioApi(object):
|
|
|
2605
2541
|
self,
|
|
2606
2542
|
organization_id,
|
|
2607
2543
|
workspace_id,
|
|
2544
|
+
scenario_id,
|
|
2608
2545
|
role,
|
|
2609
2546
|
**kwargs
|
|
2610
2547
|
):
|
|
@@ -2613,12 +2550,13 @@ class ScenarioApi(object):
|
|
|
2613
2550
|
This method makes a synchronous HTTP request by default. To make an
|
|
2614
2551
|
asynchronous HTTP request, please pass async_req=True
|
|
2615
2552
|
|
|
2616
|
-
>>> thread = api.get_scenario_permissions(organization_id, workspace_id, role, async_req=True)
|
|
2553
|
+
>>> thread = api.get_scenario_permissions(organization_id, workspace_id, scenario_id, role, async_req=True)
|
|
2617
2554
|
>>> result = thread.get()
|
|
2618
2555
|
|
|
2619
2556
|
Args:
|
|
2620
2557
|
organization_id (str): the Organization identifier
|
|
2621
2558
|
workspace_id (str): the Workspace identifier
|
|
2559
|
+
scenario_id (str): the Scenario identifier
|
|
2622
2560
|
role (str): the Role
|
|
2623
2561
|
|
|
2624
2562
|
Keyword Args:
|
|
@@ -2682,6 +2620,8 @@ class ScenarioApi(object):
|
|
|
2682
2620
|
organization_id
|
|
2683
2621
|
kwargs['workspace_id'] = \
|
|
2684
2622
|
workspace_id
|
|
2623
|
+
kwargs['scenario_id'] = \
|
|
2624
|
+
scenario_id
|
|
2685
2625
|
kwargs['role'] = \
|
|
2686
2626
|
role
|
|
2687
2627
|
return self.get_scenario_permissions_endpoint.call_with_http_info(**kwargs)
|
|
@@ -3022,91 +2962,6 @@ class ScenarioApi(object):
|
|
|
3022
2962
|
workspace_id
|
|
3023
2963
|
return self.get_scenarios_tree_endpoint.call_with_http_info(**kwargs)
|
|
3024
2964
|
|
|
3025
|
-
def import_scenario(
|
|
3026
|
-
self,
|
|
3027
|
-
organization_id,
|
|
3028
|
-
workspace_id,
|
|
3029
|
-
scenario,
|
|
3030
|
-
**kwargs
|
|
3031
|
-
):
|
|
3032
|
-
"""Import Scenario # noqa: E501
|
|
3033
|
-
|
|
3034
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3035
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3036
|
-
|
|
3037
|
-
>>> thread = api.import_scenario(organization_id, workspace_id, scenario, async_req=True)
|
|
3038
|
-
>>> result = thread.get()
|
|
3039
|
-
|
|
3040
|
-
Args:
|
|
3041
|
-
organization_id (str): the Organization identifier
|
|
3042
|
-
workspace_id (str): the Workspace identifier
|
|
3043
|
-
scenario (Scenario): the Scenario to import
|
|
3044
|
-
|
|
3045
|
-
Keyword Args:
|
|
3046
|
-
_return_http_data_only (bool): response data without head status
|
|
3047
|
-
code and headers. Default is True.
|
|
3048
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
3049
|
-
will be returned without reading/decoding response data.
|
|
3050
|
-
Default is True.
|
|
3051
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
3052
|
-
one number provided, it will be total request timeout. It can also
|
|
3053
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
3054
|
-
Default is None.
|
|
3055
|
-
_check_input_type (bool): specifies if type checking
|
|
3056
|
-
should be done one the data sent to the server.
|
|
3057
|
-
Default is True.
|
|
3058
|
-
_check_return_type (bool): specifies if type checking
|
|
3059
|
-
should be done one the data received from the server.
|
|
3060
|
-
Default is True.
|
|
3061
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
3062
|
-
are serialized names, as specified in the OpenAPI document.
|
|
3063
|
-
False if the variable names in the input data
|
|
3064
|
-
are pythonic names, e.g. snake case (default)
|
|
3065
|
-
_content_type (str/None): force body content-type.
|
|
3066
|
-
Default is None and content-type will be predicted by allowed
|
|
3067
|
-
content-types and body.
|
|
3068
|
-
_host_index (int/None): specifies the index of the server
|
|
3069
|
-
that we want to use.
|
|
3070
|
-
Default is read from the configuration.
|
|
3071
|
-
async_req (bool): execute request asynchronously
|
|
3072
|
-
|
|
3073
|
-
Returns:
|
|
3074
|
-
Scenario
|
|
3075
|
-
If the method is called asynchronously, returns the request
|
|
3076
|
-
thread.
|
|
3077
|
-
"""
|
|
3078
|
-
kwargs['async_req'] = kwargs.get(
|
|
3079
|
-
'async_req', False
|
|
3080
|
-
)
|
|
3081
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
3082
|
-
'_return_http_data_only', True
|
|
3083
|
-
)
|
|
3084
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
3085
|
-
'_preload_content', True
|
|
3086
|
-
)
|
|
3087
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
3088
|
-
'_request_timeout', None
|
|
3089
|
-
)
|
|
3090
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
3091
|
-
'_check_input_type', True
|
|
3092
|
-
)
|
|
3093
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
3094
|
-
'_check_return_type', True
|
|
3095
|
-
)
|
|
3096
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
3097
|
-
'_spec_property_naming', False
|
|
3098
|
-
)
|
|
3099
|
-
kwargs['_content_type'] = kwargs.get(
|
|
3100
|
-
'_content_type')
|
|
3101
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
3102
|
-
kwargs['organization_id'] = \
|
|
3103
|
-
organization_id
|
|
3104
|
-
kwargs['workspace_id'] = \
|
|
3105
|
-
workspace_id
|
|
3106
|
-
kwargs['scenario'] = \
|
|
3107
|
-
scenario
|
|
3108
|
-
return self.import_scenario_endpoint.call_with_http_info(**kwargs)
|
|
3109
|
-
|
|
3110
2965
|
def remove_all_scenario_parameter_values(
|
|
3111
2966
|
self,
|
|
3112
2967
|
organization_id,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Cosmo Tech Platform API # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.9-SNAPSHOT
|
|
7
7
|
Contact: platform@cosmotech.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -643,76 +643,6 @@ class ScenariorunApi(object):
|
|
|
643
643
|
},
|
|
644
644
|
api_client=api_client
|
|
645
645
|
)
|
|
646
|
-
self.import_scenario_run_endpoint = _Endpoint(
|
|
647
|
-
settings={
|
|
648
|
-
'response_type': (ScenarioRun,),
|
|
649
|
-
'auth': [
|
|
650
|
-
'oAuth2AuthCode'
|
|
651
|
-
],
|
|
652
|
-
'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/run/import',
|
|
653
|
-
'operation_id': 'import_scenario_run',
|
|
654
|
-
'http_method': 'POST',
|
|
655
|
-
'servers': None,
|
|
656
|
-
},
|
|
657
|
-
params_map={
|
|
658
|
-
'all': [
|
|
659
|
-
'organization_id',
|
|
660
|
-
'workspace_id',
|
|
661
|
-
'scenario_id',
|
|
662
|
-
'scenario_run',
|
|
663
|
-
],
|
|
664
|
-
'required': [
|
|
665
|
-
'organization_id',
|
|
666
|
-
'workspace_id',
|
|
667
|
-
'scenario_id',
|
|
668
|
-
'scenario_run',
|
|
669
|
-
],
|
|
670
|
-
'nullable': [
|
|
671
|
-
],
|
|
672
|
-
'enum': [
|
|
673
|
-
],
|
|
674
|
-
'validation': [
|
|
675
|
-
]
|
|
676
|
-
},
|
|
677
|
-
root_map={
|
|
678
|
-
'validations': {
|
|
679
|
-
},
|
|
680
|
-
'allowed_values': {
|
|
681
|
-
},
|
|
682
|
-
'openapi_types': {
|
|
683
|
-
'organization_id':
|
|
684
|
-
(str,),
|
|
685
|
-
'workspace_id':
|
|
686
|
-
(str,),
|
|
687
|
-
'scenario_id':
|
|
688
|
-
(str,),
|
|
689
|
-
'scenario_run':
|
|
690
|
-
(ScenarioRun,),
|
|
691
|
-
},
|
|
692
|
-
'attribute_map': {
|
|
693
|
-
'organization_id': 'organization_id',
|
|
694
|
-
'workspace_id': 'workspace_id',
|
|
695
|
-
'scenario_id': 'scenario_id',
|
|
696
|
-
},
|
|
697
|
-
'location_map': {
|
|
698
|
-
'organization_id': 'path',
|
|
699
|
-
'workspace_id': 'path',
|
|
700
|
-
'scenario_id': 'path',
|
|
701
|
-
'scenario_run': 'body',
|
|
702
|
-
},
|
|
703
|
-
'collection_format_map': {
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
|
-
headers_map={
|
|
707
|
-
'accept': [
|
|
708
|
-
'application/json'
|
|
709
|
-
],
|
|
710
|
-
'content_type': [
|
|
711
|
-
'application/json'
|
|
712
|
-
]
|
|
713
|
-
},
|
|
714
|
-
api_client=api_client
|
|
715
|
-
)
|
|
716
646
|
self.run_scenario_endpoint = _Endpoint(
|
|
717
647
|
settings={
|
|
718
648
|
'response_type': (ScenarioRun,),
|
|
@@ -1783,95 +1713,6 @@ class ScenariorunApi(object):
|
|
|
1783
1713
|
workspace_id
|
|
1784
1714
|
return self.get_workspace_scenario_runs_endpoint.call_with_http_info(**kwargs)
|
|
1785
1715
|
|
|
1786
|
-
def import_scenario_run(
|
|
1787
|
-
self,
|
|
1788
|
-
organization_id,
|
|
1789
|
-
workspace_id,
|
|
1790
|
-
scenario_id,
|
|
1791
|
-
scenario_run,
|
|
1792
|
-
**kwargs
|
|
1793
|
-
):
|
|
1794
|
-
"""import a ScenarioRun for the Scenario # noqa: E501
|
|
1795
|
-
|
|
1796
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1797
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1798
|
-
|
|
1799
|
-
>>> thread = api.import_scenario_run(organization_id, workspace_id, scenario_id, scenario_run, async_req=True)
|
|
1800
|
-
>>> result = thread.get()
|
|
1801
|
-
|
|
1802
|
-
Args:
|
|
1803
|
-
organization_id (str): the Organization identifier
|
|
1804
|
-
workspace_id (str): the Workspace identifier
|
|
1805
|
-
scenario_id (str): the Scenario identifier
|
|
1806
|
-
scenario_run (ScenarioRun): the ScenarioRun to import
|
|
1807
|
-
|
|
1808
|
-
Keyword Args:
|
|
1809
|
-
_return_http_data_only (bool): response data without head status
|
|
1810
|
-
code and headers. Default is True.
|
|
1811
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1812
|
-
will be returned without reading/decoding response data.
|
|
1813
|
-
Default is True.
|
|
1814
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1815
|
-
one number provided, it will be total request timeout. It can also
|
|
1816
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
1817
|
-
Default is None.
|
|
1818
|
-
_check_input_type (bool): specifies if type checking
|
|
1819
|
-
should be done one the data sent to the server.
|
|
1820
|
-
Default is True.
|
|
1821
|
-
_check_return_type (bool): specifies if type checking
|
|
1822
|
-
should be done one the data received from the server.
|
|
1823
|
-
Default is True.
|
|
1824
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
1825
|
-
are serialized names, as specified in the OpenAPI document.
|
|
1826
|
-
False if the variable names in the input data
|
|
1827
|
-
are pythonic names, e.g. snake case (default)
|
|
1828
|
-
_content_type (str/None): force body content-type.
|
|
1829
|
-
Default is None and content-type will be predicted by allowed
|
|
1830
|
-
content-types and body.
|
|
1831
|
-
_host_index (int/None): specifies the index of the server
|
|
1832
|
-
that we want to use.
|
|
1833
|
-
Default is read from the configuration.
|
|
1834
|
-
async_req (bool): execute request asynchronously
|
|
1835
|
-
|
|
1836
|
-
Returns:
|
|
1837
|
-
ScenarioRun
|
|
1838
|
-
If the method is called asynchronously, returns the request
|
|
1839
|
-
thread.
|
|
1840
|
-
"""
|
|
1841
|
-
kwargs['async_req'] = kwargs.get(
|
|
1842
|
-
'async_req', False
|
|
1843
|
-
)
|
|
1844
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1845
|
-
'_return_http_data_only', True
|
|
1846
|
-
)
|
|
1847
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
1848
|
-
'_preload_content', True
|
|
1849
|
-
)
|
|
1850
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
1851
|
-
'_request_timeout', None
|
|
1852
|
-
)
|
|
1853
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
1854
|
-
'_check_input_type', True
|
|
1855
|
-
)
|
|
1856
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
1857
|
-
'_check_return_type', True
|
|
1858
|
-
)
|
|
1859
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1860
|
-
'_spec_property_naming', False
|
|
1861
|
-
)
|
|
1862
|
-
kwargs['_content_type'] = kwargs.get(
|
|
1863
|
-
'_content_type')
|
|
1864
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1865
|
-
kwargs['organization_id'] = \
|
|
1866
|
-
organization_id
|
|
1867
|
-
kwargs['workspace_id'] = \
|
|
1868
|
-
workspace_id
|
|
1869
|
-
kwargs['scenario_id'] = \
|
|
1870
|
-
scenario_id
|
|
1871
|
-
kwargs['scenario_run'] = \
|
|
1872
|
-
scenario_run
|
|
1873
|
-
return self.import_scenario_run_endpoint.call_with_http_info(**kwargs)
|
|
1874
|
-
|
|
1875
1716
|
def run_scenario(
|
|
1876
1717
|
self,
|
|
1877
1718
|
organization_id,
|