perceptic-core-client 0.39.0__py3-none-any.whl → 0.50.3__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.
- perceptic_core_client/__init__.py +51 -0
- perceptic_core_client/api/__init__.py +1 -0
- perceptic_core_client/api/tag_resource_api.py +100 -836
- perceptic_core_client/api/uri_resource_api.py +818 -207
- perceptic_core_client/api/user_resource_api.py +308 -1
- perceptic_core_client/api/worker_resource_api.py +1100 -211
- perceptic_core_client/api/worker_resource_v3_api.py +1477 -0
- perceptic_core_client/api_client.py +8 -5
- perceptic_core_client/configuration.py +6 -2
- perceptic_core_client/models/__init__.py +25 -1
- perceptic_core_client/models/citation_metadata_api_dto.py +0 -15
- perceptic_core_client/models/connection_settings_api_dto.py +0 -10
- perceptic_core_client/models/create_folder_response_v2.py +89 -0
- perceptic_core_client/models/file_system_api_dto.py +0 -10
- perceptic_core_client/models/file_system_root_metadata_api_dto.py +0 -10
- perceptic_core_client/models/get_run_event_rating_response.py +91 -0
- perceptic_core_client/models/get_worker_events_v2_response.py +101 -0
- perceptic_core_client/models/get_worker_events_v3_response.py +89 -0
- perceptic_core_client/models/info_event1.py +94 -0
- perceptic_core_client/models/ingest_event_request.py +94 -0
- perceptic_core_client/models/ingest_event_response.py +89 -0
- perceptic_core_client/models/ingest_stream_event_request.py +89 -0
- perceptic_core_client/models/list_users_response.py +104 -0
- perceptic_core_client/models/persistence_mode.py +38 -0
- perceptic_core_client/models/post_rating_request.py +89 -0
- perceptic_core_client/models/post_run_event_rating_response.py +91 -0
- perceptic_core_client/models/post_worker_run_request1.py +87 -0
- perceptic_core_client/models/post_worker_run_response1.py +87 -0
- perceptic_core_client/models/progress_event1.py +94 -0
- perceptic_core_client/models/rating_dto_worker_run_event_rating_secondary_id.py +108 -0
- perceptic_core_client/models/run_status_dto.py +1 -0
- perceptic_core_client/models/schedule_trigger.py +0 -15
- perceptic_core_client/models/upload_resource_response_v2.py +91 -0
- perceptic_core_client/models/user_input_event.py +101 -0
- perceptic_core_client/models/user_request_for_input_event.py +108 -0
- perceptic_core_client/models/worker_event.py +0 -15
- perceptic_core_client/models/worker_event_v2.py +193 -0
- perceptic_core_client/models/worker_run_event_rating_secondary_id.py +89 -0
- perceptic_core_client/models/worker_stream_event_v2.py +90 -0
- perceptic_core_client/models/worker_v2_next_page_token.py +89 -0
- perceptic_core_client/models/workflow_status_response.py +89 -0
- perceptic_core_client/test/test_create_folder_response_v2.py +52 -0
- perceptic_core_client/test/test_get_run_event_rating_response.py +57 -0
- perceptic_core_client/test/test_get_worker_events_v2_response.py +56 -0
- perceptic_core_client/test/test_get_worker_events_v3_response.py +54 -0
- perceptic_core_client/test/test_info_event1.py +54 -0
- perceptic_core_client/test/test_ingest_event_request.py +56 -0
- perceptic_core_client/test/test_ingest_event_response.py +52 -0
- perceptic_core_client/test/test_ingest_stream_event_request.py +52 -0
- perceptic_core_client/test/test_list_users_response.py +60 -0
- perceptic_core_client/test/test_persistence_mode.py +33 -0
- perceptic_core_client/test/test_post_rating_request.py +52 -0
- perceptic_core_client/test/test_post_run_event_rating_response.py +57 -0
- perceptic_core_client/test/test_post_worker_run_request1.py +51 -0
- perceptic_core_client/test/test_post_worker_run_response1.py +51 -0
- perceptic_core_client/test/test_progress_event.py +1 -1
- perceptic_core_client/test/test_progress_event1.py +54 -0
- perceptic_core_client/test/test_rating_dto_worker_run_event_rating_secondary_id.py +56 -0
- perceptic_core_client/test/test_request_for_input_event.py +1 -1
- perceptic_core_client/test/test_tag_resource_api.py +0 -21
- perceptic_core_client/test/test_upload_resource_response_v2.py +53 -0
- perceptic_core_client/test/test_uri_resource_api.py +14 -0
- perceptic_core_client/test/test_user_input_event.py +55 -0
- perceptic_core_client/test/test_user_request_for_input_event.py +56 -0
- perceptic_core_client/test/test_user_resource_api.py +7 -0
- perceptic_core_client/test/test_worker_event.py +2 -2
- perceptic_core_client/test/test_worker_event_v2.py +59 -0
- perceptic_core_client/test/test_worker_resource_api.py +21 -0
- perceptic_core_client/test/test_worker_resource_v3_api.py +66 -0
- perceptic_core_client/test/test_worker_run_event_rating_secondary_id.py +53 -0
- perceptic_core_client/test/test_worker_stream_event_v2.py +52 -0
- perceptic_core_client/test/test_worker_v2_next_page_token.py +52 -0
- perceptic_core_client/test/test_workflow_status_response.py +52 -0
- {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/RECORD +77 -27
- {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.post_worker_run_request1 import PostWorkerRunRequest1
|
|
18
|
+
|
|
19
|
+
class TestPostWorkerRunRequest1(unittest.TestCase):
|
|
20
|
+
"""PostWorkerRunRequest1 unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> PostWorkerRunRequest1:
|
|
29
|
+
"""Test PostWorkerRunRequest1
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `PostWorkerRunRequest1`
|
|
34
|
+
"""
|
|
35
|
+
model = PostWorkerRunRequest1()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return PostWorkerRunRequest1(
|
|
38
|
+
inputs = None
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return PostWorkerRunRequest1(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testPostWorkerRunRequest1(self):
|
|
46
|
+
"""Test PostWorkerRunRequest1"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.post_worker_run_response1 import PostWorkerRunResponse1
|
|
18
|
+
|
|
19
|
+
class TestPostWorkerRunResponse1(unittest.TestCase):
|
|
20
|
+
"""PostWorkerRunResponse1 unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> PostWorkerRunResponse1:
|
|
29
|
+
"""Test PostWorkerRunResponse1
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `PostWorkerRunResponse1`
|
|
34
|
+
"""
|
|
35
|
+
model = PostWorkerRunResponse1()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return PostWorkerRunResponse1(
|
|
38
|
+
run_rid = ''
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return PostWorkerRunResponse1(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testPostWorkerRunResponse1(self):
|
|
46
|
+
"""Test PostWorkerRunResponse1"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -36,7 +36,7 @@ class TestProgressEvent(unittest.TestCase):
|
|
|
36
36
|
if include_optional:
|
|
37
37
|
return ProgressEvent(
|
|
38
38
|
sequence = 56,
|
|
39
|
-
payload =
|
|
39
|
+
payload = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
40
40
|
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
41
41
|
type = ''
|
|
42
42
|
)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.progress_event1 import ProgressEvent1
|
|
18
|
+
|
|
19
|
+
class TestProgressEvent1(unittest.TestCase):
|
|
20
|
+
"""ProgressEvent1 unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ProgressEvent1:
|
|
29
|
+
"""Test ProgressEvent1
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ProgressEvent1`
|
|
34
|
+
"""
|
|
35
|
+
model = ProgressEvent1()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ProgressEvent1(
|
|
38
|
+
sequence = 56,
|
|
39
|
+
payload = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
40
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
41
|
+
type = ''
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return ProgressEvent1(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testProgressEvent1(self):
|
|
49
|
+
"""Test ProgressEvent1"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.rating_dto_worker_run_event_rating_secondary_id import RatingDtoWorkerRunEventRatingSecondaryId
|
|
18
|
+
|
|
19
|
+
class TestRatingDtoWorkerRunEventRatingSecondaryId(unittest.TestCase):
|
|
20
|
+
"""RatingDtoWorkerRunEventRatingSecondaryId unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RatingDtoWorkerRunEventRatingSecondaryId:
|
|
29
|
+
"""Test RatingDtoWorkerRunEventRatingSecondaryId
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RatingDtoWorkerRunEventRatingSecondaryId`
|
|
34
|
+
"""
|
|
35
|
+
model = RatingDtoWorkerRunEventRatingSecondaryId()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RatingDtoWorkerRunEventRatingSecondaryId(
|
|
38
|
+
id = '62ECB020-8429-30cc-01FF-CCfeEe150AC3',
|
|
39
|
+
grade = 1.337,
|
|
40
|
+
written_feedback = '',
|
|
41
|
+
secondary_id = perceptic_core_client.models.worker_run_event_rating_secondary_id.WorkerRunEventRatingSecondaryId(
|
|
42
|
+
run_rid = '',
|
|
43
|
+
sequence = 56, )
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return RatingDtoWorkerRunEventRatingSecondaryId(
|
|
47
|
+
)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def testRatingDtoWorkerRunEventRatingSecondaryId(self):
|
|
51
|
+
"""Test RatingDtoWorkerRunEventRatingSecondaryId"""
|
|
52
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
53
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
54
|
+
|
|
55
|
+
if __name__ == '__main__':
|
|
56
|
+
unittest.main()
|
|
@@ -36,7 +36,7 @@ class TestRequestForInputEvent(unittest.TestCase):
|
|
|
36
36
|
if include_optional:
|
|
37
37
|
return RequestForInputEvent(
|
|
38
38
|
sequence = 56,
|
|
39
|
-
requested_data =
|
|
39
|
+
requested_data = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
40
40
|
provided_data = None,
|
|
41
41
|
attribution = '',
|
|
42
42
|
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
@@ -36,13 +36,6 @@ class TestTagResourceApi(unittest.TestCase):
|
|
|
36
36
|
def test_get_files_for_tag(self) -> None:
|
|
37
37
|
"""Test case for get_files_for_tag
|
|
38
38
|
|
|
39
|
-
Get Files For Tag Empty
|
|
40
|
-
"""
|
|
41
|
-
pass
|
|
42
|
-
|
|
43
|
-
def test_get_files_for_tag_0(self) -> None:
|
|
44
|
-
"""Test case for get_files_for_tag_0
|
|
45
|
-
|
|
46
39
|
Get Files For Tag
|
|
47
40
|
"""
|
|
48
41
|
pass
|
|
@@ -61,13 +54,6 @@ class TestTagResourceApi(unittest.TestCase):
|
|
|
61
54
|
"""
|
|
62
55
|
pass
|
|
63
56
|
|
|
64
|
-
def test_remove_tag_empty(self) -> None:
|
|
65
|
-
"""Test case for remove_tag_empty
|
|
66
|
-
|
|
67
|
-
Remove Tag Empty
|
|
68
|
-
"""
|
|
69
|
-
pass
|
|
70
|
-
|
|
71
57
|
def test_update_tag(self) -> None:
|
|
72
58
|
"""Test case for update_tag
|
|
73
59
|
|
|
@@ -75,13 +61,6 @@ class TestTagResourceApi(unittest.TestCase):
|
|
|
75
61
|
"""
|
|
76
62
|
pass
|
|
77
63
|
|
|
78
|
-
def test_update_tag_empty(self) -> None:
|
|
79
|
-
"""Test case for update_tag_empty
|
|
80
|
-
|
|
81
|
-
Update Tag Empty
|
|
82
|
-
"""
|
|
83
|
-
pass
|
|
84
|
-
|
|
85
64
|
|
|
86
65
|
if __name__ == '__main__':
|
|
87
66
|
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.upload_resource_response_v2 import UploadResourceResponseV2
|
|
18
|
+
|
|
19
|
+
class TestUploadResourceResponseV2(unittest.TestCase):
|
|
20
|
+
"""UploadResourceResponseV2 unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UploadResourceResponseV2:
|
|
29
|
+
"""Test UploadResourceResponseV2
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UploadResourceResponseV2`
|
|
34
|
+
"""
|
|
35
|
+
model = UploadResourceResponseV2()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UploadResourceResponseV2(
|
|
38
|
+
resource_id = '',
|
|
39
|
+
uri = '',
|
|
40
|
+
size_in_bytes = 56
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return UploadResourceResponseV2(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testUploadResourceResponseV2(self):
|
|
48
|
+
"""Test UploadResourceResponseV2"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -40,6 +40,13 @@ class TestUriResourceApi(unittest.TestCase):
|
|
|
40
40
|
"""
|
|
41
41
|
pass
|
|
42
42
|
|
|
43
|
+
def test_create_uri_folder_v2(self) -> None:
|
|
44
|
+
"""Test case for create_uri_folder_v2
|
|
45
|
+
|
|
46
|
+
Create folder and return its URI
|
|
47
|
+
"""
|
|
48
|
+
pass
|
|
49
|
+
|
|
43
50
|
def test_download_resource(self) -> None:
|
|
44
51
|
"""Test case for download_resource
|
|
45
52
|
|
|
@@ -103,6 +110,13 @@ class TestUriResourceApi(unittest.TestCase):
|
|
|
103
110
|
"""
|
|
104
111
|
pass
|
|
105
112
|
|
|
113
|
+
def test_upload_resource_v2(self) -> None:
|
|
114
|
+
"""Test case for upload_resource_v2
|
|
115
|
+
|
|
116
|
+
Upload file and return the resulting URI
|
|
117
|
+
"""
|
|
118
|
+
pass
|
|
119
|
+
|
|
106
120
|
|
|
107
121
|
if __name__ == '__main__':
|
|
108
122
|
unittest.main()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.user_input_event import UserInputEvent
|
|
18
|
+
|
|
19
|
+
class TestUserInputEvent(unittest.TestCase):
|
|
20
|
+
"""UserInputEvent unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UserInputEvent:
|
|
29
|
+
"""Test UserInputEvent
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UserInputEvent`
|
|
34
|
+
"""
|
|
35
|
+
model = UserInputEvent()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UserInputEvent(
|
|
38
|
+
sequence = 56,
|
|
39
|
+
input = None,
|
|
40
|
+
attribution = '',
|
|
41
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
42
|
+
type = ''
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return UserInputEvent(
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testUserInputEvent(self):
|
|
50
|
+
"""Test UserInputEvent"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.user_request_for_input_event import UserRequestForInputEvent
|
|
18
|
+
|
|
19
|
+
class TestUserRequestForInputEvent(unittest.TestCase):
|
|
20
|
+
"""UserRequestForInputEvent unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UserRequestForInputEvent:
|
|
29
|
+
"""Test UserRequestForInputEvent
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UserRequestForInputEvent`
|
|
34
|
+
"""
|
|
35
|
+
model = UserRequestForInputEvent()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UserRequestForInputEvent(
|
|
38
|
+
sequence = 56,
|
|
39
|
+
requested_data = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
40
|
+
provided_data = None,
|
|
41
|
+
attribution = '',
|
|
42
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
43
|
+
type = ''
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return UserRequestForInputEvent(
|
|
47
|
+
)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def testUserRequestForInputEvent(self):
|
|
51
|
+
"""Test UserRequestForInputEvent"""
|
|
52
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
53
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
54
|
+
|
|
55
|
+
if __name__ == '__main__':
|
|
56
|
+
unittest.main()
|
|
@@ -39,8 +39,8 @@ class TestWorkerEvent(unittest.TestCase):
|
|
|
39
39
|
sequence = 56,
|
|
40
40
|
type_of = '',
|
|
41
41
|
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
42
|
-
payload = perceptic_core_client.models.
|
|
43
|
-
requested_data = perceptic_core_client.models.
|
|
42
|
+
payload = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
43
|
+
requested_data = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
44
44
|
provided_data = perceptic_core_client.models.provided_data.providedData(),
|
|
45
45
|
attribution = ''
|
|
46
46
|
)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.models.worker_event_v2 import WorkerEventV2
|
|
18
|
+
|
|
19
|
+
class TestWorkerEventV2(unittest.TestCase):
|
|
20
|
+
"""WorkerEventV2 unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> WorkerEventV2:
|
|
29
|
+
"""Test WorkerEventV2
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `WorkerEventV2`
|
|
34
|
+
"""
|
|
35
|
+
model = WorkerEventV2()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return WorkerEventV2(
|
|
38
|
+
type = '',
|
|
39
|
+
sequence = 56,
|
|
40
|
+
type_of = '',
|
|
41
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
42
|
+
payload = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
43
|
+
requested_data = perceptic_core_client.models.worker_event_v3.WorkerEventV3(),
|
|
44
|
+
provided_data = perceptic_core_client.models.provided_data.providedData(),
|
|
45
|
+
attribution = '',
|
|
46
|
+
input = perceptic_core_client.models.input.input()
|
|
47
|
+
)
|
|
48
|
+
else:
|
|
49
|
+
return WorkerEventV2(
|
|
50
|
+
)
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def testWorkerEventV2(self):
|
|
54
|
+
"""Test WorkerEventV2"""
|
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
57
|
+
|
|
58
|
+
if __name__ == '__main__':
|
|
59
|
+
unittest.main()
|
|
@@ -33,6 +33,20 @@ class TestWorkerResourceApi(unittest.TestCase):
|
|
|
33
33
|
"""
|
|
34
34
|
pass
|
|
35
35
|
|
|
36
|
+
def test_api_v1_workers_runs_run_rid_events_sequence_rating_get(self) -> None:
|
|
37
|
+
"""Test case for api_v1_workers_runs_run_rid_events_sequence_rating_get
|
|
38
|
+
|
|
39
|
+
Get Rating
|
|
40
|
+
"""
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
def test_api_v1_workers_runs_run_rid_events_sequence_rating_post(self) -> None:
|
|
44
|
+
"""Test case for api_v1_workers_runs_run_rid_events_sequence_rating_post
|
|
45
|
+
|
|
46
|
+
Post Rating
|
|
47
|
+
"""
|
|
48
|
+
pass
|
|
49
|
+
|
|
36
50
|
def test_api_v1_workers_worker_id_get(self) -> None:
|
|
37
51
|
"""Test case for api_v1_workers_worker_id_get
|
|
38
52
|
|
|
@@ -75,6 +89,13 @@ class TestWorkerResourceApi(unittest.TestCase):
|
|
|
75
89
|
"""
|
|
76
90
|
pass
|
|
77
91
|
|
|
92
|
+
def test_get_worker_run_events_v2(self) -> None:
|
|
93
|
+
"""Test case for get_worker_run_events_v2
|
|
94
|
+
|
|
95
|
+
Get Worker Run Events (v2)
|
|
96
|
+
"""
|
|
97
|
+
pass
|
|
98
|
+
|
|
78
99
|
|
|
79
100
|
if __name__ == '__main__':
|
|
80
101
|
unittest.main()
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from perceptic_core_client.api.worker_resource_v3_api import WorkerResourceV3Api
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TestWorkerResourceV3Api(unittest.TestCase):
|
|
21
|
+
"""WorkerResourceV3Api unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self) -> None:
|
|
24
|
+
self.api = WorkerResourceV3Api()
|
|
25
|
+
|
|
26
|
+
def tearDown(self) -> None:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def test_api_v3_workers_worker_id_runs_post(self) -> None:
|
|
30
|
+
"""Test case for api_v3_workers_worker_id_runs_post
|
|
31
|
+
|
|
32
|
+
Start Worker Run
|
|
33
|
+
"""
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
def test_api_v3_workers_worker_id_runs_run_rid_events_get(self) -> None:
|
|
37
|
+
"""Test case for api_v3_workers_worker_id_runs_run_rid_events_get
|
|
38
|
+
|
|
39
|
+
Get Run Events
|
|
40
|
+
"""
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
def test_api_v3_workers_worker_id_runs_run_rid_events_post(self) -> None:
|
|
44
|
+
"""Test case for api_v3_workers_worker_id_runs_run_rid_events_post
|
|
45
|
+
|
|
46
|
+
Ingest Event
|
|
47
|
+
"""
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
def test_api_v3_workers_worker_id_runs_run_rid_get(self) -> None:
|
|
51
|
+
"""Test case for api_v3_workers_worker_id_runs_run_rid_get
|
|
52
|
+
|
|
53
|
+
Get Workflow Status
|
|
54
|
+
"""
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
def test_api_v3_workers_worker_id_runs_run_rid_stream_get(self) -> None:
|
|
58
|
+
"""Test case for api_v3_workers_worker_id_runs_run_rid_stream_get
|
|
59
|
+
|
|
60
|
+
Stream Run
|
|
61
|
+
"""
|
|
62
|
+
pass
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
if __name__ == '__main__':
|
|
66
|
+
unittest.main()
|