perceptic-core-client 0.6.0__py3-none-any.whl → 0.6.1__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 perceptic-core-client might be problematic. Click here for more details.

Files changed (224) hide show
  1. perceptic_core_client/__init__.py +0 -0
  2. perceptic_core_client/perceptic_core_client/__init__.py +101 -0
  3. perceptic_core_client/perceptic_core_client/api/__init__.py +12 -0
  4. perceptic_core_client/perceptic_core_client/api/connection_resource_api.py +569 -0
  5. perceptic_core_client/perceptic_core_client/api/file_system_contents_resource_api.py +2361 -0
  6. perceptic_core_client/perceptic_core_client/api/file_system_resource_api.py +1086 -0
  7. perceptic_core_client/perceptic_core_client/api/indexer_resource_api.py +537 -0
  8. perceptic_core_client/perceptic_core_client/api/indexing_task_resource_api.py +1173 -0
  9. perceptic_core_client/perceptic_core_client/api/uri_resource_api.py +1630 -0
  10. perceptic_core_client/perceptic_core_client/api/user_resource_api.py +278 -0
  11. perceptic_core_client/perceptic_core_client/api/worker_resource_api.py +1746 -0
  12. perceptic_core_client/perceptic_core_client/api_client.py +797 -0
  13. perceptic_core_client/perceptic_core_client/api_response.py +21 -0
  14. perceptic_core_client/perceptic_core_client/configuration.py +573 -0
  15. perceptic_core_client/perceptic_core_client/docs/ActionType.md +14 -0
  16. perceptic_core_client/perceptic_core_client/docs/AzureBlobConnectionSettingsApiDto.md +33 -0
  17. perceptic_core_client/perceptic_core_client/docs/AzureBlobFileSystemRootMetadataApiDto.md +30 -0
  18. perceptic_core_client/perceptic_core_client/docs/ConnectionApiDto.md +33 -0
  19. perceptic_core_client/perceptic_core_client/docs/ConnectionResourceApi.md +144 -0
  20. perceptic_core_client/perceptic_core_client/docs/ConnectionSettingsApiDto.md +36 -0
  21. perceptic_core_client/perceptic_core_client/docs/CreateConnectionRequest.md +31 -0
  22. perceptic_core_client/perceptic_core_client/docs/CreateConnectionResponse.md +29 -0
  23. perceptic_core_client/perceptic_core_client/docs/CreateFileSystemResponse.md +29 -0
  24. perceptic_core_client/perceptic_core_client/docs/CreateFolderRequest.md +29 -0
  25. perceptic_core_client/perceptic_core_client/docs/CreateFolderResponse.md +29 -0
  26. perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskRequest.md +33 -0
  27. perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskResponse.md +31 -0
  28. perceptic_core_client/perceptic_core_client/docs/CreateManagedFileSystemRequest.md +30 -0
  29. perceptic_core_client/perceptic_core_client/docs/CreateRemoteFileSystemRequest.md +32 -0
  30. perceptic_core_client/perceptic_core_client/docs/FileSystemApiDto.md +34 -0
  31. perceptic_core_client/perceptic_core_client/docs/FileSystemContentsResourceApi.md +573 -0
  32. perceptic_core_client/perceptic_core_client/docs/FileSystemResourceApi.md +276 -0
  33. perceptic_core_client/perceptic_core_client/docs/FileSystemRootMetadataApiDto.md +31 -0
  34. perceptic_core_client/perceptic_core_client/docs/GetConnectionResponse.md +29 -0
  35. perceptic_core_client/perceptic_core_client/docs/GetIndexerResponse.md +29 -0
  36. perceptic_core_client/perceptic_core_client/docs/GetIndexingTaskResponse.md +29 -0
  37. perceptic_core_client/perceptic_core_client/docs/GetMetadataResponse.md +29 -0
  38. perceptic_core_client/perceptic_core_client/docs/GetParentResponse.md +29 -0
  39. perceptic_core_client/perceptic_core_client/docs/GetParentUriResponse.md +29 -0
  40. perceptic_core_client/perceptic_core_client/docs/GetSignedUrlResponse.md +29 -0
  41. perceptic_core_client/perceptic_core_client/docs/GetWorkerEventsResponse.md +29 -0
  42. perceptic_core_client/perceptic_core_client/docs/GetWorkerMetadataResponse.md +29 -0
  43. perceptic_core_client/perceptic_core_client/docs/GetWorkerStatusResponse.md +29 -0
  44. perceptic_core_client/perceptic_core_client/docs/GetWorkersResponse.md +29 -0
  45. perceptic_core_client/perceptic_core_client/docs/IndexerDto.md +32 -0
  46. perceptic_core_client/perceptic_core_client/docs/IndexerResourceApi.md +138 -0
  47. perceptic_core_client/perceptic_core_client/docs/IndexingActionDto.md +35 -0
  48. perceptic_core_client/perceptic_core_client/docs/IndexingActionStatus.md +16 -0
  49. perceptic_core_client/perceptic_core_client/docs/IndexingTaskDto.md +36 -0
  50. perceptic_core_client/perceptic_core_client/docs/IndexingTaskResourceApi.md +289 -0
  51. perceptic_core_client/perceptic_core_client/docs/IndexingTaskStatus.md +29 -0
  52. perceptic_core_client/perceptic_core_client/docs/InfoEvent.md +31 -0
  53. perceptic_core_client/perceptic_core_client/docs/JsonNode.md +50 -0
  54. perceptic_core_client/perceptic_core_client/docs/JsonNodeType.md +26 -0
  55. perceptic_core_client/perceptic_core_client/docs/ListAllFileSystemsResponse.md +29 -0
  56. perceptic_core_client/perceptic_core_client/docs/ListFileSystemResponse.md +29 -0
  57. perceptic_core_client/perceptic_core_client/docs/ListIndexersResponse.md +29 -0
  58. perceptic_core_client/perceptic_core_client/docs/ListIndexingActionsResponse.md +37 -0
  59. perceptic_core_client/perceptic_core_client/docs/ManagedFileSystemApiDto.md +32 -0
  60. perceptic_core_client/perceptic_core_client/docs/MeResponse.md +33 -0
  61. perceptic_core_client/perceptic_core_client/docs/ModelSchema.md +38 -0
  62. perceptic_core_client/perceptic_core_client/docs/PagedListFileSystemResponse.md +30 -0
  63. perceptic_core_client/perceptic_core_client/docs/PostWorkerRunRequest.md +29 -0
  64. perceptic_core_client/perceptic_core_client/docs/PostWorkerRunResponse.md +29 -0
  65. perceptic_core_client/perceptic_core_client/docs/ProgressEvent.md +31 -0
  66. perceptic_core_client/perceptic_core_client/docs/RemoteFileSystemApiDto.md +34 -0
  67. perceptic_core_client/perceptic_core_client/docs/RequestForInputEvent.md +32 -0
  68. perceptic_core_client/perceptic_core_client/docs/ResourceEntryDto.md +30 -0
  69. perceptic_core_client/perceptic_core_client/docs/ResourceId.md +29 -0
  70. perceptic_core_client/perceptic_core_client/docs/ResourceIdentifier.md +36 -0
  71. perceptic_core_client/perceptic_core_client/docs/ResourceMetadataDto.md +38 -0
  72. perceptic_core_client/perceptic_core_client/docs/ResourceTypeDto.md +12 -0
  73. perceptic_core_client/perceptic_core_client/docs/RunStatusDto.md +26 -0
  74. perceptic_core_client/perceptic_core_client/docs/S3ConnectionSettingsApiDto.md +33 -0
  75. perceptic_core_client/perceptic_core_client/docs/S3FileSystemRootMetadataApiDto.md +30 -0
  76. perceptic_core_client/perceptic_core_client/docs/SchemaLocation.md +30 -0
  77. perceptic_core_client/perceptic_core_client/docs/StartExecutionResponse.md +29 -0
  78. perceptic_core_client/perceptic_core_client/docs/UploadFileToManagedFileSystemResponse.md +29 -0
  79. perceptic_core_client/perceptic_core_client/docs/UriResourceApi.md +413 -0
  80. perceptic_core_client/perceptic_core_client/docs/UserResourceApi.md +71 -0
  81. perceptic_core_client/perceptic_core_client/docs/WorkerEvent.md +34 -0
  82. perceptic_core_client/perceptic_core_client/docs/WorkerMetadataDto.md +32 -0
  83. perceptic_core_client/perceptic_core_client/docs/WorkerResourceApi.md +427 -0
  84. perceptic_core_client/perceptic_core_client/exceptions.py +216 -0
  85. perceptic_core_client/perceptic_core_client/models/__init__.py +77 -0
  86. perceptic_core_client/perceptic_core_client/models/action_type.py +38 -0
  87. perceptic_core_client/perceptic_core_client/models/azure_blob_connection_settings_api_dto.py +124 -0
  88. perceptic_core_client/perceptic_core_client/models/azure_blob_file_system_root_metadata_api_dto.py +89 -0
  89. perceptic_core_client/perceptic_core_client/models/connection_api_dto.py +99 -0
  90. perceptic_core_client/perceptic_core_client/models/connection_settings_api_dto.py +165 -0
  91. perceptic_core_client/perceptic_core_client/models/create_connection_request.py +95 -0
  92. perceptic_core_client/perceptic_core_client/models/create_connection_response.py +87 -0
  93. perceptic_core_client/perceptic_core_client/models/create_file_system_response.py +87 -0
  94. perceptic_core_client/perceptic_core_client/models/create_folder_request.py +87 -0
  95. perceptic_core_client/perceptic_core_client/models/create_folder_response.py +87 -0
  96. perceptic_core_client/perceptic_core_client/models/create_indexing_task_request.py +95 -0
  97. perceptic_core_client/perceptic_core_client/models/create_indexing_task_response.py +95 -0
  98. perceptic_core_client/perceptic_core_client/models/create_managed_file_system_request.py +89 -0
  99. perceptic_core_client/perceptic_core_client/models/create_remote_file_system_request.py +97 -0
  100. perceptic_core_client/perceptic_core_client/models/file_system_api_dto.py +165 -0
  101. perceptic_core_client/perceptic_core_client/models/file_system_root_metadata_api_dto.py +165 -0
  102. perceptic_core_client/perceptic_core_client/models/get_connection_response.py +91 -0
  103. perceptic_core_client/perceptic_core_client/models/get_indexer_response.py +91 -0
  104. perceptic_core_client/perceptic_core_client/models/get_indexing_task_response.py +91 -0
  105. perceptic_core_client/perceptic_core_client/models/get_metadata_response.py +91 -0
  106. perceptic_core_client/perceptic_core_client/models/get_parent_response.py +96 -0
  107. perceptic_core_client/perceptic_core_client/models/get_parent_uri_response.py +92 -0
  108. perceptic_core_client/perceptic_core_client/models/get_signed_url_response.py +92 -0
  109. perceptic_core_client/perceptic_core_client/models/get_worker_events_response.py +95 -0
  110. perceptic_core_client/perceptic_core_client/models/get_worker_metadata_response.py +91 -0
  111. perceptic_core_client/perceptic_core_client/models/get_worker_status_response.py +88 -0
  112. perceptic_core_client/perceptic_core_client/models/get_workers_response.py +87 -0
  113. perceptic_core_client/perceptic_core_client/models/indexer_dto.py +91 -0
  114. perceptic_core_client/perceptic_core_client/models/indexing_action_dto.py +107 -0
  115. perceptic_core_client/perceptic_core_client/models/indexing_action_status.py +39 -0
  116. perceptic_core_client/perceptic_core_client/models/indexing_task_dto.py +106 -0
  117. perceptic_core_client/perceptic_core_client/models/indexing_task_status.py +87 -0
  118. perceptic_core_client/perceptic_core_client/models/info_event.py +91 -0
  119. perceptic_core_client/perceptic_core_client/models/json_node.py +130 -0
  120. perceptic_core_client/perceptic_core_client/models/json_node_type.py +44 -0
  121. perceptic_core_client/perceptic_core_client/models/list_all_file_systems_response.py +100 -0
  122. perceptic_core_client/perceptic_core_client/models/list_file_system_response.py +100 -0
  123. perceptic_core_client/perceptic_core_client/models/list_indexers_response.py +100 -0
  124. perceptic_core_client/perceptic_core_client/models/list_indexing_actions_response.py +116 -0
  125. perceptic_core_client/perceptic_core_client/models/managed_file_system_api_dto.py +93 -0
  126. perceptic_core_client/perceptic_core_client/models/me_response.py +95 -0
  127. perceptic_core_client/perceptic_core_client/models/model_schema.py +114 -0
  128. perceptic_core_client/perceptic_core_client/models/paged_list_file_system_response.py +102 -0
  129. perceptic_core_client/perceptic_core_client/models/post_worker_run_request.py +87 -0
  130. perceptic_core_client/perceptic_core_client/models/post_worker_run_response.py +87 -0
  131. perceptic_core_client/perceptic_core_client/models/progress_event.py +91 -0
  132. perceptic_core_client/perceptic_core_client/models/remote_file_system_api_dto.py +101 -0
  133. perceptic_core_client/perceptic_core_client/models/request_for_input_event.py +98 -0
  134. perceptic_core_client/perceptic_core_client/models/resource_entry_dto.py +93 -0
  135. perceptic_core_client/perceptic_core_client/models/resource_id.py +87 -0
  136. perceptic_core_client/perceptic_core_client/models/resource_identifier.py +101 -0
  137. perceptic_core_client/perceptic_core_client/models/resource_metadata_dto.py +122 -0
  138. perceptic_core_client/perceptic_core_client/models/resource_type_dto.py +37 -0
  139. perceptic_core_client/perceptic_core_client/models/run_status_dto.py +44 -0
  140. perceptic_core_client/perceptic_core_client/models/s3_connection_settings_api_dto.py +124 -0
  141. perceptic_core_client/perceptic_core_client/models/s3_file_system_root_metadata_api_dto.py +89 -0
  142. perceptic_core_client/perceptic_core_client/models/schema_location.py +89 -0
  143. perceptic_core_client/perceptic_core_client/models/start_execution_response.py +91 -0
  144. perceptic_core_client/perceptic_core_client/models/upload_file_to_managed_file_system_response.py +87 -0
  145. perceptic_core_client/perceptic_core_client/models/worker_event.py +189 -0
  146. perceptic_core_client/perceptic_core_client/models/worker_metadata_dto.py +93 -0
  147. perceptic_core_client/perceptic_core_client/rest.py +258 -0
  148. perceptic_core_client/perceptic_core_client/test/__init__.py +0 -0
  149. perceptic_core_client/perceptic_core_client/test/test_action_type.py +33 -0
  150. perceptic_core_client/perceptic_core_client/test/test_azure_blob_connection_settings_api_dto.py +59 -0
  151. perceptic_core_client/perceptic_core_client/test/test_azure_blob_file_system_root_metadata_api_dto.py +52 -0
  152. perceptic_core_client/perceptic_core_client/test/test_connection_api_dto.py +55 -0
  153. perceptic_core_client/perceptic_core_client/test/test_connection_resource_api.py +45 -0
  154. perceptic_core_client/perceptic_core_client/test/test_connection_settings_api_dto.py +65 -0
  155. perceptic_core_client/perceptic_core_client/test/test_create_connection_request.py +53 -0
  156. perceptic_core_client/perceptic_core_client/test/test_create_connection_response.py +51 -0
  157. perceptic_core_client/perceptic_core_client/test/test_create_file_system_response.py +51 -0
  158. perceptic_core_client/perceptic_core_client/test/test_create_folder_request.py +51 -0
  159. perceptic_core_client/perceptic_core_client/test/test_create_folder_response.py +51 -0
  160. perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_request.py +57 -0
  161. perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_response.py +64 -0
  162. perceptic_core_client/perceptic_core_client/test/test_create_managed_file_system_request.py +52 -0
  163. perceptic_core_client/perceptic_core_client/test/test_create_remote_file_system_request.py +54 -0
  164. perceptic_core_client/perceptic_core_client/test/test_file_system_api_dto.py +56 -0
  165. perceptic_core_client/perceptic_core_client/test/test_file_system_contents_resource_api.py +87 -0
  166. perceptic_core_client/perceptic_core_client/test/test_file_system_resource_api.py +59 -0
  167. perceptic_core_client/perceptic_core_client/test/test_file_system_root_metadata_api_dto.py +53 -0
  168. perceptic_core_client/perceptic_core_client/test/test_get_connection_response.py +56 -0
  169. perceptic_core_client/perceptic_core_client/test/test_get_indexer_response.py +54 -0
  170. perceptic_core_client/perceptic_core_client/test/test_get_indexing_task_response.py +62 -0
  171. perceptic_core_client/perceptic_core_client/test/test_get_metadata_response.py +61 -0
  172. perceptic_core_client/perceptic_core_client/test/test_get_parent_response.py +52 -0
  173. perceptic_core_client/perceptic_core_client/test/test_get_parent_uri_response.py +51 -0
  174. perceptic_core_client/perceptic_core_client/test/test_get_signed_url_response.py +51 -0
  175. perceptic_core_client/perceptic_core_client/test/test_get_worker_events_response.py +53 -0
  176. perceptic_core_client/perceptic_core_client/test/test_get_worker_metadata_response.py +55 -0
  177. perceptic_core_client/perceptic_core_client/test/test_get_worker_status_response.py +51 -0
  178. perceptic_core_client/perceptic_core_client/test/test_get_workers_response.py +55 -0
  179. perceptic_core_client/perceptic_core_client/test/test_indexer_dto.py +53 -0
  180. perceptic_core_client/perceptic_core_client/test/test_indexer_resource_api.py +45 -0
  181. perceptic_core_client/perceptic_core_client/test/test_indexing_action_dto.py +57 -0
  182. perceptic_core_client/perceptic_core_client/test/test_indexing_action_status.py +33 -0
  183. perceptic_core_client/perceptic_core_client/test/test_indexing_task_dto.py +61 -0
  184. perceptic_core_client/perceptic_core_client/test/test_indexing_task_resource_api.py +59 -0
  185. perceptic_core_client/perceptic_core_client/test/test_indexing_task_status.py +51 -0
  186. perceptic_core_client/perceptic_core_client/test/test_info_event.py +53 -0
  187. perceptic_core_client/perceptic_core_client/test/test_json_node.py +72 -0
  188. perceptic_core_client/perceptic_core_client/test/test_json_node_type.py +33 -0
  189. perceptic_core_client/perceptic_core_client/test/test_list_all_file_systems_response.py +53 -0
  190. perceptic_core_client/perceptic_core_client/test/test_list_file_system_response.py +63 -0
  191. perceptic_core_client/perceptic_core_client/test/test_list_indexers_response.py +56 -0
  192. perceptic_core_client/perceptic_core_client/test/test_list_indexing_actions_response.py +68 -0
  193. perceptic_core_client/perceptic_core_client/test/test_managed_file_system_api_dto.py +54 -0
  194. perceptic_core_client/perceptic_core_client/test/test_me_response.py +55 -0
  195. perceptic_core_client/perceptic_core_client/test/test_model_schema.py +66 -0
  196. perceptic_core_client/perceptic_core_client/test/test_paged_list_file_system_response.py +65 -0
  197. perceptic_core_client/perceptic_core_client/test/test_post_worker_run_request.py +52 -0
  198. perceptic_core_client/perceptic_core_client/test/test_post_worker_run_response.py +51 -0
  199. perceptic_core_client/perceptic_core_client/test/test_progress_event.py +53 -0
  200. perceptic_core_client/perceptic_core_client/test/test_remote_file_system_api_dto.py +56 -0
  201. perceptic_core_client/perceptic_core_client/test/test_request_for_input_event.py +54 -0
  202. perceptic_core_client/perceptic_core_client/test/test_resource_entry_dto.py +62 -0
  203. perceptic_core_client/perceptic_core_client/test/test_resource_id.py +51 -0
  204. perceptic_core_client/perceptic_core_client/test/test_resource_identifier.py +58 -0
  205. perceptic_core_client/perceptic_core_client/test/test_resource_metadata_dto.py +60 -0
  206. perceptic_core_client/perceptic_core_client/test/test_resource_type_dto.py +33 -0
  207. perceptic_core_client/perceptic_core_client/test/test_run_status_dto.py +33 -0
  208. perceptic_core_client/perceptic_core_client/test/test_s3_connection_settings_api_dto.py +59 -0
  209. perceptic_core_client/perceptic_core_client/test/test_s3_file_system_root_metadata_api_dto.py +52 -0
  210. perceptic_core_client/perceptic_core_client/test/test_schema_location.py +54 -0
  211. perceptic_core_client/perceptic_core_client/test/test_start_execution_response.py +62 -0
  212. perceptic_core_client/perceptic_core_client/test/test_upload_file_to_managed_file_system_response.py +51 -0
  213. perceptic_core_client/perceptic_core_client/test/test_uri_resource_api.py +73 -0
  214. perceptic_core_client/perceptic_core_client/test/test_user_resource_api.py +38 -0
  215. perceptic_core_client/perceptic_core_client/test/test_worker_event.py +56 -0
  216. perceptic_core_client/perceptic_core_client/test/test_worker_metadata_dto.py +54 -0
  217. perceptic_core_client/perceptic_core_client/test/test_worker_resource_api.py +73 -0
  218. perceptic_core_client/perceptic_core_client_README.md +181 -0
  219. {perceptic_core_client-0.6.0.dist-info → perceptic_core_client-0.6.1.dist-info}/METADATA +1 -1
  220. perceptic_core_client-0.6.1.dist-info/RECORD +222 -0
  221. perceptic_core_client-0.6.1.dist-info/top_level.txt +1 -0
  222. perceptic_core_client-0.6.0.dist-info/RECORD +0 -4
  223. perceptic_core_client-0.6.0.dist-info/top_level.txt +0 -1
  224. {perceptic_core_client-0.6.0.dist-info → perceptic_core_client-0.6.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,427 @@
1
+ # perceptic_core_client.WorkerResourceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**api_v1_workers_get**](WorkerResourceApi.md#api_v1_workers_get) | **GET** /api/v1/workers | Get Workers
8
+ [**api_v1_workers_worker_id_get**](WorkerResourceApi.md#api_v1_workers_worker_id_get) | **GET** /api/v1/workers/{workerId} | Get Worker Metadata
9
+ [**api_v1_workers_worker_id_runs_post**](WorkerResourceApi.md#api_v1_workers_worker_id_runs_post) | **POST** /api/v1/workers/{workerId}/runs | Post Worker Run
10
+ [**api_v1_workers_worker_id_runs_run_rid_events_get**](WorkerResourceApi.md#api_v1_workers_worker_id_runs_run_rid_events_get) | **GET** /api/v1/workers/{workerId}/runs/{runRid}/events | Get Worker Run Events
11
+ [**api_v1_workers_worker_id_runs_run_rid_resume_post**](WorkerResourceApi.md#api_v1_workers_worker_id_runs_run_rid_resume_post) | **POST** /api/v1/workers/{workerId}/runs/{runRid}/resume | Post Resume Run
12
+ [**api_v1_workers_worker_id_runs_run_rid_status_get**](WorkerResourceApi.md#api_v1_workers_worker_id_runs_run_rid_status_get) | **GET** /api/v1/workers/{workerId}/runs/{runRid}/status | Get Worker Run Status
13
+
14
+
15
+ # **api_v1_workers_get**
16
+ > GetWorkersResponse api_v1_workers_get()
17
+
18
+ Get Workers
19
+
20
+ ### Example
21
+
22
+
23
+ ```python
24
+ import perceptic_core_client
25
+ from perceptic_core_client.models.get_workers_response import GetWorkersResponse
26
+ from perceptic_core_client.rest import ApiException
27
+ from pprint import pprint
28
+
29
+ # Defining the host is optional and defaults to http://localhost
30
+ # See configuration.py for a list of all supported configuration parameters.
31
+ configuration = perceptic_core_client.Configuration(
32
+ host = "http://localhost"
33
+ )
34
+
35
+
36
+ # Enter a context with an instance of the API client
37
+ with perceptic_core_client.ApiClient(configuration) as api_client:
38
+ # Create an instance of the API class
39
+ api_instance = perceptic_core_client.WorkerResourceApi(api_client)
40
+
41
+ try:
42
+ # Get Workers
43
+ api_response = api_instance.api_v1_workers_get()
44
+ print("The response of WorkerResourceApi->api_v1_workers_get:\n")
45
+ pprint(api_response)
46
+ except Exception as e:
47
+ print("Exception when calling WorkerResourceApi->api_v1_workers_get: %s\n" % e)
48
+ ```
49
+
50
+
51
+
52
+ ### Parameters
53
+
54
+ This endpoint does not need any parameter.
55
+
56
+ ### Return type
57
+
58
+ [**GetWorkersResponse**](GetWorkersResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: Not defined
67
+ - **Accept**: application/json
68
+
69
+ ### HTTP response details
70
+
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ **200** | OK | - |
74
+
75
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
76
+
77
+ # **api_v1_workers_worker_id_get**
78
+ > GetWorkerMetadataResponse api_v1_workers_worker_id_get(worker_id, version=version)
79
+
80
+ Get Worker Metadata
81
+
82
+ ### Example
83
+
84
+
85
+ ```python
86
+ import perceptic_core_client
87
+ from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
88
+ from perceptic_core_client.rest import ApiException
89
+ from pprint import pprint
90
+
91
+ # Defining the host is optional and defaults to http://localhost
92
+ # See configuration.py for a list of all supported configuration parameters.
93
+ configuration = perceptic_core_client.Configuration(
94
+ host = "http://localhost"
95
+ )
96
+
97
+
98
+ # Enter a context with an instance of the API client
99
+ with perceptic_core_client.ApiClient(configuration) as api_client:
100
+ # Create an instance of the API class
101
+ api_instance = perceptic_core_client.WorkerResourceApi(api_client)
102
+ worker_id = 'worker_id_example' # str |
103
+ version = 'version_example' # str | (optional)
104
+
105
+ try:
106
+ # Get Worker Metadata
107
+ api_response = api_instance.api_v1_workers_worker_id_get(worker_id, version=version)
108
+ print("The response of WorkerResourceApi->api_v1_workers_worker_id_get:\n")
109
+ pprint(api_response)
110
+ except Exception as e:
111
+ print("Exception when calling WorkerResourceApi->api_v1_workers_worker_id_get: %s\n" % e)
112
+ ```
113
+
114
+
115
+
116
+ ### Parameters
117
+
118
+
119
+ Name | Type | Description | Notes
120
+ ------------- | ------------- | ------------- | -------------
121
+ **worker_id** | **str**| |
122
+ **version** | **str**| | [optional]
123
+
124
+ ### Return type
125
+
126
+ [**GetWorkerMetadataResponse**](GetWorkerMetadataResponse.md)
127
+
128
+ ### Authorization
129
+
130
+ No authorization required
131
+
132
+ ### HTTP request headers
133
+
134
+ - **Content-Type**: Not defined
135
+ - **Accept**: application/json
136
+
137
+ ### HTTP response details
138
+
139
+ | Status code | Description | Response headers |
140
+ |-------------|-------------|------------------|
141
+ **200** | OK | - |
142
+
143
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
144
+
145
+ # **api_v1_workers_worker_id_runs_post**
146
+ > PostWorkerRunResponse api_v1_workers_worker_id_runs_post(worker_id, post_worker_run_request, version=version)
147
+
148
+ Post Worker Run
149
+
150
+ ### Example
151
+
152
+
153
+ ```python
154
+ import perceptic_core_client
155
+ from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
156
+ from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse
157
+ from perceptic_core_client.rest import ApiException
158
+ from pprint import pprint
159
+
160
+ # Defining the host is optional and defaults to http://localhost
161
+ # See configuration.py for a list of all supported configuration parameters.
162
+ configuration = perceptic_core_client.Configuration(
163
+ host = "http://localhost"
164
+ )
165
+
166
+
167
+ # Enter a context with an instance of the API client
168
+ with perceptic_core_client.ApiClient(configuration) as api_client:
169
+ # Create an instance of the API class
170
+ api_instance = perceptic_core_client.WorkerResourceApi(api_client)
171
+ worker_id = 'worker_id_example' # str |
172
+ post_worker_run_request = perceptic_core_client.PostWorkerRunRequest() # PostWorkerRunRequest |
173
+ version = 'version_example' # str | (optional)
174
+
175
+ try:
176
+ # Post Worker Run
177
+ api_response = api_instance.api_v1_workers_worker_id_runs_post(worker_id, post_worker_run_request, version=version)
178
+ print("The response of WorkerResourceApi->api_v1_workers_worker_id_runs_post:\n")
179
+ pprint(api_response)
180
+ except Exception as e:
181
+ print("Exception when calling WorkerResourceApi->api_v1_workers_worker_id_runs_post: %s\n" % e)
182
+ ```
183
+
184
+
185
+
186
+ ### Parameters
187
+
188
+
189
+ Name | Type | Description | Notes
190
+ ------------- | ------------- | ------------- | -------------
191
+ **worker_id** | **str**| |
192
+ **post_worker_run_request** | [**PostWorkerRunRequest**](PostWorkerRunRequest.md)| |
193
+ **version** | **str**| | [optional]
194
+
195
+ ### Return type
196
+
197
+ [**PostWorkerRunResponse**](PostWorkerRunResponse.md)
198
+
199
+ ### Authorization
200
+
201
+ No authorization required
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: application/json
206
+ - **Accept**: application/json
207
+
208
+ ### HTTP response details
209
+
210
+ | Status code | Description | Response headers |
211
+ |-------------|-------------|------------------|
212
+ **200** | OK | - |
213
+ **400** | Bad Request | - |
214
+
215
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
216
+
217
+ # **api_v1_workers_worker_id_runs_run_rid_events_get**
218
+ > GetWorkerEventsResponse api_v1_workers_worker_id_runs_run_rid_events_get(run_rid, worker_id, limit=limit, offset=offset)
219
+
220
+ Get Worker Run Events
221
+
222
+ ### Example
223
+
224
+
225
+ ```python
226
+ import perceptic_core_client
227
+ from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse
228
+ from perceptic_core_client.rest import ApiException
229
+ from pprint import pprint
230
+
231
+ # Defining the host is optional and defaults to http://localhost
232
+ # See configuration.py for a list of all supported configuration parameters.
233
+ configuration = perceptic_core_client.Configuration(
234
+ host = "http://localhost"
235
+ )
236
+
237
+
238
+ # Enter a context with an instance of the API client
239
+ with perceptic_core_client.ApiClient(configuration) as api_client:
240
+ # Create an instance of the API class
241
+ api_instance = perceptic_core_client.WorkerResourceApi(api_client)
242
+ run_rid = 'run_rid_example' # str |
243
+ worker_id = 'worker_id_example' # str |
244
+ limit = 50 # int | (optional) (default to 50)
245
+ offset = 0 # int | (optional) (default to 0)
246
+
247
+ try:
248
+ # Get Worker Run Events
249
+ api_response = api_instance.api_v1_workers_worker_id_runs_run_rid_events_get(run_rid, worker_id, limit=limit, offset=offset)
250
+ print("The response of WorkerResourceApi->api_v1_workers_worker_id_runs_run_rid_events_get:\n")
251
+ pprint(api_response)
252
+ except Exception as e:
253
+ print("Exception when calling WorkerResourceApi->api_v1_workers_worker_id_runs_run_rid_events_get: %s\n" % e)
254
+ ```
255
+
256
+
257
+
258
+ ### Parameters
259
+
260
+
261
+ Name | Type | Description | Notes
262
+ ------------- | ------------- | ------------- | -------------
263
+ **run_rid** | **str**| |
264
+ **worker_id** | **str**| |
265
+ **limit** | **int**| | [optional] [default to 50]
266
+ **offset** | **int**| | [optional] [default to 0]
267
+
268
+ ### Return type
269
+
270
+ [**GetWorkerEventsResponse**](GetWorkerEventsResponse.md)
271
+
272
+ ### Authorization
273
+
274
+ No authorization required
275
+
276
+ ### HTTP request headers
277
+
278
+ - **Content-Type**: Not defined
279
+ - **Accept**: application/json
280
+
281
+ ### HTTP response details
282
+
283
+ | Status code | Description | Response headers |
284
+ |-------------|-------------|------------------|
285
+ **200** | OK | - |
286
+
287
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
288
+
289
+ # **api_v1_workers_worker_id_runs_run_rid_resume_post**
290
+ > object api_v1_workers_worker_id_runs_run_rid_resume_post(run_rid, worker_id, post_worker_run_request)
291
+
292
+ Post Resume Run
293
+
294
+ ### Example
295
+
296
+
297
+ ```python
298
+ import perceptic_core_client
299
+ from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
300
+ from perceptic_core_client.rest import ApiException
301
+ from pprint import pprint
302
+
303
+ # Defining the host is optional and defaults to http://localhost
304
+ # See configuration.py for a list of all supported configuration parameters.
305
+ configuration = perceptic_core_client.Configuration(
306
+ host = "http://localhost"
307
+ )
308
+
309
+
310
+ # Enter a context with an instance of the API client
311
+ with perceptic_core_client.ApiClient(configuration) as api_client:
312
+ # Create an instance of the API class
313
+ api_instance = perceptic_core_client.WorkerResourceApi(api_client)
314
+ run_rid = 'run_rid_example' # str |
315
+ worker_id = 'worker_id_example' # str |
316
+ post_worker_run_request = perceptic_core_client.PostWorkerRunRequest() # PostWorkerRunRequest |
317
+
318
+ try:
319
+ # Post Resume Run
320
+ api_response = api_instance.api_v1_workers_worker_id_runs_run_rid_resume_post(run_rid, worker_id, post_worker_run_request)
321
+ print("The response of WorkerResourceApi->api_v1_workers_worker_id_runs_run_rid_resume_post:\n")
322
+ pprint(api_response)
323
+ except Exception as e:
324
+ print("Exception when calling WorkerResourceApi->api_v1_workers_worker_id_runs_run_rid_resume_post: %s\n" % e)
325
+ ```
326
+
327
+
328
+
329
+ ### Parameters
330
+
331
+
332
+ Name | Type | Description | Notes
333
+ ------------- | ------------- | ------------- | -------------
334
+ **run_rid** | **str**| |
335
+ **worker_id** | **str**| |
336
+ **post_worker_run_request** | [**PostWorkerRunRequest**](PostWorkerRunRequest.md)| |
337
+
338
+ ### Return type
339
+
340
+ **object**
341
+
342
+ ### Authorization
343
+
344
+ No authorization required
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: application/json
349
+ - **Accept**: application/json
350
+
351
+ ### HTTP response details
352
+
353
+ | Status code | Description | Response headers |
354
+ |-------------|-------------|------------------|
355
+ **200** | OK | - |
356
+ **400** | Bad Request | - |
357
+
358
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
359
+
360
+ # **api_v1_workers_worker_id_runs_run_rid_status_get**
361
+ > GetWorkerStatusResponse api_v1_workers_worker_id_runs_run_rid_status_get(run_rid, worker_id)
362
+
363
+ Get Worker Run Status
364
+
365
+ ### Example
366
+
367
+
368
+ ```python
369
+ import perceptic_core_client
370
+ from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse
371
+ from perceptic_core_client.rest import ApiException
372
+ from pprint import pprint
373
+
374
+ # Defining the host is optional and defaults to http://localhost
375
+ # See configuration.py for a list of all supported configuration parameters.
376
+ configuration = perceptic_core_client.Configuration(
377
+ host = "http://localhost"
378
+ )
379
+
380
+
381
+ # Enter a context with an instance of the API client
382
+ with perceptic_core_client.ApiClient(configuration) as api_client:
383
+ # Create an instance of the API class
384
+ api_instance = perceptic_core_client.WorkerResourceApi(api_client)
385
+ run_rid = 'run_rid_example' # str |
386
+ worker_id = 'worker_id_example' # str |
387
+
388
+ try:
389
+ # Get Worker Run Status
390
+ api_response = api_instance.api_v1_workers_worker_id_runs_run_rid_status_get(run_rid, worker_id)
391
+ print("The response of WorkerResourceApi->api_v1_workers_worker_id_runs_run_rid_status_get:\n")
392
+ pprint(api_response)
393
+ except Exception as e:
394
+ print("Exception when calling WorkerResourceApi->api_v1_workers_worker_id_runs_run_rid_status_get: %s\n" % e)
395
+ ```
396
+
397
+
398
+
399
+ ### Parameters
400
+
401
+
402
+ Name | Type | Description | Notes
403
+ ------------- | ------------- | ------------- | -------------
404
+ **run_rid** | **str**| |
405
+ **worker_id** | **str**| |
406
+
407
+ ### Return type
408
+
409
+ [**GetWorkerStatusResponse**](GetWorkerStatusResponse.md)
410
+
411
+ ### Authorization
412
+
413
+ No authorization required
414
+
415
+ ### HTTP request headers
416
+
417
+ - **Content-Type**: Not defined
418
+ - **Accept**: application/json
419
+
420
+ ### HTTP response details
421
+
422
+ | Status code | Description | Response headers |
423
+ |-------------|-------------|------------------|
424
+ **200** | OK | - |
425
+
426
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
427
+
@@ -0,0 +1,216 @@
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
+ from typing import Any, Optional
15
+ from typing_extensions import Self
16
+
17
+ class OpenApiException(Exception):
18
+ """The base exception class for all OpenAPIExceptions"""
19
+
20
+
21
+ class ApiTypeError(OpenApiException, TypeError):
22
+ def __init__(self, msg, path_to_item=None, valid_classes=None,
23
+ key_type=None) -> None:
24
+ """ Raises an exception for TypeErrors
25
+
26
+ Args:
27
+ msg (str): the exception message
28
+
29
+ Keyword Args:
30
+ path_to_item (list): a list of keys an indices to get to the
31
+ current_item
32
+ None if unset
33
+ valid_classes (tuple): the primitive classes that current item
34
+ should be an instance of
35
+ None if unset
36
+ key_type (bool): False if our value is a value in a dict
37
+ True if it is a key in a dict
38
+ False if our item is an item in a list
39
+ None if unset
40
+ """
41
+ self.path_to_item = path_to_item
42
+ self.valid_classes = valid_classes
43
+ self.key_type = key_type
44
+ full_msg = msg
45
+ if path_to_item:
46
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
47
+ super(ApiTypeError, self).__init__(full_msg)
48
+
49
+
50
+ class ApiValueError(OpenApiException, ValueError):
51
+ def __init__(self, msg, path_to_item=None) -> None:
52
+ """
53
+ Args:
54
+ msg (str): the exception message
55
+
56
+ Keyword Args:
57
+ path_to_item (list) the path to the exception in the
58
+ received_data dict. None if unset
59
+ """
60
+
61
+ self.path_to_item = path_to_item
62
+ full_msg = msg
63
+ if path_to_item:
64
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
65
+ super(ApiValueError, self).__init__(full_msg)
66
+
67
+
68
+ class ApiAttributeError(OpenApiException, AttributeError):
69
+ def __init__(self, msg, path_to_item=None) -> None:
70
+ """
71
+ Raised when an attribute reference or assignment fails.
72
+
73
+ Args:
74
+ msg (str): the exception message
75
+
76
+ Keyword Args:
77
+ path_to_item (None/list) the path to the exception in the
78
+ received_data dict
79
+ """
80
+ self.path_to_item = path_to_item
81
+ full_msg = msg
82
+ if path_to_item:
83
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
84
+ super(ApiAttributeError, self).__init__(full_msg)
85
+
86
+
87
+ class ApiKeyError(OpenApiException, KeyError):
88
+ def __init__(self, msg, path_to_item=None) -> None:
89
+ """
90
+ Args:
91
+ msg (str): the exception message
92
+
93
+ Keyword Args:
94
+ path_to_item (None/list) the path to the exception in the
95
+ received_data dict
96
+ """
97
+ self.path_to_item = path_to_item
98
+ full_msg = msg
99
+ if path_to_item:
100
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
101
+ super(ApiKeyError, self).__init__(full_msg)
102
+
103
+
104
+ class ApiException(OpenApiException):
105
+
106
+ def __init__(
107
+ self,
108
+ status=None,
109
+ reason=None,
110
+ http_resp=None,
111
+ *,
112
+ body: Optional[str] = None,
113
+ data: Optional[Any] = None,
114
+ ) -> None:
115
+ self.status = status
116
+ self.reason = reason
117
+ self.body = body
118
+ self.data = data
119
+ self.headers = None
120
+
121
+ if http_resp:
122
+ if self.status is None:
123
+ self.status = http_resp.status
124
+ if self.reason is None:
125
+ self.reason = http_resp.reason
126
+ if self.body is None:
127
+ try:
128
+ self.body = http_resp.data.decode('utf-8')
129
+ except Exception:
130
+ pass
131
+ self.headers = http_resp.getheaders()
132
+
133
+ @classmethod
134
+ def from_response(
135
+ cls,
136
+ *,
137
+ http_resp,
138
+ body: Optional[str],
139
+ data: Optional[Any],
140
+ ) -> Self:
141
+ if http_resp.status == 400:
142
+ raise BadRequestException(http_resp=http_resp, body=body, data=data)
143
+
144
+ if http_resp.status == 401:
145
+ raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
146
+
147
+ if http_resp.status == 403:
148
+ raise ForbiddenException(http_resp=http_resp, body=body, data=data)
149
+
150
+ if http_resp.status == 404:
151
+ raise NotFoundException(http_resp=http_resp, body=body, data=data)
152
+
153
+ # Added new conditions for 409 and 422
154
+ if http_resp.status == 409:
155
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
156
+
157
+ if http_resp.status == 422:
158
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
159
+
160
+ if 500 <= http_resp.status <= 599:
161
+ raise ServiceException(http_resp=http_resp, body=body, data=data)
162
+ raise ApiException(http_resp=http_resp, body=body, data=data)
163
+
164
+ def __str__(self):
165
+ """Custom error messages for exception"""
166
+ error_message = "({0})\n"\
167
+ "Reason: {1}\n".format(self.status, self.reason)
168
+ if self.headers:
169
+ error_message += "HTTP response headers: {0}\n".format(
170
+ self.headers)
171
+
172
+ if self.data or self.body:
173
+ error_message += "HTTP response body: {0}\n".format(self.data or self.body)
174
+
175
+ return error_message
176
+
177
+
178
+ class BadRequestException(ApiException):
179
+ pass
180
+
181
+
182
+ class NotFoundException(ApiException):
183
+ pass
184
+
185
+
186
+ class UnauthorizedException(ApiException):
187
+ pass
188
+
189
+
190
+ class ForbiddenException(ApiException):
191
+ pass
192
+
193
+
194
+ class ServiceException(ApiException):
195
+ pass
196
+
197
+
198
+ class ConflictException(ApiException):
199
+ """Exception for HTTP 409 Conflict."""
200
+ pass
201
+
202
+
203
+ class UnprocessableEntityException(ApiException):
204
+ """Exception for HTTP 422 Unprocessable Entity."""
205
+ pass
206
+
207
+
208
+ def render_path(path_to_item):
209
+ """Returns a string representation of a path"""
210
+ result = ""
211
+ for pth in path_to_item:
212
+ if isinstance(pth, int):
213
+ result += "[{0}]".format(pth)
214
+ else:
215
+ result += "['{0}']".format(pth)
216
+ return result