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,2361 @@
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
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator
20
+ from typing import Any, Dict, Optional, Tuple, Union
21
+ from typing_extensions import Annotated
22
+ from perceptic_core_client.models.create_folder_request import CreateFolderRequest
23
+ from perceptic_core_client.models.create_folder_response import CreateFolderResponse
24
+ from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
25
+ from perceptic_core_client.models.get_parent_response import GetParentResponse
26
+ from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
27
+ from perceptic_core_client.models.list_file_system_response import ListFileSystemResponse
28
+ from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
29
+ from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
30
+
31
+ from perceptic_core_client.api_client import ApiClient, RequestSerialized
32
+ from perceptic_core_client.api_response import ApiResponse
33
+ from perceptic_core_client.rest import RESTResponseType
34
+
35
+
36
+ class FileSystemContentsResourceApi:
37
+ """NOTE: This class is auto generated by OpenAPI Generator
38
+ Ref: https://openapi-generator.tech
39
+
40
+ Do not edit the class manually.
41
+ """
42
+
43
+ def __init__(self, api_client=None) -> None:
44
+ if api_client is None:
45
+ api_client = ApiClient.get_default()
46
+ self.api_client = api_client
47
+
48
+
49
+ @validate_call
50
+ def api_v1_file_systems_file_system_rid_contents_download_get(
51
+ self,
52
+ file_system_rid: StrictStr,
53
+ file: Optional[StrictStr] = None,
54
+ _request_timeout: Union[
55
+ None,
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Tuple[
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Annotated[StrictFloat, Field(gt=0)]
60
+ ]
61
+ ] = None,
62
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
63
+ _content_type: Optional[StrictStr] = None,
64
+ _headers: Optional[Dict[StrictStr, Any]] = None,
65
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
+ ) -> bytearray:
67
+ """Download
68
+
69
+
70
+ :param file_system_rid: (required)
71
+ :type file_system_rid: str
72
+ :param file:
73
+ :type file: str
74
+ :param _request_timeout: timeout setting for this request. If one
75
+ number provided, it will be total request
76
+ timeout. It can also be a pair (tuple) of
77
+ (connection, read) timeouts.
78
+ :type _request_timeout: int, tuple(int, int), optional
79
+ :param _request_auth: set to override the auth_settings for an a single
80
+ request; this effectively ignores the
81
+ authentication in the spec for a single request.
82
+ :type _request_auth: dict, optional
83
+ :param _content_type: force content-type for the request.
84
+ :type _content_type: str, Optional
85
+ :param _headers: set to override the headers for a single
86
+ request; this effectively ignores the headers
87
+ in the spec for a single request.
88
+ :type _headers: dict, optional
89
+ :param _host_index: set to override the host_index for a single
90
+ request; this effectively ignores the host_index
91
+ in the spec for a single request.
92
+ :type _host_index: int, optional
93
+ :return: Returns the result object.
94
+ """ # noqa: E501
95
+
96
+ _param = self._api_v1_file_systems_file_system_rid_contents_download_get_serialize(
97
+ file_system_rid=file_system_rid,
98
+ file=file,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index
103
+ )
104
+
105
+ _response_types_map: Dict[str, Optional[str]] = {
106
+ '200': "bytearray",
107
+ }
108
+ response_data = self.api_client.call_api(
109
+ *_param,
110
+ _request_timeout=_request_timeout
111
+ )
112
+ response_data.read()
113
+ return self.api_client.response_deserialize(
114
+ response_data=response_data,
115
+ response_types_map=_response_types_map,
116
+ ).data
117
+
118
+
119
+ @validate_call
120
+ def api_v1_file_systems_file_system_rid_contents_download_get_with_http_info(
121
+ self,
122
+ file_system_rid: StrictStr,
123
+ file: Optional[StrictStr] = None,
124
+ _request_timeout: Union[
125
+ None,
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Tuple[
128
+ Annotated[StrictFloat, Field(gt=0)],
129
+ Annotated[StrictFloat, Field(gt=0)]
130
+ ]
131
+ ] = None,
132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
133
+ _content_type: Optional[StrictStr] = None,
134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
+ ) -> ApiResponse[bytearray]:
137
+ """Download
138
+
139
+
140
+ :param file_system_rid: (required)
141
+ :type file_system_rid: str
142
+ :param file:
143
+ :type file: str
144
+ :param _request_timeout: timeout setting for this request. If one
145
+ number provided, it will be total request
146
+ timeout. It can also be a pair (tuple) of
147
+ (connection, read) timeouts.
148
+ :type _request_timeout: int, tuple(int, int), optional
149
+ :param _request_auth: set to override the auth_settings for an a single
150
+ request; this effectively ignores the
151
+ authentication in the spec for a single request.
152
+ :type _request_auth: dict, optional
153
+ :param _content_type: force content-type for the request.
154
+ :type _content_type: str, Optional
155
+ :param _headers: set to override the headers for a single
156
+ request; this effectively ignores the headers
157
+ in the spec for a single request.
158
+ :type _headers: dict, optional
159
+ :param _host_index: set to override the host_index for a single
160
+ request; this effectively ignores the host_index
161
+ in the spec for a single request.
162
+ :type _host_index: int, optional
163
+ :return: Returns the result object.
164
+ """ # noqa: E501
165
+
166
+ _param = self._api_v1_file_systems_file_system_rid_contents_download_get_serialize(
167
+ file_system_rid=file_system_rid,
168
+ file=file,
169
+ _request_auth=_request_auth,
170
+ _content_type=_content_type,
171
+ _headers=_headers,
172
+ _host_index=_host_index
173
+ )
174
+
175
+ _response_types_map: Dict[str, Optional[str]] = {
176
+ '200': "bytearray",
177
+ }
178
+ response_data = self.api_client.call_api(
179
+ *_param,
180
+ _request_timeout=_request_timeout
181
+ )
182
+ response_data.read()
183
+ return self.api_client.response_deserialize(
184
+ response_data=response_data,
185
+ response_types_map=_response_types_map,
186
+ )
187
+
188
+
189
+ @validate_call
190
+ def api_v1_file_systems_file_system_rid_contents_download_get_without_preload_content(
191
+ self,
192
+ file_system_rid: StrictStr,
193
+ file: Optional[StrictStr] = None,
194
+ _request_timeout: Union[
195
+ None,
196
+ Annotated[StrictFloat, Field(gt=0)],
197
+ Tuple[
198
+ Annotated[StrictFloat, Field(gt=0)],
199
+ Annotated[StrictFloat, Field(gt=0)]
200
+ ]
201
+ ] = None,
202
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
203
+ _content_type: Optional[StrictStr] = None,
204
+ _headers: Optional[Dict[StrictStr, Any]] = None,
205
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
206
+ ) -> RESTResponseType:
207
+ """Download
208
+
209
+
210
+ :param file_system_rid: (required)
211
+ :type file_system_rid: str
212
+ :param file:
213
+ :type file: str
214
+ :param _request_timeout: timeout setting for this request. If one
215
+ number provided, it will be total request
216
+ timeout. It can also be a pair (tuple) of
217
+ (connection, read) timeouts.
218
+ :type _request_timeout: int, tuple(int, int), optional
219
+ :param _request_auth: set to override the auth_settings for an a single
220
+ request; this effectively ignores the
221
+ authentication in the spec for a single request.
222
+ :type _request_auth: dict, optional
223
+ :param _content_type: force content-type for the request.
224
+ :type _content_type: str, Optional
225
+ :param _headers: set to override the headers for a single
226
+ request; this effectively ignores the headers
227
+ in the spec for a single request.
228
+ :type _headers: dict, optional
229
+ :param _host_index: set to override the host_index for a single
230
+ request; this effectively ignores the host_index
231
+ in the spec for a single request.
232
+ :type _host_index: int, optional
233
+ :return: Returns the result object.
234
+ """ # noqa: E501
235
+
236
+ _param = self._api_v1_file_systems_file_system_rid_contents_download_get_serialize(
237
+ file_system_rid=file_system_rid,
238
+ file=file,
239
+ _request_auth=_request_auth,
240
+ _content_type=_content_type,
241
+ _headers=_headers,
242
+ _host_index=_host_index
243
+ )
244
+
245
+ _response_types_map: Dict[str, Optional[str]] = {
246
+ '200': "bytearray",
247
+ }
248
+ response_data = self.api_client.call_api(
249
+ *_param,
250
+ _request_timeout=_request_timeout
251
+ )
252
+ return response_data.response
253
+
254
+
255
+ def _api_v1_file_systems_file_system_rid_contents_download_get_serialize(
256
+ self,
257
+ file_system_rid,
258
+ file,
259
+ _request_auth,
260
+ _content_type,
261
+ _headers,
262
+ _host_index,
263
+ ) -> RequestSerialized:
264
+
265
+ _host = None
266
+
267
+ _collection_formats: Dict[str, str] = {
268
+ }
269
+
270
+ _path_params: Dict[str, str] = {}
271
+ _query_params: List[Tuple[str, str]] = []
272
+ _header_params: Dict[str, Optional[str]] = _headers or {}
273
+ _form_params: List[Tuple[str, str]] = []
274
+ _files: Dict[
275
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
276
+ ] = {}
277
+ _body_params: Optional[bytes] = None
278
+
279
+ # process the path parameters
280
+ if file_system_rid is not None:
281
+ _path_params['fileSystemRid'] = file_system_rid
282
+ # process the query parameters
283
+ if file is not None:
284
+
285
+ _query_params.append(('file', file))
286
+
287
+ # process the header parameters
288
+ # process the form parameters
289
+ # process the body parameter
290
+
291
+
292
+ # set the HTTP header `Accept`
293
+ if 'Accept' not in _header_params:
294
+ _header_params['Accept'] = self.api_client.select_header_accept(
295
+ [
296
+ 'application/octet-stream'
297
+ ]
298
+ )
299
+
300
+
301
+ # authentication setting
302
+ _auth_settings: List[str] = [
303
+ ]
304
+
305
+ return self.api_client.param_serialize(
306
+ method='GET',
307
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/download',
308
+ path_params=_path_params,
309
+ query_params=_query_params,
310
+ header_params=_header_params,
311
+ body=_body_params,
312
+ post_params=_form_params,
313
+ files=_files,
314
+ auth_settings=_auth_settings,
315
+ collection_formats=_collection_formats,
316
+ _host=_host,
317
+ _request_auth=_request_auth
318
+ )
319
+
320
+
321
+
322
+
323
+ @validate_call
324
+ def api_v1_file_systems_file_system_rid_contents_files_get(
325
+ self,
326
+ file_system_rid: StrictStr,
327
+ folder: Optional[StrictStr] = None,
328
+ page_size: Optional[StrictInt] = None,
329
+ resume_token: Optional[StrictStr] = None,
330
+ _request_timeout: Union[
331
+ None,
332
+ Annotated[StrictFloat, Field(gt=0)],
333
+ Tuple[
334
+ Annotated[StrictFloat, Field(gt=0)],
335
+ Annotated[StrictFloat, Field(gt=0)]
336
+ ]
337
+ ] = None,
338
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
339
+ _content_type: Optional[StrictStr] = None,
340
+ _headers: Optional[Dict[StrictStr, Any]] = None,
341
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
342
+ ) -> PagedListFileSystemResponse:
343
+ """List Files Flattened
344
+
345
+
346
+ :param file_system_rid: (required)
347
+ :type file_system_rid: str
348
+ :param folder:
349
+ :type folder: str
350
+ :param page_size:
351
+ :type page_size: int
352
+ :param resume_token:
353
+ :type resume_token: str
354
+ :param _request_timeout: timeout setting for this request. If one
355
+ number provided, it will be total request
356
+ timeout. It can also be a pair (tuple) of
357
+ (connection, read) timeouts.
358
+ :type _request_timeout: int, tuple(int, int), optional
359
+ :param _request_auth: set to override the auth_settings for an a single
360
+ request; this effectively ignores the
361
+ authentication in the spec for a single request.
362
+ :type _request_auth: dict, optional
363
+ :param _content_type: force content-type for the request.
364
+ :type _content_type: str, Optional
365
+ :param _headers: set to override the headers for a single
366
+ request; this effectively ignores the headers
367
+ in the spec for a single request.
368
+ :type _headers: dict, optional
369
+ :param _host_index: set to override the host_index for a single
370
+ request; this effectively ignores the host_index
371
+ in the spec for a single request.
372
+ :type _host_index: int, optional
373
+ :return: Returns the result object.
374
+ """ # noqa: E501
375
+
376
+ _param = self._api_v1_file_systems_file_system_rid_contents_files_get_serialize(
377
+ file_system_rid=file_system_rid,
378
+ folder=folder,
379
+ page_size=page_size,
380
+ resume_token=resume_token,
381
+ _request_auth=_request_auth,
382
+ _content_type=_content_type,
383
+ _headers=_headers,
384
+ _host_index=_host_index
385
+ )
386
+
387
+ _response_types_map: Dict[str, Optional[str]] = {
388
+ '200': "PagedListFileSystemResponse",
389
+ }
390
+ response_data = self.api_client.call_api(
391
+ *_param,
392
+ _request_timeout=_request_timeout
393
+ )
394
+ response_data.read()
395
+ return self.api_client.response_deserialize(
396
+ response_data=response_data,
397
+ response_types_map=_response_types_map,
398
+ ).data
399
+
400
+
401
+ @validate_call
402
+ def api_v1_file_systems_file_system_rid_contents_files_get_with_http_info(
403
+ self,
404
+ file_system_rid: StrictStr,
405
+ folder: Optional[StrictStr] = None,
406
+ page_size: Optional[StrictInt] = None,
407
+ resume_token: Optional[StrictStr] = None,
408
+ _request_timeout: Union[
409
+ None,
410
+ Annotated[StrictFloat, Field(gt=0)],
411
+ Tuple[
412
+ Annotated[StrictFloat, Field(gt=0)],
413
+ Annotated[StrictFloat, Field(gt=0)]
414
+ ]
415
+ ] = None,
416
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
417
+ _content_type: Optional[StrictStr] = None,
418
+ _headers: Optional[Dict[StrictStr, Any]] = None,
419
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
420
+ ) -> ApiResponse[PagedListFileSystemResponse]:
421
+ """List Files Flattened
422
+
423
+
424
+ :param file_system_rid: (required)
425
+ :type file_system_rid: str
426
+ :param folder:
427
+ :type folder: str
428
+ :param page_size:
429
+ :type page_size: int
430
+ :param resume_token:
431
+ :type resume_token: str
432
+ :param _request_timeout: timeout setting for this request. If one
433
+ number provided, it will be total request
434
+ timeout. It can also be a pair (tuple) of
435
+ (connection, read) timeouts.
436
+ :type _request_timeout: int, tuple(int, int), optional
437
+ :param _request_auth: set to override the auth_settings for an a single
438
+ request; this effectively ignores the
439
+ authentication in the spec for a single request.
440
+ :type _request_auth: dict, optional
441
+ :param _content_type: force content-type for the request.
442
+ :type _content_type: str, Optional
443
+ :param _headers: set to override the headers for a single
444
+ request; this effectively ignores the headers
445
+ in the spec for a single request.
446
+ :type _headers: dict, optional
447
+ :param _host_index: set to override the host_index for a single
448
+ request; this effectively ignores the host_index
449
+ in the spec for a single request.
450
+ :type _host_index: int, optional
451
+ :return: Returns the result object.
452
+ """ # noqa: E501
453
+
454
+ _param = self._api_v1_file_systems_file_system_rid_contents_files_get_serialize(
455
+ file_system_rid=file_system_rid,
456
+ folder=folder,
457
+ page_size=page_size,
458
+ resume_token=resume_token,
459
+ _request_auth=_request_auth,
460
+ _content_type=_content_type,
461
+ _headers=_headers,
462
+ _host_index=_host_index
463
+ )
464
+
465
+ _response_types_map: Dict[str, Optional[str]] = {
466
+ '200': "PagedListFileSystemResponse",
467
+ }
468
+ response_data = self.api_client.call_api(
469
+ *_param,
470
+ _request_timeout=_request_timeout
471
+ )
472
+ response_data.read()
473
+ return self.api_client.response_deserialize(
474
+ response_data=response_data,
475
+ response_types_map=_response_types_map,
476
+ )
477
+
478
+
479
+ @validate_call
480
+ def api_v1_file_systems_file_system_rid_contents_files_get_without_preload_content(
481
+ self,
482
+ file_system_rid: StrictStr,
483
+ folder: Optional[StrictStr] = None,
484
+ page_size: Optional[StrictInt] = None,
485
+ resume_token: Optional[StrictStr] = None,
486
+ _request_timeout: Union[
487
+ None,
488
+ Annotated[StrictFloat, Field(gt=0)],
489
+ Tuple[
490
+ Annotated[StrictFloat, Field(gt=0)],
491
+ Annotated[StrictFloat, Field(gt=0)]
492
+ ]
493
+ ] = None,
494
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
495
+ _content_type: Optional[StrictStr] = None,
496
+ _headers: Optional[Dict[StrictStr, Any]] = None,
497
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
498
+ ) -> RESTResponseType:
499
+ """List Files Flattened
500
+
501
+
502
+ :param file_system_rid: (required)
503
+ :type file_system_rid: str
504
+ :param folder:
505
+ :type folder: str
506
+ :param page_size:
507
+ :type page_size: int
508
+ :param resume_token:
509
+ :type resume_token: str
510
+ :param _request_timeout: timeout setting for this request. If one
511
+ number provided, it will be total request
512
+ timeout. It can also be a pair (tuple) of
513
+ (connection, read) timeouts.
514
+ :type _request_timeout: int, tuple(int, int), optional
515
+ :param _request_auth: set to override the auth_settings for an a single
516
+ request; this effectively ignores the
517
+ authentication in the spec for a single request.
518
+ :type _request_auth: dict, optional
519
+ :param _content_type: force content-type for the request.
520
+ :type _content_type: str, Optional
521
+ :param _headers: set to override the headers for a single
522
+ request; this effectively ignores the headers
523
+ in the spec for a single request.
524
+ :type _headers: dict, optional
525
+ :param _host_index: set to override the host_index for a single
526
+ request; this effectively ignores the host_index
527
+ in the spec for a single request.
528
+ :type _host_index: int, optional
529
+ :return: Returns the result object.
530
+ """ # noqa: E501
531
+
532
+ _param = self._api_v1_file_systems_file_system_rid_contents_files_get_serialize(
533
+ file_system_rid=file_system_rid,
534
+ folder=folder,
535
+ page_size=page_size,
536
+ resume_token=resume_token,
537
+ _request_auth=_request_auth,
538
+ _content_type=_content_type,
539
+ _headers=_headers,
540
+ _host_index=_host_index
541
+ )
542
+
543
+ _response_types_map: Dict[str, Optional[str]] = {
544
+ '200': "PagedListFileSystemResponse",
545
+ }
546
+ response_data = self.api_client.call_api(
547
+ *_param,
548
+ _request_timeout=_request_timeout
549
+ )
550
+ return response_data.response
551
+
552
+
553
+ def _api_v1_file_systems_file_system_rid_contents_files_get_serialize(
554
+ self,
555
+ file_system_rid,
556
+ folder,
557
+ page_size,
558
+ resume_token,
559
+ _request_auth,
560
+ _content_type,
561
+ _headers,
562
+ _host_index,
563
+ ) -> RequestSerialized:
564
+
565
+ _host = None
566
+
567
+ _collection_formats: Dict[str, str] = {
568
+ }
569
+
570
+ _path_params: Dict[str, str] = {}
571
+ _query_params: List[Tuple[str, str]] = []
572
+ _header_params: Dict[str, Optional[str]] = _headers or {}
573
+ _form_params: List[Tuple[str, str]] = []
574
+ _files: Dict[
575
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
576
+ ] = {}
577
+ _body_params: Optional[bytes] = None
578
+
579
+ # process the path parameters
580
+ if file_system_rid is not None:
581
+ _path_params['fileSystemRid'] = file_system_rid
582
+ # process the query parameters
583
+ if folder is not None:
584
+
585
+ _query_params.append(('folder', folder))
586
+
587
+ if page_size is not None:
588
+
589
+ _query_params.append(('pageSize', page_size))
590
+
591
+ if resume_token is not None:
592
+
593
+ _query_params.append(('resumeToken', resume_token))
594
+
595
+ # process the header parameters
596
+ # process the form parameters
597
+ # process the body parameter
598
+
599
+
600
+ # set the HTTP header `Accept`
601
+ if 'Accept' not in _header_params:
602
+ _header_params['Accept'] = self.api_client.select_header_accept(
603
+ [
604
+ 'application/json'
605
+ ]
606
+ )
607
+
608
+
609
+ # authentication setting
610
+ _auth_settings: List[str] = [
611
+ ]
612
+
613
+ return self.api_client.param_serialize(
614
+ method='GET',
615
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/files',
616
+ path_params=_path_params,
617
+ query_params=_query_params,
618
+ header_params=_header_params,
619
+ body=_body_params,
620
+ post_params=_form_params,
621
+ files=_files,
622
+ auth_settings=_auth_settings,
623
+ collection_formats=_collection_formats,
624
+ _host=_host,
625
+ _request_auth=_request_auth
626
+ )
627
+
628
+
629
+
630
+
631
+ @validate_call
632
+ def api_v1_file_systems_file_system_rid_contents_folders_post(
633
+ self,
634
+ file_system_rid: StrictStr,
635
+ create_folder_request: CreateFolderRequest,
636
+ parent: Optional[StrictStr] = None,
637
+ _request_timeout: Union[
638
+ None,
639
+ Annotated[StrictFloat, Field(gt=0)],
640
+ Tuple[
641
+ Annotated[StrictFloat, Field(gt=0)],
642
+ Annotated[StrictFloat, Field(gt=0)]
643
+ ]
644
+ ] = None,
645
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
646
+ _content_type: Optional[StrictStr] = None,
647
+ _headers: Optional[Dict[StrictStr, Any]] = None,
648
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
649
+ ) -> CreateFolderResponse:
650
+ """Create Folder
651
+
652
+
653
+ :param file_system_rid: (required)
654
+ :type file_system_rid: str
655
+ :param create_folder_request: (required)
656
+ :type create_folder_request: CreateFolderRequest
657
+ :param parent:
658
+ :type parent: str
659
+ :param _request_timeout: timeout setting for this request. If one
660
+ number provided, it will be total request
661
+ timeout. It can also be a pair (tuple) of
662
+ (connection, read) timeouts.
663
+ :type _request_timeout: int, tuple(int, int), optional
664
+ :param _request_auth: set to override the auth_settings for an a single
665
+ request; this effectively ignores the
666
+ authentication in the spec for a single request.
667
+ :type _request_auth: dict, optional
668
+ :param _content_type: force content-type for the request.
669
+ :type _content_type: str, Optional
670
+ :param _headers: set to override the headers for a single
671
+ request; this effectively ignores the headers
672
+ in the spec for a single request.
673
+ :type _headers: dict, optional
674
+ :param _host_index: set to override the host_index for a single
675
+ request; this effectively ignores the host_index
676
+ in the spec for a single request.
677
+ :type _host_index: int, optional
678
+ :return: Returns the result object.
679
+ """ # noqa: E501
680
+
681
+ _param = self._api_v1_file_systems_file_system_rid_contents_folders_post_serialize(
682
+ file_system_rid=file_system_rid,
683
+ create_folder_request=create_folder_request,
684
+ parent=parent,
685
+ _request_auth=_request_auth,
686
+ _content_type=_content_type,
687
+ _headers=_headers,
688
+ _host_index=_host_index
689
+ )
690
+
691
+ _response_types_map: Dict[str, Optional[str]] = {
692
+ '200': "CreateFolderResponse",
693
+ '400': None,
694
+ }
695
+ response_data = self.api_client.call_api(
696
+ *_param,
697
+ _request_timeout=_request_timeout
698
+ )
699
+ response_data.read()
700
+ return self.api_client.response_deserialize(
701
+ response_data=response_data,
702
+ response_types_map=_response_types_map,
703
+ ).data
704
+
705
+
706
+ @validate_call
707
+ def api_v1_file_systems_file_system_rid_contents_folders_post_with_http_info(
708
+ self,
709
+ file_system_rid: StrictStr,
710
+ create_folder_request: CreateFolderRequest,
711
+ parent: Optional[StrictStr] = None,
712
+ _request_timeout: Union[
713
+ None,
714
+ Annotated[StrictFloat, Field(gt=0)],
715
+ Tuple[
716
+ Annotated[StrictFloat, Field(gt=0)],
717
+ Annotated[StrictFloat, Field(gt=0)]
718
+ ]
719
+ ] = None,
720
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
721
+ _content_type: Optional[StrictStr] = None,
722
+ _headers: Optional[Dict[StrictStr, Any]] = None,
723
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
724
+ ) -> ApiResponse[CreateFolderResponse]:
725
+ """Create Folder
726
+
727
+
728
+ :param file_system_rid: (required)
729
+ :type file_system_rid: str
730
+ :param create_folder_request: (required)
731
+ :type create_folder_request: CreateFolderRequest
732
+ :param parent:
733
+ :type parent: str
734
+ :param _request_timeout: timeout setting for this request. If one
735
+ number provided, it will be total request
736
+ timeout. It can also be a pair (tuple) of
737
+ (connection, read) timeouts.
738
+ :type _request_timeout: int, tuple(int, int), optional
739
+ :param _request_auth: set to override the auth_settings for an a single
740
+ request; this effectively ignores the
741
+ authentication in the spec for a single request.
742
+ :type _request_auth: dict, optional
743
+ :param _content_type: force content-type for the request.
744
+ :type _content_type: str, Optional
745
+ :param _headers: set to override the headers for a single
746
+ request; this effectively ignores the headers
747
+ in the spec for a single request.
748
+ :type _headers: dict, optional
749
+ :param _host_index: set to override the host_index for a single
750
+ request; this effectively ignores the host_index
751
+ in the spec for a single request.
752
+ :type _host_index: int, optional
753
+ :return: Returns the result object.
754
+ """ # noqa: E501
755
+
756
+ _param = self._api_v1_file_systems_file_system_rid_contents_folders_post_serialize(
757
+ file_system_rid=file_system_rid,
758
+ create_folder_request=create_folder_request,
759
+ parent=parent,
760
+ _request_auth=_request_auth,
761
+ _content_type=_content_type,
762
+ _headers=_headers,
763
+ _host_index=_host_index
764
+ )
765
+
766
+ _response_types_map: Dict[str, Optional[str]] = {
767
+ '200': "CreateFolderResponse",
768
+ '400': None,
769
+ }
770
+ response_data = self.api_client.call_api(
771
+ *_param,
772
+ _request_timeout=_request_timeout
773
+ )
774
+ response_data.read()
775
+ return self.api_client.response_deserialize(
776
+ response_data=response_data,
777
+ response_types_map=_response_types_map,
778
+ )
779
+
780
+
781
+ @validate_call
782
+ def api_v1_file_systems_file_system_rid_contents_folders_post_without_preload_content(
783
+ self,
784
+ file_system_rid: StrictStr,
785
+ create_folder_request: CreateFolderRequest,
786
+ parent: Optional[StrictStr] = None,
787
+ _request_timeout: Union[
788
+ None,
789
+ Annotated[StrictFloat, Field(gt=0)],
790
+ Tuple[
791
+ Annotated[StrictFloat, Field(gt=0)],
792
+ Annotated[StrictFloat, Field(gt=0)]
793
+ ]
794
+ ] = None,
795
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
796
+ _content_type: Optional[StrictStr] = None,
797
+ _headers: Optional[Dict[StrictStr, Any]] = None,
798
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
799
+ ) -> RESTResponseType:
800
+ """Create Folder
801
+
802
+
803
+ :param file_system_rid: (required)
804
+ :type file_system_rid: str
805
+ :param create_folder_request: (required)
806
+ :type create_folder_request: CreateFolderRequest
807
+ :param parent:
808
+ :type parent: str
809
+ :param _request_timeout: timeout setting for this request. If one
810
+ number provided, it will be total request
811
+ timeout. It can also be a pair (tuple) of
812
+ (connection, read) timeouts.
813
+ :type _request_timeout: int, tuple(int, int), optional
814
+ :param _request_auth: set to override the auth_settings for an a single
815
+ request; this effectively ignores the
816
+ authentication in the spec for a single request.
817
+ :type _request_auth: dict, optional
818
+ :param _content_type: force content-type for the request.
819
+ :type _content_type: str, Optional
820
+ :param _headers: set to override the headers for a single
821
+ request; this effectively ignores the headers
822
+ in the spec for a single request.
823
+ :type _headers: dict, optional
824
+ :param _host_index: set to override the host_index for a single
825
+ request; this effectively ignores the host_index
826
+ in the spec for a single request.
827
+ :type _host_index: int, optional
828
+ :return: Returns the result object.
829
+ """ # noqa: E501
830
+
831
+ _param = self._api_v1_file_systems_file_system_rid_contents_folders_post_serialize(
832
+ file_system_rid=file_system_rid,
833
+ create_folder_request=create_folder_request,
834
+ parent=parent,
835
+ _request_auth=_request_auth,
836
+ _content_type=_content_type,
837
+ _headers=_headers,
838
+ _host_index=_host_index
839
+ )
840
+
841
+ _response_types_map: Dict[str, Optional[str]] = {
842
+ '200': "CreateFolderResponse",
843
+ '400': None,
844
+ }
845
+ response_data = self.api_client.call_api(
846
+ *_param,
847
+ _request_timeout=_request_timeout
848
+ )
849
+ return response_data.response
850
+
851
+
852
+ def _api_v1_file_systems_file_system_rid_contents_folders_post_serialize(
853
+ self,
854
+ file_system_rid,
855
+ create_folder_request,
856
+ parent,
857
+ _request_auth,
858
+ _content_type,
859
+ _headers,
860
+ _host_index,
861
+ ) -> RequestSerialized:
862
+
863
+ _host = None
864
+
865
+ _collection_formats: Dict[str, str] = {
866
+ }
867
+
868
+ _path_params: Dict[str, str] = {}
869
+ _query_params: List[Tuple[str, str]] = []
870
+ _header_params: Dict[str, Optional[str]] = _headers or {}
871
+ _form_params: List[Tuple[str, str]] = []
872
+ _files: Dict[
873
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
874
+ ] = {}
875
+ _body_params: Optional[bytes] = None
876
+
877
+ # process the path parameters
878
+ if file_system_rid is not None:
879
+ _path_params['fileSystemRid'] = file_system_rid
880
+ # process the query parameters
881
+ if parent is not None:
882
+
883
+ _query_params.append(('parent', parent))
884
+
885
+ # process the header parameters
886
+ # process the form parameters
887
+ # process the body parameter
888
+ if create_folder_request is not None:
889
+ _body_params = create_folder_request
890
+
891
+
892
+ # set the HTTP header `Accept`
893
+ if 'Accept' not in _header_params:
894
+ _header_params['Accept'] = self.api_client.select_header_accept(
895
+ [
896
+ 'application/json'
897
+ ]
898
+ )
899
+
900
+ # set the HTTP header `Content-Type`
901
+ if _content_type:
902
+ _header_params['Content-Type'] = _content_type
903
+ else:
904
+ _default_content_type = (
905
+ self.api_client.select_header_content_type(
906
+ [
907
+ 'application/json'
908
+ ]
909
+ )
910
+ )
911
+ if _default_content_type is not None:
912
+ _header_params['Content-Type'] = _default_content_type
913
+
914
+ # authentication setting
915
+ _auth_settings: List[str] = [
916
+ ]
917
+
918
+ return self.api_client.param_serialize(
919
+ method='POST',
920
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/folders',
921
+ path_params=_path_params,
922
+ query_params=_query_params,
923
+ header_params=_header_params,
924
+ body=_body_params,
925
+ post_params=_form_params,
926
+ files=_files,
927
+ auth_settings=_auth_settings,
928
+ collection_formats=_collection_formats,
929
+ _host=_host,
930
+ _request_auth=_request_auth
931
+ )
932
+
933
+
934
+
935
+
936
+ @validate_call
937
+ def api_v1_file_systems_file_system_rid_contents_list_get(
938
+ self,
939
+ file_system_rid: StrictStr,
940
+ folder: Optional[StrictStr] = None,
941
+ _request_timeout: Union[
942
+ None,
943
+ Annotated[StrictFloat, Field(gt=0)],
944
+ Tuple[
945
+ Annotated[StrictFloat, Field(gt=0)],
946
+ Annotated[StrictFloat, Field(gt=0)]
947
+ ]
948
+ ] = None,
949
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
950
+ _content_type: Optional[StrictStr] = None,
951
+ _headers: Optional[Dict[StrictStr, Any]] = None,
952
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
953
+ ) -> ListFileSystemResponse:
954
+ """List
955
+
956
+
957
+ :param file_system_rid: (required)
958
+ :type file_system_rid: str
959
+ :param folder:
960
+ :type folder: str
961
+ :param _request_timeout: timeout setting for this request. If one
962
+ number provided, it will be total request
963
+ timeout. It can also be a pair (tuple) of
964
+ (connection, read) timeouts.
965
+ :type _request_timeout: int, tuple(int, int), optional
966
+ :param _request_auth: set to override the auth_settings for an a single
967
+ request; this effectively ignores the
968
+ authentication in the spec for a single request.
969
+ :type _request_auth: dict, optional
970
+ :param _content_type: force content-type for the request.
971
+ :type _content_type: str, Optional
972
+ :param _headers: set to override the headers for a single
973
+ request; this effectively ignores the headers
974
+ in the spec for a single request.
975
+ :type _headers: dict, optional
976
+ :param _host_index: set to override the host_index for a single
977
+ request; this effectively ignores the host_index
978
+ in the spec for a single request.
979
+ :type _host_index: int, optional
980
+ :return: Returns the result object.
981
+ """ # noqa: E501
982
+
983
+ _param = self._api_v1_file_systems_file_system_rid_contents_list_get_serialize(
984
+ file_system_rid=file_system_rid,
985
+ folder=folder,
986
+ _request_auth=_request_auth,
987
+ _content_type=_content_type,
988
+ _headers=_headers,
989
+ _host_index=_host_index
990
+ )
991
+
992
+ _response_types_map: Dict[str, Optional[str]] = {
993
+ '200': "ListFileSystemResponse",
994
+ }
995
+ response_data = self.api_client.call_api(
996
+ *_param,
997
+ _request_timeout=_request_timeout
998
+ )
999
+ response_data.read()
1000
+ return self.api_client.response_deserialize(
1001
+ response_data=response_data,
1002
+ response_types_map=_response_types_map,
1003
+ ).data
1004
+
1005
+
1006
+ @validate_call
1007
+ def api_v1_file_systems_file_system_rid_contents_list_get_with_http_info(
1008
+ self,
1009
+ file_system_rid: StrictStr,
1010
+ folder: Optional[StrictStr] = None,
1011
+ _request_timeout: Union[
1012
+ None,
1013
+ Annotated[StrictFloat, Field(gt=0)],
1014
+ Tuple[
1015
+ Annotated[StrictFloat, Field(gt=0)],
1016
+ Annotated[StrictFloat, Field(gt=0)]
1017
+ ]
1018
+ ] = None,
1019
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1020
+ _content_type: Optional[StrictStr] = None,
1021
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1022
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1023
+ ) -> ApiResponse[ListFileSystemResponse]:
1024
+ """List
1025
+
1026
+
1027
+ :param file_system_rid: (required)
1028
+ :type file_system_rid: str
1029
+ :param folder:
1030
+ :type folder: str
1031
+ :param _request_timeout: timeout setting for this request. If one
1032
+ number provided, it will be total request
1033
+ timeout. It can also be a pair (tuple) of
1034
+ (connection, read) timeouts.
1035
+ :type _request_timeout: int, tuple(int, int), optional
1036
+ :param _request_auth: set to override the auth_settings for an a single
1037
+ request; this effectively ignores the
1038
+ authentication in the spec for a single request.
1039
+ :type _request_auth: dict, optional
1040
+ :param _content_type: force content-type for the request.
1041
+ :type _content_type: str, Optional
1042
+ :param _headers: set to override the headers for a single
1043
+ request; this effectively ignores the headers
1044
+ in the spec for a single request.
1045
+ :type _headers: dict, optional
1046
+ :param _host_index: set to override the host_index for a single
1047
+ request; this effectively ignores the host_index
1048
+ in the spec for a single request.
1049
+ :type _host_index: int, optional
1050
+ :return: Returns the result object.
1051
+ """ # noqa: E501
1052
+
1053
+ _param = self._api_v1_file_systems_file_system_rid_contents_list_get_serialize(
1054
+ file_system_rid=file_system_rid,
1055
+ folder=folder,
1056
+ _request_auth=_request_auth,
1057
+ _content_type=_content_type,
1058
+ _headers=_headers,
1059
+ _host_index=_host_index
1060
+ )
1061
+
1062
+ _response_types_map: Dict[str, Optional[str]] = {
1063
+ '200': "ListFileSystemResponse",
1064
+ }
1065
+ response_data = self.api_client.call_api(
1066
+ *_param,
1067
+ _request_timeout=_request_timeout
1068
+ )
1069
+ response_data.read()
1070
+ return self.api_client.response_deserialize(
1071
+ response_data=response_data,
1072
+ response_types_map=_response_types_map,
1073
+ )
1074
+
1075
+
1076
+ @validate_call
1077
+ def api_v1_file_systems_file_system_rid_contents_list_get_without_preload_content(
1078
+ self,
1079
+ file_system_rid: StrictStr,
1080
+ folder: Optional[StrictStr] = None,
1081
+ _request_timeout: Union[
1082
+ None,
1083
+ Annotated[StrictFloat, Field(gt=0)],
1084
+ Tuple[
1085
+ Annotated[StrictFloat, Field(gt=0)],
1086
+ Annotated[StrictFloat, Field(gt=0)]
1087
+ ]
1088
+ ] = None,
1089
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1090
+ _content_type: Optional[StrictStr] = None,
1091
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1092
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1093
+ ) -> RESTResponseType:
1094
+ """List
1095
+
1096
+
1097
+ :param file_system_rid: (required)
1098
+ :type file_system_rid: str
1099
+ :param folder:
1100
+ :type folder: str
1101
+ :param _request_timeout: timeout setting for this request. If one
1102
+ number provided, it will be total request
1103
+ timeout. It can also be a pair (tuple) of
1104
+ (connection, read) timeouts.
1105
+ :type _request_timeout: int, tuple(int, int), optional
1106
+ :param _request_auth: set to override the auth_settings for an a single
1107
+ request; this effectively ignores the
1108
+ authentication in the spec for a single request.
1109
+ :type _request_auth: dict, optional
1110
+ :param _content_type: force content-type for the request.
1111
+ :type _content_type: str, Optional
1112
+ :param _headers: set to override the headers for a single
1113
+ request; this effectively ignores the headers
1114
+ in the spec for a single request.
1115
+ :type _headers: dict, optional
1116
+ :param _host_index: set to override the host_index for a single
1117
+ request; this effectively ignores the host_index
1118
+ in the spec for a single request.
1119
+ :type _host_index: int, optional
1120
+ :return: Returns the result object.
1121
+ """ # noqa: E501
1122
+
1123
+ _param = self._api_v1_file_systems_file_system_rid_contents_list_get_serialize(
1124
+ file_system_rid=file_system_rid,
1125
+ folder=folder,
1126
+ _request_auth=_request_auth,
1127
+ _content_type=_content_type,
1128
+ _headers=_headers,
1129
+ _host_index=_host_index
1130
+ )
1131
+
1132
+ _response_types_map: Dict[str, Optional[str]] = {
1133
+ '200': "ListFileSystemResponse",
1134
+ }
1135
+ response_data = self.api_client.call_api(
1136
+ *_param,
1137
+ _request_timeout=_request_timeout
1138
+ )
1139
+ return response_data.response
1140
+
1141
+
1142
+ def _api_v1_file_systems_file_system_rid_contents_list_get_serialize(
1143
+ self,
1144
+ file_system_rid,
1145
+ folder,
1146
+ _request_auth,
1147
+ _content_type,
1148
+ _headers,
1149
+ _host_index,
1150
+ ) -> RequestSerialized:
1151
+
1152
+ _host = None
1153
+
1154
+ _collection_formats: Dict[str, str] = {
1155
+ }
1156
+
1157
+ _path_params: Dict[str, str] = {}
1158
+ _query_params: List[Tuple[str, str]] = []
1159
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1160
+ _form_params: List[Tuple[str, str]] = []
1161
+ _files: Dict[
1162
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1163
+ ] = {}
1164
+ _body_params: Optional[bytes] = None
1165
+
1166
+ # process the path parameters
1167
+ if file_system_rid is not None:
1168
+ _path_params['fileSystemRid'] = file_system_rid
1169
+ # process the query parameters
1170
+ if folder is not None:
1171
+
1172
+ _query_params.append(('folder', folder))
1173
+
1174
+ # process the header parameters
1175
+ # process the form parameters
1176
+ # process the body parameter
1177
+
1178
+
1179
+ # set the HTTP header `Accept`
1180
+ if 'Accept' not in _header_params:
1181
+ _header_params['Accept'] = self.api_client.select_header_accept(
1182
+ [
1183
+ 'application/json'
1184
+ ]
1185
+ )
1186
+
1187
+
1188
+ # authentication setting
1189
+ _auth_settings: List[str] = [
1190
+ ]
1191
+
1192
+ return self.api_client.param_serialize(
1193
+ method='GET',
1194
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/list',
1195
+ path_params=_path_params,
1196
+ query_params=_query_params,
1197
+ header_params=_header_params,
1198
+ body=_body_params,
1199
+ post_params=_form_params,
1200
+ files=_files,
1201
+ auth_settings=_auth_settings,
1202
+ collection_formats=_collection_formats,
1203
+ _host=_host,
1204
+ _request_auth=_request_auth
1205
+ )
1206
+
1207
+
1208
+
1209
+
1210
+ @validate_call
1211
+ def api_v1_file_systems_file_system_rid_contents_metadata_get(
1212
+ self,
1213
+ file_system_rid: StrictStr,
1214
+ id: Optional[StrictStr] = None,
1215
+ _request_timeout: Union[
1216
+ None,
1217
+ Annotated[StrictFloat, Field(gt=0)],
1218
+ Tuple[
1219
+ Annotated[StrictFloat, Field(gt=0)],
1220
+ Annotated[StrictFloat, Field(gt=0)]
1221
+ ]
1222
+ ] = None,
1223
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1224
+ _content_type: Optional[StrictStr] = None,
1225
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1226
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1227
+ ) -> GetMetadataResponse:
1228
+ """Get Metadata
1229
+
1230
+
1231
+ :param file_system_rid: (required)
1232
+ :type file_system_rid: str
1233
+ :param id:
1234
+ :type id: str
1235
+ :param _request_timeout: timeout setting for this request. If one
1236
+ number provided, it will be total request
1237
+ timeout. It can also be a pair (tuple) of
1238
+ (connection, read) timeouts.
1239
+ :type _request_timeout: int, tuple(int, int), optional
1240
+ :param _request_auth: set to override the auth_settings for an a single
1241
+ request; this effectively ignores the
1242
+ authentication in the spec for a single request.
1243
+ :type _request_auth: dict, optional
1244
+ :param _content_type: force content-type for the request.
1245
+ :type _content_type: str, Optional
1246
+ :param _headers: set to override the headers for a single
1247
+ request; this effectively ignores the headers
1248
+ in the spec for a single request.
1249
+ :type _headers: dict, optional
1250
+ :param _host_index: set to override the host_index for a single
1251
+ request; this effectively ignores the host_index
1252
+ in the spec for a single request.
1253
+ :type _host_index: int, optional
1254
+ :return: Returns the result object.
1255
+ """ # noqa: E501
1256
+
1257
+ _param = self._api_v1_file_systems_file_system_rid_contents_metadata_get_serialize(
1258
+ file_system_rid=file_system_rid,
1259
+ id=id,
1260
+ _request_auth=_request_auth,
1261
+ _content_type=_content_type,
1262
+ _headers=_headers,
1263
+ _host_index=_host_index
1264
+ )
1265
+
1266
+ _response_types_map: Dict[str, Optional[str]] = {
1267
+ '200': "GetMetadataResponse",
1268
+ }
1269
+ response_data = self.api_client.call_api(
1270
+ *_param,
1271
+ _request_timeout=_request_timeout
1272
+ )
1273
+ response_data.read()
1274
+ return self.api_client.response_deserialize(
1275
+ response_data=response_data,
1276
+ response_types_map=_response_types_map,
1277
+ ).data
1278
+
1279
+
1280
+ @validate_call
1281
+ def api_v1_file_systems_file_system_rid_contents_metadata_get_with_http_info(
1282
+ self,
1283
+ file_system_rid: StrictStr,
1284
+ id: Optional[StrictStr] = None,
1285
+ _request_timeout: Union[
1286
+ None,
1287
+ Annotated[StrictFloat, Field(gt=0)],
1288
+ Tuple[
1289
+ Annotated[StrictFloat, Field(gt=0)],
1290
+ Annotated[StrictFloat, Field(gt=0)]
1291
+ ]
1292
+ ] = None,
1293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1294
+ _content_type: Optional[StrictStr] = None,
1295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1297
+ ) -> ApiResponse[GetMetadataResponse]:
1298
+ """Get Metadata
1299
+
1300
+
1301
+ :param file_system_rid: (required)
1302
+ :type file_system_rid: str
1303
+ :param id:
1304
+ :type id: str
1305
+ :param _request_timeout: timeout setting for this request. If one
1306
+ number provided, it will be total request
1307
+ timeout. It can also be a pair (tuple) of
1308
+ (connection, read) timeouts.
1309
+ :type _request_timeout: int, tuple(int, int), optional
1310
+ :param _request_auth: set to override the auth_settings for an a single
1311
+ request; this effectively ignores the
1312
+ authentication in the spec for a single request.
1313
+ :type _request_auth: dict, optional
1314
+ :param _content_type: force content-type for the request.
1315
+ :type _content_type: str, Optional
1316
+ :param _headers: set to override the headers for a single
1317
+ request; this effectively ignores the headers
1318
+ in the spec for a single request.
1319
+ :type _headers: dict, optional
1320
+ :param _host_index: set to override the host_index for a single
1321
+ request; this effectively ignores the host_index
1322
+ in the spec for a single request.
1323
+ :type _host_index: int, optional
1324
+ :return: Returns the result object.
1325
+ """ # noqa: E501
1326
+
1327
+ _param = self._api_v1_file_systems_file_system_rid_contents_metadata_get_serialize(
1328
+ file_system_rid=file_system_rid,
1329
+ id=id,
1330
+ _request_auth=_request_auth,
1331
+ _content_type=_content_type,
1332
+ _headers=_headers,
1333
+ _host_index=_host_index
1334
+ )
1335
+
1336
+ _response_types_map: Dict[str, Optional[str]] = {
1337
+ '200': "GetMetadataResponse",
1338
+ }
1339
+ response_data = self.api_client.call_api(
1340
+ *_param,
1341
+ _request_timeout=_request_timeout
1342
+ )
1343
+ response_data.read()
1344
+ return self.api_client.response_deserialize(
1345
+ response_data=response_data,
1346
+ response_types_map=_response_types_map,
1347
+ )
1348
+
1349
+
1350
+ @validate_call
1351
+ def api_v1_file_systems_file_system_rid_contents_metadata_get_without_preload_content(
1352
+ self,
1353
+ file_system_rid: StrictStr,
1354
+ id: Optional[StrictStr] = None,
1355
+ _request_timeout: Union[
1356
+ None,
1357
+ Annotated[StrictFloat, Field(gt=0)],
1358
+ Tuple[
1359
+ Annotated[StrictFloat, Field(gt=0)],
1360
+ Annotated[StrictFloat, Field(gt=0)]
1361
+ ]
1362
+ ] = None,
1363
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1364
+ _content_type: Optional[StrictStr] = None,
1365
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1366
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1367
+ ) -> RESTResponseType:
1368
+ """Get Metadata
1369
+
1370
+
1371
+ :param file_system_rid: (required)
1372
+ :type file_system_rid: str
1373
+ :param id:
1374
+ :type id: str
1375
+ :param _request_timeout: timeout setting for this request. If one
1376
+ number provided, it will be total request
1377
+ timeout. It can also be a pair (tuple) of
1378
+ (connection, read) timeouts.
1379
+ :type _request_timeout: int, tuple(int, int), optional
1380
+ :param _request_auth: set to override the auth_settings for an a single
1381
+ request; this effectively ignores the
1382
+ authentication in the spec for a single request.
1383
+ :type _request_auth: dict, optional
1384
+ :param _content_type: force content-type for the request.
1385
+ :type _content_type: str, Optional
1386
+ :param _headers: set to override the headers for a single
1387
+ request; this effectively ignores the headers
1388
+ in the spec for a single request.
1389
+ :type _headers: dict, optional
1390
+ :param _host_index: set to override the host_index for a single
1391
+ request; this effectively ignores the host_index
1392
+ in the spec for a single request.
1393
+ :type _host_index: int, optional
1394
+ :return: Returns the result object.
1395
+ """ # noqa: E501
1396
+
1397
+ _param = self._api_v1_file_systems_file_system_rid_contents_metadata_get_serialize(
1398
+ file_system_rid=file_system_rid,
1399
+ id=id,
1400
+ _request_auth=_request_auth,
1401
+ _content_type=_content_type,
1402
+ _headers=_headers,
1403
+ _host_index=_host_index
1404
+ )
1405
+
1406
+ _response_types_map: Dict[str, Optional[str]] = {
1407
+ '200': "GetMetadataResponse",
1408
+ }
1409
+ response_data = self.api_client.call_api(
1410
+ *_param,
1411
+ _request_timeout=_request_timeout
1412
+ )
1413
+ return response_data.response
1414
+
1415
+
1416
+ def _api_v1_file_systems_file_system_rid_contents_metadata_get_serialize(
1417
+ self,
1418
+ file_system_rid,
1419
+ id,
1420
+ _request_auth,
1421
+ _content_type,
1422
+ _headers,
1423
+ _host_index,
1424
+ ) -> RequestSerialized:
1425
+
1426
+ _host = None
1427
+
1428
+ _collection_formats: Dict[str, str] = {
1429
+ }
1430
+
1431
+ _path_params: Dict[str, str] = {}
1432
+ _query_params: List[Tuple[str, str]] = []
1433
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1434
+ _form_params: List[Tuple[str, str]] = []
1435
+ _files: Dict[
1436
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1437
+ ] = {}
1438
+ _body_params: Optional[bytes] = None
1439
+
1440
+ # process the path parameters
1441
+ if file_system_rid is not None:
1442
+ _path_params['fileSystemRid'] = file_system_rid
1443
+ # process the query parameters
1444
+ if id is not None:
1445
+
1446
+ _query_params.append(('id', id))
1447
+
1448
+ # process the header parameters
1449
+ # process the form parameters
1450
+ # process the body parameter
1451
+
1452
+
1453
+ # set the HTTP header `Accept`
1454
+ if 'Accept' not in _header_params:
1455
+ _header_params['Accept'] = self.api_client.select_header_accept(
1456
+ [
1457
+ 'application/json'
1458
+ ]
1459
+ )
1460
+
1461
+
1462
+ # authentication setting
1463
+ _auth_settings: List[str] = [
1464
+ ]
1465
+
1466
+ return self.api_client.param_serialize(
1467
+ method='GET',
1468
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/metadata',
1469
+ path_params=_path_params,
1470
+ query_params=_query_params,
1471
+ header_params=_header_params,
1472
+ body=_body_params,
1473
+ post_params=_form_params,
1474
+ files=_files,
1475
+ auth_settings=_auth_settings,
1476
+ collection_formats=_collection_formats,
1477
+ _host=_host,
1478
+ _request_auth=_request_auth
1479
+ )
1480
+
1481
+
1482
+
1483
+
1484
+ @validate_call
1485
+ def api_v1_file_systems_file_system_rid_contents_parent_get(
1486
+ self,
1487
+ file_system_rid: StrictStr,
1488
+ id: Optional[StrictStr] = None,
1489
+ _request_timeout: Union[
1490
+ None,
1491
+ Annotated[StrictFloat, Field(gt=0)],
1492
+ Tuple[
1493
+ Annotated[StrictFloat, Field(gt=0)],
1494
+ Annotated[StrictFloat, Field(gt=0)]
1495
+ ]
1496
+ ] = None,
1497
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1498
+ _content_type: Optional[StrictStr] = None,
1499
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1500
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1501
+ ) -> GetParentResponse:
1502
+ """Get Parent
1503
+
1504
+
1505
+ :param file_system_rid: (required)
1506
+ :type file_system_rid: str
1507
+ :param id:
1508
+ :type id: str
1509
+ :param _request_timeout: timeout setting for this request. If one
1510
+ number provided, it will be total request
1511
+ timeout. It can also be a pair (tuple) of
1512
+ (connection, read) timeouts.
1513
+ :type _request_timeout: int, tuple(int, int), optional
1514
+ :param _request_auth: set to override the auth_settings for an a single
1515
+ request; this effectively ignores the
1516
+ authentication in the spec for a single request.
1517
+ :type _request_auth: dict, optional
1518
+ :param _content_type: force content-type for the request.
1519
+ :type _content_type: str, Optional
1520
+ :param _headers: set to override the headers for a single
1521
+ request; this effectively ignores the headers
1522
+ in the spec for a single request.
1523
+ :type _headers: dict, optional
1524
+ :param _host_index: set to override the host_index for a single
1525
+ request; this effectively ignores the host_index
1526
+ in the spec for a single request.
1527
+ :type _host_index: int, optional
1528
+ :return: Returns the result object.
1529
+ """ # noqa: E501
1530
+
1531
+ _param = self._api_v1_file_systems_file_system_rid_contents_parent_get_serialize(
1532
+ file_system_rid=file_system_rid,
1533
+ id=id,
1534
+ _request_auth=_request_auth,
1535
+ _content_type=_content_type,
1536
+ _headers=_headers,
1537
+ _host_index=_host_index
1538
+ )
1539
+
1540
+ _response_types_map: Dict[str, Optional[str]] = {
1541
+ '200': "GetParentResponse",
1542
+ }
1543
+ response_data = self.api_client.call_api(
1544
+ *_param,
1545
+ _request_timeout=_request_timeout
1546
+ )
1547
+ response_data.read()
1548
+ return self.api_client.response_deserialize(
1549
+ response_data=response_data,
1550
+ response_types_map=_response_types_map,
1551
+ ).data
1552
+
1553
+
1554
+ @validate_call
1555
+ def api_v1_file_systems_file_system_rid_contents_parent_get_with_http_info(
1556
+ self,
1557
+ file_system_rid: StrictStr,
1558
+ id: Optional[StrictStr] = None,
1559
+ _request_timeout: Union[
1560
+ None,
1561
+ Annotated[StrictFloat, Field(gt=0)],
1562
+ Tuple[
1563
+ Annotated[StrictFloat, Field(gt=0)],
1564
+ Annotated[StrictFloat, Field(gt=0)]
1565
+ ]
1566
+ ] = None,
1567
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1568
+ _content_type: Optional[StrictStr] = None,
1569
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1570
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1571
+ ) -> ApiResponse[GetParentResponse]:
1572
+ """Get Parent
1573
+
1574
+
1575
+ :param file_system_rid: (required)
1576
+ :type file_system_rid: str
1577
+ :param id:
1578
+ :type id: str
1579
+ :param _request_timeout: timeout setting for this request. If one
1580
+ number provided, it will be total request
1581
+ timeout. It can also be a pair (tuple) of
1582
+ (connection, read) timeouts.
1583
+ :type _request_timeout: int, tuple(int, int), optional
1584
+ :param _request_auth: set to override the auth_settings for an a single
1585
+ request; this effectively ignores the
1586
+ authentication in the spec for a single request.
1587
+ :type _request_auth: dict, optional
1588
+ :param _content_type: force content-type for the request.
1589
+ :type _content_type: str, Optional
1590
+ :param _headers: set to override the headers for a single
1591
+ request; this effectively ignores the headers
1592
+ in the spec for a single request.
1593
+ :type _headers: dict, optional
1594
+ :param _host_index: set to override the host_index for a single
1595
+ request; this effectively ignores the host_index
1596
+ in the spec for a single request.
1597
+ :type _host_index: int, optional
1598
+ :return: Returns the result object.
1599
+ """ # noqa: E501
1600
+
1601
+ _param = self._api_v1_file_systems_file_system_rid_contents_parent_get_serialize(
1602
+ file_system_rid=file_system_rid,
1603
+ id=id,
1604
+ _request_auth=_request_auth,
1605
+ _content_type=_content_type,
1606
+ _headers=_headers,
1607
+ _host_index=_host_index
1608
+ )
1609
+
1610
+ _response_types_map: Dict[str, Optional[str]] = {
1611
+ '200': "GetParentResponse",
1612
+ }
1613
+ response_data = self.api_client.call_api(
1614
+ *_param,
1615
+ _request_timeout=_request_timeout
1616
+ )
1617
+ response_data.read()
1618
+ return self.api_client.response_deserialize(
1619
+ response_data=response_data,
1620
+ response_types_map=_response_types_map,
1621
+ )
1622
+
1623
+
1624
+ @validate_call
1625
+ def api_v1_file_systems_file_system_rid_contents_parent_get_without_preload_content(
1626
+ self,
1627
+ file_system_rid: StrictStr,
1628
+ id: Optional[StrictStr] = None,
1629
+ _request_timeout: Union[
1630
+ None,
1631
+ Annotated[StrictFloat, Field(gt=0)],
1632
+ Tuple[
1633
+ Annotated[StrictFloat, Field(gt=0)],
1634
+ Annotated[StrictFloat, Field(gt=0)]
1635
+ ]
1636
+ ] = None,
1637
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1638
+ _content_type: Optional[StrictStr] = None,
1639
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1640
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1641
+ ) -> RESTResponseType:
1642
+ """Get Parent
1643
+
1644
+
1645
+ :param file_system_rid: (required)
1646
+ :type file_system_rid: str
1647
+ :param id:
1648
+ :type id: str
1649
+ :param _request_timeout: timeout setting for this request. If one
1650
+ number provided, it will be total request
1651
+ timeout. It can also be a pair (tuple) of
1652
+ (connection, read) timeouts.
1653
+ :type _request_timeout: int, tuple(int, int), optional
1654
+ :param _request_auth: set to override the auth_settings for an a single
1655
+ request; this effectively ignores the
1656
+ authentication in the spec for a single request.
1657
+ :type _request_auth: dict, optional
1658
+ :param _content_type: force content-type for the request.
1659
+ :type _content_type: str, Optional
1660
+ :param _headers: set to override the headers for a single
1661
+ request; this effectively ignores the headers
1662
+ in the spec for a single request.
1663
+ :type _headers: dict, optional
1664
+ :param _host_index: set to override the host_index for a single
1665
+ request; this effectively ignores the host_index
1666
+ in the spec for a single request.
1667
+ :type _host_index: int, optional
1668
+ :return: Returns the result object.
1669
+ """ # noqa: E501
1670
+
1671
+ _param = self._api_v1_file_systems_file_system_rid_contents_parent_get_serialize(
1672
+ file_system_rid=file_system_rid,
1673
+ id=id,
1674
+ _request_auth=_request_auth,
1675
+ _content_type=_content_type,
1676
+ _headers=_headers,
1677
+ _host_index=_host_index
1678
+ )
1679
+
1680
+ _response_types_map: Dict[str, Optional[str]] = {
1681
+ '200': "GetParentResponse",
1682
+ }
1683
+ response_data = self.api_client.call_api(
1684
+ *_param,
1685
+ _request_timeout=_request_timeout
1686
+ )
1687
+ return response_data.response
1688
+
1689
+
1690
+ def _api_v1_file_systems_file_system_rid_contents_parent_get_serialize(
1691
+ self,
1692
+ file_system_rid,
1693
+ id,
1694
+ _request_auth,
1695
+ _content_type,
1696
+ _headers,
1697
+ _host_index,
1698
+ ) -> RequestSerialized:
1699
+
1700
+ _host = None
1701
+
1702
+ _collection_formats: Dict[str, str] = {
1703
+ }
1704
+
1705
+ _path_params: Dict[str, str] = {}
1706
+ _query_params: List[Tuple[str, str]] = []
1707
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1708
+ _form_params: List[Tuple[str, str]] = []
1709
+ _files: Dict[
1710
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1711
+ ] = {}
1712
+ _body_params: Optional[bytes] = None
1713
+
1714
+ # process the path parameters
1715
+ if file_system_rid is not None:
1716
+ _path_params['fileSystemRid'] = file_system_rid
1717
+ # process the query parameters
1718
+ if id is not None:
1719
+
1720
+ _query_params.append(('id', id))
1721
+
1722
+ # process the header parameters
1723
+ # process the form parameters
1724
+ # process the body parameter
1725
+
1726
+
1727
+ # set the HTTP header `Accept`
1728
+ if 'Accept' not in _header_params:
1729
+ _header_params['Accept'] = self.api_client.select_header_accept(
1730
+ [
1731
+ 'application/json'
1732
+ ]
1733
+ )
1734
+
1735
+
1736
+ # authentication setting
1737
+ _auth_settings: List[str] = [
1738
+ ]
1739
+
1740
+ return self.api_client.param_serialize(
1741
+ method='GET',
1742
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/parent',
1743
+ path_params=_path_params,
1744
+ query_params=_query_params,
1745
+ header_params=_header_params,
1746
+ body=_body_params,
1747
+ post_params=_form_params,
1748
+ files=_files,
1749
+ auth_settings=_auth_settings,
1750
+ collection_formats=_collection_formats,
1751
+ _host=_host,
1752
+ _request_auth=_request_auth
1753
+ )
1754
+
1755
+
1756
+
1757
+
1758
+ @validate_call
1759
+ def api_v1_file_systems_file_system_rid_contents_signed_url_get(
1760
+ self,
1761
+ file_system_rid: StrictStr,
1762
+ file: Optional[StrictStr] = None,
1763
+ _request_timeout: Union[
1764
+ None,
1765
+ Annotated[StrictFloat, Field(gt=0)],
1766
+ Tuple[
1767
+ Annotated[StrictFloat, Field(gt=0)],
1768
+ Annotated[StrictFloat, Field(gt=0)]
1769
+ ]
1770
+ ] = None,
1771
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1772
+ _content_type: Optional[StrictStr] = None,
1773
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1774
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1775
+ ) -> GetSignedUrlResponse:
1776
+ """Signed Url
1777
+
1778
+
1779
+ :param file_system_rid: (required)
1780
+ :type file_system_rid: str
1781
+ :param file:
1782
+ :type file: str
1783
+ :param _request_timeout: timeout setting for this request. If one
1784
+ number provided, it will be total request
1785
+ timeout. It can also be a pair (tuple) of
1786
+ (connection, read) timeouts.
1787
+ :type _request_timeout: int, tuple(int, int), optional
1788
+ :param _request_auth: set to override the auth_settings for an a single
1789
+ request; this effectively ignores the
1790
+ authentication in the spec for a single request.
1791
+ :type _request_auth: dict, optional
1792
+ :param _content_type: force content-type for the request.
1793
+ :type _content_type: str, Optional
1794
+ :param _headers: set to override the headers for a single
1795
+ request; this effectively ignores the headers
1796
+ in the spec for a single request.
1797
+ :type _headers: dict, optional
1798
+ :param _host_index: set to override the host_index for a single
1799
+ request; this effectively ignores the host_index
1800
+ in the spec for a single request.
1801
+ :type _host_index: int, optional
1802
+ :return: Returns the result object.
1803
+ """ # noqa: E501
1804
+
1805
+ _param = self._api_v1_file_systems_file_system_rid_contents_signed_url_get_serialize(
1806
+ file_system_rid=file_system_rid,
1807
+ file=file,
1808
+ _request_auth=_request_auth,
1809
+ _content_type=_content_type,
1810
+ _headers=_headers,
1811
+ _host_index=_host_index
1812
+ )
1813
+
1814
+ _response_types_map: Dict[str, Optional[str]] = {
1815
+ '200': "GetSignedUrlResponse",
1816
+ }
1817
+ response_data = self.api_client.call_api(
1818
+ *_param,
1819
+ _request_timeout=_request_timeout
1820
+ )
1821
+ response_data.read()
1822
+ return self.api_client.response_deserialize(
1823
+ response_data=response_data,
1824
+ response_types_map=_response_types_map,
1825
+ ).data
1826
+
1827
+
1828
+ @validate_call
1829
+ def api_v1_file_systems_file_system_rid_contents_signed_url_get_with_http_info(
1830
+ self,
1831
+ file_system_rid: StrictStr,
1832
+ file: Optional[StrictStr] = None,
1833
+ _request_timeout: Union[
1834
+ None,
1835
+ Annotated[StrictFloat, Field(gt=0)],
1836
+ Tuple[
1837
+ Annotated[StrictFloat, Field(gt=0)],
1838
+ Annotated[StrictFloat, Field(gt=0)]
1839
+ ]
1840
+ ] = None,
1841
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1842
+ _content_type: Optional[StrictStr] = None,
1843
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1844
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1845
+ ) -> ApiResponse[GetSignedUrlResponse]:
1846
+ """Signed Url
1847
+
1848
+
1849
+ :param file_system_rid: (required)
1850
+ :type file_system_rid: str
1851
+ :param file:
1852
+ :type file: str
1853
+ :param _request_timeout: timeout setting for this request. If one
1854
+ number provided, it will be total request
1855
+ timeout. It can also be a pair (tuple) of
1856
+ (connection, read) timeouts.
1857
+ :type _request_timeout: int, tuple(int, int), optional
1858
+ :param _request_auth: set to override the auth_settings for an a single
1859
+ request; this effectively ignores the
1860
+ authentication in the spec for a single request.
1861
+ :type _request_auth: dict, optional
1862
+ :param _content_type: force content-type for the request.
1863
+ :type _content_type: str, Optional
1864
+ :param _headers: set to override the headers for a single
1865
+ request; this effectively ignores the headers
1866
+ in the spec for a single request.
1867
+ :type _headers: dict, optional
1868
+ :param _host_index: set to override the host_index for a single
1869
+ request; this effectively ignores the host_index
1870
+ in the spec for a single request.
1871
+ :type _host_index: int, optional
1872
+ :return: Returns the result object.
1873
+ """ # noqa: E501
1874
+
1875
+ _param = self._api_v1_file_systems_file_system_rid_contents_signed_url_get_serialize(
1876
+ file_system_rid=file_system_rid,
1877
+ file=file,
1878
+ _request_auth=_request_auth,
1879
+ _content_type=_content_type,
1880
+ _headers=_headers,
1881
+ _host_index=_host_index
1882
+ )
1883
+
1884
+ _response_types_map: Dict[str, Optional[str]] = {
1885
+ '200': "GetSignedUrlResponse",
1886
+ }
1887
+ response_data = self.api_client.call_api(
1888
+ *_param,
1889
+ _request_timeout=_request_timeout
1890
+ )
1891
+ response_data.read()
1892
+ return self.api_client.response_deserialize(
1893
+ response_data=response_data,
1894
+ response_types_map=_response_types_map,
1895
+ )
1896
+
1897
+
1898
+ @validate_call
1899
+ def api_v1_file_systems_file_system_rid_contents_signed_url_get_without_preload_content(
1900
+ self,
1901
+ file_system_rid: StrictStr,
1902
+ file: Optional[StrictStr] = None,
1903
+ _request_timeout: Union[
1904
+ None,
1905
+ Annotated[StrictFloat, Field(gt=0)],
1906
+ Tuple[
1907
+ Annotated[StrictFloat, Field(gt=0)],
1908
+ Annotated[StrictFloat, Field(gt=0)]
1909
+ ]
1910
+ ] = None,
1911
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1912
+ _content_type: Optional[StrictStr] = None,
1913
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1914
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1915
+ ) -> RESTResponseType:
1916
+ """Signed Url
1917
+
1918
+
1919
+ :param file_system_rid: (required)
1920
+ :type file_system_rid: str
1921
+ :param file:
1922
+ :type file: str
1923
+ :param _request_timeout: timeout setting for this request. If one
1924
+ number provided, it will be total request
1925
+ timeout. It can also be a pair (tuple) of
1926
+ (connection, read) timeouts.
1927
+ :type _request_timeout: int, tuple(int, int), optional
1928
+ :param _request_auth: set to override the auth_settings for an a single
1929
+ request; this effectively ignores the
1930
+ authentication in the spec for a single request.
1931
+ :type _request_auth: dict, optional
1932
+ :param _content_type: force content-type for the request.
1933
+ :type _content_type: str, Optional
1934
+ :param _headers: set to override the headers for a single
1935
+ request; this effectively ignores the headers
1936
+ in the spec for a single request.
1937
+ :type _headers: dict, optional
1938
+ :param _host_index: set to override the host_index for a single
1939
+ request; this effectively ignores the host_index
1940
+ in the spec for a single request.
1941
+ :type _host_index: int, optional
1942
+ :return: Returns the result object.
1943
+ """ # noqa: E501
1944
+
1945
+ _param = self._api_v1_file_systems_file_system_rid_contents_signed_url_get_serialize(
1946
+ file_system_rid=file_system_rid,
1947
+ file=file,
1948
+ _request_auth=_request_auth,
1949
+ _content_type=_content_type,
1950
+ _headers=_headers,
1951
+ _host_index=_host_index
1952
+ )
1953
+
1954
+ _response_types_map: Dict[str, Optional[str]] = {
1955
+ '200': "GetSignedUrlResponse",
1956
+ }
1957
+ response_data = self.api_client.call_api(
1958
+ *_param,
1959
+ _request_timeout=_request_timeout
1960
+ )
1961
+ return response_data.response
1962
+
1963
+
1964
+ def _api_v1_file_systems_file_system_rid_contents_signed_url_get_serialize(
1965
+ self,
1966
+ file_system_rid,
1967
+ file,
1968
+ _request_auth,
1969
+ _content_type,
1970
+ _headers,
1971
+ _host_index,
1972
+ ) -> RequestSerialized:
1973
+
1974
+ _host = None
1975
+
1976
+ _collection_formats: Dict[str, str] = {
1977
+ }
1978
+
1979
+ _path_params: Dict[str, str] = {}
1980
+ _query_params: List[Tuple[str, str]] = []
1981
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1982
+ _form_params: List[Tuple[str, str]] = []
1983
+ _files: Dict[
1984
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1985
+ ] = {}
1986
+ _body_params: Optional[bytes] = None
1987
+
1988
+ # process the path parameters
1989
+ if file_system_rid is not None:
1990
+ _path_params['fileSystemRid'] = file_system_rid
1991
+ # process the query parameters
1992
+ if file is not None:
1993
+
1994
+ _query_params.append(('file', file))
1995
+
1996
+ # process the header parameters
1997
+ # process the form parameters
1998
+ # process the body parameter
1999
+
2000
+
2001
+ # set the HTTP header `Accept`
2002
+ if 'Accept' not in _header_params:
2003
+ _header_params['Accept'] = self.api_client.select_header_accept(
2004
+ [
2005
+ 'application/json'
2006
+ ]
2007
+ )
2008
+
2009
+
2010
+ # authentication setting
2011
+ _auth_settings: List[str] = [
2012
+ ]
2013
+
2014
+ return self.api_client.param_serialize(
2015
+ method='GET',
2016
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/signed-url',
2017
+ path_params=_path_params,
2018
+ query_params=_query_params,
2019
+ header_params=_header_params,
2020
+ body=_body_params,
2021
+ post_params=_form_params,
2022
+ files=_files,
2023
+ auth_settings=_auth_settings,
2024
+ collection_formats=_collection_formats,
2025
+ _host=_host,
2026
+ _request_auth=_request_auth
2027
+ )
2028
+
2029
+
2030
+
2031
+
2032
+ @validate_call
2033
+ def api_v1_file_systems_file_system_rid_contents_upload_post(
2034
+ self,
2035
+ file_system_rid: StrictStr,
2036
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2037
+ filename: Annotated[str, Field(strict=True)],
2038
+ overwrite: Optional[Dict[str, Any]] = None,
2039
+ parent: Optional[StrictStr] = None,
2040
+ _request_timeout: Union[
2041
+ None,
2042
+ Annotated[StrictFloat, Field(gt=0)],
2043
+ Tuple[
2044
+ Annotated[StrictFloat, Field(gt=0)],
2045
+ Annotated[StrictFloat, Field(gt=0)]
2046
+ ]
2047
+ ] = None,
2048
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2049
+ _content_type: Optional[StrictStr] = None,
2050
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2051
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2052
+ ) -> UploadFileToManagedFileSystemResponse:
2053
+ """Upload File
2054
+
2055
+
2056
+ :param file_system_rid: (required)
2057
+ :type file_system_rid: str
2058
+ :param file: (required)
2059
+ :type file: bytearray
2060
+ :param filename: (required)
2061
+ :type filename: str
2062
+ :param overwrite:
2063
+ :type overwrite: object
2064
+ :param parent:
2065
+ :type parent: str
2066
+ :param _request_timeout: timeout setting for this request. If one
2067
+ number provided, it will be total request
2068
+ timeout. It can also be a pair (tuple) of
2069
+ (connection, read) timeouts.
2070
+ :type _request_timeout: int, tuple(int, int), optional
2071
+ :param _request_auth: set to override the auth_settings for an a single
2072
+ request; this effectively ignores the
2073
+ authentication in the spec for a single request.
2074
+ :type _request_auth: dict, optional
2075
+ :param _content_type: force content-type for the request.
2076
+ :type _content_type: str, Optional
2077
+ :param _headers: set to override the headers for a single
2078
+ request; this effectively ignores the headers
2079
+ in the spec for a single request.
2080
+ :type _headers: dict, optional
2081
+ :param _host_index: set to override the host_index for a single
2082
+ request; this effectively ignores the host_index
2083
+ in the spec for a single request.
2084
+ :type _host_index: int, optional
2085
+ :return: Returns the result object.
2086
+ """ # noqa: E501
2087
+
2088
+ _param = self._api_v1_file_systems_file_system_rid_contents_upload_post_serialize(
2089
+ file_system_rid=file_system_rid,
2090
+ file=file,
2091
+ filename=filename,
2092
+ overwrite=overwrite,
2093
+ parent=parent,
2094
+ _request_auth=_request_auth,
2095
+ _content_type=_content_type,
2096
+ _headers=_headers,
2097
+ _host_index=_host_index
2098
+ )
2099
+
2100
+ _response_types_map: Dict[str, Optional[str]] = {
2101
+ '200': "UploadFileToManagedFileSystemResponse",
2102
+ }
2103
+ response_data = self.api_client.call_api(
2104
+ *_param,
2105
+ _request_timeout=_request_timeout
2106
+ )
2107
+ response_data.read()
2108
+ return self.api_client.response_deserialize(
2109
+ response_data=response_data,
2110
+ response_types_map=_response_types_map,
2111
+ ).data
2112
+
2113
+
2114
+ @validate_call
2115
+ def api_v1_file_systems_file_system_rid_contents_upload_post_with_http_info(
2116
+ self,
2117
+ file_system_rid: StrictStr,
2118
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2119
+ filename: Annotated[str, Field(strict=True)],
2120
+ overwrite: Optional[Dict[str, Any]] = None,
2121
+ parent: Optional[StrictStr] = None,
2122
+ _request_timeout: Union[
2123
+ None,
2124
+ Annotated[StrictFloat, Field(gt=0)],
2125
+ Tuple[
2126
+ Annotated[StrictFloat, Field(gt=0)],
2127
+ Annotated[StrictFloat, Field(gt=0)]
2128
+ ]
2129
+ ] = None,
2130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2131
+ _content_type: Optional[StrictStr] = None,
2132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2134
+ ) -> ApiResponse[UploadFileToManagedFileSystemResponse]:
2135
+ """Upload File
2136
+
2137
+
2138
+ :param file_system_rid: (required)
2139
+ :type file_system_rid: str
2140
+ :param file: (required)
2141
+ :type file: bytearray
2142
+ :param filename: (required)
2143
+ :type filename: str
2144
+ :param overwrite:
2145
+ :type overwrite: object
2146
+ :param parent:
2147
+ :type parent: str
2148
+ :param _request_timeout: timeout setting for this request. If one
2149
+ number provided, it will be total request
2150
+ timeout. It can also be a pair (tuple) of
2151
+ (connection, read) timeouts.
2152
+ :type _request_timeout: int, tuple(int, int), optional
2153
+ :param _request_auth: set to override the auth_settings for an a single
2154
+ request; this effectively ignores the
2155
+ authentication in the spec for a single request.
2156
+ :type _request_auth: dict, optional
2157
+ :param _content_type: force content-type for the request.
2158
+ :type _content_type: str, Optional
2159
+ :param _headers: set to override the headers for a single
2160
+ request; this effectively ignores the headers
2161
+ in the spec for a single request.
2162
+ :type _headers: dict, optional
2163
+ :param _host_index: set to override the host_index for a single
2164
+ request; this effectively ignores the host_index
2165
+ in the spec for a single request.
2166
+ :type _host_index: int, optional
2167
+ :return: Returns the result object.
2168
+ """ # noqa: E501
2169
+
2170
+ _param = self._api_v1_file_systems_file_system_rid_contents_upload_post_serialize(
2171
+ file_system_rid=file_system_rid,
2172
+ file=file,
2173
+ filename=filename,
2174
+ overwrite=overwrite,
2175
+ parent=parent,
2176
+ _request_auth=_request_auth,
2177
+ _content_type=_content_type,
2178
+ _headers=_headers,
2179
+ _host_index=_host_index
2180
+ )
2181
+
2182
+ _response_types_map: Dict[str, Optional[str]] = {
2183
+ '200': "UploadFileToManagedFileSystemResponse",
2184
+ }
2185
+ response_data = self.api_client.call_api(
2186
+ *_param,
2187
+ _request_timeout=_request_timeout
2188
+ )
2189
+ response_data.read()
2190
+ return self.api_client.response_deserialize(
2191
+ response_data=response_data,
2192
+ response_types_map=_response_types_map,
2193
+ )
2194
+
2195
+
2196
+ @validate_call
2197
+ def api_v1_file_systems_file_system_rid_contents_upload_post_without_preload_content(
2198
+ self,
2199
+ file_system_rid: StrictStr,
2200
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2201
+ filename: Annotated[str, Field(strict=True)],
2202
+ overwrite: Optional[Dict[str, Any]] = None,
2203
+ parent: Optional[StrictStr] = None,
2204
+ _request_timeout: Union[
2205
+ None,
2206
+ Annotated[StrictFloat, Field(gt=0)],
2207
+ Tuple[
2208
+ Annotated[StrictFloat, Field(gt=0)],
2209
+ Annotated[StrictFloat, Field(gt=0)]
2210
+ ]
2211
+ ] = None,
2212
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2213
+ _content_type: Optional[StrictStr] = None,
2214
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2215
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2216
+ ) -> RESTResponseType:
2217
+ """Upload File
2218
+
2219
+
2220
+ :param file_system_rid: (required)
2221
+ :type file_system_rid: str
2222
+ :param file: (required)
2223
+ :type file: bytearray
2224
+ :param filename: (required)
2225
+ :type filename: str
2226
+ :param overwrite:
2227
+ :type overwrite: object
2228
+ :param parent:
2229
+ :type parent: str
2230
+ :param _request_timeout: timeout setting for this request. If one
2231
+ number provided, it will be total request
2232
+ timeout. It can also be a pair (tuple) of
2233
+ (connection, read) timeouts.
2234
+ :type _request_timeout: int, tuple(int, int), optional
2235
+ :param _request_auth: set to override the auth_settings for an a single
2236
+ request; this effectively ignores the
2237
+ authentication in the spec for a single request.
2238
+ :type _request_auth: dict, optional
2239
+ :param _content_type: force content-type for the request.
2240
+ :type _content_type: str, Optional
2241
+ :param _headers: set to override the headers for a single
2242
+ request; this effectively ignores the headers
2243
+ in the spec for a single request.
2244
+ :type _headers: dict, optional
2245
+ :param _host_index: set to override the host_index for a single
2246
+ request; this effectively ignores the host_index
2247
+ in the spec for a single request.
2248
+ :type _host_index: int, optional
2249
+ :return: Returns the result object.
2250
+ """ # noqa: E501
2251
+
2252
+ _param = self._api_v1_file_systems_file_system_rid_contents_upload_post_serialize(
2253
+ file_system_rid=file_system_rid,
2254
+ file=file,
2255
+ filename=filename,
2256
+ overwrite=overwrite,
2257
+ parent=parent,
2258
+ _request_auth=_request_auth,
2259
+ _content_type=_content_type,
2260
+ _headers=_headers,
2261
+ _host_index=_host_index
2262
+ )
2263
+
2264
+ _response_types_map: Dict[str, Optional[str]] = {
2265
+ '200': "UploadFileToManagedFileSystemResponse",
2266
+ }
2267
+ response_data = self.api_client.call_api(
2268
+ *_param,
2269
+ _request_timeout=_request_timeout
2270
+ )
2271
+ return response_data.response
2272
+
2273
+
2274
+ def _api_v1_file_systems_file_system_rid_contents_upload_post_serialize(
2275
+ self,
2276
+ file_system_rid,
2277
+ file,
2278
+ filename,
2279
+ overwrite,
2280
+ parent,
2281
+ _request_auth,
2282
+ _content_type,
2283
+ _headers,
2284
+ _host_index,
2285
+ ) -> RequestSerialized:
2286
+
2287
+ _host = None
2288
+
2289
+ _collection_formats: Dict[str, str] = {
2290
+ }
2291
+
2292
+ _path_params: Dict[str, str] = {}
2293
+ _query_params: List[Tuple[str, str]] = []
2294
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2295
+ _form_params: List[Tuple[str, str]] = []
2296
+ _files: Dict[
2297
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2298
+ ] = {}
2299
+ _body_params: Optional[bytes] = None
2300
+
2301
+ # process the path parameters
2302
+ if file_system_rid is not None:
2303
+ _path_params['fileSystemRid'] = file_system_rid
2304
+ # process the query parameters
2305
+ if overwrite is not None:
2306
+
2307
+ _query_params.append(('overwrite', overwrite))
2308
+
2309
+ # process the header parameters
2310
+ # process the form parameters
2311
+ if file is not None:
2312
+ _files['file'] = file
2313
+ if filename is not None:
2314
+ _form_params.append(('filename', filename))
2315
+ if parent is not None:
2316
+ _form_params.append(('parent', parent))
2317
+ # process the body parameter
2318
+
2319
+
2320
+ # set the HTTP header `Accept`
2321
+ if 'Accept' not in _header_params:
2322
+ _header_params['Accept'] = self.api_client.select_header_accept(
2323
+ [
2324
+ 'application/json'
2325
+ ]
2326
+ )
2327
+
2328
+ # set the HTTP header `Content-Type`
2329
+ if _content_type:
2330
+ _header_params['Content-Type'] = _content_type
2331
+ else:
2332
+ _default_content_type = (
2333
+ self.api_client.select_header_content_type(
2334
+ [
2335
+ 'multipart/form-data'
2336
+ ]
2337
+ )
2338
+ )
2339
+ if _default_content_type is not None:
2340
+ _header_params['Content-Type'] = _default_content_type
2341
+
2342
+ # authentication setting
2343
+ _auth_settings: List[str] = [
2344
+ ]
2345
+
2346
+ return self.api_client.param_serialize(
2347
+ method='POST',
2348
+ resource_path='/api/v1/file-systems/{fileSystemRid}/contents/upload',
2349
+ path_params=_path_params,
2350
+ query_params=_query_params,
2351
+ header_params=_header_params,
2352
+ body=_body_params,
2353
+ post_params=_form_params,
2354
+ files=_files,
2355
+ auth_settings=_auth_settings,
2356
+ collection_formats=_collection_formats,
2357
+ _host=_host,
2358
+ _request_auth=_request_auth
2359
+ )
2360
+
2361
+