perceptic-core-client 0.6.0__py3-none-any.whl → 0.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- 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.0.dist-info → perceptic_core_client-0.6.1.dist-info}/METADATA +1 -1
- 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.6.0.dist-info/RECORD +0 -4
- perceptic_core_client-0.6.0.dist-info/top_level.txt +0 -1
- {perceptic_core_client-0.6.0.dist-info → perceptic_core_client-0.6.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,1173 @@
|
|
|
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 StrictBool, StrictInt, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from perceptic_core_client.models.create_indexing_task_request import CreateIndexingTaskRequest
|
|
22
|
+
from perceptic_core_client.models.create_indexing_task_response import CreateIndexingTaskResponse
|
|
23
|
+
from perceptic_core_client.models.get_indexing_task_response import GetIndexingTaskResponse
|
|
24
|
+
from perceptic_core_client.models.indexing_action_status import IndexingActionStatus
|
|
25
|
+
from perceptic_core_client.models.list_indexing_actions_response import ListIndexingActionsResponse
|
|
26
|
+
from perceptic_core_client.models.start_execution_response import StartExecutionResponse
|
|
27
|
+
|
|
28
|
+
from perceptic_core_client.api_client import ApiClient, RequestSerialized
|
|
29
|
+
from perceptic_core_client.api_response import ApiResponse
|
|
30
|
+
from perceptic_core_client.rest import RESTResponseType
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class IndexingTaskResourceApi:
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None) -> None:
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient.get_default()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@validate_call
|
|
47
|
+
def api_v1_indexing_tasks_post(
|
|
48
|
+
self,
|
|
49
|
+
create_indexing_task_request: CreateIndexingTaskRequest,
|
|
50
|
+
dry_run: Optional[StrictBool] = None,
|
|
51
|
+
freshness_minutes: Optional[StrictInt] = None,
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> CreateIndexingTaskResponse:
|
|
65
|
+
"""Create Indexing Task
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:param create_indexing_task_request: (required)
|
|
69
|
+
:type create_indexing_task_request: CreateIndexingTaskRequest
|
|
70
|
+
:param dry_run:
|
|
71
|
+
:type dry_run: bool
|
|
72
|
+
:param freshness_minutes:
|
|
73
|
+
:type freshness_minutes: int
|
|
74
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
75
|
+
number provided, it will be total request
|
|
76
|
+
timeout. It can also be a pair (tuple) of
|
|
77
|
+
(connection, read) timeouts.
|
|
78
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
79
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
80
|
+
request; this effectively ignores the
|
|
81
|
+
authentication in the spec for a single request.
|
|
82
|
+
:type _request_auth: dict, optional
|
|
83
|
+
:param _content_type: force content-type for the request.
|
|
84
|
+
:type _content_type: str, Optional
|
|
85
|
+
:param _headers: set to override the headers for a single
|
|
86
|
+
request; this effectively ignores the headers
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _headers: dict, optional
|
|
89
|
+
:param _host_index: set to override the host_index for a single
|
|
90
|
+
request; this effectively ignores the host_index
|
|
91
|
+
in the spec for a single request.
|
|
92
|
+
:type _host_index: int, optional
|
|
93
|
+
:return: Returns the result object.
|
|
94
|
+
""" # noqa: E501
|
|
95
|
+
|
|
96
|
+
_param = self._api_v1_indexing_tasks_post_serialize(
|
|
97
|
+
create_indexing_task_request=create_indexing_task_request,
|
|
98
|
+
dry_run=dry_run,
|
|
99
|
+
freshness_minutes=freshness_minutes,
|
|
100
|
+
_request_auth=_request_auth,
|
|
101
|
+
_content_type=_content_type,
|
|
102
|
+
_headers=_headers,
|
|
103
|
+
_host_index=_host_index
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
107
|
+
'200': "CreateIndexingTaskResponse",
|
|
108
|
+
'400': None,
|
|
109
|
+
}
|
|
110
|
+
response_data = self.api_client.call_api(
|
|
111
|
+
*_param,
|
|
112
|
+
_request_timeout=_request_timeout
|
|
113
|
+
)
|
|
114
|
+
response_data.read()
|
|
115
|
+
return self.api_client.response_deserialize(
|
|
116
|
+
response_data=response_data,
|
|
117
|
+
response_types_map=_response_types_map,
|
|
118
|
+
).data
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@validate_call
|
|
122
|
+
def api_v1_indexing_tasks_post_with_http_info(
|
|
123
|
+
self,
|
|
124
|
+
create_indexing_task_request: CreateIndexingTaskRequest,
|
|
125
|
+
dry_run: Optional[StrictBool] = None,
|
|
126
|
+
freshness_minutes: Optional[StrictInt] = None,
|
|
127
|
+
_request_timeout: Union[
|
|
128
|
+
None,
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
+
Tuple[
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
133
|
+
]
|
|
134
|
+
] = None,
|
|
135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
+
_content_type: Optional[StrictStr] = None,
|
|
137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
139
|
+
) -> ApiResponse[CreateIndexingTaskResponse]:
|
|
140
|
+
"""Create Indexing Task
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:param create_indexing_task_request: (required)
|
|
144
|
+
:type create_indexing_task_request: CreateIndexingTaskRequest
|
|
145
|
+
:param dry_run:
|
|
146
|
+
:type dry_run: bool
|
|
147
|
+
:param freshness_minutes:
|
|
148
|
+
:type freshness_minutes: int
|
|
149
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
150
|
+
number provided, it will be total request
|
|
151
|
+
timeout. It can also be a pair (tuple) of
|
|
152
|
+
(connection, read) timeouts.
|
|
153
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
154
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
155
|
+
request; this effectively ignores the
|
|
156
|
+
authentication in the spec for a single request.
|
|
157
|
+
:type _request_auth: dict, optional
|
|
158
|
+
:param _content_type: force content-type for the request.
|
|
159
|
+
:type _content_type: str, Optional
|
|
160
|
+
:param _headers: set to override the headers for a single
|
|
161
|
+
request; this effectively ignores the headers
|
|
162
|
+
in the spec for a single request.
|
|
163
|
+
:type _headers: dict, optional
|
|
164
|
+
:param _host_index: set to override the host_index for a single
|
|
165
|
+
request; this effectively ignores the host_index
|
|
166
|
+
in the spec for a single request.
|
|
167
|
+
:type _host_index: int, optional
|
|
168
|
+
:return: Returns the result object.
|
|
169
|
+
""" # noqa: E501
|
|
170
|
+
|
|
171
|
+
_param = self._api_v1_indexing_tasks_post_serialize(
|
|
172
|
+
create_indexing_task_request=create_indexing_task_request,
|
|
173
|
+
dry_run=dry_run,
|
|
174
|
+
freshness_minutes=freshness_minutes,
|
|
175
|
+
_request_auth=_request_auth,
|
|
176
|
+
_content_type=_content_type,
|
|
177
|
+
_headers=_headers,
|
|
178
|
+
_host_index=_host_index
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
182
|
+
'200': "CreateIndexingTaskResponse",
|
|
183
|
+
'400': None,
|
|
184
|
+
}
|
|
185
|
+
response_data = self.api_client.call_api(
|
|
186
|
+
*_param,
|
|
187
|
+
_request_timeout=_request_timeout
|
|
188
|
+
)
|
|
189
|
+
response_data.read()
|
|
190
|
+
return self.api_client.response_deserialize(
|
|
191
|
+
response_data=response_data,
|
|
192
|
+
response_types_map=_response_types_map,
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@validate_call
|
|
197
|
+
def api_v1_indexing_tasks_post_without_preload_content(
|
|
198
|
+
self,
|
|
199
|
+
create_indexing_task_request: CreateIndexingTaskRequest,
|
|
200
|
+
dry_run: Optional[StrictBool] = None,
|
|
201
|
+
freshness_minutes: Optional[StrictInt] = None,
|
|
202
|
+
_request_timeout: Union[
|
|
203
|
+
None,
|
|
204
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
205
|
+
Tuple[
|
|
206
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
207
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
208
|
+
]
|
|
209
|
+
] = None,
|
|
210
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
211
|
+
_content_type: Optional[StrictStr] = None,
|
|
212
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
213
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
214
|
+
) -> RESTResponseType:
|
|
215
|
+
"""Create Indexing Task
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:param create_indexing_task_request: (required)
|
|
219
|
+
:type create_indexing_task_request: CreateIndexingTaskRequest
|
|
220
|
+
:param dry_run:
|
|
221
|
+
:type dry_run: bool
|
|
222
|
+
:param freshness_minutes:
|
|
223
|
+
:type freshness_minutes: int
|
|
224
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
225
|
+
number provided, it will be total request
|
|
226
|
+
timeout. It can also be a pair (tuple) of
|
|
227
|
+
(connection, read) timeouts.
|
|
228
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
229
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
230
|
+
request; this effectively ignores the
|
|
231
|
+
authentication in the spec for a single request.
|
|
232
|
+
:type _request_auth: dict, optional
|
|
233
|
+
:param _content_type: force content-type for the request.
|
|
234
|
+
:type _content_type: str, Optional
|
|
235
|
+
:param _headers: set to override the headers for a single
|
|
236
|
+
request; this effectively ignores the headers
|
|
237
|
+
in the spec for a single request.
|
|
238
|
+
:type _headers: dict, optional
|
|
239
|
+
:param _host_index: set to override the host_index for a single
|
|
240
|
+
request; this effectively ignores the host_index
|
|
241
|
+
in the spec for a single request.
|
|
242
|
+
:type _host_index: int, optional
|
|
243
|
+
:return: Returns the result object.
|
|
244
|
+
""" # noqa: E501
|
|
245
|
+
|
|
246
|
+
_param = self._api_v1_indexing_tasks_post_serialize(
|
|
247
|
+
create_indexing_task_request=create_indexing_task_request,
|
|
248
|
+
dry_run=dry_run,
|
|
249
|
+
freshness_minutes=freshness_minutes,
|
|
250
|
+
_request_auth=_request_auth,
|
|
251
|
+
_content_type=_content_type,
|
|
252
|
+
_headers=_headers,
|
|
253
|
+
_host_index=_host_index
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
257
|
+
'200': "CreateIndexingTaskResponse",
|
|
258
|
+
'400': None,
|
|
259
|
+
}
|
|
260
|
+
response_data = self.api_client.call_api(
|
|
261
|
+
*_param,
|
|
262
|
+
_request_timeout=_request_timeout
|
|
263
|
+
)
|
|
264
|
+
return response_data.response
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
def _api_v1_indexing_tasks_post_serialize(
|
|
268
|
+
self,
|
|
269
|
+
create_indexing_task_request,
|
|
270
|
+
dry_run,
|
|
271
|
+
freshness_minutes,
|
|
272
|
+
_request_auth,
|
|
273
|
+
_content_type,
|
|
274
|
+
_headers,
|
|
275
|
+
_host_index,
|
|
276
|
+
) -> RequestSerialized:
|
|
277
|
+
|
|
278
|
+
_host = None
|
|
279
|
+
|
|
280
|
+
_collection_formats: Dict[str, str] = {
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
_path_params: Dict[str, str] = {}
|
|
284
|
+
_query_params: List[Tuple[str, str]] = []
|
|
285
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
286
|
+
_form_params: List[Tuple[str, str]] = []
|
|
287
|
+
_files: Dict[
|
|
288
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
289
|
+
] = {}
|
|
290
|
+
_body_params: Optional[bytes] = None
|
|
291
|
+
|
|
292
|
+
# process the path parameters
|
|
293
|
+
# process the query parameters
|
|
294
|
+
if dry_run is not None:
|
|
295
|
+
|
|
296
|
+
_query_params.append(('dryRun', dry_run))
|
|
297
|
+
|
|
298
|
+
if freshness_minutes is not None:
|
|
299
|
+
|
|
300
|
+
_query_params.append(('freshnessMinutes', freshness_minutes))
|
|
301
|
+
|
|
302
|
+
# process the header parameters
|
|
303
|
+
# process the form parameters
|
|
304
|
+
# process the body parameter
|
|
305
|
+
if create_indexing_task_request is not None:
|
|
306
|
+
_body_params = create_indexing_task_request
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
# set the HTTP header `Accept`
|
|
310
|
+
if 'Accept' not in _header_params:
|
|
311
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
312
|
+
[
|
|
313
|
+
'application/json'
|
|
314
|
+
]
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
# set the HTTP header `Content-Type`
|
|
318
|
+
if _content_type:
|
|
319
|
+
_header_params['Content-Type'] = _content_type
|
|
320
|
+
else:
|
|
321
|
+
_default_content_type = (
|
|
322
|
+
self.api_client.select_header_content_type(
|
|
323
|
+
[
|
|
324
|
+
'application/json'
|
|
325
|
+
]
|
|
326
|
+
)
|
|
327
|
+
)
|
|
328
|
+
if _default_content_type is not None:
|
|
329
|
+
_header_params['Content-Type'] = _default_content_type
|
|
330
|
+
|
|
331
|
+
# authentication setting
|
|
332
|
+
_auth_settings: List[str] = [
|
|
333
|
+
]
|
|
334
|
+
|
|
335
|
+
return self.api_client.param_serialize(
|
|
336
|
+
method='POST',
|
|
337
|
+
resource_path='/api/v1/indexing/tasks',
|
|
338
|
+
path_params=_path_params,
|
|
339
|
+
query_params=_query_params,
|
|
340
|
+
header_params=_header_params,
|
|
341
|
+
body=_body_params,
|
|
342
|
+
post_params=_form_params,
|
|
343
|
+
files=_files,
|
|
344
|
+
auth_settings=_auth_settings,
|
|
345
|
+
collection_formats=_collection_formats,
|
|
346
|
+
_host=_host,
|
|
347
|
+
_request_auth=_request_auth
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
@validate_call
|
|
354
|
+
def api_v1_indexing_tasks_task_rid_actions_get(
|
|
355
|
+
self,
|
|
356
|
+
task_rid: StrictStr,
|
|
357
|
+
limit: Optional[StrictInt] = None,
|
|
358
|
+
offset: Optional[StrictInt] = None,
|
|
359
|
+
status: Optional[List[IndexingActionStatus]] = None,
|
|
360
|
+
_request_timeout: Union[
|
|
361
|
+
None,
|
|
362
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
363
|
+
Tuple[
|
|
364
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
365
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
366
|
+
]
|
|
367
|
+
] = None,
|
|
368
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
369
|
+
_content_type: Optional[StrictStr] = None,
|
|
370
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
371
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
372
|
+
) -> ListIndexingActionsResponse:
|
|
373
|
+
"""List Indexing Actions
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
:param task_rid: (required)
|
|
377
|
+
:type task_rid: str
|
|
378
|
+
:param limit:
|
|
379
|
+
:type limit: int
|
|
380
|
+
:param offset:
|
|
381
|
+
:type offset: int
|
|
382
|
+
:param status:
|
|
383
|
+
:type status: List[IndexingActionStatus]
|
|
384
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
385
|
+
number provided, it will be total request
|
|
386
|
+
timeout. It can also be a pair (tuple) of
|
|
387
|
+
(connection, read) timeouts.
|
|
388
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
389
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
390
|
+
request; this effectively ignores the
|
|
391
|
+
authentication in the spec for a single request.
|
|
392
|
+
:type _request_auth: dict, optional
|
|
393
|
+
:param _content_type: force content-type for the request.
|
|
394
|
+
:type _content_type: str, Optional
|
|
395
|
+
:param _headers: set to override the headers for a single
|
|
396
|
+
request; this effectively ignores the headers
|
|
397
|
+
in the spec for a single request.
|
|
398
|
+
:type _headers: dict, optional
|
|
399
|
+
:param _host_index: set to override the host_index for a single
|
|
400
|
+
request; this effectively ignores the host_index
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _host_index: int, optional
|
|
403
|
+
:return: Returns the result object.
|
|
404
|
+
""" # noqa: E501
|
|
405
|
+
|
|
406
|
+
_param = self._api_v1_indexing_tasks_task_rid_actions_get_serialize(
|
|
407
|
+
task_rid=task_rid,
|
|
408
|
+
limit=limit,
|
|
409
|
+
offset=offset,
|
|
410
|
+
status=status,
|
|
411
|
+
_request_auth=_request_auth,
|
|
412
|
+
_content_type=_content_type,
|
|
413
|
+
_headers=_headers,
|
|
414
|
+
_host_index=_host_index
|
|
415
|
+
)
|
|
416
|
+
|
|
417
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
418
|
+
'200': "ListIndexingActionsResponse",
|
|
419
|
+
}
|
|
420
|
+
response_data = self.api_client.call_api(
|
|
421
|
+
*_param,
|
|
422
|
+
_request_timeout=_request_timeout
|
|
423
|
+
)
|
|
424
|
+
response_data.read()
|
|
425
|
+
return self.api_client.response_deserialize(
|
|
426
|
+
response_data=response_data,
|
|
427
|
+
response_types_map=_response_types_map,
|
|
428
|
+
).data
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
@validate_call
|
|
432
|
+
def api_v1_indexing_tasks_task_rid_actions_get_with_http_info(
|
|
433
|
+
self,
|
|
434
|
+
task_rid: StrictStr,
|
|
435
|
+
limit: Optional[StrictInt] = None,
|
|
436
|
+
offset: Optional[StrictInt] = None,
|
|
437
|
+
status: Optional[List[IndexingActionStatus]] = None,
|
|
438
|
+
_request_timeout: Union[
|
|
439
|
+
None,
|
|
440
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
441
|
+
Tuple[
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
443
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
444
|
+
]
|
|
445
|
+
] = None,
|
|
446
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
447
|
+
_content_type: Optional[StrictStr] = None,
|
|
448
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
449
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
450
|
+
) -> ApiResponse[ListIndexingActionsResponse]:
|
|
451
|
+
"""List Indexing Actions
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
:param task_rid: (required)
|
|
455
|
+
:type task_rid: str
|
|
456
|
+
:param limit:
|
|
457
|
+
:type limit: int
|
|
458
|
+
:param offset:
|
|
459
|
+
:type offset: int
|
|
460
|
+
:param status:
|
|
461
|
+
:type status: List[IndexingActionStatus]
|
|
462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
463
|
+
number provided, it will be total request
|
|
464
|
+
timeout. It can also be a pair (tuple) of
|
|
465
|
+
(connection, read) timeouts.
|
|
466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
468
|
+
request; this effectively ignores the
|
|
469
|
+
authentication in the spec for a single request.
|
|
470
|
+
:type _request_auth: dict, optional
|
|
471
|
+
:param _content_type: force content-type for the request.
|
|
472
|
+
:type _content_type: str, Optional
|
|
473
|
+
:param _headers: set to override the headers for a single
|
|
474
|
+
request; this effectively ignores the headers
|
|
475
|
+
in the spec for a single request.
|
|
476
|
+
:type _headers: dict, optional
|
|
477
|
+
:param _host_index: set to override the host_index for a single
|
|
478
|
+
request; this effectively ignores the host_index
|
|
479
|
+
in the spec for a single request.
|
|
480
|
+
:type _host_index: int, optional
|
|
481
|
+
:return: Returns the result object.
|
|
482
|
+
""" # noqa: E501
|
|
483
|
+
|
|
484
|
+
_param = self._api_v1_indexing_tasks_task_rid_actions_get_serialize(
|
|
485
|
+
task_rid=task_rid,
|
|
486
|
+
limit=limit,
|
|
487
|
+
offset=offset,
|
|
488
|
+
status=status,
|
|
489
|
+
_request_auth=_request_auth,
|
|
490
|
+
_content_type=_content_type,
|
|
491
|
+
_headers=_headers,
|
|
492
|
+
_host_index=_host_index
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
496
|
+
'200': "ListIndexingActionsResponse",
|
|
497
|
+
}
|
|
498
|
+
response_data = self.api_client.call_api(
|
|
499
|
+
*_param,
|
|
500
|
+
_request_timeout=_request_timeout
|
|
501
|
+
)
|
|
502
|
+
response_data.read()
|
|
503
|
+
return self.api_client.response_deserialize(
|
|
504
|
+
response_data=response_data,
|
|
505
|
+
response_types_map=_response_types_map,
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
@validate_call
|
|
510
|
+
def api_v1_indexing_tasks_task_rid_actions_get_without_preload_content(
|
|
511
|
+
self,
|
|
512
|
+
task_rid: StrictStr,
|
|
513
|
+
limit: Optional[StrictInt] = None,
|
|
514
|
+
offset: Optional[StrictInt] = None,
|
|
515
|
+
status: Optional[List[IndexingActionStatus]] = None,
|
|
516
|
+
_request_timeout: Union[
|
|
517
|
+
None,
|
|
518
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
519
|
+
Tuple[
|
|
520
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
521
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
522
|
+
]
|
|
523
|
+
] = None,
|
|
524
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
525
|
+
_content_type: Optional[StrictStr] = None,
|
|
526
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
527
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
528
|
+
) -> RESTResponseType:
|
|
529
|
+
"""List Indexing Actions
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
:param task_rid: (required)
|
|
533
|
+
:type task_rid: str
|
|
534
|
+
:param limit:
|
|
535
|
+
:type limit: int
|
|
536
|
+
:param offset:
|
|
537
|
+
:type offset: int
|
|
538
|
+
:param status:
|
|
539
|
+
:type status: List[IndexingActionStatus]
|
|
540
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
541
|
+
number provided, it will be total request
|
|
542
|
+
timeout. It can also be a pair (tuple) of
|
|
543
|
+
(connection, read) timeouts.
|
|
544
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
545
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
546
|
+
request; this effectively ignores the
|
|
547
|
+
authentication in the spec for a single request.
|
|
548
|
+
:type _request_auth: dict, optional
|
|
549
|
+
:param _content_type: force content-type for the request.
|
|
550
|
+
:type _content_type: str, Optional
|
|
551
|
+
:param _headers: set to override the headers for a single
|
|
552
|
+
request; this effectively ignores the headers
|
|
553
|
+
in the spec for a single request.
|
|
554
|
+
:type _headers: dict, optional
|
|
555
|
+
:param _host_index: set to override the host_index for a single
|
|
556
|
+
request; this effectively ignores the host_index
|
|
557
|
+
in the spec for a single request.
|
|
558
|
+
:type _host_index: int, optional
|
|
559
|
+
:return: Returns the result object.
|
|
560
|
+
""" # noqa: E501
|
|
561
|
+
|
|
562
|
+
_param = self._api_v1_indexing_tasks_task_rid_actions_get_serialize(
|
|
563
|
+
task_rid=task_rid,
|
|
564
|
+
limit=limit,
|
|
565
|
+
offset=offset,
|
|
566
|
+
status=status,
|
|
567
|
+
_request_auth=_request_auth,
|
|
568
|
+
_content_type=_content_type,
|
|
569
|
+
_headers=_headers,
|
|
570
|
+
_host_index=_host_index
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
574
|
+
'200': "ListIndexingActionsResponse",
|
|
575
|
+
}
|
|
576
|
+
response_data = self.api_client.call_api(
|
|
577
|
+
*_param,
|
|
578
|
+
_request_timeout=_request_timeout
|
|
579
|
+
)
|
|
580
|
+
return response_data.response
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
def _api_v1_indexing_tasks_task_rid_actions_get_serialize(
|
|
584
|
+
self,
|
|
585
|
+
task_rid,
|
|
586
|
+
limit,
|
|
587
|
+
offset,
|
|
588
|
+
status,
|
|
589
|
+
_request_auth,
|
|
590
|
+
_content_type,
|
|
591
|
+
_headers,
|
|
592
|
+
_host_index,
|
|
593
|
+
) -> RequestSerialized:
|
|
594
|
+
|
|
595
|
+
_host = None
|
|
596
|
+
|
|
597
|
+
_collection_formats: Dict[str, str] = {
|
|
598
|
+
'status': 'multi',
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
_path_params: Dict[str, str] = {}
|
|
602
|
+
_query_params: List[Tuple[str, str]] = []
|
|
603
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
604
|
+
_form_params: List[Tuple[str, str]] = []
|
|
605
|
+
_files: Dict[
|
|
606
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
607
|
+
] = {}
|
|
608
|
+
_body_params: Optional[bytes] = None
|
|
609
|
+
|
|
610
|
+
# process the path parameters
|
|
611
|
+
if task_rid is not None:
|
|
612
|
+
_path_params['taskRid'] = task_rid
|
|
613
|
+
# process the query parameters
|
|
614
|
+
if limit is not None:
|
|
615
|
+
|
|
616
|
+
_query_params.append(('limit', limit))
|
|
617
|
+
|
|
618
|
+
if offset is not None:
|
|
619
|
+
|
|
620
|
+
_query_params.append(('offset', offset))
|
|
621
|
+
|
|
622
|
+
if status is not None:
|
|
623
|
+
|
|
624
|
+
_query_params.append(('status', status))
|
|
625
|
+
|
|
626
|
+
# process the header parameters
|
|
627
|
+
# process the form parameters
|
|
628
|
+
# process the body parameter
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
# set the HTTP header `Accept`
|
|
632
|
+
if 'Accept' not in _header_params:
|
|
633
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
634
|
+
[
|
|
635
|
+
'application/json'
|
|
636
|
+
]
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
# authentication setting
|
|
641
|
+
_auth_settings: List[str] = [
|
|
642
|
+
]
|
|
643
|
+
|
|
644
|
+
return self.api_client.param_serialize(
|
|
645
|
+
method='GET',
|
|
646
|
+
resource_path='/api/v1/indexing/tasks/{taskRid}/actions',
|
|
647
|
+
path_params=_path_params,
|
|
648
|
+
query_params=_query_params,
|
|
649
|
+
header_params=_header_params,
|
|
650
|
+
body=_body_params,
|
|
651
|
+
post_params=_form_params,
|
|
652
|
+
files=_files,
|
|
653
|
+
auth_settings=_auth_settings,
|
|
654
|
+
collection_formats=_collection_formats,
|
|
655
|
+
_host=_host,
|
|
656
|
+
_request_auth=_request_auth
|
|
657
|
+
)
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
@validate_call
|
|
663
|
+
def api_v1_indexing_tasks_task_rid_execute_post(
|
|
664
|
+
self,
|
|
665
|
+
task_rid: StrictStr,
|
|
666
|
+
_request_timeout: Union[
|
|
667
|
+
None,
|
|
668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
669
|
+
Tuple[
|
|
670
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
671
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
672
|
+
]
|
|
673
|
+
] = None,
|
|
674
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
675
|
+
_content_type: Optional[StrictStr] = None,
|
|
676
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
677
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
678
|
+
) -> StartExecutionResponse:
|
|
679
|
+
"""Start Execution
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
:param task_rid: (required)
|
|
683
|
+
:type task_rid: str
|
|
684
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
685
|
+
number provided, it will be total request
|
|
686
|
+
timeout. It can also be a pair (tuple) of
|
|
687
|
+
(connection, read) timeouts.
|
|
688
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
689
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
690
|
+
request; this effectively ignores the
|
|
691
|
+
authentication in the spec for a single request.
|
|
692
|
+
:type _request_auth: dict, optional
|
|
693
|
+
:param _content_type: force content-type for the request.
|
|
694
|
+
:type _content_type: str, Optional
|
|
695
|
+
:param _headers: set to override the headers for a single
|
|
696
|
+
request; this effectively ignores the headers
|
|
697
|
+
in the spec for a single request.
|
|
698
|
+
:type _headers: dict, optional
|
|
699
|
+
:param _host_index: set to override the host_index for a single
|
|
700
|
+
request; this effectively ignores the host_index
|
|
701
|
+
in the spec for a single request.
|
|
702
|
+
:type _host_index: int, optional
|
|
703
|
+
:return: Returns the result object.
|
|
704
|
+
""" # noqa: E501
|
|
705
|
+
|
|
706
|
+
_param = self._api_v1_indexing_tasks_task_rid_execute_post_serialize(
|
|
707
|
+
task_rid=task_rid,
|
|
708
|
+
_request_auth=_request_auth,
|
|
709
|
+
_content_type=_content_type,
|
|
710
|
+
_headers=_headers,
|
|
711
|
+
_host_index=_host_index
|
|
712
|
+
)
|
|
713
|
+
|
|
714
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
715
|
+
'200': "StartExecutionResponse",
|
|
716
|
+
}
|
|
717
|
+
response_data = self.api_client.call_api(
|
|
718
|
+
*_param,
|
|
719
|
+
_request_timeout=_request_timeout
|
|
720
|
+
)
|
|
721
|
+
response_data.read()
|
|
722
|
+
return self.api_client.response_deserialize(
|
|
723
|
+
response_data=response_data,
|
|
724
|
+
response_types_map=_response_types_map,
|
|
725
|
+
).data
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
@validate_call
|
|
729
|
+
def api_v1_indexing_tasks_task_rid_execute_post_with_http_info(
|
|
730
|
+
self,
|
|
731
|
+
task_rid: StrictStr,
|
|
732
|
+
_request_timeout: Union[
|
|
733
|
+
None,
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
735
|
+
Tuple[
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
738
|
+
]
|
|
739
|
+
] = None,
|
|
740
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
741
|
+
_content_type: Optional[StrictStr] = None,
|
|
742
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
743
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
744
|
+
) -> ApiResponse[StartExecutionResponse]:
|
|
745
|
+
"""Start Execution
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
:param task_rid: (required)
|
|
749
|
+
:type task_rid: str
|
|
750
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
751
|
+
number provided, it will be total request
|
|
752
|
+
timeout. It can also be a pair (tuple) of
|
|
753
|
+
(connection, read) timeouts.
|
|
754
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
755
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
756
|
+
request; this effectively ignores the
|
|
757
|
+
authentication in the spec for a single request.
|
|
758
|
+
:type _request_auth: dict, optional
|
|
759
|
+
:param _content_type: force content-type for the request.
|
|
760
|
+
:type _content_type: str, Optional
|
|
761
|
+
:param _headers: set to override the headers for a single
|
|
762
|
+
request; this effectively ignores the headers
|
|
763
|
+
in the spec for a single request.
|
|
764
|
+
:type _headers: dict, optional
|
|
765
|
+
:param _host_index: set to override the host_index for a single
|
|
766
|
+
request; this effectively ignores the host_index
|
|
767
|
+
in the spec for a single request.
|
|
768
|
+
:type _host_index: int, optional
|
|
769
|
+
:return: Returns the result object.
|
|
770
|
+
""" # noqa: E501
|
|
771
|
+
|
|
772
|
+
_param = self._api_v1_indexing_tasks_task_rid_execute_post_serialize(
|
|
773
|
+
task_rid=task_rid,
|
|
774
|
+
_request_auth=_request_auth,
|
|
775
|
+
_content_type=_content_type,
|
|
776
|
+
_headers=_headers,
|
|
777
|
+
_host_index=_host_index
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
781
|
+
'200': "StartExecutionResponse",
|
|
782
|
+
}
|
|
783
|
+
response_data = self.api_client.call_api(
|
|
784
|
+
*_param,
|
|
785
|
+
_request_timeout=_request_timeout
|
|
786
|
+
)
|
|
787
|
+
response_data.read()
|
|
788
|
+
return self.api_client.response_deserialize(
|
|
789
|
+
response_data=response_data,
|
|
790
|
+
response_types_map=_response_types_map,
|
|
791
|
+
)
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
@validate_call
|
|
795
|
+
def api_v1_indexing_tasks_task_rid_execute_post_without_preload_content(
|
|
796
|
+
self,
|
|
797
|
+
task_rid: StrictStr,
|
|
798
|
+
_request_timeout: Union[
|
|
799
|
+
None,
|
|
800
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
801
|
+
Tuple[
|
|
802
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
803
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
804
|
+
]
|
|
805
|
+
] = None,
|
|
806
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
807
|
+
_content_type: Optional[StrictStr] = None,
|
|
808
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
809
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
810
|
+
) -> RESTResponseType:
|
|
811
|
+
"""Start Execution
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
:param task_rid: (required)
|
|
815
|
+
:type task_rid: str
|
|
816
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
817
|
+
number provided, it will be total request
|
|
818
|
+
timeout. It can also be a pair (tuple) of
|
|
819
|
+
(connection, read) timeouts.
|
|
820
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
821
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
822
|
+
request; this effectively ignores the
|
|
823
|
+
authentication in the spec for a single request.
|
|
824
|
+
:type _request_auth: dict, optional
|
|
825
|
+
:param _content_type: force content-type for the request.
|
|
826
|
+
:type _content_type: str, Optional
|
|
827
|
+
:param _headers: set to override the headers for a single
|
|
828
|
+
request; this effectively ignores the headers
|
|
829
|
+
in the spec for a single request.
|
|
830
|
+
:type _headers: dict, optional
|
|
831
|
+
:param _host_index: set to override the host_index for a single
|
|
832
|
+
request; this effectively ignores the host_index
|
|
833
|
+
in the spec for a single request.
|
|
834
|
+
:type _host_index: int, optional
|
|
835
|
+
:return: Returns the result object.
|
|
836
|
+
""" # noqa: E501
|
|
837
|
+
|
|
838
|
+
_param = self._api_v1_indexing_tasks_task_rid_execute_post_serialize(
|
|
839
|
+
task_rid=task_rid,
|
|
840
|
+
_request_auth=_request_auth,
|
|
841
|
+
_content_type=_content_type,
|
|
842
|
+
_headers=_headers,
|
|
843
|
+
_host_index=_host_index
|
|
844
|
+
)
|
|
845
|
+
|
|
846
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
847
|
+
'200': "StartExecutionResponse",
|
|
848
|
+
}
|
|
849
|
+
response_data = self.api_client.call_api(
|
|
850
|
+
*_param,
|
|
851
|
+
_request_timeout=_request_timeout
|
|
852
|
+
)
|
|
853
|
+
return response_data.response
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
def _api_v1_indexing_tasks_task_rid_execute_post_serialize(
|
|
857
|
+
self,
|
|
858
|
+
task_rid,
|
|
859
|
+
_request_auth,
|
|
860
|
+
_content_type,
|
|
861
|
+
_headers,
|
|
862
|
+
_host_index,
|
|
863
|
+
) -> RequestSerialized:
|
|
864
|
+
|
|
865
|
+
_host = None
|
|
866
|
+
|
|
867
|
+
_collection_formats: Dict[str, str] = {
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
_path_params: Dict[str, str] = {}
|
|
871
|
+
_query_params: List[Tuple[str, str]] = []
|
|
872
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
873
|
+
_form_params: List[Tuple[str, str]] = []
|
|
874
|
+
_files: Dict[
|
|
875
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
876
|
+
] = {}
|
|
877
|
+
_body_params: Optional[bytes] = None
|
|
878
|
+
|
|
879
|
+
# process the path parameters
|
|
880
|
+
if task_rid is not None:
|
|
881
|
+
_path_params['taskRid'] = task_rid
|
|
882
|
+
# process the query parameters
|
|
883
|
+
# process the header parameters
|
|
884
|
+
# process the form parameters
|
|
885
|
+
# process the body parameter
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
# set the HTTP header `Accept`
|
|
889
|
+
if 'Accept' not in _header_params:
|
|
890
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
891
|
+
[
|
|
892
|
+
'application/json'
|
|
893
|
+
]
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
# authentication setting
|
|
898
|
+
_auth_settings: List[str] = [
|
|
899
|
+
]
|
|
900
|
+
|
|
901
|
+
return self.api_client.param_serialize(
|
|
902
|
+
method='POST',
|
|
903
|
+
resource_path='/api/v1/indexing/tasks/{taskRid}/execute',
|
|
904
|
+
path_params=_path_params,
|
|
905
|
+
query_params=_query_params,
|
|
906
|
+
header_params=_header_params,
|
|
907
|
+
body=_body_params,
|
|
908
|
+
post_params=_form_params,
|
|
909
|
+
files=_files,
|
|
910
|
+
auth_settings=_auth_settings,
|
|
911
|
+
collection_formats=_collection_formats,
|
|
912
|
+
_host=_host,
|
|
913
|
+
_request_auth=_request_auth
|
|
914
|
+
)
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
@validate_call
|
|
920
|
+
def api_v1_indexing_tasks_task_rid_get(
|
|
921
|
+
self,
|
|
922
|
+
task_rid: StrictStr,
|
|
923
|
+
_request_timeout: Union[
|
|
924
|
+
None,
|
|
925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
926
|
+
Tuple[
|
|
927
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
928
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
929
|
+
]
|
|
930
|
+
] = None,
|
|
931
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
932
|
+
_content_type: Optional[StrictStr] = None,
|
|
933
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
934
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
935
|
+
) -> GetIndexingTaskResponse:
|
|
936
|
+
"""Get Indexing Task
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
:param task_rid: (required)
|
|
940
|
+
:type task_rid: str
|
|
941
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
942
|
+
number provided, it will be total request
|
|
943
|
+
timeout. It can also be a pair (tuple) of
|
|
944
|
+
(connection, read) timeouts.
|
|
945
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
946
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
947
|
+
request; this effectively ignores the
|
|
948
|
+
authentication in the spec for a single request.
|
|
949
|
+
:type _request_auth: dict, optional
|
|
950
|
+
:param _content_type: force content-type for the request.
|
|
951
|
+
:type _content_type: str, Optional
|
|
952
|
+
:param _headers: set to override the headers for a single
|
|
953
|
+
request; this effectively ignores the headers
|
|
954
|
+
in the spec for a single request.
|
|
955
|
+
:type _headers: dict, optional
|
|
956
|
+
:param _host_index: set to override the host_index for a single
|
|
957
|
+
request; this effectively ignores the host_index
|
|
958
|
+
in the spec for a single request.
|
|
959
|
+
:type _host_index: int, optional
|
|
960
|
+
:return: Returns the result object.
|
|
961
|
+
""" # noqa: E501
|
|
962
|
+
|
|
963
|
+
_param = self._api_v1_indexing_tasks_task_rid_get_serialize(
|
|
964
|
+
task_rid=task_rid,
|
|
965
|
+
_request_auth=_request_auth,
|
|
966
|
+
_content_type=_content_type,
|
|
967
|
+
_headers=_headers,
|
|
968
|
+
_host_index=_host_index
|
|
969
|
+
)
|
|
970
|
+
|
|
971
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
972
|
+
'200': "GetIndexingTaskResponse",
|
|
973
|
+
}
|
|
974
|
+
response_data = self.api_client.call_api(
|
|
975
|
+
*_param,
|
|
976
|
+
_request_timeout=_request_timeout
|
|
977
|
+
)
|
|
978
|
+
response_data.read()
|
|
979
|
+
return self.api_client.response_deserialize(
|
|
980
|
+
response_data=response_data,
|
|
981
|
+
response_types_map=_response_types_map,
|
|
982
|
+
).data
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
@validate_call
|
|
986
|
+
def api_v1_indexing_tasks_task_rid_get_with_http_info(
|
|
987
|
+
self,
|
|
988
|
+
task_rid: StrictStr,
|
|
989
|
+
_request_timeout: Union[
|
|
990
|
+
None,
|
|
991
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
992
|
+
Tuple[
|
|
993
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
994
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
995
|
+
]
|
|
996
|
+
] = None,
|
|
997
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
998
|
+
_content_type: Optional[StrictStr] = None,
|
|
999
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1000
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1001
|
+
) -> ApiResponse[GetIndexingTaskResponse]:
|
|
1002
|
+
"""Get Indexing Task
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
:param task_rid: (required)
|
|
1006
|
+
:type task_rid: str
|
|
1007
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1008
|
+
number provided, it will be total request
|
|
1009
|
+
timeout. It can also be a pair (tuple) of
|
|
1010
|
+
(connection, read) timeouts.
|
|
1011
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1012
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1013
|
+
request; this effectively ignores the
|
|
1014
|
+
authentication in the spec for a single request.
|
|
1015
|
+
:type _request_auth: dict, optional
|
|
1016
|
+
:param _content_type: force content-type for the request.
|
|
1017
|
+
:type _content_type: str, Optional
|
|
1018
|
+
:param _headers: set to override the headers for a single
|
|
1019
|
+
request; this effectively ignores the headers
|
|
1020
|
+
in the spec for a single request.
|
|
1021
|
+
:type _headers: dict, optional
|
|
1022
|
+
:param _host_index: set to override the host_index for a single
|
|
1023
|
+
request; this effectively ignores the host_index
|
|
1024
|
+
in the spec for a single request.
|
|
1025
|
+
:type _host_index: int, optional
|
|
1026
|
+
:return: Returns the result object.
|
|
1027
|
+
""" # noqa: E501
|
|
1028
|
+
|
|
1029
|
+
_param = self._api_v1_indexing_tasks_task_rid_get_serialize(
|
|
1030
|
+
task_rid=task_rid,
|
|
1031
|
+
_request_auth=_request_auth,
|
|
1032
|
+
_content_type=_content_type,
|
|
1033
|
+
_headers=_headers,
|
|
1034
|
+
_host_index=_host_index
|
|
1035
|
+
)
|
|
1036
|
+
|
|
1037
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1038
|
+
'200': "GetIndexingTaskResponse",
|
|
1039
|
+
}
|
|
1040
|
+
response_data = self.api_client.call_api(
|
|
1041
|
+
*_param,
|
|
1042
|
+
_request_timeout=_request_timeout
|
|
1043
|
+
)
|
|
1044
|
+
response_data.read()
|
|
1045
|
+
return self.api_client.response_deserialize(
|
|
1046
|
+
response_data=response_data,
|
|
1047
|
+
response_types_map=_response_types_map,
|
|
1048
|
+
)
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
@validate_call
|
|
1052
|
+
def api_v1_indexing_tasks_task_rid_get_without_preload_content(
|
|
1053
|
+
self,
|
|
1054
|
+
task_rid: StrictStr,
|
|
1055
|
+
_request_timeout: Union[
|
|
1056
|
+
None,
|
|
1057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1058
|
+
Tuple[
|
|
1059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1061
|
+
]
|
|
1062
|
+
] = None,
|
|
1063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1064
|
+
_content_type: Optional[StrictStr] = None,
|
|
1065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1067
|
+
) -> RESTResponseType:
|
|
1068
|
+
"""Get Indexing Task
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
:param task_rid: (required)
|
|
1072
|
+
:type task_rid: str
|
|
1073
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1074
|
+
number provided, it will be total request
|
|
1075
|
+
timeout. It can also be a pair (tuple) of
|
|
1076
|
+
(connection, read) timeouts.
|
|
1077
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1078
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1079
|
+
request; this effectively ignores the
|
|
1080
|
+
authentication in the spec for a single request.
|
|
1081
|
+
:type _request_auth: dict, optional
|
|
1082
|
+
:param _content_type: force content-type for the request.
|
|
1083
|
+
:type _content_type: str, Optional
|
|
1084
|
+
:param _headers: set to override the headers for a single
|
|
1085
|
+
request; this effectively ignores the headers
|
|
1086
|
+
in the spec for a single request.
|
|
1087
|
+
:type _headers: dict, optional
|
|
1088
|
+
:param _host_index: set to override the host_index for a single
|
|
1089
|
+
request; this effectively ignores the host_index
|
|
1090
|
+
in the spec for a single request.
|
|
1091
|
+
:type _host_index: int, optional
|
|
1092
|
+
:return: Returns the result object.
|
|
1093
|
+
""" # noqa: E501
|
|
1094
|
+
|
|
1095
|
+
_param = self._api_v1_indexing_tasks_task_rid_get_serialize(
|
|
1096
|
+
task_rid=task_rid,
|
|
1097
|
+
_request_auth=_request_auth,
|
|
1098
|
+
_content_type=_content_type,
|
|
1099
|
+
_headers=_headers,
|
|
1100
|
+
_host_index=_host_index
|
|
1101
|
+
)
|
|
1102
|
+
|
|
1103
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1104
|
+
'200': "GetIndexingTaskResponse",
|
|
1105
|
+
}
|
|
1106
|
+
response_data = self.api_client.call_api(
|
|
1107
|
+
*_param,
|
|
1108
|
+
_request_timeout=_request_timeout
|
|
1109
|
+
)
|
|
1110
|
+
return response_data.response
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
def _api_v1_indexing_tasks_task_rid_get_serialize(
|
|
1114
|
+
self,
|
|
1115
|
+
task_rid,
|
|
1116
|
+
_request_auth,
|
|
1117
|
+
_content_type,
|
|
1118
|
+
_headers,
|
|
1119
|
+
_host_index,
|
|
1120
|
+
) -> RequestSerialized:
|
|
1121
|
+
|
|
1122
|
+
_host = None
|
|
1123
|
+
|
|
1124
|
+
_collection_formats: Dict[str, str] = {
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
_path_params: Dict[str, str] = {}
|
|
1128
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1129
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1130
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1131
|
+
_files: Dict[
|
|
1132
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1133
|
+
] = {}
|
|
1134
|
+
_body_params: Optional[bytes] = None
|
|
1135
|
+
|
|
1136
|
+
# process the path parameters
|
|
1137
|
+
if task_rid is not None:
|
|
1138
|
+
_path_params['taskRid'] = task_rid
|
|
1139
|
+
# process the query parameters
|
|
1140
|
+
# process the header parameters
|
|
1141
|
+
# process the form parameters
|
|
1142
|
+
# process the body parameter
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
# set the HTTP header `Accept`
|
|
1146
|
+
if 'Accept' not in _header_params:
|
|
1147
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1148
|
+
[
|
|
1149
|
+
'application/json'
|
|
1150
|
+
]
|
|
1151
|
+
)
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
# authentication setting
|
|
1155
|
+
_auth_settings: List[str] = [
|
|
1156
|
+
]
|
|
1157
|
+
|
|
1158
|
+
return self.api_client.param_serialize(
|
|
1159
|
+
method='GET',
|
|
1160
|
+
resource_path='/api/v1/indexing/tasks/{taskRid}',
|
|
1161
|
+
path_params=_path_params,
|
|
1162
|
+
query_params=_query_params,
|
|
1163
|
+
header_params=_header_params,
|
|
1164
|
+
body=_body_params,
|
|
1165
|
+
post_params=_form_params,
|
|
1166
|
+
files=_files,
|
|
1167
|
+
auth_settings=_auth_settings,
|
|
1168
|
+
collection_formats=_collection_formats,
|
|
1169
|
+
_host=_host,
|
|
1170
|
+
_request_auth=_request_auth
|
|
1171
|
+
)
|
|
1172
|
+
|
|
1173
|
+
|