cosmotech-api 2.4.1__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 +63 -206
- 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 +260 -0
- 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.1.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.1.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/WHEEL +1 -1
- cosmotech_api-2.4.1.dist-info/RECORD +0 -99
- {cosmotech_api-2.4.1.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/LICENSE +0 -0
- {cosmotech_api-2.4.1.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
|
"""
|
|
@@ -25,8 +25,6 @@ from cosmotech_api.model_utils import ( # noqa: F401
|
|
|
25
25
|
from cosmotech_api.model.graph_properties import GraphProperties
|
|
26
26
|
from cosmotech_api.model.twin_graph_batch_result import TwinGraphBatchResult
|
|
27
27
|
from cosmotech_api.model.twin_graph_hash import TwinGraphHash
|
|
28
|
-
from cosmotech_api.model.twin_graph_import import TwinGraphImport
|
|
29
|
-
from cosmotech_api.model.twin_graph_import_info import TwinGraphImportInfo
|
|
30
28
|
from cosmotech_api.model.twin_graph_query import TwinGraphQuery
|
|
31
29
|
|
|
32
30
|
|
|
@@ -178,11 +176,11 @@ class TwingraphApi(object):
|
|
|
178
176
|
)
|
|
179
177
|
self.create_entities_endpoint = _Endpoint(
|
|
180
178
|
settings={
|
|
181
|
-
'response_type': (
|
|
179
|
+
'response_type': (str,),
|
|
182
180
|
'auth': [
|
|
183
181
|
'oAuth2AuthCode'
|
|
184
182
|
],
|
|
185
|
-
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
183
|
+
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}',
|
|
186
184
|
'operation_id': 'create_entities',
|
|
187
185
|
'http_method': 'POST',
|
|
188
186
|
'servers': None,
|
|
@@ -191,19 +189,19 @@ class TwingraphApi(object):
|
|
|
191
189
|
'all': [
|
|
192
190
|
'organization_id',
|
|
193
191
|
'graph_id',
|
|
194
|
-
'
|
|
192
|
+
'type',
|
|
195
193
|
'graph_properties',
|
|
196
194
|
],
|
|
197
195
|
'required': [
|
|
198
196
|
'organization_id',
|
|
199
197
|
'graph_id',
|
|
200
|
-
'
|
|
198
|
+
'type',
|
|
201
199
|
'graph_properties',
|
|
202
200
|
],
|
|
203
201
|
'nullable': [
|
|
204
202
|
],
|
|
205
203
|
'enum': [
|
|
206
|
-
'
|
|
204
|
+
'type',
|
|
207
205
|
],
|
|
208
206
|
'validation': [
|
|
209
207
|
]
|
|
@@ -212,7 +210,7 @@ class TwingraphApi(object):
|
|
|
212
210
|
'validations': {
|
|
213
211
|
},
|
|
214
212
|
'allowed_values': {
|
|
215
|
-
('
|
|
213
|
+
('type',): {
|
|
216
214
|
|
|
217
215
|
"NODE": "node",
|
|
218
216
|
"RELATIONSHIP": "relationship"
|
|
@@ -223,7 +221,7 @@ class TwingraphApi(object):
|
|
|
223
221
|
(str,),
|
|
224
222
|
'graph_id':
|
|
225
223
|
(str,),
|
|
226
|
-
'
|
|
224
|
+
'type':
|
|
227
225
|
(str,),
|
|
228
226
|
'graph_properties':
|
|
229
227
|
([GraphProperties],),
|
|
@@ -231,12 +229,12 @@ class TwingraphApi(object):
|
|
|
231
229
|
'attribute_map': {
|
|
232
230
|
'organization_id': 'organization_id',
|
|
233
231
|
'graph_id': 'graph_id',
|
|
234
|
-
'
|
|
232
|
+
'type': 'type',
|
|
235
233
|
},
|
|
236
234
|
'location_map': {
|
|
237
235
|
'organization_id': 'path',
|
|
238
236
|
'graph_id': 'path',
|
|
239
|
-
'
|
|
237
|
+
'type': 'path',
|
|
240
238
|
'graph_properties': 'body',
|
|
241
239
|
},
|
|
242
240
|
'collection_format_map': {
|
|
@@ -374,7 +372,7 @@ class TwingraphApi(object):
|
|
|
374
372
|
'auth': [
|
|
375
373
|
'oAuth2AuthCode'
|
|
376
374
|
],
|
|
377
|
-
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
375
|
+
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}',
|
|
378
376
|
'operation_id': 'delete_entities',
|
|
379
377
|
'http_method': 'DELETE',
|
|
380
378
|
'servers': None,
|
|
@@ -383,19 +381,19 @@ class TwingraphApi(object):
|
|
|
383
381
|
'all': [
|
|
384
382
|
'organization_id',
|
|
385
383
|
'graph_id',
|
|
386
|
-
'
|
|
384
|
+
'type',
|
|
387
385
|
'ids',
|
|
388
386
|
],
|
|
389
387
|
'required': [
|
|
390
388
|
'organization_id',
|
|
391
389
|
'graph_id',
|
|
392
|
-
'
|
|
390
|
+
'type',
|
|
393
391
|
'ids',
|
|
394
392
|
],
|
|
395
393
|
'nullable': [
|
|
396
394
|
],
|
|
397
395
|
'enum': [
|
|
398
|
-
'
|
|
396
|
+
'type',
|
|
399
397
|
],
|
|
400
398
|
'validation': [
|
|
401
399
|
]
|
|
@@ -404,7 +402,7 @@ class TwingraphApi(object):
|
|
|
404
402
|
'validations': {
|
|
405
403
|
},
|
|
406
404
|
'allowed_values': {
|
|
407
|
-
('
|
|
405
|
+
('type',): {
|
|
408
406
|
|
|
409
407
|
"NODE": "node",
|
|
410
408
|
"RELATIONSHIP": "relationship"
|
|
@@ -415,7 +413,7 @@ class TwingraphApi(object):
|
|
|
415
413
|
(str,),
|
|
416
414
|
'graph_id':
|
|
417
415
|
(str,),
|
|
418
|
-
'
|
|
416
|
+
'type':
|
|
419
417
|
(str,),
|
|
420
418
|
'ids':
|
|
421
419
|
([str],),
|
|
@@ -423,13 +421,13 @@ class TwingraphApi(object):
|
|
|
423
421
|
'attribute_map': {
|
|
424
422
|
'organization_id': 'organization_id',
|
|
425
423
|
'graph_id': 'graph_id',
|
|
426
|
-
'
|
|
424
|
+
'type': 'type',
|
|
427
425
|
'ids': 'ids',
|
|
428
426
|
},
|
|
429
427
|
'location_map': {
|
|
430
428
|
'organization_id': 'path',
|
|
431
429
|
'graph_id': 'path',
|
|
432
|
-
'
|
|
430
|
+
'type': 'path',
|
|
433
431
|
'ids': 'query',
|
|
434
432
|
},
|
|
435
433
|
'collection_format_map': {
|
|
@@ -448,7 +446,7 @@ class TwingraphApi(object):
|
|
|
448
446
|
'auth': [
|
|
449
447
|
'oAuth2AuthCode'
|
|
450
448
|
],
|
|
451
|
-
'endpoint_path': '/organizations/{organization_id}/twingraph/
|
|
449
|
+
'endpoint_path': '/organizations/{organization_id}/twingraph/download/{hash}',
|
|
452
450
|
'operation_id': 'download_graph',
|
|
453
451
|
'http_method': 'GET',
|
|
454
452
|
'servers': None,
|
|
@@ -552,11 +550,11 @@ class TwingraphApi(object):
|
|
|
552
550
|
)
|
|
553
551
|
self.get_entities_endpoint = _Endpoint(
|
|
554
552
|
settings={
|
|
555
|
-
'response_type': (
|
|
553
|
+
'response_type': (str,),
|
|
556
554
|
'auth': [
|
|
557
555
|
'oAuth2AuthCode'
|
|
558
556
|
],
|
|
559
|
-
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
557
|
+
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}',
|
|
560
558
|
'operation_id': 'get_entities',
|
|
561
559
|
'http_method': 'GET',
|
|
562
560
|
'servers': None,
|
|
@@ -565,19 +563,19 @@ class TwingraphApi(object):
|
|
|
565
563
|
'all': [
|
|
566
564
|
'organization_id',
|
|
567
565
|
'graph_id',
|
|
568
|
-
'
|
|
566
|
+
'type',
|
|
569
567
|
'ids',
|
|
570
568
|
],
|
|
571
569
|
'required': [
|
|
572
570
|
'organization_id',
|
|
573
571
|
'graph_id',
|
|
574
|
-
'
|
|
572
|
+
'type',
|
|
575
573
|
'ids',
|
|
576
574
|
],
|
|
577
575
|
'nullable': [
|
|
578
576
|
],
|
|
579
577
|
'enum': [
|
|
580
|
-
'
|
|
578
|
+
'type',
|
|
581
579
|
],
|
|
582
580
|
'validation': [
|
|
583
581
|
]
|
|
@@ -586,7 +584,7 @@ class TwingraphApi(object):
|
|
|
586
584
|
'validations': {
|
|
587
585
|
},
|
|
588
586
|
'allowed_values': {
|
|
589
|
-
('
|
|
587
|
+
('type',): {
|
|
590
588
|
|
|
591
589
|
"NODE": "node",
|
|
592
590
|
"RELATIONSHIP": "relationship"
|
|
@@ -597,7 +595,7 @@ class TwingraphApi(object):
|
|
|
597
595
|
(str,),
|
|
598
596
|
'graph_id':
|
|
599
597
|
(str,),
|
|
600
|
-
'
|
|
598
|
+
'type':
|
|
601
599
|
(str,),
|
|
602
600
|
'ids':
|
|
603
601
|
([str],),
|
|
@@ -605,13 +603,13 @@ class TwingraphApi(object):
|
|
|
605
603
|
'attribute_map': {
|
|
606
604
|
'organization_id': 'organization_id',
|
|
607
605
|
'graph_id': 'graph_id',
|
|
608
|
-
'
|
|
606
|
+
'type': 'type',
|
|
609
607
|
'ids': 'ids',
|
|
610
608
|
},
|
|
611
609
|
'location_map': {
|
|
612
610
|
'organization_id': 'path',
|
|
613
611
|
'graph_id': 'path',
|
|
614
|
-
'
|
|
612
|
+
'type': 'path',
|
|
615
613
|
'ids': 'query',
|
|
616
614
|
},
|
|
617
615
|
'collection_format_map': {
|
|
@@ -683,65 +681,6 @@ class TwingraphApi(object):
|
|
|
683
681
|
},
|
|
684
682
|
api_client=api_client
|
|
685
683
|
)
|
|
686
|
-
self.import_graph_endpoint = _Endpoint(
|
|
687
|
-
settings={
|
|
688
|
-
'response_type': (TwinGraphImportInfo,),
|
|
689
|
-
'auth': [
|
|
690
|
-
'oAuth2AuthCode'
|
|
691
|
-
],
|
|
692
|
-
'endpoint_path': '/organizations/{organization_id}/twingraph/import',
|
|
693
|
-
'operation_id': 'import_graph',
|
|
694
|
-
'http_method': 'POST',
|
|
695
|
-
'servers': None,
|
|
696
|
-
},
|
|
697
|
-
params_map={
|
|
698
|
-
'all': [
|
|
699
|
-
'organization_id',
|
|
700
|
-
'twin_graph_import',
|
|
701
|
-
],
|
|
702
|
-
'required': [
|
|
703
|
-
'organization_id',
|
|
704
|
-
'twin_graph_import',
|
|
705
|
-
],
|
|
706
|
-
'nullable': [
|
|
707
|
-
],
|
|
708
|
-
'enum': [
|
|
709
|
-
],
|
|
710
|
-
'validation': [
|
|
711
|
-
]
|
|
712
|
-
},
|
|
713
|
-
root_map={
|
|
714
|
-
'validations': {
|
|
715
|
-
},
|
|
716
|
-
'allowed_values': {
|
|
717
|
-
},
|
|
718
|
-
'openapi_types': {
|
|
719
|
-
'organization_id':
|
|
720
|
-
(str,),
|
|
721
|
-
'twin_graph_import':
|
|
722
|
-
(TwinGraphImport,),
|
|
723
|
-
},
|
|
724
|
-
'attribute_map': {
|
|
725
|
-
'organization_id': 'organization_id',
|
|
726
|
-
},
|
|
727
|
-
'location_map': {
|
|
728
|
-
'organization_id': 'path',
|
|
729
|
-
'twin_graph_import': 'body',
|
|
730
|
-
},
|
|
731
|
-
'collection_format_map': {
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
headers_map={
|
|
735
|
-
'accept': [
|
|
736
|
-
'application/json'
|
|
737
|
-
],
|
|
738
|
-
'content_type': [
|
|
739
|
-
'application/json',
|
|
740
|
-
'application/yaml'
|
|
741
|
-
]
|
|
742
|
-
},
|
|
743
|
-
api_client=api_client
|
|
744
|
-
)
|
|
745
684
|
self.job_status_endpoint = _Endpoint(
|
|
746
685
|
settings={
|
|
747
686
|
'response_type': (str,),
|
|
@@ -867,11 +806,11 @@ class TwingraphApi(object):
|
|
|
867
806
|
)
|
|
868
807
|
self.update_entities_endpoint = _Endpoint(
|
|
869
808
|
settings={
|
|
870
|
-
'response_type': (
|
|
809
|
+
'response_type': (str,),
|
|
871
810
|
'auth': [
|
|
872
811
|
'oAuth2AuthCode'
|
|
873
812
|
],
|
|
874
|
-
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
813
|
+
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}',
|
|
875
814
|
'operation_id': 'update_entities',
|
|
876
815
|
'http_method': 'PATCH',
|
|
877
816
|
'servers': None,
|
|
@@ -880,19 +819,19 @@ class TwingraphApi(object):
|
|
|
880
819
|
'all': [
|
|
881
820
|
'organization_id',
|
|
882
821
|
'graph_id',
|
|
883
|
-
'
|
|
822
|
+
'type',
|
|
884
823
|
'graph_properties',
|
|
885
824
|
],
|
|
886
825
|
'required': [
|
|
887
826
|
'organization_id',
|
|
888
827
|
'graph_id',
|
|
889
|
-
'
|
|
828
|
+
'type',
|
|
890
829
|
'graph_properties',
|
|
891
830
|
],
|
|
892
831
|
'nullable': [
|
|
893
832
|
],
|
|
894
833
|
'enum': [
|
|
895
|
-
'
|
|
834
|
+
'type',
|
|
896
835
|
],
|
|
897
836
|
'validation': [
|
|
898
837
|
]
|
|
@@ -901,7 +840,7 @@ class TwingraphApi(object):
|
|
|
901
840
|
'validations': {
|
|
902
841
|
},
|
|
903
842
|
'allowed_values': {
|
|
904
|
-
('
|
|
843
|
+
('type',): {
|
|
905
844
|
|
|
906
845
|
"NODE": "node",
|
|
907
846
|
"RELATIONSHIP": "relationship"
|
|
@@ -912,7 +851,7 @@ class TwingraphApi(object):
|
|
|
912
851
|
(str,),
|
|
913
852
|
'graph_id':
|
|
914
853
|
(str,),
|
|
915
|
-
'
|
|
854
|
+
'type':
|
|
916
855
|
(str,),
|
|
917
856
|
'graph_properties':
|
|
918
857
|
([GraphProperties],),
|
|
@@ -920,12 +859,12 @@ class TwingraphApi(object):
|
|
|
920
859
|
'attribute_map': {
|
|
921
860
|
'organization_id': 'organization_id',
|
|
922
861
|
'graph_id': 'graph_id',
|
|
923
|
-
'
|
|
862
|
+
'type': 'type',
|
|
924
863
|
},
|
|
925
864
|
'location_map': {
|
|
926
865
|
'organization_id': 'path',
|
|
927
866
|
'graph_id': 'path',
|
|
928
|
-
'
|
|
867
|
+
'type': 'path',
|
|
929
868
|
'graph_properties': 'body',
|
|
930
869
|
},
|
|
931
870
|
'collection_format_map': {
|
|
@@ -1186,7 +1125,7 @@ class TwingraphApi(object):
|
|
|
1186
1125
|
self,
|
|
1187
1126
|
organization_id,
|
|
1188
1127
|
graph_id,
|
|
1189
|
-
|
|
1128
|
+
type,
|
|
1190
1129
|
graph_properties,
|
|
1191
1130
|
**kwargs
|
|
1192
1131
|
):
|
|
@@ -1196,13 +1135,13 @@ class TwingraphApi(object):
|
|
|
1196
1135
|
This method makes a synchronous HTTP request by default. To make an
|
|
1197
1136
|
asynchronous HTTP request, please pass async_req=True
|
|
1198
1137
|
|
|
1199
|
-
>>> thread = api.create_entities(organization_id, graph_id,
|
|
1138
|
+
>>> thread = api.create_entities(organization_id, graph_id, type, graph_properties, async_req=True)
|
|
1200
1139
|
>>> result = thread.get()
|
|
1201
1140
|
|
|
1202
1141
|
Args:
|
|
1203
1142
|
organization_id (str): the Organization identifier
|
|
1204
1143
|
graph_id (str): the Graph Identifier
|
|
1205
|
-
|
|
1144
|
+
type (str): the entity model type
|
|
1206
1145
|
graph_properties ([GraphProperties]): the entities to create
|
|
1207
1146
|
|
|
1208
1147
|
Keyword Args:
|
|
@@ -1234,7 +1173,7 @@ class TwingraphApi(object):
|
|
|
1234
1173
|
async_req (bool): execute request asynchronously
|
|
1235
1174
|
|
|
1236
1175
|
Returns:
|
|
1237
|
-
|
|
1176
|
+
str
|
|
1238
1177
|
If the method is called asynchronously, returns the request
|
|
1239
1178
|
thread.
|
|
1240
1179
|
"""
|
|
@@ -1266,8 +1205,8 @@ class TwingraphApi(object):
|
|
|
1266
1205
|
organization_id
|
|
1267
1206
|
kwargs['graph_id'] = \
|
|
1268
1207
|
graph_id
|
|
1269
|
-
kwargs['
|
|
1270
|
-
|
|
1208
|
+
kwargs['type'] = \
|
|
1209
|
+
type
|
|
1271
1210
|
kwargs['graph_properties'] = \
|
|
1272
1211
|
graph_properties
|
|
1273
1212
|
return self.create_entities_endpoint.call_with_http_info(**kwargs)
|
|
@@ -1280,7 +1219,7 @@ class TwingraphApi(object):
|
|
|
1280
1219
|
):
|
|
1281
1220
|
"""Create a new graph # noqa: E501
|
|
1282
1221
|
|
|
1283
|
-
|
|
1222
|
+
To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = 'id'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you. # noqa: E501
|
|
1284
1223
|
This method makes a synchronous HTTP request by default. To make an
|
|
1285
1224
|
asynchronous HTTP request, please pass async_req=True
|
|
1286
1225
|
|
|
@@ -1361,9 +1300,9 @@ class TwingraphApi(object):
|
|
|
1361
1300
|
graph_id,
|
|
1362
1301
|
**kwargs
|
|
1363
1302
|
):
|
|
1364
|
-
"""
|
|
1303
|
+
"""Delete all versions of a graph and his metadatas # noqa: E501
|
|
1365
1304
|
|
|
1366
|
-
|
|
1305
|
+
Delete all versions of a graph and his metadatas # noqa: E501
|
|
1367
1306
|
This method makes a synchronous HTTP request by default. To make an
|
|
1368
1307
|
asynchronous HTTP request, please pass async_req=True
|
|
1369
1308
|
|
|
@@ -1441,7 +1380,7 @@ class TwingraphApi(object):
|
|
|
1441
1380
|
self,
|
|
1442
1381
|
organization_id,
|
|
1443
1382
|
graph_id,
|
|
1444
|
-
|
|
1383
|
+
type,
|
|
1445
1384
|
ids,
|
|
1446
1385
|
**kwargs
|
|
1447
1386
|
):
|
|
@@ -1451,13 +1390,13 @@ class TwingraphApi(object):
|
|
|
1451
1390
|
This method makes a synchronous HTTP request by default. To make an
|
|
1452
1391
|
asynchronous HTTP request, please pass async_req=True
|
|
1453
1392
|
|
|
1454
|
-
>>> thread = api.delete_entities(organization_id, graph_id,
|
|
1393
|
+
>>> thread = api.delete_entities(organization_id, graph_id, type, ids, async_req=True)
|
|
1455
1394
|
>>> result = thread.get()
|
|
1456
1395
|
|
|
1457
1396
|
Args:
|
|
1458
1397
|
organization_id (str): the Organization identifier
|
|
1459
1398
|
graph_id (str): the Graph Identifier
|
|
1460
|
-
|
|
1399
|
+
type (str): the entity model type
|
|
1461
1400
|
ids ([str]): the entities to delete
|
|
1462
1401
|
|
|
1463
1402
|
Keyword Args:
|
|
@@ -1521,8 +1460,8 @@ class TwingraphApi(object):
|
|
|
1521
1460
|
organization_id
|
|
1522
1461
|
kwargs['graph_id'] = \
|
|
1523
1462
|
graph_id
|
|
1524
|
-
kwargs['
|
|
1525
|
-
|
|
1463
|
+
kwargs['type'] = \
|
|
1464
|
+
type
|
|
1526
1465
|
kwargs['ids'] = \
|
|
1527
1466
|
ids
|
|
1528
1467
|
return self.delete_entities_endpoint.call_with_http_info(**kwargs)
|
|
@@ -1691,7 +1630,7 @@ class TwingraphApi(object):
|
|
|
1691
1630
|
self,
|
|
1692
1631
|
organization_id,
|
|
1693
1632
|
graph_id,
|
|
1694
|
-
|
|
1633
|
+
type,
|
|
1695
1634
|
ids,
|
|
1696
1635
|
**kwargs
|
|
1697
1636
|
):
|
|
@@ -1701,13 +1640,13 @@ class TwingraphApi(object):
|
|
|
1701
1640
|
This method makes a synchronous HTTP request by default. To make an
|
|
1702
1641
|
asynchronous HTTP request, please pass async_req=True
|
|
1703
1642
|
|
|
1704
|
-
>>> thread = api.get_entities(organization_id, graph_id,
|
|
1643
|
+
>>> thread = api.get_entities(organization_id, graph_id, type, ids, async_req=True)
|
|
1705
1644
|
>>> result = thread.get()
|
|
1706
1645
|
|
|
1707
1646
|
Args:
|
|
1708
1647
|
organization_id (str): the Organization identifier
|
|
1709
1648
|
graph_id (str): the Graph Identifier
|
|
1710
|
-
|
|
1649
|
+
type (str): the entity model type
|
|
1711
1650
|
ids ([str]): the entities to get
|
|
1712
1651
|
|
|
1713
1652
|
Keyword Args:
|
|
@@ -1739,7 +1678,7 @@ class TwingraphApi(object):
|
|
|
1739
1678
|
async_req (bool): execute request asynchronously
|
|
1740
1679
|
|
|
1741
1680
|
Returns:
|
|
1742
|
-
|
|
1681
|
+
str
|
|
1743
1682
|
If the method is called asynchronously, returns the request
|
|
1744
1683
|
thread.
|
|
1745
1684
|
"""
|
|
@@ -1771,8 +1710,8 @@ class TwingraphApi(object):
|
|
|
1771
1710
|
organization_id
|
|
1772
1711
|
kwargs['graph_id'] = \
|
|
1773
1712
|
graph_id
|
|
1774
|
-
kwargs['
|
|
1775
|
-
|
|
1713
|
+
kwargs['type'] = \
|
|
1714
|
+
type
|
|
1776
1715
|
kwargs['ids'] = \
|
|
1777
1716
|
ids
|
|
1778
1717
|
return self.get_entities_endpoint.call_with_http_info(**kwargs)
|
|
@@ -1859,88 +1798,6 @@ class TwingraphApi(object):
|
|
|
1859
1798
|
graph_id
|
|
1860
1799
|
return self.get_graph_meta_data_endpoint.call_with_http_info(**kwargs)
|
|
1861
1800
|
|
|
1862
|
-
def import_graph(
|
|
1863
|
-
self,
|
|
1864
|
-
organization_id,
|
|
1865
|
-
twin_graph_import,
|
|
1866
|
-
**kwargs
|
|
1867
|
-
):
|
|
1868
|
-
"""Import a new version of a twin graph # noqa: E501
|
|
1869
|
-
|
|
1870
|
-
Import a new version of a twin graph # noqa: E501
|
|
1871
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1872
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1873
|
-
|
|
1874
|
-
>>> thread = api.import_graph(organization_id, twin_graph_import, async_req=True)
|
|
1875
|
-
>>> result = thread.get()
|
|
1876
|
-
|
|
1877
|
-
Args:
|
|
1878
|
-
organization_id (str): the Organization identifier
|
|
1879
|
-
twin_graph_import (TwinGraphImport): the graph to import
|
|
1880
|
-
|
|
1881
|
-
Keyword Args:
|
|
1882
|
-
_return_http_data_only (bool): response data without head status
|
|
1883
|
-
code and headers. Default is True.
|
|
1884
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1885
|
-
will be returned without reading/decoding response data.
|
|
1886
|
-
Default is True.
|
|
1887
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1888
|
-
one number provided, it will be total request timeout. It can also
|
|
1889
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
1890
|
-
Default is None.
|
|
1891
|
-
_check_input_type (bool): specifies if type checking
|
|
1892
|
-
should be done one the data sent to the server.
|
|
1893
|
-
Default is True.
|
|
1894
|
-
_check_return_type (bool): specifies if type checking
|
|
1895
|
-
should be done one the data received from the server.
|
|
1896
|
-
Default is True.
|
|
1897
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
1898
|
-
are serialized names, as specified in the OpenAPI document.
|
|
1899
|
-
False if the variable names in the input data
|
|
1900
|
-
are pythonic names, e.g. snake case (default)
|
|
1901
|
-
_content_type (str/None): force body content-type.
|
|
1902
|
-
Default is None and content-type will be predicted by allowed
|
|
1903
|
-
content-types and body.
|
|
1904
|
-
_host_index (int/None): specifies the index of the server
|
|
1905
|
-
that we want to use.
|
|
1906
|
-
Default is read from the configuration.
|
|
1907
|
-
async_req (bool): execute request asynchronously
|
|
1908
|
-
|
|
1909
|
-
Returns:
|
|
1910
|
-
TwinGraphImportInfo
|
|
1911
|
-
If the method is called asynchronously, returns the request
|
|
1912
|
-
thread.
|
|
1913
|
-
"""
|
|
1914
|
-
kwargs['async_req'] = kwargs.get(
|
|
1915
|
-
'async_req', False
|
|
1916
|
-
)
|
|
1917
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1918
|
-
'_return_http_data_only', True
|
|
1919
|
-
)
|
|
1920
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
1921
|
-
'_preload_content', True
|
|
1922
|
-
)
|
|
1923
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
1924
|
-
'_request_timeout', None
|
|
1925
|
-
)
|
|
1926
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
1927
|
-
'_check_input_type', True
|
|
1928
|
-
)
|
|
1929
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
1930
|
-
'_check_return_type', True
|
|
1931
|
-
)
|
|
1932
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1933
|
-
'_spec_property_naming', False
|
|
1934
|
-
)
|
|
1935
|
-
kwargs['_content_type'] = kwargs.get(
|
|
1936
|
-
'_content_type')
|
|
1937
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1938
|
-
kwargs['organization_id'] = \
|
|
1939
|
-
organization_id
|
|
1940
|
-
kwargs['twin_graph_import'] = \
|
|
1941
|
-
twin_graph_import
|
|
1942
|
-
return self.import_graph_endpoint.call_with_http_info(**kwargs)
|
|
1943
|
-
|
|
1944
1801
|
def job_status(
|
|
1945
1802
|
self,
|
|
1946
1803
|
organization_id,
|
|
@@ -2113,7 +1970,7 @@ class TwingraphApi(object):
|
|
|
2113
1970
|
self,
|
|
2114
1971
|
organization_id,
|
|
2115
1972
|
graph_id,
|
|
2116
|
-
|
|
1973
|
+
type,
|
|
2117
1974
|
graph_properties,
|
|
2118
1975
|
**kwargs
|
|
2119
1976
|
):
|
|
@@ -2123,13 +1980,13 @@ class TwingraphApi(object):
|
|
|
2123
1980
|
This method makes a synchronous HTTP request by default. To make an
|
|
2124
1981
|
asynchronous HTTP request, please pass async_req=True
|
|
2125
1982
|
|
|
2126
|
-
>>> thread = api.update_entities(organization_id, graph_id,
|
|
1983
|
+
>>> thread = api.update_entities(organization_id, graph_id, type, graph_properties, async_req=True)
|
|
2127
1984
|
>>> result = thread.get()
|
|
2128
1985
|
|
|
2129
1986
|
Args:
|
|
2130
1987
|
organization_id (str): the Organization identifier
|
|
2131
1988
|
graph_id (str): the Graph Identifier
|
|
2132
|
-
|
|
1989
|
+
type (str): the entity model type
|
|
2133
1990
|
graph_properties ([GraphProperties]): the entities to update
|
|
2134
1991
|
|
|
2135
1992
|
Keyword Args:
|
|
@@ -2161,7 +2018,7 @@ class TwingraphApi(object):
|
|
|
2161
2018
|
async_req (bool): execute request asynchronously
|
|
2162
2019
|
|
|
2163
2020
|
Returns:
|
|
2164
|
-
|
|
2021
|
+
str
|
|
2165
2022
|
If the method is called asynchronously, returns the request
|
|
2166
2023
|
thread.
|
|
2167
2024
|
"""
|
|
@@ -2193,8 +2050,8 @@ class TwingraphApi(object):
|
|
|
2193
2050
|
organization_id
|
|
2194
2051
|
kwargs['graph_id'] = \
|
|
2195
2052
|
graph_id
|
|
2196
|
-
kwargs['
|
|
2197
|
-
|
|
2053
|
+
kwargs['type'] = \
|
|
2054
|
+
type
|
|
2198
2055
|
kwargs['graph_properties'] = \
|
|
2199
2056
|
graph_properties
|
|
2200
2057
|
return self.update_entities_endpoint.call_with_http_info(**kwargs)
|
cosmotech_api/api/user_api.py
CHANGED