perceptic-core-client 0.5.12__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.
- perceptic_core_client/__init__.py +0 -0
- perceptic_core_client/perceptic_core_client/__init__.py +101 -0
- perceptic_core_client/perceptic_core_client/api/__init__.py +12 -0
- perceptic_core_client/perceptic_core_client/api/connection_resource_api.py +569 -0
- perceptic_core_client/perceptic_core_client/api/file_system_contents_resource_api.py +2361 -0
- perceptic_core_client/perceptic_core_client/api/file_system_resource_api.py +1086 -0
- perceptic_core_client/perceptic_core_client/api/indexer_resource_api.py +537 -0
- perceptic_core_client/perceptic_core_client/api/indexing_task_resource_api.py +1173 -0
- perceptic_core_client/perceptic_core_client/api/uri_resource_api.py +1630 -0
- perceptic_core_client/perceptic_core_client/api/user_resource_api.py +278 -0
- perceptic_core_client/perceptic_core_client/api/worker_resource_api.py +1746 -0
- perceptic_core_client/perceptic_core_client/api_client.py +797 -0
- perceptic_core_client/perceptic_core_client/api_response.py +21 -0
- perceptic_core_client/perceptic_core_client/configuration.py +573 -0
- perceptic_core_client/perceptic_core_client/docs/ActionType.md +14 -0
- perceptic_core_client/perceptic_core_client/docs/AzureBlobConnectionSettingsApiDto.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/AzureBlobFileSystemRootMetadataApiDto.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/ConnectionApiDto.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/ConnectionResourceApi.md +144 -0
- perceptic_core_client/perceptic_core_client/docs/ConnectionSettingsApiDto.md +36 -0
- perceptic_core_client/perceptic_core_client/docs/CreateConnectionRequest.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/CreateConnectionResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateFileSystemResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateFolderRequest.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateFolderResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskRequest.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskResponse.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/CreateManagedFileSystemRequest.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/CreateRemoteFileSystemRequest.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemApiDto.md +34 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemContentsResourceApi.md +573 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemResourceApi.md +276 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemRootMetadataApiDto.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/GetConnectionResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetIndexerResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetIndexingTaskResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetMetadataResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetParentResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetParentUriResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetSignedUrlResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkerEventsResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkerMetadataResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkerStatusResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkersResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/IndexerDto.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/IndexerResourceApi.md +138 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingActionDto.md +35 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingActionStatus.md +16 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingTaskDto.md +36 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingTaskResourceApi.md +289 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingTaskStatus.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/InfoEvent.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/JsonNode.md +50 -0
- perceptic_core_client/perceptic_core_client/docs/JsonNodeType.md +26 -0
- perceptic_core_client/perceptic_core_client/docs/ListAllFileSystemsResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ListFileSystemResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ListIndexersResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ListIndexingActionsResponse.md +37 -0
- perceptic_core_client/perceptic_core_client/docs/ManagedFileSystemApiDto.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/MeResponse.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/ModelSchema.md +38 -0
- perceptic_core_client/perceptic_core_client/docs/PagedListFileSystemResponse.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/PostWorkerRunRequest.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/PostWorkerRunResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ProgressEvent.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/RemoteFileSystemApiDto.md +34 -0
- perceptic_core_client/perceptic_core_client/docs/RequestForInputEvent.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceEntryDto.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceId.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceIdentifier.md +36 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceMetadataDto.md +38 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceTypeDto.md +12 -0
- perceptic_core_client/perceptic_core_client/docs/RunStatusDto.md +26 -0
- perceptic_core_client/perceptic_core_client/docs/S3ConnectionSettingsApiDto.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/S3FileSystemRootMetadataApiDto.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/SchemaLocation.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/StartExecutionResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/UploadFileToManagedFileSystemResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/UriResourceApi.md +413 -0
- perceptic_core_client/perceptic_core_client/docs/UserResourceApi.md +71 -0
- perceptic_core_client/perceptic_core_client/docs/WorkerEvent.md +34 -0
- perceptic_core_client/perceptic_core_client/docs/WorkerMetadataDto.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/WorkerResourceApi.md +427 -0
- perceptic_core_client/perceptic_core_client/exceptions.py +216 -0
- perceptic_core_client/perceptic_core_client/models/__init__.py +77 -0
- perceptic_core_client/perceptic_core_client/models/action_type.py +38 -0
- perceptic_core_client/perceptic_core_client/models/azure_blob_connection_settings_api_dto.py +124 -0
- perceptic_core_client/perceptic_core_client/models/azure_blob_file_system_root_metadata_api_dto.py +89 -0
- perceptic_core_client/perceptic_core_client/models/connection_api_dto.py +99 -0
- perceptic_core_client/perceptic_core_client/models/connection_settings_api_dto.py +165 -0
- perceptic_core_client/perceptic_core_client/models/create_connection_request.py +95 -0
- perceptic_core_client/perceptic_core_client/models/create_connection_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_file_system_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_folder_request.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_folder_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_indexing_task_request.py +95 -0
- perceptic_core_client/perceptic_core_client/models/create_indexing_task_response.py +95 -0
- perceptic_core_client/perceptic_core_client/models/create_managed_file_system_request.py +89 -0
- perceptic_core_client/perceptic_core_client/models/create_remote_file_system_request.py +97 -0
- perceptic_core_client/perceptic_core_client/models/file_system_api_dto.py +165 -0
- perceptic_core_client/perceptic_core_client/models/file_system_root_metadata_api_dto.py +165 -0
- perceptic_core_client/perceptic_core_client/models/get_connection_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_indexer_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_indexing_task_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_metadata_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_parent_response.py +96 -0
- perceptic_core_client/perceptic_core_client/models/get_parent_uri_response.py +92 -0
- perceptic_core_client/perceptic_core_client/models/get_signed_url_response.py +92 -0
- perceptic_core_client/perceptic_core_client/models/get_worker_events_response.py +95 -0
- perceptic_core_client/perceptic_core_client/models/get_worker_metadata_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_worker_status_response.py +88 -0
- perceptic_core_client/perceptic_core_client/models/get_workers_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/indexer_dto.py +91 -0
- perceptic_core_client/perceptic_core_client/models/indexing_action_dto.py +107 -0
- perceptic_core_client/perceptic_core_client/models/indexing_action_status.py +39 -0
- perceptic_core_client/perceptic_core_client/models/indexing_task_dto.py +106 -0
- perceptic_core_client/perceptic_core_client/models/indexing_task_status.py +87 -0
- perceptic_core_client/perceptic_core_client/models/info_event.py +91 -0
- perceptic_core_client/perceptic_core_client/models/json_node.py +130 -0
- perceptic_core_client/perceptic_core_client/models/json_node_type.py +44 -0
- perceptic_core_client/perceptic_core_client/models/list_all_file_systems_response.py +100 -0
- perceptic_core_client/perceptic_core_client/models/list_file_system_response.py +100 -0
- perceptic_core_client/perceptic_core_client/models/list_indexers_response.py +100 -0
- perceptic_core_client/perceptic_core_client/models/list_indexing_actions_response.py +116 -0
- perceptic_core_client/perceptic_core_client/models/managed_file_system_api_dto.py +93 -0
- perceptic_core_client/perceptic_core_client/models/me_response.py +95 -0
- perceptic_core_client/perceptic_core_client/models/model_schema.py +114 -0
- perceptic_core_client/perceptic_core_client/models/paged_list_file_system_response.py +102 -0
- perceptic_core_client/perceptic_core_client/models/post_worker_run_request.py +87 -0
- perceptic_core_client/perceptic_core_client/models/post_worker_run_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/progress_event.py +91 -0
- perceptic_core_client/perceptic_core_client/models/remote_file_system_api_dto.py +101 -0
- perceptic_core_client/perceptic_core_client/models/request_for_input_event.py +98 -0
- perceptic_core_client/perceptic_core_client/models/resource_entry_dto.py +93 -0
- perceptic_core_client/perceptic_core_client/models/resource_id.py +87 -0
- perceptic_core_client/perceptic_core_client/models/resource_identifier.py +101 -0
- perceptic_core_client/perceptic_core_client/models/resource_metadata_dto.py +122 -0
- perceptic_core_client/perceptic_core_client/models/resource_type_dto.py +37 -0
- perceptic_core_client/perceptic_core_client/models/run_status_dto.py +44 -0
- perceptic_core_client/perceptic_core_client/models/s3_connection_settings_api_dto.py +124 -0
- perceptic_core_client/perceptic_core_client/models/s3_file_system_root_metadata_api_dto.py +89 -0
- perceptic_core_client/perceptic_core_client/models/schema_location.py +89 -0
- perceptic_core_client/perceptic_core_client/models/start_execution_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/upload_file_to_managed_file_system_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/worker_event.py +189 -0
- perceptic_core_client/perceptic_core_client/models/worker_metadata_dto.py +93 -0
- perceptic_core_client/perceptic_core_client/rest.py +258 -0
- perceptic_core_client/perceptic_core_client/test/__init__.py +0 -0
- perceptic_core_client/perceptic_core_client/test/test_action_type.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_azure_blob_connection_settings_api_dto.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_azure_blob_file_system_root_metadata_api_dto.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_connection_api_dto.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_connection_resource_api.py +45 -0
- perceptic_core_client/perceptic_core_client/test/test_connection_settings_api_dto.py +65 -0
- perceptic_core_client/perceptic_core_client/test/test_create_connection_request.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_create_connection_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_file_system_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_folder_request.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_folder_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_request.py +57 -0
- perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_response.py +64 -0
- perceptic_core_client/perceptic_core_client/test/test_create_managed_file_system_request.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_create_remote_file_system_request.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_api_dto.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_contents_resource_api.py +87 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_resource_api.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_root_metadata_api_dto.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_get_connection_response.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_get_indexer_response.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_get_indexing_task_response.py +62 -0
- perceptic_core_client/perceptic_core_client/test/test_get_metadata_response.py +61 -0
- perceptic_core_client/perceptic_core_client/test/test_get_parent_response.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_get_parent_uri_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_get_signed_url_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_get_worker_events_response.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_get_worker_metadata_response.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_get_worker_status_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_get_workers_response.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_indexer_dto.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_indexer_resource_api.py +45 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_action_dto.py +57 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_action_status.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_task_dto.py +61 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_task_resource_api.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_task_status.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_info_event.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_json_node.py +72 -0
- perceptic_core_client/perceptic_core_client/test/test_json_node_type.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_list_all_file_systems_response.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_list_file_system_response.py +63 -0
- perceptic_core_client/perceptic_core_client/test/test_list_indexers_response.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_list_indexing_actions_response.py +68 -0
- perceptic_core_client/perceptic_core_client/test/test_managed_file_system_api_dto.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_me_response.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_model_schema.py +66 -0
- perceptic_core_client/perceptic_core_client/test/test_paged_list_file_system_response.py +65 -0
- perceptic_core_client/perceptic_core_client/test/test_post_worker_run_request.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_post_worker_run_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_progress_event.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_remote_file_system_api_dto.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_request_for_input_event.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_entry_dto.py +62 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_id.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_identifier.py +58 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_metadata_dto.py +60 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_type_dto.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_run_status_dto.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_s3_connection_settings_api_dto.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_s3_file_system_root_metadata_api_dto.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_schema_location.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_start_execution_response.py +62 -0
- perceptic_core_client/perceptic_core_client/test/test_upload_file_to_managed_file_system_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_uri_resource_api.py +73 -0
- perceptic_core_client/perceptic_core_client/test/test_user_resource_api.py +38 -0
- perceptic_core_client/perceptic_core_client/test/test_worker_event.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_worker_metadata_dto.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_worker_resource_api.py +73 -0
- perceptic_core_client/perceptic_core_client_README.md +181 -0
- perceptic_core_client-0.6.1.dist-info/METADATA +179 -0
- perceptic_core_client-0.6.1.dist-info/RECORD +222 -0
- perceptic_core_client-0.6.1.dist-info/top_level.txt +1 -0
- perceptic_core_client-0.5.12.dist-info/METADATA +0 -38
- perceptic_core_client-0.5.12.dist-info/RECORD +0 -4
- perceptic_core_client-0.5.12.dist-info/top_level.txt +0 -1
- {perceptic_core_client-0.5.12.dist-info → perceptic_core_client-0.6.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
# perceptic_core_client.FileSystemContentsResourceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**api_v1_file_systems_file_system_rid_contents_download_get**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_download_get) | **GET** /api/v1/file-systems/{fileSystemRid}/contents/download | Download
|
|
8
|
+
[**api_v1_file_systems_file_system_rid_contents_files_get**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_files_get) | **GET** /api/v1/file-systems/{fileSystemRid}/contents/files | List Files Flattened
|
|
9
|
+
[**api_v1_file_systems_file_system_rid_contents_folders_post**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_folders_post) | **POST** /api/v1/file-systems/{fileSystemRid}/contents/folders | Create Folder
|
|
10
|
+
[**api_v1_file_systems_file_system_rid_contents_list_get**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_list_get) | **GET** /api/v1/file-systems/{fileSystemRid}/contents/list | List
|
|
11
|
+
[**api_v1_file_systems_file_system_rid_contents_metadata_get**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_metadata_get) | **GET** /api/v1/file-systems/{fileSystemRid}/contents/metadata | Get Metadata
|
|
12
|
+
[**api_v1_file_systems_file_system_rid_contents_parent_get**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_parent_get) | **GET** /api/v1/file-systems/{fileSystemRid}/contents/parent | Get Parent
|
|
13
|
+
[**api_v1_file_systems_file_system_rid_contents_signed_url_get**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_signed_url_get) | **GET** /api/v1/file-systems/{fileSystemRid}/contents/signed-url | Signed Url
|
|
14
|
+
[**api_v1_file_systems_file_system_rid_contents_upload_post**](FileSystemContentsResourceApi.md#api_v1_file_systems_file_system_rid_contents_upload_post) | **POST** /api/v1/file-systems/{fileSystemRid}/contents/upload | Upload File
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# **api_v1_file_systems_file_system_rid_contents_download_get**
|
|
18
|
+
> bytearray api_v1_file_systems_file_system_rid_contents_download_get(file_system_rid, file=file)
|
|
19
|
+
|
|
20
|
+
Download
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
import perceptic_core_client
|
|
27
|
+
from perceptic_core_client.rest import ApiException
|
|
28
|
+
from pprint import pprint
|
|
29
|
+
|
|
30
|
+
# Defining the host is optional and defaults to http://localhost
|
|
31
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
32
|
+
configuration = perceptic_core_client.Configuration(
|
|
33
|
+
host = "http://localhost"
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# Enter a context with an instance of the API client
|
|
38
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
39
|
+
# Create an instance of the API class
|
|
40
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
41
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
42
|
+
file = 'file_example' # str | (optional)
|
|
43
|
+
|
|
44
|
+
try:
|
|
45
|
+
# Download
|
|
46
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_download_get(file_system_rid, file=file)
|
|
47
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_download_get:\n")
|
|
48
|
+
pprint(api_response)
|
|
49
|
+
except Exception as e:
|
|
50
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_download_get: %s\n" % e)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
Name | Type | Description | Notes
|
|
59
|
+
------------- | ------------- | ------------- | -------------
|
|
60
|
+
**file_system_rid** | **str**| |
|
|
61
|
+
**file** | **str**| | [optional]
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
**bytearray**
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
No authorization required
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: Not defined
|
|
74
|
+
- **Accept**: application/octet-stream
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
**200** | OK | - |
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
# **api_v1_file_systems_file_system_rid_contents_files_get**
|
|
85
|
+
> PagedListFileSystemResponse api_v1_file_systems_file_system_rid_contents_files_get(file_system_rid, folder=folder, page_size=page_size, resume_token=resume_token)
|
|
86
|
+
|
|
87
|
+
List Files Flattened
|
|
88
|
+
|
|
89
|
+
### Example
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
import perceptic_core_client
|
|
94
|
+
from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
|
|
95
|
+
from perceptic_core_client.rest import ApiException
|
|
96
|
+
from pprint import pprint
|
|
97
|
+
|
|
98
|
+
# Defining the host is optional and defaults to http://localhost
|
|
99
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
100
|
+
configuration = perceptic_core_client.Configuration(
|
|
101
|
+
host = "http://localhost"
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# Enter a context with an instance of the API client
|
|
106
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
107
|
+
# Create an instance of the API class
|
|
108
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
109
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
110
|
+
folder = 'folder_example' # str | (optional)
|
|
111
|
+
page_size = 1000 # int | (optional) (default to 1000)
|
|
112
|
+
resume_token = 'resume_token_example' # str | (optional)
|
|
113
|
+
|
|
114
|
+
try:
|
|
115
|
+
# List Files Flattened
|
|
116
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_files_get(file_system_rid, folder=folder, page_size=page_size, resume_token=resume_token)
|
|
117
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_files_get:\n")
|
|
118
|
+
pprint(api_response)
|
|
119
|
+
except Exception as e:
|
|
120
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_files_get: %s\n" % e)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
Name | Type | Description | Notes
|
|
129
|
+
------------- | ------------- | ------------- | -------------
|
|
130
|
+
**file_system_rid** | **str**| |
|
|
131
|
+
**folder** | **str**| | [optional]
|
|
132
|
+
**page_size** | **int**| | [optional] [default to 1000]
|
|
133
|
+
**resume_token** | **str**| | [optional]
|
|
134
|
+
|
|
135
|
+
### Return type
|
|
136
|
+
|
|
137
|
+
[**PagedListFileSystemResponse**](PagedListFileSystemResponse.md)
|
|
138
|
+
|
|
139
|
+
### Authorization
|
|
140
|
+
|
|
141
|
+
No authorization required
|
|
142
|
+
|
|
143
|
+
### HTTP request headers
|
|
144
|
+
|
|
145
|
+
- **Content-Type**: Not defined
|
|
146
|
+
- **Accept**: application/json
|
|
147
|
+
|
|
148
|
+
### HTTP response details
|
|
149
|
+
|
|
150
|
+
| Status code | Description | Response headers |
|
|
151
|
+
|-------------|-------------|------------------|
|
|
152
|
+
**200** | OK | - |
|
|
153
|
+
|
|
154
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
155
|
+
|
|
156
|
+
# **api_v1_file_systems_file_system_rid_contents_folders_post**
|
|
157
|
+
> CreateFolderResponse api_v1_file_systems_file_system_rid_contents_folders_post(file_system_rid, create_folder_request, parent=parent)
|
|
158
|
+
|
|
159
|
+
Create Folder
|
|
160
|
+
|
|
161
|
+
### Example
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
```python
|
|
165
|
+
import perceptic_core_client
|
|
166
|
+
from perceptic_core_client.models.create_folder_request import CreateFolderRequest
|
|
167
|
+
from perceptic_core_client.models.create_folder_response import CreateFolderResponse
|
|
168
|
+
from perceptic_core_client.rest import ApiException
|
|
169
|
+
from pprint import pprint
|
|
170
|
+
|
|
171
|
+
# Defining the host is optional and defaults to http://localhost
|
|
172
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
173
|
+
configuration = perceptic_core_client.Configuration(
|
|
174
|
+
host = "http://localhost"
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
# Enter a context with an instance of the API client
|
|
179
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
180
|
+
# Create an instance of the API class
|
|
181
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
182
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
183
|
+
create_folder_request = perceptic_core_client.CreateFolderRequest() # CreateFolderRequest |
|
|
184
|
+
parent = 'parent_example' # str | (optional)
|
|
185
|
+
|
|
186
|
+
try:
|
|
187
|
+
# Create Folder
|
|
188
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_folders_post(file_system_rid, create_folder_request, parent=parent)
|
|
189
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_folders_post:\n")
|
|
190
|
+
pprint(api_response)
|
|
191
|
+
except Exception as e:
|
|
192
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_folders_post: %s\n" % e)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Parameters
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
Name | Type | Description | Notes
|
|
201
|
+
------------- | ------------- | ------------- | -------------
|
|
202
|
+
**file_system_rid** | **str**| |
|
|
203
|
+
**create_folder_request** | [**CreateFolderRequest**](CreateFolderRequest.md)| |
|
|
204
|
+
**parent** | **str**| | [optional]
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
[**CreateFolderResponse**](CreateFolderResponse.md)
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
No authorization required
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: application/json
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
### HTTP response details
|
|
220
|
+
|
|
221
|
+
| Status code | Description | Response headers |
|
|
222
|
+
|-------------|-------------|------------------|
|
|
223
|
+
**200** | OK | - |
|
|
224
|
+
**400** | Bad Request | - |
|
|
225
|
+
|
|
226
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
227
|
+
|
|
228
|
+
# **api_v1_file_systems_file_system_rid_contents_list_get**
|
|
229
|
+
> ListFileSystemResponse api_v1_file_systems_file_system_rid_contents_list_get(file_system_rid, folder=folder)
|
|
230
|
+
|
|
231
|
+
List
|
|
232
|
+
|
|
233
|
+
### Example
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
```python
|
|
237
|
+
import perceptic_core_client
|
|
238
|
+
from perceptic_core_client.models.list_file_system_response import ListFileSystemResponse
|
|
239
|
+
from perceptic_core_client.rest import ApiException
|
|
240
|
+
from pprint import pprint
|
|
241
|
+
|
|
242
|
+
# Defining the host is optional and defaults to http://localhost
|
|
243
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
244
|
+
configuration = perceptic_core_client.Configuration(
|
|
245
|
+
host = "http://localhost"
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
# Enter a context with an instance of the API client
|
|
250
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
251
|
+
# Create an instance of the API class
|
|
252
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
253
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
254
|
+
folder = 'folder_example' # str | (optional)
|
|
255
|
+
|
|
256
|
+
try:
|
|
257
|
+
# List
|
|
258
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_list_get(file_system_rid, folder=folder)
|
|
259
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_list_get:\n")
|
|
260
|
+
pprint(api_response)
|
|
261
|
+
except Exception as e:
|
|
262
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_list_get: %s\n" % e)
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
Name | Type | Description | Notes
|
|
271
|
+
------------- | ------------- | ------------- | -------------
|
|
272
|
+
**file_system_rid** | **str**| |
|
|
273
|
+
**folder** | **str**| | [optional]
|
|
274
|
+
|
|
275
|
+
### Return type
|
|
276
|
+
|
|
277
|
+
[**ListFileSystemResponse**](ListFileSystemResponse.md)
|
|
278
|
+
|
|
279
|
+
### Authorization
|
|
280
|
+
|
|
281
|
+
No authorization required
|
|
282
|
+
|
|
283
|
+
### HTTP request headers
|
|
284
|
+
|
|
285
|
+
- **Content-Type**: Not defined
|
|
286
|
+
- **Accept**: application/json
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
|
|
290
|
+
| Status code | Description | Response headers |
|
|
291
|
+
|-------------|-------------|------------------|
|
|
292
|
+
**200** | OK | - |
|
|
293
|
+
|
|
294
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
295
|
+
|
|
296
|
+
# **api_v1_file_systems_file_system_rid_contents_metadata_get**
|
|
297
|
+
> GetMetadataResponse api_v1_file_systems_file_system_rid_contents_metadata_get(file_system_rid, id=id)
|
|
298
|
+
|
|
299
|
+
Get Metadata
|
|
300
|
+
|
|
301
|
+
### Example
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
```python
|
|
305
|
+
import perceptic_core_client
|
|
306
|
+
from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
|
|
307
|
+
from perceptic_core_client.rest import ApiException
|
|
308
|
+
from pprint import pprint
|
|
309
|
+
|
|
310
|
+
# Defining the host is optional and defaults to http://localhost
|
|
311
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
312
|
+
configuration = perceptic_core_client.Configuration(
|
|
313
|
+
host = "http://localhost"
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
# Enter a context with an instance of the API client
|
|
318
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
319
|
+
# Create an instance of the API class
|
|
320
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
321
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
322
|
+
id = 'id_example' # str | (optional)
|
|
323
|
+
|
|
324
|
+
try:
|
|
325
|
+
# Get Metadata
|
|
326
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_metadata_get(file_system_rid, id=id)
|
|
327
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_metadata_get:\n")
|
|
328
|
+
pprint(api_response)
|
|
329
|
+
except Exception as e:
|
|
330
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_metadata_get: %s\n" % e)
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### Parameters
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
Name | Type | Description | Notes
|
|
339
|
+
------------- | ------------- | ------------- | -------------
|
|
340
|
+
**file_system_rid** | **str**| |
|
|
341
|
+
**id** | **str**| | [optional]
|
|
342
|
+
|
|
343
|
+
### Return type
|
|
344
|
+
|
|
345
|
+
[**GetMetadataResponse**](GetMetadataResponse.md)
|
|
346
|
+
|
|
347
|
+
### Authorization
|
|
348
|
+
|
|
349
|
+
No authorization required
|
|
350
|
+
|
|
351
|
+
### HTTP request headers
|
|
352
|
+
|
|
353
|
+
- **Content-Type**: Not defined
|
|
354
|
+
- **Accept**: application/json
|
|
355
|
+
|
|
356
|
+
### HTTP response details
|
|
357
|
+
|
|
358
|
+
| Status code | Description | Response headers |
|
|
359
|
+
|-------------|-------------|------------------|
|
|
360
|
+
**200** | OK | - |
|
|
361
|
+
|
|
362
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
363
|
+
|
|
364
|
+
# **api_v1_file_systems_file_system_rid_contents_parent_get**
|
|
365
|
+
> GetParentResponse api_v1_file_systems_file_system_rid_contents_parent_get(file_system_rid, id=id)
|
|
366
|
+
|
|
367
|
+
Get Parent
|
|
368
|
+
|
|
369
|
+
### Example
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
```python
|
|
373
|
+
import perceptic_core_client
|
|
374
|
+
from perceptic_core_client.models.get_parent_response import GetParentResponse
|
|
375
|
+
from perceptic_core_client.rest import ApiException
|
|
376
|
+
from pprint import pprint
|
|
377
|
+
|
|
378
|
+
# Defining the host is optional and defaults to http://localhost
|
|
379
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
380
|
+
configuration = perceptic_core_client.Configuration(
|
|
381
|
+
host = "http://localhost"
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
# Enter a context with an instance of the API client
|
|
386
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
387
|
+
# Create an instance of the API class
|
|
388
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
389
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
390
|
+
id = 'id_example' # str | (optional)
|
|
391
|
+
|
|
392
|
+
try:
|
|
393
|
+
# Get Parent
|
|
394
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_parent_get(file_system_rid, id=id)
|
|
395
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_parent_get:\n")
|
|
396
|
+
pprint(api_response)
|
|
397
|
+
except Exception as e:
|
|
398
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_parent_get: %s\n" % e)
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
### Parameters
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
Name | Type | Description | Notes
|
|
407
|
+
------------- | ------------- | ------------- | -------------
|
|
408
|
+
**file_system_rid** | **str**| |
|
|
409
|
+
**id** | **str**| | [optional]
|
|
410
|
+
|
|
411
|
+
### Return type
|
|
412
|
+
|
|
413
|
+
[**GetParentResponse**](GetParentResponse.md)
|
|
414
|
+
|
|
415
|
+
### Authorization
|
|
416
|
+
|
|
417
|
+
No authorization required
|
|
418
|
+
|
|
419
|
+
### HTTP request headers
|
|
420
|
+
|
|
421
|
+
- **Content-Type**: Not defined
|
|
422
|
+
- **Accept**: application/json
|
|
423
|
+
|
|
424
|
+
### HTTP response details
|
|
425
|
+
|
|
426
|
+
| Status code | Description | Response headers |
|
|
427
|
+
|-------------|-------------|------------------|
|
|
428
|
+
**200** | OK | - |
|
|
429
|
+
|
|
430
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
431
|
+
|
|
432
|
+
# **api_v1_file_systems_file_system_rid_contents_signed_url_get**
|
|
433
|
+
> GetSignedUrlResponse api_v1_file_systems_file_system_rid_contents_signed_url_get(file_system_rid, file=file)
|
|
434
|
+
|
|
435
|
+
Signed Url
|
|
436
|
+
|
|
437
|
+
### Example
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
```python
|
|
441
|
+
import perceptic_core_client
|
|
442
|
+
from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
|
|
443
|
+
from perceptic_core_client.rest import ApiException
|
|
444
|
+
from pprint import pprint
|
|
445
|
+
|
|
446
|
+
# Defining the host is optional and defaults to http://localhost
|
|
447
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
448
|
+
configuration = perceptic_core_client.Configuration(
|
|
449
|
+
host = "http://localhost"
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
# Enter a context with an instance of the API client
|
|
454
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
455
|
+
# Create an instance of the API class
|
|
456
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
457
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
458
|
+
file = 'file_example' # str | (optional)
|
|
459
|
+
|
|
460
|
+
try:
|
|
461
|
+
# Signed Url
|
|
462
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_signed_url_get(file_system_rid, file=file)
|
|
463
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_signed_url_get:\n")
|
|
464
|
+
pprint(api_response)
|
|
465
|
+
except Exception as e:
|
|
466
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_signed_url_get: %s\n" % e)
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
### Parameters
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
Name | Type | Description | Notes
|
|
475
|
+
------------- | ------------- | ------------- | -------------
|
|
476
|
+
**file_system_rid** | **str**| |
|
|
477
|
+
**file** | **str**| | [optional]
|
|
478
|
+
|
|
479
|
+
### Return type
|
|
480
|
+
|
|
481
|
+
[**GetSignedUrlResponse**](GetSignedUrlResponse.md)
|
|
482
|
+
|
|
483
|
+
### Authorization
|
|
484
|
+
|
|
485
|
+
No authorization required
|
|
486
|
+
|
|
487
|
+
### HTTP request headers
|
|
488
|
+
|
|
489
|
+
- **Content-Type**: Not defined
|
|
490
|
+
- **Accept**: application/json
|
|
491
|
+
|
|
492
|
+
### HTTP response details
|
|
493
|
+
|
|
494
|
+
| Status code | Description | Response headers |
|
|
495
|
+
|-------------|-------------|------------------|
|
|
496
|
+
**200** | OK | - |
|
|
497
|
+
|
|
498
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
499
|
+
|
|
500
|
+
# **api_v1_file_systems_file_system_rid_contents_upload_post**
|
|
501
|
+
> UploadFileToManagedFileSystemResponse api_v1_file_systems_file_system_rid_contents_upload_post(file_system_rid, file, filename, overwrite=overwrite, parent=parent)
|
|
502
|
+
|
|
503
|
+
Upload File
|
|
504
|
+
|
|
505
|
+
### Example
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
```python
|
|
509
|
+
import perceptic_core_client
|
|
510
|
+
from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
|
|
511
|
+
from perceptic_core_client.rest import ApiException
|
|
512
|
+
from pprint import pprint
|
|
513
|
+
|
|
514
|
+
# Defining the host is optional and defaults to http://localhost
|
|
515
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
516
|
+
configuration = perceptic_core_client.Configuration(
|
|
517
|
+
host = "http://localhost"
|
|
518
|
+
)
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
# Enter a context with an instance of the API client
|
|
522
|
+
with perceptic_core_client.ApiClient(configuration) as api_client:
|
|
523
|
+
# Create an instance of the API class
|
|
524
|
+
api_instance = perceptic_core_client.FileSystemContentsResourceApi(api_client)
|
|
525
|
+
file_system_rid = 'file_system_rid_example' # str |
|
|
526
|
+
file = None # bytearray |
|
|
527
|
+
filename = 'filename_example' # str |
|
|
528
|
+
overwrite = None # object | (optional)
|
|
529
|
+
parent = 'parent_example' # str | (optional)
|
|
530
|
+
|
|
531
|
+
try:
|
|
532
|
+
# Upload File
|
|
533
|
+
api_response = api_instance.api_v1_file_systems_file_system_rid_contents_upload_post(file_system_rid, file, filename, overwrite=overwrite, parent=parent)
|
|
534
|
+
print("The response of FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_upload_post:\n")
|
|
535
|
+
pprint(api_response)
|
|
536
|
+
except Exception as e:
|
|
537
|
+
print("Exception when calling FileSystemContentsResourceApi->api_v1_file_systems_file_system_rid_contents_upload_post: %s\n" % e)
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
### Parameters
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
Name | Type | Description | Notes
|
|
546
|
+
------------- | ------------- | ------------- | -------------
|
|
547
|
+
**file_system_rid** | **str**| |
|
|
548
|
+
**file** | **bytearray**| |
|
|
549
|
+
**filename** | **str**| |
|
|
550
|
+
**overwrite** | [**object**](.md)| | [optional]
|
|
551
|
+
**parent** | **str**| | [optional]
|
|
552
|
+
|
|
553
|
+
### Return type
|
|
554
|
+
|
|
555
|
+
[**UploadFileToManagedFileSystemResponse**](UploadFileToManagedFileSystemResponse.md)
|
|
556
|
+
|
|
557
|
+
### Authorization
|
|
558
|
+
|
|
559
|
+
No authorization required
|
|
560
|
+
|
|
561
|
+
### HTTP request headers
|
|
562
|
+
|
|
563
|
+
- **Content-Type**: multipart/form-data
|
|
564
|
+
- **Accept**: application/json
|
|
565
|
+
|
|
566
|
+
### HTTP response details
|
|
567
|
+
|
|
568
|
+
| Status code | Description | Response headers |
|
|
569
|
+
|-------------|-------------|------------------|
|
|
570
|
+
**200** | OK | - |
|
|
571
|
+
|
|
572
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
573
|
+
|