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,91 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class GetWorkerMetadataResponse(BaseModel):
27
+ """
28
+ GetWorkerMetadataResponse
29
+ """ # noqa: E501
30
+ worker_metadata: Optional[WorkerMetadataDto] = Field(default=None, alias="workerMetadata")
31
+ __properties: ClassVar[List[str]] = ["workerMetadata"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of GetWorkerMetadataResponse from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ # override the default output from pydantic by calling `to_dict()` of worker_metadata
73
+ if self.worker_metadata:
74
+ _dict['workerMetadata'] = self.worker_metadata.to_dict()
75
+ return _dict
76
+
77
+ @classmethod
78
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
79
+ """Create an instance of GetWorkerMetadataResponse from a dict"""
80
+ if obj is None:
81
+ return None
82
+
83
+ if not isinstance(obj, dict):
84
+ return cls.model_validate(obj)
85
+
86
+ _obj = cls.model_validate({
87
+ "workerMetadata": WorkerMetadataDto.from_dict(obj["workerMetadata"]) if obj.get("workerMetadata") is not None else None
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,88 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from perceptic_core_client.models.run_status_dto import RunStatusDto
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class GetWorkerStatusResponse(BaseModel):
27
+ """
28
+ GetWorkerStatusResponse
29
+ """ # noqa: E501
30
+ run_status: Optional[RunStatusDto] = Field(default=None, alias="runStatus")
31
+ __properties: ClassVar[List[str]] = ["runStatus"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of GetWorkerStatusResponse from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of GetWorkerStatusResponse from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "runStatus": obj.get("runStatus")
85
+ })
86
+ return _obj
87
+
88
+
@@ -0,0 +1,87 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class GetWorkersResponse(BaseModel):
26
+ """
27
+ GetWorkersResponse
28
+ """ # noqa: E501
29
+ worker_identifiers: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="workerIdentifiers")
30
+ __properties: ClassVar[List[str]] = ["workerIdentifiers"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of GetWorkersResponse from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of GetWorkersResponse from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "workerIdentifiers": obj.get("workerIdentifiers")
84
+ })
85
+ return _obj
86
+
87
+
@@ -0,0 +1,91 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class IndexerDto(BaseModel):
26
+ """
27
+ Indexer service details, including supported index version range and capabilities.
28
+ """ # noqa: E501
29
+ indexer_rid: Optional[StrictStr] = Field(default=None, alias="indexerRid")
30
+ target_index_version: Optional[StrictInt] = Field(default=None, alias="targetIndexVersion")
31
+ minimum_supported_index_version: Optional[StrictInt] = Field(default=None, alias="minimumSupportedIndexVersion")
32
+ __properties: ClassVar[List[str]] = ["indexerRid", "targetIndexVersion", "minimumSupportedIndexVersion"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of IndexerDto from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of IndexerDto from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "indexerRid": obj.get("indexerRid"),
86
+ "targetIndexVersion": obj.get("targetIndexVersion"),
87
+ "minimumSupportedIndexVersion": obj.get("minimumSupportedIndexVersion")
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,107 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from perceptic_core_client.models.action_type import ActionType
24
+ from perceptic_core_client.models.indexing_action_status import IndexingActionStatus
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class IndexingActionDto(BaseModel):
29
+ """
30
+ IndexingActionDto
31
+ """ # noqa: E501
32
+ action_type: Optional[ActionType] = Field(default=None, alias="actionType")
33
+ target_uri: Optional[StrictStr] = Field(default=None, alias="targetUri")
34
+ target_minimum_version: Optional[StrictInt] = Field(default=None, alias="targetMinimumVersion")
35
+ status: Optional[IndexingActionStatus] = None
36
+ error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage")
37
+ executed_at: Optional[datetime] = Field(default=None, alias="executedAt")
38
+ reason: Optional[StrictStr] = None
39
+ __properties: ClassVar[List[str]] = ["actionType", "targetUri", "targetMinimumVersion", "status", "errorMessage", "executedAt", "reason"]
40
+
41
+ model_config = ConfigDict(
42
+ populate_by_name=True,
43
+ validate_assignment=True,
44
+ protected_namespaces=(),
45
+ )
46
+
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.model_dump(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> Optional[Self]:
59
+ """Create an instance of IndexingActionDto from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self) -> Dict[str, Any]:
63
+ """Return the dictionary representation of the model using alias.
64
+
65
+ This has the following differences from calling pydantic's
66
+ `self.model_dump(by_alias=True)`:
67
+
68
+ * `None` is only added to the output dict for nullable fields that
69
+ were set at model initialization. Other fields with value `None`
70
+ are ignored.
71
+ """
72
+ excluded_fields: Set[str] = set([
73
+ ])
74
+
75
+ _dict = self.model_dump(
76
+ by_alias=True,
77
+ exclude=excluded_fields,
78
+ exclude_none=True,
79
+ )
80
+ # set to None if error_message (nullable) is None
81
+ # and model_fields_set contains the field
82
+ if self.error_message is None and "error_message" in self.model_fields_set:
83
+ _dict['errorMessage'] = None
84
+
85
+ return _dict
86
+
87
+ @classmethod
88
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
89
+ """Create an instance of IndexingActionDto from a dict"""
90
+ if obj is None:
91
+ return None
92
+
93
+ if not isinstance(obj, dict):
94
+ return cls.model_validate(obj)
95
+
96
+ _obj = cls.model_validate({
97
+ "actionType": obj.get("actionType"),
98
+ "targetUri": obj.get("targetUri"),
99
+ "targetMinimumVersion": obj.get("targetMinimumVersion"),
100
+ "status": obj.get("status"),
101
+ "errorMessage": obj.get("errorMessage"),
102
+ "executedAt": obj.get("executedAt"),
103
+ "reason": obj.get("reason")
104
+ })
105
+ return _obj
106
+
107
+
@@ -0,0 +1,39 @@
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
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class IndexingActionStatus(str, Enum):
22
+ """
23
+ IndexingActionStatus
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ PENDING = 'PENDING'
30
+ SUCCEEDED = 'SUCCEEDED'
31
+ EXECUTING = 'EXECUTING'
32
+ FAILED = 'FAILED'
33
+
34
+ @classmethod
35
+ def from_json(cls, json_str: str) -> Self:
36
+ """Create an instance of IndexingActionStatus from a JSON string"""
37
+ return cls(json.loads(json_str))
38
+
39
+
@@ -0,0 +1,106 @@
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
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from perceptic_core_client.models.indexing_task_status import IndexingTaskStatus
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class IndexingTaskDto(BaseModel):
28
+ """
29
+ IndexingTaskDto
30
+ """ # noqa: E501
31
+ task_rid: Optional[StrictStr] = Field(default=None, alias="taskRid")
32
+ indexer_rid: Optional[StrictStr] = Field(default=None, alias="indexerRid")
33
+ folder_uri: Optional[StrictStr] = Field(default=None, alias="folderUri")
34
+ namespace: Optional[StrictStr] = None
35
+ target_minimum_version: Optional[StrictInt] = Field(default=None, alias="targetMinimumVersion")
36
+ settings: Optional[Dict[str, Any]] = None
37
+ created_at: Optional[datetime] = Field(default=None, alias="createdAt")
38
+ status: Optional[IndexingTaskStatus] = None
39
+ __properties: ClassVar[List[str]] = ["taskRid", "indexerRid", "folderUri", "namespace", "targetMinimumVersion", "settings", "createdAt", "status"]
40
+
41
+ model_config = ConfigDict(
42
+ populate_by_name=True,
43
+ validate_assignment=True,
44
+ protected_namespaces=(),
45
+ )
46
+
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.model_dump(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> Optional[Self]:
59
+ """Create an instance of IndexingTaskDto from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self) -> Dict[str, Any]:
63
+ """Return the dictionary representation of the model using alias.
64
+
65
+ This has the following differences from calling pydantic's
66
+ `self.model_dump(by_alias=True)`:
67
+
68
+ * `None` is only added to the output dict for nullable fields that
69
+ were set at model initialization. Other fields with value `None`
70
+ are ignored.
71
+ """
72
+ excluded_fields: Set[str] = set([
73
+ ])
74
+
75
+ _dict = self.model_dump(
76
+ by_alias=True,
77
+ exclude=excluded_fields,
78
+ exclude_none=True,
79
+ )
80
+ # override the default output from pydantic by calling `to_dict()` of status
81
+ if self.status:
82
+ _dict['status'] = self.status.to_dict()
83
+ return _dict
84
+
85
+ @classmethod
86
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
+ """Create an instance of IndexingTaskDto from a dict"""
88
+ if obj is None:
89
+ return None
90
+
91
+ if not isinstance(obj, dict):
92
+ return cls.model_validate(obj)
93
+
94
+ _obj = cls.model_validate({
95
+ "taskRid": obj.get("taskRid"),
96
+ "indexerRid": obj.get("indexerRid"),
97
+ "folderUri": obj.get("folderUri"),
98
+ "namespace": obj.get("namespace"),
99
+ "targetMinimumVersion": obj.get("targetMinimumVersion"),
100
+ "settings": obj.get("settings"),
101
+ "createdAt": obj.get("createdAt"),
102
+ "status": IndexingTaskStatus.from_dict(obj["status"]) if obj.get("status") is not None else None
103
+ })
104
+ return _obj
105
+
106
+