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
|
File without changes
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
perceptic-core-server API
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
21
|
+
from perceptic_core_client.api.file_system_contents_resource_api import FileSystemContentsResourceApi
|
|
22
|
+
from perceptic_core_client.api.file_system_resource_api import FileSystemResourceApi
|
|
23
|
+
from perceptic_core_client.api.indexer_resource_api import IndexerResourceApi
|
|
24
|
+
from perceptic_core_client.api.indexing_task_resource_api import IndexingTaskResourceApi
|
|
25
|
+
from perceptic_core_client.api.uri_resource_api import UriResourceApi
|
|
26
|
+
from perceptic_core_client.api.user_resource_api import UserResourceApi
|
|
27
|
+
from perceptic_core_client.api.worker_resource_api import WorkerResourceApi
|
|
28
|
+
|
|
29
|
+
# import ApiClient
|
|
30
|
+
from perceptic_core_client.api_response import ApiResponse
|
|
31
|
+
from perceptic_core_client.api_client import ApiClient
|
|
32
|
+
from perceptic_core_client.configuration import Configuration
|
|
33
|
+
from perceptic_core_client.exceptions import OpenApiException
|
|
34
|
+
from perceptic_core_client.exceptions import ApiTypeError
|
|
35
|
+
from perceptic_core_client.exceptions import ApiValueError
|
|
36
|
+
from perceptic_core_client.exceptions import ApiKeyError
|
|
37
|
+
from perceptic_core_client.exceptions import ApiAttributeError
|
|
38
|
+
from perceptic_core_client.exceptions import ApiException
|
|
39
|
+
|
|
40
|
+
# import models into sdk package
|
|
41
|
+
from perceptic_core_client.models.action_type import ActionType
|
|
42
|
+
from perceptic_core_client.models.azure_blob_connection_settings_api_dto import AzureBlobConnectionSettingsApiDto
|
|
43
|
+
from perceptic_core_client.models.azure_blob_file_system_root_metadata_api_dto import AzureBlobFileSystemRootMetadataApiDto
|
|
44
|
+
from perceptic_core_client.models.connection_api_dto import ConnectionApiDto
|
|
45
|
+
from perceptic_core_client.models.connection_settings_api_dto import ConnectionSettingsApiDto
|
|
46
|
+
from perceptic_core_client.models.create_connection_request import CreateConnectionRequest
|
|
47
|
+
from perceptic_core_client.models.create_connection_response import CreateConnectionResponse
|
|
48
|
+
from perceptic_core_client.models.create_file_system_response import CreateFileSystemResponse
|
|
49
|
+
from perceptic_core_client.models.create_folder_request import CreateFolderRequest
|
|
50
|
+
from perceptic_core_client.models.create_folder_response import CreateFolderResponse
|
|
51
|
+
from perceptic_core_client.models.create_indexing_task_request import CreateIndexingTaskRequest
|
|
52
|
+
from perceptic_core_client.models.create_indexing_task_response import CreateIndexingTaskResponse
|
|
53
|
+
from perceptic_core_client.models.create_managed_file_system_request import CreateManagedFileSystemRequest
|
|
54
|
+
from perceptic_core_client.models.create_remote_file_system_request import CreateRemoteFileSystemRequest
|
|
55
|
+
from perceptic_core_client.models.file_system_api_dto import FileSystemApiDto
|
|
56
|
+
from perceptic_core_client.models.file_system_root_metadata_api_dto import FileSystemRootMetadataApiDto
|
|
57
|
+
from perceptic_core_client.models.get_connection_response import GetConnectionResponse
|
|
58
|
+
from perceptic_core_client.models.get_indexer_response import GetIndexerResponse
|
|
59
|
+
from perceptic_core_client.models.get_indexing_task_response import GetIndexingTaskResponse
|
|
60
|
+
from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
|
|
61
|
+
from perceptic_core_client.models.get_parent_response import GetParentResponse
|
|
62
|
+
from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
|
|
63
|
+
from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
|
|
64
|
+
from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse
|
|
65
|
+
from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
|
|
66
|
+
from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse
|
|
67
|
+
from perceptic_core_client.models.get_workers_response import GetWorkersResponse
|
|
68
|
+
from perceptic_core_client.models.indexer_dto import IndexerDto
|
|
69
|
+
from perceptic_core_client.models.indexing_action_dto import IndexingActionDto
|
|
70
|
+
from perceptic_core_client.models.indexing_action_status import IndexingActionStatus
|
|
71
|
+
from perceptic_core_client.models.indexing_task_dto import IndexingTaskDto
|
|
72
|
+
from perceptic_core_client.models.indexing_task_status import IndexingTaskStatus
|
|
73
|
+
from perceptic_core_client.models.info_event import InfoEvent
|
|
74
|
+
from perceptic_core_client.models.json_node import JsonNode
|
|
75
|
+
from perceptic_core_client.models.json_node_type import JsonNodeType
|
|
76
|
+
from perceptic_core_client.models.list_all_file_systems_response import ListAllFileSystemsResponse
|
|
77
|
+
from perceptic_core_client.models.list_file_system_response import ListFileSystemResponse
|
|
78
|
+
from perceptic_core_client.models.list_indexers_response import ListIndexersResponse
|
|
79
|
+
from perceptic_core_client.models.list_indexing_actions_response import ListIndexingActionsResponse
|
|
80
|
+
from perceptic_core_client.models.managed_file_system_api_dto import ManagedFileSystemApiDto
|
|
81
|
+
from perceptic_core_client.models.me_response import MeResponse
|
|
82
|
+
from perceptic_core_client.models.model_schema import ModelSchema
|
|
83
|
+
from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
|
|
84
|
+
from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
|
|
85
|
+
from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse
|
|
86
|
+
from perceptic_core_client.models.progress_event import ProgressEvent
|
|
87
|
+
from perceptic_core_client.models.remote_file_system_api_dto import RemoteFileSystemApiDto
|
|
88
|
+
from perceptic_core_client.models.request_for_input_event import RequestForInputEvent
|
|
89
|
+
from perceptic_core_client.models.resource_entry_dto import ResourceEntryDto
|
|
90
|
+
from perceptic_core_client.models.resource_id import ResourceId
|
|
91
|
+
from perceptic_core_client.models.resource_identifier import ResourceIdentifier
|
|
92
|
+
from perceptic_core_client.models.resource_metadata_dto import ResourceMetadataDto
|
|
93
|
+
from perceptic_core_client.models.resource_type_dto import ResourceTypeDto
|
|
94
|
+
from perceptic_core_client.models.run_status_dto import RunStatusDto
|
|
95
|
+
from perceptic_core_client.models.s3_connection_settings_api_dto import S3ConnectionSettingsApiDto
|
|
96
|
+
from perceptic_core_client.models.s3_file_system_root_metadata_api_dto import S3FileSystemRootMetadataApiDto
|
|
97
|
+
from perceptic_core_client.models.schema_location import SchemaLocation
|
|
98
|
+
from perceptic_core_client.models.start_execution_response import StartExecutionResponse
|
|
99
|
+
from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
|
|
100
|
+
from perceptic_core_client.models.worker_event import WorkerEvent
|
|
101
|
+
from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
5
|
+
from perceptic_core_client.api.file_system_contents_resource_api import FileSystemContentsResourceApi
|
|
6
|
+
from perceptic_core_client.api.file_system_resource_api import FileSystemResourceApi
|
|
7
|
+
from perceptic_core_client.api.indexer_resource_api import IndexerResourceApi
|
|
8
|
+
from perceptic_core_client.api.indexing_task_resource_api import IndexingTaskResourceApi
|
|
9
|
+
from perceptic_core_client.api.uri_resource_api import UriResourceApi
|
|
10
|
+
from perceptic_core_client.api.user_resource_api import UserResourceApi
|
|
11
|
+
from perceptic_core_client.api.worker_resource_api import WorkerResourceApi
|
|
12
|
+
|
|
@@ -0,0 +1,569 @@
|
|
|
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 StrictStr
|
|
20
|
+
from perceptic_core_client.models.create_connection_request import CreateConnectionRequest
|
|
21
|
+
from perceptic_core_client.models.create_connection_response import CreateConnectionResponse
|
|
22
|
+
from perceptic_core_client.models.get_connection_response import GetConnectionResponse
|
|
23
|
+
|
|
24
|
+
from perceptic_core_client.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from perceptic_core_client.api_response import ApiResponse
|
|
26
|
+
from perceptic_core_client.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ConnectionResourceApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def api_v1_connections_connection_rid_get(
|
|
44
|
+
self,
|
|
45
|
+
connection_rid: StrictStr,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> GetConnectionResponse:
|
|
59
|
+
"""Get Connection
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
:param connection_rid: (required)
|
|
63
|
+
:type connection_rid: str
|
|
64
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
65
|
+
number provided, it will be total request
|
|
66
|
+
timeout. It can also be a pair (tuple) of
|
|
67
|
+
(connection, read) timeouts.
|
|
68
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
69
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
70
|
+
request; this effectively ignores the
|
|
71
|
+
authentication in the spec for a single request.
|
|
72
|
+
:type _request_auth: dict, optional
|
|
73
|
+
:param _content_type: force content-type for the request.
|
|
74
|
+
:type _content_type: str, Optional
|
|
75
|
+
:param _headers: set to override the headers for a single
|
|
76
|
+
request; this effectively ignores the headers
|
|
77
|
+
in the spec for a single request.
|
|
78
|
+
:type _headers: dict, optional
|
|
79
|
+
:param _host_index: set to override the host_index for a single
|
|
80
|
+
request; this effectively ignores the host_index
|
|
81
|
+
in the spec for a single request.
|
|
82
|
+
:type _host_index: int, optional
|
|
83
|
+
:return: Returns the result object.
|
|
84
|
+
""" # noqa: E501
|
|
85
|
+
|
|
86
|
+
_param = self._api_v1_connections_connection_rid_get_serialize(
|
|
87
|
+
connection_rid=connection_rid,
|
|
88
|
+
_request_auth=_request_auth,
|
|
89
|
+
_content_type=_content_type,
|
|
90
|
+
_headers=_headers,
|
|
91
|
+
_host_index=_host_index
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
95
|
+
'200': "GetConnectionResponse",
|
|
96
|
+
}
|
|
97
|
+
response_data = self.api_client.call_api(
|
|
98
|
+
*_param,
|
|
99
|
+
_request_timeout=_request_timeout
|
|
100
|
+
)
|
|
101
|
+
response_data.read()
|
|
102
|
+
return self.api_client.response_deserialize(
|
|
103
|
+
response_data=response_data,
|
|
104
|
+
response_types_map=_response_types_map,
|
|
105
|
+
).data
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
@validate_call
|
|
109
|
+
def api_v1_connections_connection_rid_get_with_http_info(
|
|
110
|
+
self,
|
|
111
|
+
connection_rid: StrictStr,
|
|
112
|
+
_request_timeout: Union[
|
|
113
|
+
None,
|
|
114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
115
|
+
Tuple[
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
118
|
+
]
|
|
119
|
+
] = None,
|
|
120
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
121
|
+
_content_type: Optional[StrictStr] = None,
|
|
122
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
124
|
+
) -> ApiResponse[GetConnectionResponse]:
|
|
125
|
+
"""Get Connection
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param connection_rid: (required)
|
|
129
|
+
:type connection_rid: str
|
|
130
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
131
|
+
number provided, it will be total request
|
|
132
|
+
timeout. It can also be a pair (tuple) of
|
|
133
|
+
(connection, read) timeouts.
|
|
134
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
135
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
136
|
+
request; this effectively ignores the
|
|
137
|
+
authentication in the spec for a single request.
|
|
138
|
+
:type _request_auth: dict, optional
|
|
139
|
+
:param _content_type: force content-type for the request.
|
|
140
|
+
:type _content_type: str, Optional
|
|
141
|
+
:param _headers: set to override the headers for a single
|
|
142
|
+
request; this effectively ignores the headers
|
|
143
|
+
in the spec for a single request.
|
|
144
|
+
:type _headers: dict, optional
|
|
145
|
+
:param _host_index: set to override the host_index for a single
|
|
146
|
+
request; this effectively ignores the host_index
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _host_index: int, optional
|
|
149
|
+
:return: Returns the result object.
|
|
150
|
+
""" # noqa: E501
|
|
151
|
+
|
|
152
|
+
_param = self._api_v1_connections_connection_rid_get_serialize(
|
|
153
|
+
connection_rid=connection_rid,
|
|
154
|
+
_request_auth=_request_auth,
|
|
155
|
+
_content_type=_content_type,
|
|
156
|
+
_headers=_headers,
|
|
157
|
+
_host_index=_host_index
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
161
|
+
'200': "GetConnectionResponse",
|
|
162
|
+
}
|
|
163
|
+
response_data = self.api_client.call_api(
|
|
164
|
+
*_param,
|
|
165
|
+
_request_timeout=_request_timeout
|
|
166
|
+
)
|
|
167
|
+
response_data.read()
|
|
168
|
+
return self.api_client.response_deserialize(
|
|
169
|
+
response_data=response_data,
|
|
170
|
+
response_types_map=_response_types_map,
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
@validate_call
|
|
175
|
+
def api_v1_connections_connection_rid_get_without_preload_content(
|
|
176
|
+
self,
|
|
177
|
+
connection_rid: StrictStr,
|
|
178
|
+
_request_timeout: Union[
|
|
179
|
+
None,
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
181
|
+
Tuple[
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
184
|
+
]
|
|
185
|
+
] = None,
|
|
186
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
187
|
+
_content_type: Optional[StrictStr] = None,
|
|
188
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
190
|
+
) -> RESTResponseType:
|
|
191
|
+
"""Get Connection
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param connection_rid: (required)
|
|
195
|
+
:type connection_rid: str
|
|
196
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
197
|
+
number provided, it will be total request
|
|
198
|
+
timeout. It can also be a pair (tuple) of
|
|
199
|
+
(connection, read) timeouts.
|
|
200
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
201
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
202
|
+
request; this effectively ignores the
|
|
203
|
+
authentication in the spec for a single request.
|
|
204
|
+
:type _request_auth: dict, optional
|
|
205
|
+
:param _content_type: force content-type for the request.
|
|
206
|
+
:type _content_type: str, Optional
|
|
207
|
+
:param _headers: set to override the headers for a single
|
|
208
|
+
request; this effectively ignores the headers
|
|
209
|
+
in the spec for a single request.
|
|
210
|
+
:type _headers: dict, optional
|
|
211
|
+
:param _host_index: set to override the host_index for a single
|
|
212
|
+
request; this effectively ignores the host_index
|
|
213
|
+
in the spec for a single request.
|
|
214
|
+
:type _host_index: int, optional
|
|
215
|
+
:return: Returns the result object.
|
|
216
|
+
""" # noqa: E501
|
|
217
|
+
|
|
218
|
+
_param = self._api_v1_connections_connection_rid_get_serialize(
|
|
219
|
+
connection_rid=connection_rid,
|
|
220
|
+
_request_auth=_request_auth,
|
|
221
|
+
_content_type=_content_type,
|
|
222
|
+
_headers=_headers,
|
|
223
|
+
_host_index=_host_index
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
227
|
+
'200': "GetConnectionResponse",
|
|
228
|
+
}
|
|
229
|
+
response_data = self.api_client.call_api(
|
|
230
|
+
*_param,
|
|
231
|
+
_request_timeout=_request_timeout
|
|
232
|
+
)
|
|
233
|
+
return response_data.response
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def _api_v1_connections_connection_rid_get_serialize(
|
|
237
|
+
self,
|
|
238
|
+
connection_rid,
|
|
239
|
+
_request_auth,
|
|
240
|
+
_content_type,
|
|
241
|
+
_headers,
|
|
242
|
+
_host_index,
|
|
243
|
+
) -> RequestSerialized:
|
|
244
|
+
|
|
245
|
+
_host = None
|
|
246
|
+
|
|
247
|
+
_collection_formats: Dict[str, str] = {
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
_path_params: Dict[str, str] = {}
|
|
251
|
+
_query_params: List[Tuple[str, str]] = []
|
|
252
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
253
|
+
_form_params: List[Tuple[str, str]] = []
|
|
254
|
+
_files: Dict[
|
|
255
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
256
|
+
] = {}
|
|
257
|
+
_body_params: Optional[bytes] = None
|
|
258
|
+
|
|
259
|
+
# process the path parameters
|
|
260
|
+
if connection_rid is not None:
|
|
261
|
+
_path_params['connectionRid'] = connection_rid
|
|
262
|
+
# process the query parameters
|
|
263
|
+
# process the header parameters
|
|
264
|
+
# process the form parameters
|
|
265
|
+
# process the body parameter
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
# set the HTTP header `Accept`
|
|
269
|
+
if 'Accept' not in _header_params:
|
|
270
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
271
|
+
[
|
|
272
|
+
'application/json'
|
|
273
|
+
]
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# authentication setting
|
|
278
|
+
_auth_settings: List[str] = [
|
|
279
|
+
]
|
|
280
|
+
|
|
281
|
+
return self.api_client.param_serialize(
|
|
282
|
+
method='GET',
|
|
283
|
+
resource_path='/api/v1/connections/{connectionRid}',
|
|
284
|
+
path_params=_path_params,
|
|
285
|
+
query_params=_query_params,
|
|
286
|
+
header_params=_header_params,
|
|
287
|
+
body=_body_params,
|
|
288
|
+
post_params=_form_params,
|
|
289
|
+
files=_files,
|
|
290
|
+
auth_settings=_auth_settings,
|
|
291
|
+
collection_formats=_collection_formats,
|
|
292
|
+
_host=_host,
|
|
293
|
+
_request_auth=_request_auth
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
@validate_call
|
|
300
|
+
def api_v1_connections_post(
|
|
301
|
+
self,
|
|
302
|
+
create_connection_request: CreateConnectionRequest,
|
|
303
|
+
_request_timeout: Union[
|
|
304
|
+
None,
|
|
305
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
306
|
+
Tuple[
|
|
307
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
308
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
309
|
+
]
|
|
310
|
+
] = None,
|
|
311
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
312
|
+
_content_type: Optional[StrictStr] = None,
|
|
313
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
314
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
315
|
+
) -> CreateConnectionResponse:
|
|
316
|
+
"""Create Connection
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
:param create_connection_request: (required)
|
|
320
|
+
:type create_connection_request: CreateConnectionRequest
|
|
321
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
322
|
+
number provided, it will be total request
|
|
323
|
+
timeout. It can also be a pair (tuple) of
|
|
324
|
+
(connection, read) timeouts.
|
|
325
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
326
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
327
|
+
request; this effectively ignores the
|
|
328
|
+
authentication in the spec for a single request.
|
|
329
|
+
:type _request_auth: dict, optional
|
|
330
|
+
:param _content_type: force content-type for the request.
|
|
331
|
+
:type _content_type: str, Optional
|
|
332
|
+
:param _headers: set to override the headers for a single
|
|
333
|
+
request; this effectively ignores the headers
|
|
334
|
+
in the spec for a single request.
|
|
335
|
+
:type _headers: dict, optional
|
|
336
|
+
:param _host_index: set to override the host_index for a single
|
|
337
|
+
request; this effectively ignores the host_index
|
|
338
|
+
in the spec for a single request.
|
|
339
|
+
:type _host_index: int, optional
|
|
340
|
+
:return: Returns the result object.
|
|
341
|
+
""" # noqa: E501
|
|
342
|
+
|
|
343
|
+
_param = self._api_v1_connections_post_serialize(
|
|
344
|
+
create_connection_request=create_connection_request,
|
|
345
|
+
_request_auth=_request_auth,
|
|
346
|
+
_content_type=_content_type,
|
|
347
|
+
_headers=_headers,
|
|
348
|
+
_host_index=_host_index
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
352
|
+
'200': "CreateConnectionResponse",
|
|
353
|
+
'400': None,
|
|
354
|
+
}
|
|
355
|
+
response_data = self.api_client.call_api(
|
|
356
|
+
*_param,
|
|
357
|
+
_request_timeout=_request_timeout
|
|
358
|
+
)
|
|
359
|
+
response_data.read()
|
|
360
|
+
return self.api_client.response_deserialize(
|
|
361
|
+
response_data=response_data,
|
|
362
|
+
response_types_map=_response_types_map,
|
|
363
|
+
).data
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
@validate_call
|
|
367
|
+
def api_v1_connections_post_with_http_info(
|
|
368
|
+
self,
|
|
369
|
+
create_connection_request: CreateConnectionRequest,
|
|
370
|
+
_request_timeout: Union[
|
|
371
|
+
None,
|
|
372
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
373
|
+
Tuple[
|
|
374
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
376
|
+
]
|
|
377
|
+
] = None,
|
|
378
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
379
|
+
_content_type: Optional[StrictStr] = None,
|
|
380
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
381
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
382
|
+
) -> ApiResponse[CreateConnectionResponse]:
|
|
383
|
+
"""Create Connection
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
:param create_connection_request: (required)
|
|
387
|
+
:type create_connection_request: CreateConnectionRequest
|
|
388
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
389
|
+
number provided, it will be total request
|
|
390
|
+
timeout. It can also be a pair (tuple) of
|
|
391
|
+
(connection, read) timeouts.
|
|
392
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
393
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
394
|
+
request; this effectively ignores the
|
|
395
|
+
authentication in the spec for a single request.
|
|
396
|
+
:type _request_auth: dict, optional
|
|
397
|
+
:param _content_type: force content-type for the request.
|
|
398
|
+
:type _content_type: str, Optional
|
|
399
|
+
:param _headers: set to override the headers for a single
|
|
400
|
+
request; this effectively ignores the headers
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _headers: dict, optional
|
|
403
|
+
:param _host_index: set to override the host_index for a single
|
|
404
|
+
request; this effectively ignores the host_index
|
|
405
|
+
in the spec for a single request.
|
|
406
|
+
:type _host_index: int, optional
|
|
407
|
+
:return: Returns the result object.
|
|
408
|
+
""" # noqa: E501
|
|
409
|
+
|
|
410
|
+
_param = self._api_v1_connections_post_serialize(
|
|
411
|
+
create_connection_request=create_connection_request,
|
|
412
|
+
_request_auth=_request_auth,
|
|
413
|
+
_content_type=_content_type,
|
|
414
|
+
_headers=_headers,
|
|
415
|
+
_host_index=_host_index
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
419
|
+
'200': "CreateConnectionResponse",
|
|
420
|
+
'400': None,
|
|
421
|
+
}
|
|
422
|
+
response_data = self.api_client.call_api(
|
|
423
|
+
*_param,
|
|
424
|
+
_request_timeout=_request_timeout
|
|
425
|
+
)
|
|
426
|
+
response_data.read()
|
|
427
|
+
return self.api_client.response_deserialize(
|
|
428
|
+
response_data=response_data,
|
|
429
|
+
response_types_map=_response_types_map,
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
@validate_call
|
|
434
|
+
def api_v1_connections_post_without_preload_content(
|
|
435
|
+
self,
|
|
436
|
+
create_connection_request: CreateConnectionRequest,
|
|
437
|
+
_request_timeout: Union[
|
|
438
|
+
None,
|
|
439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
440
|
+
Tuple[
|
|
441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
443
|
+
]
|
|
444
|
+
] = None,
|
|
445
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
446
|
+
_content_type: Optional[StrictStr] = None,
|
|
447
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
448
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
449
|
+
) -> RESTResponseType:
|
|
450
|
+
"""Create Connection
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
:param create_connection_request: (required)
|
|
454
|
+
:type create_connection_request: CreateConnectionRequest
|
|
455
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
456
|
+
number provided, it will be total request
|
|
457
|
+
timeout. It can also be a pair (tuple) of
|
|
458
|
+
(connection, read) timeouts.
|
|
459
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
460
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
461
|
+
request; this effectively ignores the
|
|
462
|
+
authentication in the spec for a single request.
|
|
463
|
+
:type _request_auth: dict, optional
|
|
464
|
+
:param _content_type: force content-type for the request.
|
|
465
|
+
:type _content_type: str, Optional
|
|
466
|
+
:param _headers: set to override the headers for a single
|
|
467
|
+
request; this effectively ignores the headers
|
|
468
|
+
in the spec for a single request.
|
|
469
|
+
:type _headers: dict, optional
|
|
470
|
+
:param _host_index: set to override the host_index for a single
|
|
471
|
+
request; this effectively ignores the host_index
|
|
472
|
+
in the spec for a single request.
|
|
473
|
+
:type _host_index: int, optional
|
|
474
|
+
:return: Returns the result object.
|
|
475
|
+
""" # noqa: E501
|
|
476
|
+
|
|
477
|
+
_param = self._api_v1_connections_post_serialize(
|
|
478
|
+
create_connection_request=create_connection_request,
|
|
479
|
+
_request_auth=_request_auth,
|
|
480
|
+
_content_type=_content_type,
|
|
481
|
+
_headers=_headers,
|
|
482
|
+
_host_index=_host_index
|
|
483
|
+
)
|
|
484
|
+
|
|
485
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
486
|
+
'200': "CreateConnectionResponse",
|
|
487
|
+
'400': None,
|
|
488
|
+
}
|
|
489
|
+
response_data = self.api_client.call_api(
|
|
490
|
+
*_param,
|
|
491
|
+
_request_timeout=_request_timeout
|
|
492
|
+
)
|
|
493
|
+
return response_data.response
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
def _api_v1_connections_post_serialize(
|
|
497
|
+
self,
|
|
498
|
+
create_connection_request,
|
|
499
|
+
_request_auth,
|
|
500
|
+
_content_type,
|
|
501
|
+
_headers,
|
|
502
|
+
_host_index,
|
|
503
|
+
) -> RequestSerialized:
|
|
504
|
+
|
|
505
|
+
_host = None
|
|
506
|
+
|
|
507
|
+
_collection_formats: Dict[str, str] = {
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
_path_params: Dict[str, str] = {}
|
|
511
|
+
_query_params: List[Tuple[str, str]] = []
|
|
512
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
513
|
+
_form_params: List[Tuple[str, str]] = []
|
|
514
|
+
_files: Dict[
|
|
515
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
516
|
+
] = {}
|
|
517
|
+
_body_params: Optional[bytes] = None
|
|
518
|
+
|
|
519
|
+
# process the path parameters
|
|
520
|
+
# process the query parameters
|
|
521
|
+
# process the header parameters
|
|
522
|
+
# process the form parameters
|
|
523
|
+
# process the body parameter
|
|
524
|
+
if create_connection_request is not None:
|
|
525
|
+
_body_params = create_connection_request
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
# set the HTTP header `Accept`
|
|
529
|
+
if 'Accept' not in _header_params:
|
|
530
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
531
|
+
[
|
|
532
|
+
'application/json'
|
|
533
|
+
]
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
# set the HTTP header `Content-Type`
|
|
537
|
+
if _content_type:
|
|
538
|
+
_header_params['Content-Type'] = _content_type
|
|
539
|
+
else:
|
|
540
|
+
_default_content_type = (
|
|
541
|
+
self.api_client.select_header_content_type(
|
|
542
|
+
[
|
|
543
|
+
'application/json'
|
|
544
|
+
]
|
|
545
|
+
)
|
|
546
|
+
)
|
|
547
|
+
if _default_content_type is not None:
|
|
548
|
+
_header_params['Content-Type'] = _default_content_type
|
|
549
|
+
|
|
550
|
+
# authentication setting
|
|
551
|
+
_auth_settings: List[str] = [
|
|
552
|
+
]
|
|
553
|
+
|
|
554
|
+
return self.api_client.param_serialize(
|
|
555
|
+
method='POST',
|
|
556
|
+
resource_path='/api/v1/connections',
|
|
557
|
+
path_params=_path_params,
|
|
558
|
+
query_params=_query_params,
|
|
559
|
+
header_params=_header_params,
|
|
560
|
+
body=_body_params,
|
|
561
|
+
post_params=_form_params,
|
|
562
|
+
files=_files,
|
|
563
|
+
auth_settings=_auth_settings,
|
|
564
|
+
collection_formats=_collection_formats,
|
|
565
|
+
_host=_host,
|
|
566
|
+
_request_auth=_request_auth
|
|
567
|
+
)
|
|
568
|
+
|
|
569
|
+
|