perceptic-core-client 0.6.0__py3-none-any.whl → 0.6.2__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 (225) 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.2.dist-info/METADATA +93 -0
  220. perceptic_core_client-0.6.2.dist-info/RECORD +222 -0
  221. perceptic_core_client-0.6.2.dist-info/top_level.txt +1 -0
  222. perceptic_core_client-0.6.0.dist-info/METADATA +0 -179
  223. perceptic_core_client-0.6.0.dist-info/RECORD +0 -4
  224. perceptic_core_client-0.6.0.dist-info/top_level.txt +0 -1
  225. {perceptic_core_client-0.6.0.dist-info → perceptic_core_client-0.6.2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,21 @@
1
+ """API response object."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Optional, Generic, Mapping, TypeVar
5
+ from pydantic import Field, StrictInt, StrictBytes, BaseModel
6
+
7
+ T = TypeVar("T")
8
+
9
+ class ApiResponse(BaseModel, Generic[T]):
10
+ """
11
+ API response object
12
+ """
13
+
14
+ status_code: StrictInt = Field(description="HTTP status code")
15
+ headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers")
16
+ data: T = Field(description="Deserialized data given the data type")
17
+ raw_data: StrictBytes = Field(description="Raw data (HTTP response body)")
18
+
19
+ model_config = {
20
+ "arbitrary_types_allowed": True
21
+ }
@@ -0,0 +1,573 @@
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 copy
16
+ import http.client as httplib
17
+ import logging
18
+ from logging import FileHandler
19
+ import multiprocessing
20
+ import sys
21
+ from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
22
+ from typing_extensions import NotRequired, Self
23
+
24
+ import urllib3
25
+
26
+
27
+ JSON_SCHEMA_VALIDATION_KEYWORDS = {
28
+ 'multipleOf', 'maximum', 'exclusiveMaximum',
29
+ 'minimum', 'exclusiveMinimum', 'maxLength',
30
+ 'minLength', 'pattern', 'maxItems', 'minItems'
31
+ }
32
+
33
+ ServerVariablesT = Dict[str, str]
34
+
35
+ GenericAuthSetting = TypedDict(
36
+ "GenericAuthSetting",
37
+ {
38
+ "type": str,
39
+ "in": str,
40
+ "key": str,
41
+ "value": str,
42
+ },
43
+ )
44
+
45
+
46
+ OAuth2AuthSetting = TypedDict(
47
+ "OAuth2AuthSetting",
48
+ {
49
+ "type": Literal["oauth2"],
50
+ "in": Literal["header"],
51
+ "key": Literal["Authorization"],
52
+ "value": str,
53
+ },
54
+ )
55
+
56
+
57
+ APIKeyAuthSetting = TypedDict(
58
+ "APIKeyAuthSetting",
59
+ {
60
+ "type": Literal["api_key"],
61
+ "in": str,
62
+ "key": str,
63
+ "value": Optional[str],
64
+ },
65
+ )
66
+
67
+
68
+ BasicAuthSetting = TypedDict(
69
+ "BasicAuthSetting",
70
+ {
71
+ "type": Literal["basic"],
72
+ "in": Literal["header"],
73
+ "key": Literal["Authorization"],
74
+ "value": Optional[str],
75
+ },
76
+ )
77
+
78
+
79
+ BearerFormatAuthSetting = TypedDict(
80
+ "BearerFormatAuthSetting",
81
+ {
82
+ "type": Literal["bearer"],
83
+ "in": Literal["header"],
84
+ "format": Literal["JWT"],
85
+ "key": Literal["Authorization"],
86
+ "value": str,
87
+ },
88
+ )
89
+
90
+
91
+ BearerAuthSetting = TypedDict(
92
+ "BearerAuthSetting",
93
+ {
94
+ "type": Literal["bearer"],
95
+ "in": Literal["header"],
96
+ "key": Literal["Authorization"],
97
+ "value": str,
98
+ },
99
+ )
100
+
101
+
102
+ HTTPSignatureAuthSetting = TypedDict(
103
+ "HTTPSignatureAuthSetting",
104
+ {
105
+ "type": Literal["http-signature"],
106
+ "in": Literal["header"],
107
+ "key": Literal["Authorization"],
108
+ "value": None,
109
+ },
110
+ )
111
+
112
+
113
+ AuthSettings = TypedDict(
114
+ "AuthSettings",
115
+ {
116
+ },
117
+ total=False,
118
+ )
119
+
120
+
121
+ class HostSettingVariable(TypedDict):
122
+ description: str
123
+ default_value: str
124
+ enum_values: List[str]
125
+
126
+
127
+ class HostSetting(TypedDict):
128
+ url: str
129
+ description: str
130
+ variables: NotRequired[Dict[str, HostSettingVariable]]
131
+
132
+
133
+ class Configuration:
134
+ """This class contains various settings of the API client.
135
+
136
+ :param host: Base url.
137
+ :param ignore_operation_servers
138
+ Boolean to ignore operation servers for the API client.
139
+ Config will use `host` as the base url regardless of the operation servers.
140
+ :param api_key: Dict to store API key(s).
141
+ Each entry in the dict specifies an API key.
142
+ The dict key is the name of the security scheme in the OAS specification.
143
+ The dict value is the API key secret.
144
+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
145
+ The dict key is the name of the security scheme in the OAS specification.
146
+ The dict value is an API key prefix when generating the auth data.
147
+ :param username: Username for HTTP basic authentication.
148
+ :param password: Password for HTTP basic authentication.
149
+ :param access_token: Access token.
150
+ :param server_index: Index to servers configuration.
151
+ :param server_variables: Mapping with string values to replace variables in
152
+ templated server configuration. The validation of enums is performed for
153
+ variables with defined enum values before.
154
+ :param server_operation_index: Mapping from operation ID to an index to server
155
+ configuration.
156
+ :param server_operation_variables: Mapping from operation ID to a mapping with
157
+ string values to replace variables in templated server configuration.
158
+ The validation of enums is performed for variables with defined enum
159
+ values before.
160
+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
161
+ in PEM format.
162
+ :param retries: Number of retries for API requests.
163
+ :param ca_cert_data: verify the peer using concatenated CA certificate data
164
+ in PEM (str) or DER (bytes) format.
165
+
166
+ :Example:
167
+ """
168
+
169
+ _default: ClassVar[Optional[Self]] = None
170
+
171
+ def __init__(
172
+ self,
173
+ host: Optional[str]=None,
174
+ api_key: Optional[Dict[str, str]]=None,
175
+ api_key_prefix: Optional[Dict[str, str]]=None,
176
+ username: Optional[str]=None,
177
+ password: Optional[str]=None,
178
+ access_token: Optional[str]=None,
179
+ server_index: Optional[int]=None,
180
+ server_variables: Optional[ServerVariablesT]=None,
181
+ server_operation_index: Optional[Dict[int, int]]=None,
182
+ server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
183
+ ignore_operation_servers: bool=False,
184
+ ssl_ca_cert: Optional[str]=None,
185
+ retries: Optional[int] = None,
186
+ ca_cert_data: Optional[Union[str, bytes]] = None,
187
+ *,
188
+ debug: Optional[bool] = None,
189
+ ) -> None:
190
+ """Constructor
191
+ """
192
+ self._base_path = "http://localhost" if host is None else host
193
+ """Default Base url
194
+ """
195
+ self.server_index = 0 if server_index is None and host is None else server_index
196
+ self.server_operation_index = server_operation_index or {}
197
+ """Default server index
198
+ """
199
+ self.server_variables = server_variables or {}
200
+ self.server_operation_variables = server_operation_variables or {}
201
+ """Default server variables
202
+ """
203
+ self.ignore_operation_servers = ignore_operation_servers
204
+ """Ignore operation servers
205
+ """
206
+ self.temp_folder_path = None
207
+ """Temp file folder for downloading files
208
+ """
209
+ # Authentication Settings
210
+ self.api_key = {}
211
+ if api_key:
212
+ self.api_key = api_key
213
+ """dict to store API key(s)
214
+ """
215
+ self.api_key_prefix = {}
216
+ if api_key_prefix:
217
+ self.api_key_prefix = api_key_prefix
218
+ """dict to store API prefix (e.g. Bearer)
219
+ """
220
+ self.refresh_api_key_hook = None
221
+ """function hook to refresh API key if expired
222
+ """
223
+ self.username = username
224
+ """Username for HTTP basic authentication
225
+ """
226
+ self.password = password
227
+ """Password for HTTP basic authentication
228
+ """
229
+ self.access_token = access_token
230
+ """Access token
231
+ """
232
+ self.logger = {}
233
+ """Logging Settings
234
+ """
235
+ self.logger["package_logger"] = logging.getLogger("perceptic_core_client")
236
+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")
237
+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'
238
+ """Log format
239
+ """
240
+ self.logger_stream_handler = None
241
+ """Log stream handler
242
+ """
243
+ self.logger_file_handler: Optional[FileHandler] = None
244
+ """Log file handler
245
+ """
246
+ self.logger_file = None
247
+ """Debug file location
248
+ """
249
+ if debug is not None:
250
+ self.debug = debug
251
+ else:
252
+ self.__debug = False
253
+ """Debug switch
254
+ """
255
+
256
+ self.verify_ssl = True
257
+ """SSL/TLS verification
258
+ Set this to false to skip verifying SSL certificate when calling API
259
+ from https server.
260
+ """
261
+ self.ssl_ca_cert = ssl_ca_cert
262
+ """Set this to customize the certificate file to verify the peer.
263
+ """
264
+ self.ca_cert_data = ca_cert_data
265
+ """Set this to verify the peer using PEM (str) or DER (bytes)
266
+ certificate data.
267
+ """
268
+ self.cert_file = None
269
+ """client certificate file
270
+ """
271
+ self.key_file = None
272
+ """client key file
273
+ """
274
+ self.assert_hostname = None
275
+ """Set this to True/False to enable/disable SSL hostname verification.
276
+ """
277
+ self.tls_server_name = None
278
+ """SSL/TLS Server Name Indication (SNI)
279
+ Set this to the SNI value expected by the server.
280
+ """
281
+
282
+ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
283
+ """urllib3 connection pool's maximum number of connections saved
284
+ per pool. urllib3 uses 1 connection as default value, but this is
285
+ not the best value when you are making a lot of possibly parallel
286
+ requests to the same host, which is often the case here.
287
+ cpu_count * 5 is used as default value to increase performance.
288
+ """
289
+
290
+ self.proxy: Optional[str] = None
291
+ """Proxy URL
292
+ """
293
+ self.proxy_headers = None
294
+ """Proxy headers
295
+ """
296
+ self.safe_chars_for_path_param = ''
297
+ """Safe chars for path_param
298
+ """
299
+ self.retries = retries
300
+ """Adding retries to override urllib3 default value 3
301
+ """
302
+ # Enable client side validation
303
+ self.client_side_validation = True
304
+
305
+ self.socket_options = None
306
+ """Options to pass down to the underlying urllib3 socket
307
+ """
308
+
309
+ self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
310
+ """datetime format
311
+ """
312
+
313
+ self.date_format = "%Y-%m-%d"
314
+ """date format
315
+ """
316
+
317
+ def __deepcopy__(self, memo: Dict[int, Any]) -> Self:
318
+ cls = self.__class__
319
+ result = cls.__new__(cls)
320
+ memo[id(self)] = result
321
+ for k, v in self.__dict__.items():
322
+ if k not in ('logger', 'logger_file_handler'):
323
+ setattr(result, k, copy.deepcopy(v, memo))
324
+ # shallow copy of loggers
325
+ result.logger = copy.copy(self.logger)
326
+ # use setters to configure loggers
327
+ result.logger_file = self.logger_file
328
+ result.debug = self.debug
329
+ return result
330
+
331
+ def __setattr__(self, name: str, value: Any) -> None:
332
+ object.__setattr__(self, name, value)
333
+
334
+ @classmethod
335
+ def set_default(cls, default: Optional[Self]) -> None:
336
+ """Set default instance of configuration.
337
+
338
+ It stores default configuration, which can be
339
+ returned by get_default_copy method.
340
+
341
+ :param default: object of Configuration
342
+ """
343
+ cls._default = default
344
+
345
+ @classmethod
346
+ def get_default_copy(cls) -> Self:
347
+ """Deprecated. Please use `get_default` instead.
348
+
349
+ Deprecated. Please use `get_default` instead.
350
+
351
+ :return: The configuration object.
352
+ """
353
+ return cls.get_default()
354
+
355
+ @classmethod
356
+ def get_default(cls) -> Self:
357
+ """Return the default configuration.
358
+
359
+ This method returns newly created, based on default constructor,
360
+ object of Configuration class or returns a copy of default
361
+ configuration.
362
+
363
+ :return: The configuration object.
364
+ """
365
+ if cls._default is None:
366
+ cls._default = cls()
367
+ return cls._default
368
+
369
+ @property
370
+ def logger_file(self) -> Optional[str]:
371
+ """The logger file.
372
+
373
+ If the logger_file is None, then add stream handler and remove file
374
+ handler. Otherwise, add file handler and remove stream handler.
375
+
376
+ :param value: The logger_file path.
377
+ :type: str
378
+ """
379
+ return self.__logger_file
380
+
381
+ @logger_file.setter
382
+ def logger_file(self, value: Optional[str]) -> None:
383
+ """The logger file.
384
+
385
+ If the logger_file is None, then add stream handler and remove file
386
+ handler. Otherwise, add file handler and remove stream handler.
387
+
388
+ :param value: The logger_file path.
389
+ :type: str
390
+ """
391
+ self.__logger_file = value
392
+ if self.__logger_file:
393
+ # If set logging file,
394
+ # then add file handler and remove stream handler.
395
+ self.logger_file_handler = logging.FileHandler(self.__logger_file)
396
+ self.logger_file_handler.setFormatter(self.logger_formatter)
397
+ for _, logger in self.logger.items():
398
+ logger.addHandler(self.logger_file_handler)
399
+
400
+ @property
401
+ def debug(self) -> bool:
402
+ """Debug status
403
+
404
+ :param value: The debug status, True or False.
405
+ :type: bool
406
+ """
407
+ return self.__debug
408
+
409
+ @debug.setter
410
+ def debug(self, value: bool) -> None:
411
+ """Debug status
412
+
413
+ :param value: The debug status, True or False.
414
+ :type: bool
415
+ """
416
+ self.__debug = value
417
+ if self.__debug:
418
+ # if debug status is True, turn on debug logging
419
+ for _, logger in self.logger.items():
420
+ logger.setLevel(logging.DEBUG)
421
+ # turn on httplib debug
422
+ httplib.HTTPConnection.debuglevel = 1
423
+ else:
424
+ # if debug status is False, turn off debug logging,
425
+ # setting log level to default `logging.WARNING`
426
+ for _, logger in self.logger.items():
427
+ logger.setLevel(logging.WARNING)
428
+ # turn off httplib debug
429
+ httplib.HTTPConnection.debuglevel = 0
430
+
431
+ @property
432
+ def logger_format(self) -> str:
433
+ """The logger format.
434
+
435
+ The logger_formatter will be updated when sets logger_format.
436
+
437
+ :param value: The format string.
438
+ :type: str
439
+ """
440
+ return self.__logger_format
441
+
442
+ @logger_format.setter
443
+ def logger_format(self, value: str) -> None:
444
+ """The logger format.
445
+
446
+ The logger_formatter will be updated when sets logger_format.
447
+
448
+ :param value: The format string.
449
+ :type: str
450
+ """
451
+ self.__logger_format = value
452
+ self.logger_formatter = logging.Formatter(self.__logger_format)
453
+
454
+ def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]:
455
+ """Gets API key (with prefix if set).
456
+
457
+ :param identifier: The identifier of apiKey.
458
+ :param alias: The alternative identifier of apiKey.
459
+ :return: The token for api key authentication.
460
+ """
461
+ if self.refresh_api_key_hook is not None:
462
+ self.refresh_api_key_hook(self)
463
+ key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)
464
+ if key:
465
+ prefix = self.api_key_prefix.get(identifier)
466
+ if prefix:
467
+ return "%s %s" % (prefix, key)
468
+ else:
469
+ return key
470
+
471
+ return None
472
+
473
+ def get_basic_auth_token(self) -> Optional[str]:
474
+ """Gets HTTP basic authentication header (string).
475
+
476
+ :return: The token for basic HTTP authentication.
477
+ """
478
+ username = ""
479
+ if self.username is not None:
480
+ username = self.username
481
+ password = ""
482
+ if self.password is not None:
483
+ password = self.password
484
+ return urllib3.util.make_headers(
485
+ basic_auth=username + ':' + password
486
+ ).get('authorization')
487
+
488
+ def auth_settings(self)-> AuthSettings:
489
+ """Gets Auth Settings dict for api client.
490
+
491
+ :return: The Auth Settings information dict.
492
+ """
493
+ auth: AuthSettings = {}
494
+ return auth
495
+
496
+ def to_debug_report(self) -> str:
497
+ """Gets the essential information for debugging.
498
+
499
+ :return: The report for debugging.
500
+ """
501
+ return "Python SDK Debug Report:\n"\
502
+ "OS: {env}\n"\
503
+ "Python Version: {pyversion}\n"\
504
+ "Version of the API: 0.0.1-SNAPSHOT\n"\
505
+ "SDK Package Version: 1.0.0".\
506
+ format(env=sys.platform, pyversion=sys.version)
507
+
508
+ def get_host_settings(self) -> List[HostSetting]:
509
+ """Gets an array of host settings
510
+
511
+ :return: An array of host settings
512
+ """
513
+ return [
514
+ {
515
+ 'url': "",
516
+ 'description': "No description provided",
517
+ }
518
+ ]
519
+
520
+ def get_host_from_settings(
521
+ self,
522
+ index: Optional[int],
523
+ variables: Optional[ServerVariablesT]=None,
524
+ servers: Optional[List[HostSetting]]=None,
525
+ ) -> str:
526
+ """Gets host URL based on the index and variables
527
+ :param index: array index of the host settings
528
+ :param variables: hash of variable and the corresponding value
529
+ :param servers: an array of host settings or None
530
+ :return: URL based on host settings
531
+ """
532
+ if index is None:
533
+ return self._base_path
534
+
535
+ variables = {} if variables is None else variables
536
+ servers = self.get_host_settings() if servers is None else servers
537
+
538
+ try:
539
+ server = servers[index]
540
+ except IndexError:
541
+ raise ValueError(
542
+ "Invalid index {0} when selecting the host settings. "
543
+ "Must be less than {1}".format(index, len(servers)))
544
+
545
+ url = server['url']
546
+
547
+ # go through variables and replace placeholders
548
+ for variable_name, variable in server.get('variables', {}).items():
549
+ used_value = variables.get(
550
+ variable_name, variable['default_value'])
551
+
552
+ if 'enum_values' in variable \
553
+ and used_value not in variable['enum_values']:
554
+ raise ValueError(
555
+ "The variable `{0}` in the host URL has invalid value "
556
+ "{1}. Must be {2}.".format(
557
+ variable_name, variables[variable_name],
558
+ variable['enum_values']))
559
+
560
+ url = url.replace("{" + variable_name + "}", used_value)
561
+
562
+ return url
563
+
564
+ @property
565
+ def host(self) -> str:
566
+ """Return generated host."""
567
+ return self.get_host_from_settings(self.server_index, variables=self.server_variables)
568
+
569
+ @host.setter
570
+ def host(self, value: str) -> None:
571
+ """Fix base path."""
572
+ self._base_path = value
573
+ self.server_index = None
@@ -0,0 +1,14 @@
1
+ # ActionType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `INDEX` (value: `'INDEX'`)
7
+
8
+ * `DELETE` (value: `'DELETE'`)
9
+
10
+ * `NOOP` (value: `'NOOP'`)
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
@@ -0,0 +1,33 @@
1
+ # AzureBlobConnectionSettingsApiDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **container** | **str** | |
9
+ **credential_name** | **str** | |
10
+ **credential_key** | **str** | |
11
+ **url** | **str** | |
12
+ **type** | **str** | | [optional]
13
+
14
+ ## Example
15
+
16
+ ```python
17
+ from perceptic_core_client.models.azure_blob_connection_settings_api_dto import AzureBlobConnectionSettingsApiDto
18
+
19
+ # TODO update the JSON string below
20
+ json = "{}"
21
+ # create an instance of AzureBlobConnectionSettingsApiDto from a JSON string
22
+ azure_blob_connection_settings_api_dto_instance = AzureBlobConnectionSettingsApiDto.from_json(json)
23
+ # print the JSON string representation of the object
24
+ print(AzureBlobConnectionSettingsApiDto.to_json())
25
+
26
+ # convert the object into a dict
27
+ azure_blob_connection_settings_api_dto_dict = azure_blob_connection_settings_api_dto_instance.to_dict()
28
+ # create an instance of AzureBlobConnectionSettingsApiDto from a dict
29
+ azure_blob_connection_settings_api_dto_from_dict = AzureBlobConnectionSettingsApiDto.from_dict(azure_blob_connection_settings_api_dto_dict)
30
+ ```
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,30 @@
1
+ # AzureBlobFileSystemRootMetadataApiDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **container_name** | **str** | | [optional]
9
+ **type** | **str** | | [optional]
10
+
11
+ ## Example
12
+
13
+ ```python
14
+ from perceptic_core_client.models.azure_blob_file_system_root_metadata_api_dto import AzureBlobFileSystemRootMetadataApiDto
15
+
16
+ # TODO update the JSON string below
17
+ json = "{}"
18
+ # create an instance of AzureBlobFileSystemRootMetadataApiDto from a JSON string
19
+ azure_blob_file_system_root_metadata_api_dto_instance = AzureBlobFileSystemRootMetadataApiDto.from_json(json)
20
+ # print the JSON string representation of the object
21
+ print(AzureBlobFileSystemRootMetadataApiDto.to_json())
22
+
23
+ # convert the object into a dict
24
+ azure_blob_file_system_root_metadata_api_dto_dict = azure_blob_file_system_root_metadata_api_dto_instance.to_dict()
25
+ # create an instance of AzureBlobFileSystemRootMetadataApiDto from a dict
26
+ azure_blob_file_system_root_metadata_api_dto_from_dict = AzureBlobFileSystemRootMetadataApiDto.from_dict(azure_blob_file_system_root_metadata_api_dto_dict)
27
+ ```
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29
+
30
+