perceptic-core-client 0.5.12__py3-none-any.whl → 0.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client/__init__.py +0 -0
- perceptic_core_client/perceptic_core_client/__init__.py +101 -0
- perceptic_core_client/perceptic_core_client/api/__init__.py +12 -0
- perceptic_core_client/perceptic_core_client/api/connection_resource_api.py +569 -0
- perceptic_core_client/perceptic_core_client/api/file_system_contents_resource_api.py +2361 -0
- perceptic_core_client/perceptic_core_client/api/file_system_resource_api.py +1086 -0
- perceptic_core_client/perceptic_core_client/api/indexer_resource_api.py +537 -0
- perceptic_core_client/perceptic_core_client/api/indexing_task_resource_api.py +1173 -0
- perceptic_core_client/perceptic_core_client/api/uri_resource_api.py +1630 -0
- perceptic_core_client/perceptic_core_client/api/user_resource_api.py +278 -0
- perceptic_core_client/perceptic_core_client/api/worker_resource_api.py +1746 -0
- perceptic_core_client/perceptic_core_client/api_client.py +797 -0
- perceptic_core_client/perceptic_core_client/api_response.py +21 -0
- perceptic_core_client/perceptic_core_client/configuration.py +573 -0
- perceptic_core_client/perceptic_core_client/docs/ActionType.md +14 -0
- perceptic_core_client/perceptic_core_client/docs/AzureBlobConnectionSettingsApiDto.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/AzureBlobFileSystemRootMetadataApiDto.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/ConnectionApiDto.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/ConnectionResourceApi.md +144 -0
- perceptic_core_client/perceptic_core_client/docs/ConnectionSettingsApiDto.md +36 -0
- perceptic_core_client/perceptic_core_client/docs/CreateConnectionRequest.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/CreateConnectionResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateFileSystemResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateFolderRequest.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateFolderResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskRequest.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskResponse.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/CreateManagedFileSystemRequest.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/CreateRemoteFileSystemRequest.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemApiDto.md +34 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemContentsResourceApi.md +573 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemResourceApi.md +276 -0
- perceptic_core_client/perceptic_core_client/docs/FileSystemRootMetadataApiDto.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/GetConnectionResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetIndexerResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetIndexingTaskResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetMetadataResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetParentResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetParentUriResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetSignedUrlResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkerEventsResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkerMetadataResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkerStatusResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/GetWorkersResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/IndexerDto.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/IndexerResourceApi.md +138 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingActionDto.md +35 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingActionStatus.md +16 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingTaskDto.md +36 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingTaskResourceApi.md +289 -0
- perceptic_core_client/perceptic_core_client/docs/IndexingTaskStatus.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/InfoEvent.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/JsonNode.md +50 -0
- perceptic_core_client/perceptic_core_client/docs/JsonNodeType.md +26 -0
- perceptic_core_client/perceptic_core_client/docs/ListAllFileSystemsResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ListFileSystemResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ListIndexersResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ListIndexingActionsResponse.md +37 -0
- perceptic_core_client/perceptic_core_client/docs/ManagedFileSystemApiDto.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/MeResponse.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/ModelSchema.md +38 -0
- perceptic_core_client/perceptic_core_client/docs/PagedListFileSystemResponse.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/PostWorkerRunRequest.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/PostWorkerRunResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ProgressEvent.md +31 -0
- perceptic_core_client/perceptic_core_client/docs/RemoteFileSystemApiDto.md +34 -0
- perceptic_core_client/perceptic_core_client/docs/RequestForInputEvent.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceEntryDto.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceId.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceIdentifier.md +36 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceMetadataDto.md +38 -0
- perceptic_core_client/perceptic_core_client/docs/ResourceTypeDto.md +12 -0
- perceptic_core_client/perceptic_core_client/docs/RunStatusDto.md +26 -0
- perceptic_core_client/perceptic_core_client/docs/S3ConnectionSettingsApiDto.md +33 -0
- perceptic_core_client/perceptic_core_client/docs/S3FileSystemRootMetadataApiDto.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/SchemaLocation.md +30 -0
- perceptic_core_client/perceptic_core_client/docs/StartExecutionResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/UploadFileToManagedFileSystemResponse.md +29 -0
- perceptic_core_client/perceptic_core_client/docs/UriResourceApi.md +413 -0
- perceptic_core_client/perceptic_core_client/docs/UserResourceApi.md +71 -0
- perceptic_core_client/perceptic_core_client/docs/WorkerEvent.md +34 -0
- perceptic_core_client/perceptic_core_client/docs/WorkerMetadataDto.md +32 -0
- perceptic_core_client/perceptic_core_client/docs/WorkerResourceApi.md +427 -0
- perceptic_core_client/perceptic_core_client/exceptions.py +216 -0
- perceptic_core_client/perceptic_core_client/models/__init__.py +77 -0
- perceptic_core_client/perceptic_core_client/models/action_type.py +38 -0
- perceptic_core_client/perceptic_core_client/models/azure_blob_connection_settings_api_dto.py +124 -0
- perceptic_core_client/perceptic_core_client/models/azure_blob_file_system_root_metadata_api_dto.py +89 -0
- perceptic_core_client/perceptic_core_client/models/connection_api_dto.py +99 -0
- perceptic_core_client/perceptic_core_client/models/connection_settings_api_dto.py +165 -0
- perceptic_core_client/perceptic_core_client/models/create_connection_request.py +95 -0
- perceptic_core_client/perceptic_core_client/models/create_connection_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_file_system_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_folder_request.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_folder_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/create_indexing_task_request.py +95 -0
- perceptic_core_client/perceptic_core_client/models/create_indexing_task_response.py +95 -0
- perceptic_core_client/perceptic_core_client/models/create_managed_file_system_request.py +89 -0
- perceptic_core_client/perceptic_core_client/models/create_remote_file_system_request.py +97 -0
- perceptic_core_client/perceptic_core_client/models/file_system_api_dto.py +165 -0
- perceptic_core_client/perceptic_core_client/models/file_system_root_metadata_api_dto.py +165 -0
- perceptic_core_client/perceptic_core_client/models/get_connection_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_indexer_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_indexing_task_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_metadata_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_parent_response.py +96 -0
- perceptic_core_client/perceptic_core_client/models/get_parent_uri_response.py +92 -0
- perceptic_core_client/perceptic_core_client/models/get_signed_url_response.py +92 -0
- perceptic_core_client/perceptic_core_client/models/get_worker_events_response.py +95 -0
- perceptic_core_client/perceptic_core_client/models/get_worker_metadata_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/get_worker_status_response.py +88 -0
- perceptic_core_client/perceptic_core_client/models/get_workers_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/indexer_dto.py +91 -0
- perceptic_core_client/perceptic_core_client/models/indexing_action_dto.py +107 -0
- perceptic_core_client/perceptic_core_client/models/indexing_action_status.py +39 -0
- perceptic_core_client/perceptic_core_client/models/indexing_task_dto.py +106 -0
- perceptic_core_client/perceptic_core_client/models/indexing_task_status.py +87 -0
- perceptic_core_client/perceptic_core_client/models/info_event.py +91 -0
- perceptic_core_client/perceptic_core_client/models/json_node.py +130 -0
- perceptic_core_client/perceptic_core_client/models/json_node_type.py +44 -0
- perceptic_core_client/perceptic_core_client/models/list_all_file_systems_response.py +100 -0
- perceptic_core_client/perceptic_core_client/models/list_file_system_response.py +100 -0
- perceptic_core_client/perceptic_core_client/models/list_indexers_response.py +100 -0
- perceptic_core_client/perceptic_core_client/models/list_indexing_actions_response.py +116 -0
- perceptic_core_client/perceptic_core_client/models/managed_file_system_api_dto.py +93 -0
- perceptic_core_client/perceptic_core_client/models/me_response.py +95 -0
- perceptic_core_client/perceptic_core_client/models/model_schema.py +114 -0
- perceptic_core_client/perceptic_core_client/models/paged_list_file_system_response.py +102 -0
- perceptic_core_client/perceptic_core_client/models/post_worker_run_request.py +87 -0
- perceptic_core_client/perceptic_core_client/models/post_worker_run_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/progress_event.py +91 -0
- perceptic_core_client/perceptic_core_client/models/remote_file_system_api_dto.py +101 -0
- perceptic_core_client/perceptic_core_client/models/request_for_input_event.py +98 -0
- perceptic_core_client/perceptic_core_client/models/resource_entry_dto.py +93 -0
- perceptic_core_client/perceptic_core_client/models/resource_id.py +87 -0
- perceptic_core_client/perceptic_core_client/models/resource_identifier.py +101 -0
- perceptic_core_client/perceptic_core_client/models/resource_metadata_dto.py +122 -0
- perceptic_core_client/perceptic_core_client/models/resource_type_dto.py +37 -0
- perceptic_core_client/perceptic_core_client/models/run_status_dto.py +44 -0
- perceptic_core_client/perceptic_core_client/models/s3_connection_settings_api_dto.py +124 -0
- perceptic_core_client/perceptic_core_client/models/s3_file_system_root_metadata_api_dto.py +89 -0
- perceptic_core_client/perceptic_core_client/models/schema_location.py +89 -0
- perceptic_core_client/perceptic_core_client/models/start_execution_response.py +91 -0
- perceptic_core_client/perceptic_core_client/models/upload_file_to_managed_file_system_response.py +87 -0
- perceptic_core_client/perceptic_core_client/models/worker_event.py +189 -0
- perceptic_core_client/perceptic_core_client/models/worker_metadata_dto.py +93 -0
- perceptic_core_client/perceptic_core_client/rest.py +258 -0
- perceptic_core_client/perceptic_core_client/test/__init__.py +0 -0
- perceptic_core_client/perceptic_core_client/test/test_action_type.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_azure_blob_connection_settings_api_dto.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_azure_blob_file_system_root_metadata_api_dto.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_connection_api_dto.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_connection_resource_api.py +45 -0
- perceptic_core_client/perceptic_core_client/test/test_connection_settings_api_dto.py +65 -0
- perceptic_core_client/perceptic_core_client/test/test_create_connection_request.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_create_connection_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_file_system_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_folder_request.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_folder_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_request.py +57 -0
- perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_response.py +64 -0
- perceptic_core_client/perceptic_core_client/test/test_create_managed_file_system_request.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_create_remote_file_system_request.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_api_dto.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_contents_resource_api.py +87 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_resource_api.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_file_system_root_metadata_api_dto.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_get_connection_response.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_get_indexer_response.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_get_indexing_task_response.py +62 -0
- perceptic_core_client/perceptic_core_client/test/test_get_metadata_response.py +61 -0
- perceptic_core_client/perceptic_core_client/test/test_get_parent_response.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_get_parent_uri_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_get_signed_url_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_get_worker_events_response.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_get_worker_metadata_response.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_get_worker_status_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_get_workers_response.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_indexer_dto.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_indexer_resource_api.py +45 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_action_dto.py +57 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_action_status.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_task_dto.py +61 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_task_resource_api.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_indexing_task_status.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_info_event.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_json_node.py +72 -0
- perceptic_core_client/perceptic_core_client/test/test_json_node_type.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_list_all_file_systems_response.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_list_file_system_response.py +63 -0
- perceptic_core_client/perceptic_core_client/test/test_list_indexers_response.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_list_indexing_actions_response.py +68 -0
- perceptic_core_client/perceptic_core_client/test/test_managed_file_system_api_dto.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_me_response.py +55 -0
- perceptic_core_client/perceptic_core_client/test/test_model_schema.py +66 -0
- perceptic_core_client/perceptic_core_client/test/test_paged_list_file_system_response.py +65 -0
- perceptic_core_client/perceptic_core_client/test/test_post_worker_run_request.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_post_worker_run_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_progress_event.py +53 -0
- perceptic_core_client/perceptic_core_client/test/test_remote_file_system_api_dto.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_request_for_input_event.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_entry_dto.py +62 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_id.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_identifier.py +58 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_metadata_dto.py +60 -0
- perceptic_core_client/perceptic_core_client/test/test_resource_type_dto.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_run_status_dto.py +33 -0
- perceptic_core_client/perceptic_core_client/test/test_s3_connection_settings_api_dto.py +59 -0
- perceptic_core_client/perceptic_core_client/test/test_s3_file_system_root_metadata_api_dto.py +52 -0
- perceptic_core_client/perceptic_core_client/test/test_schema_location.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_start_execution_response.py +62 -0
- perceptic_core_client/perceptic_core_client/test/test_upload_file_to_managed_file_system_response.py +51 -0
- perceptic_core_client/perceptic_core_client/test/test_uri_resource_api.py +73 -0
- perceptic_core_client/perceptic_core_client/test/test_user_resource_api.py +38 -0
- perceptic_core_client/perceptic_core_client/test/test_worker_event.py +56 -0
- perceptic_core_client/perceptic_core_client/test/test_worker_metadata_dto.py +54 -0
- perceptic_core_client/perceptic_core_client/test/test_worker_resource_api.py +73 -0
- perceptic_core_client/perceptic_core_client_README.md +181 -0
- perceptic_core_client-0.6.1.dist-info/METADATA +179 -0
- perceptic_core_client-0.6.1.dist-info/RECORD +222 -0
- perceptic_core_client-0.6.1.dist-info/top_level.txt +1 -0
- perceptic_core_client-0.5.12.dist-info/METADATA +0 -38
- perceptic_core_client-0.5.12.dist-info/RECORD +0 -4
- perceptic_core_client-0.5.12.dist-info/top_level.txt +0 -1
- {perceptic_core_client-0.5.12.dist-info → perceptic_core_client-0.6.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,1630 @@
|
|
|
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 StrictBytes, StrictInt, StrictStr
|
|
20
|
+
from typing import Optional, Tuple, Union
|
|
21
|
+
from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
|
|
22
|
+
from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
|
|
23
|
+
from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
|
|
24
|
+
from perceptic_core_client.models.list_file_system_response import ListFileSystemResponse
|
|
25
|
+
from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
|
|
26
|
+
|
|
27
|
+
from perceptic_core_client.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from perceptic_core_client.api_response import ApiResponse
|
|
29
|
+
from perceptic_core_client.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class UriResourceApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
def api_v1_resources_download_get(
|
|
47
|
+
self,
|
|
48
|
+
uri: Optional[StrictStr] = None,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> bytearray:
|
|
62
|
+
"""Download Resource
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param uri:
|
|
66
|
+
:type uri: str
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._api_v1_resources_download_get_serialize(
|
|
90
|
+
uri=uri,
|
|
91
|
+
_request_auth=_request_auth,
|
|
92
|
+
_content_type=_content_type,
|
|
93
|
+
_headers=_headers,
|
|
94
|
+
_host_index=_host_index
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
+
'200': "bytearray",
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def api_v1_resources_download_get_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
uri: Optional[StrictStr] = None,
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[bytearray]:
|
|
128
|
+
"""Download Resource
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param uri:
|
|
132
|
+
:type uri: str
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._api_v1_resources_download_get_serialize(
|
|
156
|
+
uri=uri,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': "bytearray",
|
|
165
|
+
}
|
|
166
|
+
response_data = self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
170
|
+
response_data.read()
|
|
171
|
+
return self.api_client.response_deserialize(
|
|
172
|
+
response_data=response_data,
|
|
173
|
+
response_types_map=_response_types_map,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@validate_call
|
|
178
|
+
def api_v1_resources_download_get_without_preload_content(
|
|
179
|
+
self,
|
|
180
|
+
uri: Optional[StrictStr] = None,
|
|
181
|
+
_request_timeout: Union[
|
|
182
|
+
None,
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Tuple[
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
187
|
+
]
|
|
188
|
+
] = None,
|
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
|
+
) -> RESTResponseType:
|
|
194
|
+
"""Download Resource
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param uri:
|
|
198
|
+
:type uri: str
|
|
199
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
200
|
+
number provided, it will be total request
|
|
201
|
+
timeout. It can also be a pair (tuple) of
|
|
202
|
+
(connection, read) timeouts.
|
|
203
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
204
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
205
|
+
request; this effectively ignores the
|
|
206
|
+
authentication in the spec for a single request.
|
|
207
|
+
:type _request_auth: dict, optional
|
|
208
|
+
:param _content_type: force content-type for the request.
|
|
209
|
+
:type _content_type: str, Optional
|
|
210
|
+
:param _headers: set to override the headers for a single
|
|
211
|
+
request; this effectively ignores the headers
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _headers: dict, optional
|
|
214
|
+
:param _host_index: set to override the host_index for a single
|
|
215
|
+
request; this effectively ignores the host_index
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _host_index: int, optional
|
|
218
|
+
:return: Returns the result object.
|
|
219
|
+
""" # noqa: E501
|
|
220
|
+
|
|
221
|
+
_param = self._api_v1_resources_download_get_serialize(
|
|
222
|
+
uri=uri,
|
|
223
|
+
_request_auth=_request_auth,
|
|
224
|
+
_content_type=_content_type,
|
|
225
|
+
_headers=_headers,
|
|
226
|
+
_host_index=_host_index
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
230
|
+
'200': "bytearray",
|
|
231
|
+
}
|
|
232
|
+
response_data = self.api_client.call_api(
|
|
233
|
+
*_param,
|
|
234
|
+
_request_timeout=_request_timeout
|
|
235
|
+
)
|
|
236
|
+
return response_data.response
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _api_v1_resources_download_get_serialize(
|
|
240
|
+
self,
|
|
241
|
+
uri,
|
|
242
|
+
_request_auth,
|
|
243
|
+
_content_type,
|
|
244
|
+
_headers,
|
|
245
|
+
_host_index,
|
|
246
|
+
) -> RequestSerialized:
|
|
247
|
+
|
|
248
|
+
_host = None
|
|
249
|
+
|
|
250
|
+
_collection_formats: Dict[str, str] = {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
_path_params: Dict[str, str] = {}
|
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
260
|
+
_body_params: Optional[bytes] = None
|
|
261
|
+
|
|
262
|
+
# process the path parameters
|
|
263
|
+
# process the query parameters
|
|
264
|
+
if uri is not None:
|
|
265
|
+
|
|
266
|
+
_query_params.append(('uri', uri))
|
|
267
|
+
|
|
268
|
+
# process the header parameters
|
|
269
|
+
# process the form parameters
|
|
270
|
+
# process the body parameter
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Accept`
|
|
274
|
+
if 'Accept' not in _header_params:
|
|
275
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
276
|
+
[
|
|
277
|
+
'application/octet-stream'
|
|
278
|
+
]
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# authentication setting
|
|
283
|
+
_auth_settings: List[str] = [
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
return self.api_client.param_serialize(
|
|
287
|
+
method='GET',
|
|
288
|
+
resource_path='/api/v1/resources/download',
|
|
289
|
+
path_params=_path_params,
|
|
290
|
+
query_params=_query_params,
|
|
291
|
+
header_params=_header_params,
|
|
292
|
+
body=_body_params,
|
|
293
|
+
post_params=_form_params,
|
|
294
|
+
files=_files,
|
|
295
|
+
auth_settings=_auth_settings,
|
|
296
|
+
collection_formats=_collection_formats,
|
|
297
|
+
_host=_host,
|
|
298
|
+
_request_auth=_request_auth
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
@validate_call
|
|
305
|
+
def api_v1_resources_files_get(
|
|
306
|
+
self,
|
|
307
|
+
page_size: Optional[StrictInt] = None,
|
|
308
|
+
resume_token: Optional[StrictStr] = None,
|
|
309
|
+
uri: Optional[StrictStr] = None,
|
|
310
|
+
_request_timeout: Union[
|
|
311
|
+
None,
|
|
312
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
313
|
+
Tuple[
|
|
314
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
316
|
+
]
|
|
317
|
+
] = None,
|
|
318
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
319
|
+
_content_type: Optional[StrictStr] = None,
|
|
320
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
321
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
322
|
+
) -> PagedListFileSystemResponse:
|
|
323
|
+
"""List Files
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
:param page_size:
|
|
327
|
+
:type page_size: int
|
|
328
|
+
:param resume_token:
|
|
329
|
+
:type resume_token: str
|
|
330
|
+
:param uri:
|
|
331
|
+
:type uri: str
|
|
332
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
333
|
+
number provided, it will be total request
|
|
334
|
+
timeout. It can also be a pair (tuple) of
|
|
335
|
+
(connection, read) timeouts.
|
|
336
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
337
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
338
|
+
request; this effectively ignores the
|
|
339
|
+
authentication in the spec for a single request.
|
|
340
|
+
:type _request_auth: dict, optional
|
|
341
|
+
:param _content_type: force content-type for the request.
|
|
342
|
+
:type _content_type: str, Optional
|
|
343
|
+
:param _headers: set to override the headers for a single
|
|
344
|
+
request; this effectively ignores the headers
|
|
345
|
+
in the spec for a single request.
|
|
346
|
+
:type _headers: dict, optional
|
|
347
|
+
:param _host_index: set to override the host_index for a single
|
|
348
|
+
request; this effectively ignores the host_index
|
|
349
|
+
in the spec for a single request.
|
|
350
|
+
:type _host_index: int, optional
|
|
351
|
+
:return: Returns the result object.
|
|
352
|
+
""" # noqa: E501
|
|
353
|
+
|
|
354
|
+
_param = self._api_v1_resources_files_get_serialize(
|
|
355
|
+
page_size=page_size,
|
|
356
|
+
resume_token=resume_token,
|
|
357
|
+
uri=uri,
|
|
358
|
+
_request_auth=_request_auth,
|
|
359
|
+
_content_type=_content_type,
|
|
360
|
+
_headers=_headers,
|
|
361
|
+
_host_index=_host_index
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
365
|
+
'200': "PagedListFileSystemResponse",
|
|
366
|
+
}
|
|
367
|
+
response_data = self.api_client.call_api(
|
|
368
|
+
*_param,
|
|
369
|
+
_request_timeout=_request_timeout
|
|
370
|
+
)
|
|
371
|
+
response_data.read()
|
|
372
|
+
return self.api_client.response_deserialize(
|
|
373
|
+
response_data=response_data,
|
|
374
|
+
response_types_map=_response_types_map,
|
|
375
|
+
).data
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
@validate_call
|
|
379
|
+
def api_v1_resources_files_get_with_http_info(
|
|
380
|
+
self,
|
|
381
|
+
page_size: Optional[StrictInt] = None,
|
|
382
|
+
resume_token: Optional[StrictStr] = None,
|
|
383
|
+
uri: Optional[StrictStr] = None,
|
|
384
|
+
_request_timeout: Union[
|
|
385
|
+
None,
|
|
386
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
387
|
+
Tuple[
|
|
388
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
390
|
+
]
|
|
391
|
+
] = None,
|
|
392
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
393
|
+
_content_type: Optional[StrictStr] = None,
|
|
394
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
395
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
396
|
+
) -> ApiResponse[PagedListFileSystemResponse]:
|
|
397
|
+
"""List Files
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
:param page_size:
|
|
401
|
+
:type page_size: int
|
|
402
|
+
:param resume_token:
|
|
403
|
+
:type resume_token: str
|
|
404
|
+
:param uri:
|
|
405
|
+
:type uri: str
|
|
406
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
407
|
+
number provided, it will be total request
|
|
408
|
+
timeout. It can also be a pair (tuple) of
|
|
409
|
+
(connection, read) timeouts.
|
|
410
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
411
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
412
|
+
request; this effectively ignores the
|
|
413
|
+
authentication in the spec for a single request.
|
|
414
|
+
:type _request_auth: dict, optional
|
|
415
|
+
:param _content_type: force content-type for the request.
|
|
416
|
+
:type _content_type: str, Optional
|
|
417
|
+
:param _headers: set to override the headers for a single
|
|
418
|
+
request; this effectively ignores the headers
|
|
419
|
+
in the spec for a single request.
|
|
420
|
+
:type _headers: dict, optional
|
|
421
|
+
:param _host_index: set to override the host_index for a single
|
|
422
|
+
request; this effectively ignores the host_index
|
|
423
|
+
in the spec for a single request.
|
|
424
|
+
:type _host_index: int, optional
|
|
425
|
+
:return: Returns the result object.
|
|
426
|
+
""" # noqa: E501
|
|
427
|
+
|
|
428
|
+
_param = self._api_v1_resources_files_get_serialize(
|
|
429
|
+
page_size=page_size,
|
|
430
|
+
resume_token=resume_token,
|
|
431
|
+
uri=uri,
|
|
432
|
+
_request_auth=_request_auth,
|
|
433
|
+
_content_type=_content_type,
|
|
434
|
+
_headers=_headers,
|
|
435
|
+
_host_index=_host_index
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
439
|
+
'200': "PagedListFileSystemResponse",
|
|
440
|
+
}
|
|
441
|
+
response_data = self.api_client.call_api(
|
|
442
|
+
*_param,
|
|
443
|
+
_request_timeout=_request_timeout
|
|
444
|
+
)
|
|
445
|
+
response_data.read()
|
|
446
|
+
return self.api_client.response_deserialize(
|
|
447
|
+
response_data=response_data,
|
|
448
|
+
response_types_map=_response_types_map,
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
@validate_call
|
|
453
|
+
def api_v1_resources_files_get_without_preload_content(
|
|
454
|
+
self,
|
|
455
|
+
page_size: Optional[StrictInt] = None,
|
|
456
|
+
resume_token: Optional[StrictStr] = None,
|
|
457
|
+
uri: Optional[StrictStr] = None,
|
|
458
|
+
_request_timeout: Union[
|
|
459
|
+
None,
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
461
|
+
Tuple[
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
464
|
+
]
|
|
465
|
+
] = None,
|
|
466
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
467
|
+
_content_type: Optional[StrictStr] = None,
|
|
468
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
469
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
470
|
+
) -> RESTResponseType:
|
|
471
|
+
"""List Files
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
:param page_size:
|
|
475
|
+
:type page_size: int
|
|
476
|
+
:param resume_token:
|
|
477
|
+
:type resume_token: str
|
|
478
|
+
:param uri:
|
|
479
|
+
:type uri: str
|
|
480
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
481
|
+
number provided, it will be total request
|
|
482
|
+
timeout. It can also be a pair (tuple) of
|
|
483
|
+
(connection, read) timeouts.
|
|
484
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
485
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
486
|
+
request; this effectively ignores the
|
|
487
|
+
authentication in the spec for a single request.
|
|
488
|
+
:type _request_auth: dict, optional
|
|
489
|
+
:param _content_type: force content-type for the request.
|
|
490
|
+
:type _content_type: str, Optional
|
|
491
|
+
:param _headers: set to override the headers for a single
|
|
492
|
+
request; this effectively ignores the headers
|
|
493
|
+
in the spec for a single request.
|
|
494
|
+
:type _headers: dict, optional
|
|
495
|
+
:param _host_index: set to override the host_index for a single
|
|
496
|
+
request; this effectively ignores the host_index
|
|
497
|
+
in the spec for a single request.
|
|
498
|
+
:type _host_index: int, optional
|
|
499
|
+
:return: Returns the result object.
|
|
500
|
+
""" # noqa: E501
|
|
501
|
+
|
|
502
|
+
_param = self._api_v1_resources_files_get_serialize(
|
|
503
|
+
page_size=page_size,
|
|
504
|
+
resume_token=resume_token,
|
|
505
|
+
uri=uri,
|
|
506
|
+
_request_auth=_request_auth,
|
|
507
|
+
_content_type=_content_type,
|
|
508
|
+
_headers=_headers,
|
|
509
|
+
_host_index=_host_index
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
513
|
+
'200': "PagedListFileSystemResponse",
|
|
514
|
+
}
|
|
515
|
+
response_data = self.api_client.call_api(
|
|
516
|
+
*_param,
|
|
517
|
+
_request_timeout=_request_timeout
|
|
518
|
+
)
|
|
519
|
+
return response_data.response
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
def _api_v1_resources_files_get_serialize(
|
|
523
|
+
self,
|
|
524
|
+
page_size,
|
|
525
|
+
resume_token,
|
|
526
|
+
uri,
|
|
527
|
+
_request_auth,
|
|
528
|
+
_content_type,
|
|
529
|
+
_headers,
|
|
530
|
+
_host_index,
|
|
531
|
+
) -> RequestSerialized:
|
|
532
|
+
|
|
533
|
+
_host = None
|
|
534
|
+
|
|
535
|
+
_collection_formats: Dict[str, str] = {
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
_path_params: Dict[str, str] = {}
|
|
539
|
+
_query_params: List[Tuple[str, str]] = []
|
|
540
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
541
|
+
_form_params: List[Tuple[str, str]] = []
|
|
542
|
+
_files: Dict[
|
|
543
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
544
|
+
] = {}
|
|
545
|
+
_body_params: Optional[bytes] = None
|
|
546
|
+
|
|
547
|
+
# process the path parameters
|
|
548
|
+
# process the query parameters
|
|
549
|
+
if page_size is not None:
|
|
550
|
+
|
|
551
|
+
_query_params.append(('pageSize', page_size))
|
|
552
|
+
|
|
553
|
+
if resume_token is not None:
|
|
554
|
+
|
|
555
|
+
_query_params.append(('resumeToken', resume_token))
|
|
556
|
+
|
|
557
|
+
if uri is not None:
|
|
558
|
+
|
|
559
|
+
_query_params.append(('uri', uri))
|
|
560
|
+
|
|
561
|
+
# process the header parameters
|
|
562
|
+
# process the form parameters
|
|
563
|
+
# process the body parameter
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
# set the HTTP header `Accept`
|
|
567
|
+
if 'Accept' not in _header_params:
|
|
568
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
569
|
+
[
|
|
570
|
+
'application/json'
|
|
571
|
+
]
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
# authentication setting
|
|
576
|
+
_auth_settings: List[str] = [
|
|
577
|
+
]
|
|
578
|
+
|
|
579
|
+
return self.api_client.param_serialize(
|
|
580
|
+
method='GET',
|
|
581
|
+
resource_path='/api/v1/resources/files',
|
|
582
|
+
path_params=_path_params,
|
|
583
|
+
query_params=_query_params,
|
|
584
|
+
header_params=_header_params,
|
|
585
|
+
body=_body_params,
|
|
586
|
+
post_params=_form_params,
|
|
587
|
+
files=_files,
|
|
588
|
+
auth_settings=_auth_settings,
|
|
589
|
+
collection_formats=_collection_formats,
|
|
590
|
+
_host=_host,
|
|
591
|
+
_request_auth=_request_auth
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
@validate_call
|
|
598
|
+
def api_v1_resources_list_get(
|
|
599
|
+
self,
|
|
600
|
+
uri: Optional[StrictStr] = None,
|
|
601
|
+
_request_timeout: Union[
|
|
602
|
+
None,
|
|
603
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
604
|
+
Tuple[
|
|
605
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
606
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
607
|
+
]
|
|
608
|
+
] = None,
|
|
609
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
610
|
+
_content_type: Optional[StrictStr] = None,
|
|
611
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
612
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
613
|
+
) -> ListFileSystemResponse:
|
|
614
|
+
"""List Resources
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
:param uri:
|
|
618
|
+
:type uri: str
|
|
619
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
620
|
+
number provided, it will be total request
|
|
621
|
+
timeout. It can also be a pair (tuple) of
|
|
622
|
+
(connection, read) timeouts.
|
|
623
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
624
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
625
|
+
request; this effectively ignores the
|
|
626
|
+
authentication in the spec for a single request.
|
|
627
|
+
:type _request_auth: dict, optional
|
|
628
|
+
:param _content_type: force content-type for the request.
|
|
629
|
+
:type _content_type: str, Optional
|
|
630
|
+
:param _headers: set to override the headers for a single
|
|
631
|
+
request; this effectively ignores the headers
|
|
632
|
+
in the spec for a single request.
|
|
633
|
+
:type _headers: dict, optional
|
|
634
|
+
:param _host_index: set to override the host_index for a single
|
|
635
|
+
request; this effectively ignores the host_index
|
|
636
|
+
in the spec for a single request.
|
|
637
|
+
:type _host_index: int, optional
|
|
638
|
+
:return: Returns the result object.
|
|
639
|
+
""" # noqa: E501
|
|
640
|
+
|
|
641
|
+
_param = self._api_v1_resources_list_get_serialize(
|
|
642
|
+
uri=uri,
|
|
643
|
+
_request_auth=_request_auth,
|
|
644
|
+
_content_type=_content_type,
|
|
645
|
+
_headers=_headers,
|
|
646
|
+
_host_index=_host_index
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
650
|
+
'200': "ListFileSystemResponse",
|
|
651
|
+
}
|
|
652
|
+
response_data = self.api_client.call_api(
|
|
653
|
+
*_param,
|
|
654
|
+
_request_timeout=_request_timeout
|
|
655
|
+
)
|
|
656
|
+
response_data.read()
|
|
657
|
+
return self.api_client.response_deserialize(
|
|
658
|
+
response_data=response_data,
|
|
659
|
+
response_types_map=_response_types_map,
|
|
660
|
+
).data
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
@validate_call
|
|
664
|
+
def api_v1_resources_list_get_with_http_info(
|
|
665
|
+
self,
|
|
666
|
+
uri: Optional[StrictStr] = None,
|
|
667
|
+
_request_timeout: Union[
|
|
668
|
+
None,
|
|
669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
670
|
+
Tuple[
|
|
671
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
672
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
673
|
+
]
|
|
674
|
+
] = None,
|
|
675
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
676
|
+
_content_type: Optional[StrictStr] = None,
|
|
677
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
678
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
679
|
+
) -> ApiResponse[ListFileSystemResponse]:
|
|
680
|
+
"""List Resources
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
:param uri:
|
|
684
|
+
:type uri: str
|
|
685
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
686
|
+
number provided, it will be total request
|
|
687
|
+
timeout. It can also be a pair (tuple) of
|
|
688
|
+
(connection, read) timeouts.
|
|
689
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
690
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
691
|
+
request; this effectively ignores the
|
|
692
|
+
authentication in the spec for a single request.
|
|
693
|
+
:type _request_auth: dict, optional
|
|
694
|
+
:param _content_type: force content-type for the request.
|
|
695
|
+
:type _content_type: str, Optional
|
|
696
|
+
:param _headers: set to override the headers for a single
|
|
697
|
+
request; this effectively ignores the headers
|
|
698
|
+
in the spec for a single request.
|
|
699
|
+
:type _headers: dict, optional
|
|
700
|
+
:param _host_index: set to override the host_index for a single
|
|
701
|
+
request; this effectively ignores the host_index
|
|
702
|
+
in the spec for a single request.
|
|
703
|
+
:type _host_index: int, optional
|
|
704
|
+
:return: Returns the result object.
|
|
705
|
+
""" # noqa: E501
|
|
706
|
+
|
|
707
|
+
_param = self._api_v1_resources_list_get_serialize(
|
|
708
|
+
uri=uri,
|
|
709
|
+
_request_auth=_request_auth,
|
|
710
|
+
_content_type=_content_type,
|
|
711
|
+
_headers=_headers,
|
|
712
|
+
_host_index=_host_index
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
716
|
+
'200': "ListFileSystemResponse",
|
|
717
|
+
}
|
|
718
|
+
response_data = self.api_client.call_api(
|
|
719
|
+
*_param,
|
|
720
|
+
_request_timeout=_request_timeout
|
|
721
|
+
)
|
|
722
|
+
response_data.read()
|
|
723
|
+
return self.api_client.response_deserialize(
|
|
724
|
+
response_data=response_data,
|
|
725
|
+
response_types_map=_response_types_map,
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
@validate_call
|
|
730
|
+
def api_v1_resources_list_get_without_preload_content(
|
|
731
|
+
self,
|
|
732
|
+
uri: Optional[StrictStr] = None,
|
|
733
|
+
_request_timeout: Union[
|
|
734
|
+
None,
|
|
735
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
736
|
+
Tuple[
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
738
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
739
|
+
]
|
|
740
|
+
] = None,
|
|
741
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
742
|
+
_content_type: Optional[StrictStr] = None,
|
|
743
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
744
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
745
|
+
) -> RESTResponseType:
|
|
746
|
+
"""List Resources
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
:param uri:
|
|
750
|
+
:type uri: str
|
|
751
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
752
|
+
number provided, it will be total request
|
|
753
|
+
timeout. It can also be a pair (tuple) of
|
|
754
|
+
(connection, read) timeouts.
|
|
755
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
756
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
757
|
+
request; this effectively ignores the
|
|
758
|
+
authentication in the spec for a single request.
|
|
759
|
+
:type _request_auth: dict, optional
|
|
760
|
+
:param _content_type: force content-type for the request.
|
|
761
|
+
:type _content_type: str, Optional
|
|
762
|
+
:param _headers: set to override the headers for a single
|
|
763
|
+
request; this effectively ignores the headers
|
|
764
|
+
in the spec for a single request.
|
|
765
|
+
:type _headers: dict, optional
|
|
766
|
+
:param _host_index: set to override the host_index for a single
|
|
767
|
+
request; this effectively ignores the host_index
|
|
768
|
+
in the spec for a single request.
|
|
769
|
+
:type _host_index: int, optional
|
|
770
|
+
:return: Returns the result object.
|
|
771
|
+
""" # noqa: E501
|
|
772
|
+
|
|
773
|
+
_param = self._api_v1_resources_list_get_serialize(
|
|
774
|
+
uri=uri,
|
|
775
|
+
_request_auth=_request_auth,
|
|
776
|
+
_content_type=_content_type,
|
|
777
|
+
_headers=_headers,
|
|
778
|
+
_host_index=_host_index
|
|
779
|
+
)
|
|
780
|
+
|
|
781
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
782
|
+
'200': "ListFileSystemResponse",
|
|
783
|
+
}
|
|
784
|
+
response_data = self.api_client.call_api(
|
|
785
|
+
*_param,
|
|
786
|
+
_request_timeout=_request_timeout
|
|
787
|
+
)
|
|
788
|
+
return response_data.response
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
def _api_v1_resources_list_get_serialize(
|
|
792
|
+
self,
|
|
793
|
+
uri,
|
|
794
|
+
_request_auth,
|
|
795
|
+
_content_type,
|
|
796
|
+
_headers,
|
|
797
|
+
_host_index,
|
|
798
|
+
) -> RequestSerialized:
|
|
799
|
+
|
|
800
|
+
_host = None
|
|
801
|
+
|
|
802
|
+
_collection_formats: Dict[str, str] = {
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
_path_params: Dict[str, str] = {}
|
|
806
|
+
_query_params: List[Tuple[str, str]] = []
|
|
807
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
808
|
+
_form_params: List[Tuple[str, str]] = []
|
|
809
|
+
_files: Dict[
|
|
810
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
811
|
+
] = {}
|
|
812
|
+
_body_params: Optional[bytes] = None
|
|
813
|
+
|
|
814
|
+
# process the path parameters
|
|
815
|
+
# process the query parameters
|
|
816
|
+
if uri is not None:
|
|
817
|
+
|
|
818
|
+
_query_params.append(('uri', uri))
|
|
819
|
+
|
|
820
|
+
# process the header parameters
|
|
821
|
+
# process the form parameters
|
|
822
|
+
# process the body parameter
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
# set the HTTP header `Accept`
|
|
826
|
+
if 'Accept' not in _header_params:
|
|
827
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
828
|
+
[
|
|
829
|
+
'application/json'
|
|
830
|
+
]
|
|
831
|
+
)
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
# authentication setting
|
|
835
|
+
_auth_settings: List[str] = [
|
|
836
|
+
]
|
|
837
|
+
|
|
838
|
+
return self.api_client.param_serialize(
|
|
839
|
+
method='GET',
|
|
840
|
+
resource_path='/api/v1/resources/list',
|
|
841
|
+
path_params=_path_params,
|
|
842
|
+
query_params=_query_params,
|
|
843
|
+
header_params=_header_params,
|
|
844
|
+
body=_body_params,
|
|
845
|
+
post_params=_form_params,
|
|
846
|
+
files=_files,
|
|
847
|
+
auth_settings=_auth_settings,
|
|
848
|
+
collection_formats=_collection_formats,
|
|
849
|
+
_host=_host,
|
|
850
|
+
_request_auth=_request_auth
|
|
851
|
+
)
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
@validate_call
|
|
857
|
+
def api_v1_resources_metadata_get(
|
|
858
|
+
self,
|
|
859
|
+
uri: Optional[StrictStr] = None,
|
|
860
|
+
_request_timeout: Union[
|
|
861
|
+
None,
|
|
862
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
863
|
+
Tuple[
|
|
864
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
865
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
866
|
+
]
|
|
867
|
+
] = None,
|
|
868
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
869
|
+
_content_type: Optional[StrictStr] = None,
|
|
870
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
871
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
872
|
+
) -> GetMetadataResponse:
|
|
873
|
+
"""Get Metadata
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
:param uri:
|
|
877
|
+
:type uri: str
|
|
878
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
879
|
+
number provided, it will be total request
|
|
880
|
+
timeout. It can also be a pair (tuple) of
|
|
881
|
+
(connection, read) timeouts.
|
|
882
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
883
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
884
|
+
request; this effectively ignores the
|
|
885
|
+
authentication in the spec for a single request.
|
|
886
|
+
:type _request_auth: dict, optional
|
|
887
|
+
:param _content_type: force content-type for the request.
|
|
888
|
+
:type _content_type: str, Optional
|
|
889
|
+
:param _headers: set to override the headers for a single
|
|
890
|
+
request; this effectively ignores the headers
|
|
891
|
+
in the spec for a single request.
|
|
892
|
+
:type _headers: dict, optional
|
|
893
|
+
:param _host_index: set to override the host_index for a single
|
|
894
|
+
request; this effectively ignores the host_index
|
|
895
|
+
in the spec for a single request.
|
|
896
|
+
:type _host_index: int, optional
|
|
897
|
+
:return: Returns the result object.
|
|
898
|
+
""" # noqa: E501
|
|
899
|
+
|
|
900
|
+
_param = self._api_v1_resources_metadata_get_serialize(
|
|
901
|
+
uri=uri,
|
|
902
|
+
_request_auth=_request_auth,
|
|
903
|
+
_content_type=_content_type,
|
|
904
|
+
_headers=_headers,
|
|
905
|
+
_host_index=_host_index
|
|
906
|
+
)
|
|
907
|
+
|
|
908
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
909
|
+
'200': "GetMetadataResponse",
|
|
910
|
+
}
|
|
911
|
+
response_data = self.api_client.call_api(
|
|
912
|
+
*_param,
|
|
913
|
+
_request_timeout=_request_timeout
|
|
914
|
+
)
|
|
915
|
+
response_data.read()
|
|
916
|
+
return self.api_client.response_deserialize(
|
|
917
|
+
response_data=response_data,
|
|
918
|
+
response_types_map=_response_types_map,
|
|
919
|
+
).data
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
@validate_call
|
|
923
|
+
def api_v1_resources_metadata_get_with_http_info(
|
|
924
|
+
self,
|
|
925
|
+
uri: Optional[StrictStr] = None,
|
|
926
|
+
_request_timeout: Union[
|
|
927
|
+
None,
|
|
928
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
929
|
+
Tuple[
|
|
930
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
931
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
932
|
+
]
|
|
933
|
+
] = None,
|
|
934
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
935
|
+
_content_type: Optional[StrictStr] = None,
|
|
936
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
937
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
938
|
+
) -> ApiResponse[GetMetadataResponse]:
|
|
939
|
+
"""Get Metadata
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
:param uri:
|
|
943
|
+
:type uri: str
|
|
944
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
945
|
+
number provided, it will be total request
|
|
946
|
+
timeout. It can also be a pair (tuple) of
|
|
947
|
+
(connection, read) timeouts.
|
|
948
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
949
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
950
|
+
request; this effectively ignores the
|
|
951
|
+
authentication in the spec for a single request.
|
|
952
|
+
:type _request_auth: dict, optional
|
|
953
|
+
:param _content_type: force content-type for the request.
|
|
954
|
+
:type _content_type: str, Optional
|
|
955
|
+
:param _headers: set to override the headers for a single
|
|
956
|
+
request; this effectively ignores the headers
|
|
957
|
+
in the spec for a single request.
|
|
958
|
+
:type _headers: dict, optional
|
|
959
|
+
:param _host_index: set to override the host_index for a single
|
|
960
|
+
request; this effectively ignores the host_index
|
|
961
|
+
in the spec for a single request.
|
|
962
|
+
:type _host_index: int, optional
|
|
963
|
+
:return: Returns the result object.
|
|
964
|
+
""" # noqa: E501
|
|
965
|
+
|
|
966
|
+
_param = self._api_v1_resources_metadata_get_serialize(
|
|
967
|
+
uri=uri,
|
|
968
|
+
_request_auth=_request_auth,
|
|
969
|
+
_content_type=_content_type,
|
|
970
|
+
_headers=_headers,
|
|
971
|
+
_host_index=_host_index
|
|
972
|
+
)
|
|
973
|
+
|
|
974
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
975
|
+
'200': "GetMetadataResponse",
|
|
976
|
+
}
|
|
977
|
+
response_data = self.api_client.call_api(
|
|
978
|
+
*_param,
|
|
979
|
+
_request_timeout=_request_timeout
|
|
980
|
+
)
|
|
981
|
+
response_data.read()
|
|
982
|
+
return self.api_client.response_deserialize(
|
|
983
|
+
response_data=response_data,
|
|
984
|
+
response_types_map=_response_types_map,
|
|
985
|
+
)
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
@validate_call
|
|
989
|
+
def api_v1_resources_metadata_get_without_preload_content(
|
|
990
|
+
self,
|
|
991
|
+
uri: Optional[StrictStr] = None,
|
|
992
|
+
_request_timeout: Union[
|
|
993
|
+
None,
|
|
994
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
995
|
+
Tuple[
|
|
996
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
997
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
998
|
+
]
|
|
999
|
+
] = None,
|
|
1000
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1001
|
+
_content_type: Optional[StrictStr] = None,
|
|
1002
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1003
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1004
|
+
) -> RESTResponseType:
|
|
1005
|
+
"""Get Metadata
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
:param uri:
|
|
1009
|
+
:type uri: str
|
|
1010
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1011
|
+
number provided, it will be total request
|
|
1012
|
+
timeout. It can also be a pair (tuple) of
|
|
1013
|
+
(connection, read) timeouts.
|
|
1014
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1015
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1016
|
+
request; this effectively ignores the
|
|
1017
|
+
authentication in the spec for a single request.
|
|
1018
|
+
:type _request_auth: dict, optional
|
|
1019
|
+
:param _content_type: force content-type for the request.
|
|
1020
|
+
:type _content_type: str, Optional
|
|
1021
|
+
:param _headers: set to override the headers for a single
|
|
1022
|
+
request; this effectively ignores the headers
|
|
1023
|
+
in the spec for a single request.
|
|
1024
|
+
:type _headers: dict, optional
|
|
1025
|
+
:param _host_index: set to override the host_index for a single
|
|
1026
|
+
request; this effectively ignores the host_index
|
|
1027
|
+
in the spec for a single request.
|
|
1028
|
+
:type _host_index: int, optional
|
|
1029
|
+
:return: Returns the result object.
|
|
1030
|
+
""" # noqa: E501
|
|
1031
|
+
|
|
1032
|
+
_param = self._api_v1_resources_metadata_get_serialize(
|
|
1033
|
+
uri=uri,
|
|
1034
|
+
_request_auth=_request_auth,
|
|
1035
|
+
_content_type=_content_type,
|
|
1036
|
+
_headers=_headers,
|
|
1037
|
+
_host_index=_host_index
|
|
1038
|
+
)
|
|
1039
|
+
|
|
1040
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1041
|
+
'200': "GetMetadataResponse",
|
|
1042
|
+
}
|
|
1043
|
+
response_data = self.api_client.call_api(
|
|
1044
|
+
*_param,
|
|
1045
|
+
_request_timeout=_request_timeout
|
|
1046
|
+
)
|
|
1047
|
+
return response_data.response
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
def _api_v1_resources_metadata_get_serialize(
|
|
1051
|
+
self,
|
|
1052
|
+
uri,
|
|
1053
|
+
_request_auth,
|
|
1054
|
+
_content_type,
|
|
1055
|
+
_headers,
|
|
1056
|
+
_host_index,
|
|
1057
|
+
) -> RequestSerialized:
|
|
1058
|
+
|
|
1059
|
+
_host = None
|
|
1060
|
+
|
|
1061
|
+
_collection_formats: Dict[str, str] = {
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
_path_params: Dict[str, str] = {}
|
|
1065
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1066
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1067
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1068
|
+
_files: Dict[
|
|
1069
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1070
|
+
] = {}
|
|
1071
|
+
_body_params: Optional[bytes] = None
|
|
1072
|
+
|
|
1073
|
+
# process the path parameters
|
|
1074
|
+
# process the query parameters
|
|
1075
|
+
if uri is not None:
|
|
1076
|
+
|
|
1077
|
+
_query_params.append(('uri', uri))
|
|
1078
|
+
|
|
1079
|
+
# process the header parameters
|
|
1080
|
+
# process the form parameters
|
|
1081
|
+
# process the body parameter
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
# set the HTTP header `Accept`
|
|
1085
|
+
if 'Accept' not in _header_params:
|
|
1086
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1087
|
+
[
|
|
1088
|
+
'application/json'
|
|
1089
|
+
]
|
|
1090
|
+
)
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
# authentication setting
|
|
1094
|
+
_auth_settings: List[str] = [
|
|
1095
|
+
]
|
|
1096
|
+
|
|
1097
|
+
return self.api_client.param_serialize(
|
|
1098
|
+
method='GET',
|
|
1099
|
+
resource_path='/api/v1/resources/metadata',
|
|
1100
|
+
path_params=_path_params,
|
|
1101
|
+
query_params=_query_params,
|
|
1102
|
+
header_params=_header_params,
|
|
1103
|
+
body=_body_params,
|
|
1104
|
+
post_params=_form_params,
|
|
1105
|
+
files=_files,
|
|
1106
|
+
auth_settings=_auth_settings,
|
|
1107
|
+
collection_formats=_collection_formats,
|
|
1108
|
+
_host=_host,
|
|
1109
|
+
_request_auth=_request_auth
|
|
1110
|
+
)
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
@validate_call
|
|
1116
|
+
def api_v1_resources_parent_get(
|
|
1117
|
+
self,
|
|
1118
|
+
uri: Optional[StrictStr] = None,
|
|
1119
|
+
_request_timeout: Union[
|
|
1120
|
+
None,
|
|
1121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1122
|
+
Tuple[
|
|
1123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1124
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1125
|
+
]
|
|
1126
|
+
] = None,
|
|
1127
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1128
|
+
_content_type: Optional[StrictStr] = None,
|
|
1129
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1130
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1131
|
+
) -> GetParentUriResponse:
|
|
1132
|
+
"""Get Parent
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
:param uri:
|
|
1136
|
+
:type uri: str
|
|
1137
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1138
|
+
number provided, it will be total request
|
|
1139
|
+
timeout. It can also be a pair (tuple) of
|
|
1140
|
+
(connection, read) timeouts.
|
|
1141
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1142
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1143
|
+
request; this effectively ignores the
|
|
1144
|
+
authentication in the spec for a single request.
|
|
1145
|
+
:type _request_auth: dict, optional
|
|
1146
|
+
:param _content_type: force content-type for the request.
|
|
1147
|
+
:type _content_type: str, Optional
|
|
1148
|
+
:param _headers: set to override the headers for a single
|
|
1149
|
+
request; this effectively ignores the headers
|
|
1150
|
+
in the spec for a single request.
|
|
1151
|
+
:type _headers: dict, optional
|
|
1152
|
+
:param _host_index: set to override the host_index for a single
|
|
1153
|
+
request; this effectively ignores the host_index
|
|
1154
|
+
in the spec for a single request.
|
|
1155
|
+
:type _host_index: int, optional
|
|
1156
|
+
:return: Returns the result object.
|
|
1157
|
+
""" # noqa: E501
|
|
1158
|
+
|
|
1159
|
+
_param = self._api_v1_resources_parent_get_serialize(
|
|
1160
|
+
uri=uri,
|
|
1161
|
+
_request_auth=_request_auth,
|
|
1162
|
+
_content_type=_content_type,
|
|
1163
|
+
_headers=_headers,
|
|
1164
|
+
_host_index=_host_index
|
|
1165
|
+
)
|
|
1166
|
+
|
|
1167
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1168
|
+
'200': "GetParentUriResponse",
|
|
1169
|
+
}
|
|
1170
|
+
response_data = self.api_client.call_api(
|
|
1171
|
+
*_param,
|
|
1172
|
+
_request_timeout=_request_timeout
|
|
1173
|
+
)
|
|
1174
|
+
response_data.read()
|
|
1175
|
+
return self.api_client.response_deserialize(
|
|
1176
|
+
response_data=response_data,
|
|
1177
|
+
response_types_map=_response_types_map,
|
|
1178
|
+
).data
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
@validate_call
|
|
1182
|
+
def api_v1_resources_parent_get_with_http_info(
|
|
1183
|
+
self,
|
|
1184
|
+
uri: Optional[StrictStr] = None,
|
|
1185
|
+
_request_timeout: Union[
|
|
1186
|
+
None,
|
|
1187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1188
|
+
Tuple[
|
|
1189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1190
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1191
|
+
]
|
|
1192
|
+
] = None,
|
|
1193
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1194
|
+
_content_type: Optional[StrictStr] = None,
|
|
1195
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1196
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1197
|
+
) -> ApiResponse[GetParentUriResponse]:
|
|
1198
|
+
"""Get Parent
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
:param uri:
|
|
1202
|
+
:type uri: str
|
|
1203
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1204
|
+
number provided, it will be total request
|
|
1205
|
+
timeout. It can also be a pair (tuple) of
|
|
1206
|
+
(connection, read) timeouts.
|
|
1207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1209
|
+
request; this effectively ignores the
|
|
1210
|
+
authentication in the spec for a single request.
|
|
1211
|
+
:type _request_auth: dict, optional
|
|
1212
|
+
:param _content_type: force content-type for the request.
|
|
1213
|
+
:type _content_type: str, Optional
|
|
1214
|
+
:param _headers: set to override the headers for a single
|
|
1215
|
+
request; this effectively ignores the headers
|
|
1216
|
+
in the spec for a single request.
|
|
1217
|
+
:type _headers: dict, optional
|
|
1218
|
+
:param _host_index: set to override the host_index for a single
|
|
1219
|
+
request; this effectively ignores the host_index
|
|
1220
|
+
in the spec for a single request.
|
|
1221
|
+
:type _host_index: int, optional
|
|
1222
|
+
:return: Returns the result object.
|
|
1223
|
+
""" # noqa: E501
|
|
1224
|
+
|
|
1225
|
+
_param = self._api_v1_resources_parent_get_serialize(
|
|
1226
|
+
uri=uri,
|
|
1227
|
+
_request_auth=_request_auth,
|
|
1228
|
+
_content_type=_content_type,
|
|
1229
|
+
_headers=_headers,
|
|
1230
|
+
_host_index=_host_index
|
|
1231
|
+
)
|
|
1232
|
+
|
|
1233
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1234
|
+
'200': "GetParentUriResponse",
|
|
1235
|
+
}
|
|
1236
|
+
response_data = self.api_client.call_api(
|
|
1237
|
+
*_param,
|
|
1238
|
+
_request_timeout=_request_timeout
|
|
1239
|
+
)
|
|
1240
|
+
response_data.read()
|
|
1241
|
+
return self.api_client.response_deserialize(
|
|
1242
|
+
response_data=response_data,
|
|
1243
|
+
response_types_map=_response_types_map,
|
|
1244
|
+
)
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
@validate_call
|
|
1248
|
+
def api_v1_resources_parent_get_without_preload_content(
|
|
1249
|
+
self,
|
|
1250
|
+
uri: Optional[StrictStr] = None,
|
|
1251
|
+
_request_timeout: Union[
|
|
1252
|
+
None,
|
|
1253
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1254
|
+
Tuple[
|
|
1255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1256
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1257
|
+
]
|
|
1258
|
+
] = None,
|
|
1259
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1260
|
+
_content_type: Optional[StrictStr] = None,
|
|
1261
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1262
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1263
|
+
) -> RESTResponseType:
|
|
1264
|
+
"""Get Parent
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
:param uri:
|
|
1268
|
+
:type uri: str
|
|
1269
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1270
|
+
number provided, it will be total request
|
|
1271
|
+
timeout. It can also be a pair (tuple) of
|
|
1272
|
+
(connection, read) timeouts.
|
|
1273
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1274
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1275
|
+
request; this effectively ignores the
|
|
1276
|
+
authentication in the spec for a single request.
|
|
1277
|
+
:type _request_auth: dict, optional
|
|
1278
|
+
:param _content_type: force content-type for the request.
|
|
1279
|
+
:type _content_type: str, Optional
|
|
1280
|
+
:param _headers: set to override the headers for a single
|
|
1281
|
+
request; this effectively ignores the headers
|
|
1282
|
+
in the spec for a single request.
|
|
1283
|
+
:type _headers: dict, optional
|
|
1284
|
+
:param _host_index: set to override the host_index for a single
|
|
1285
|
+
request; this effectively ignores the host_index
|
|
1286
|
+
in the spec for a single request.
|
|
1287
|
+
:type _host_index: int, optional
|
|
1288
|
+
:return: Returns the result object.
|
|
1289
|
+
""" # noqa: E501
|
|
1290
|
+
|
|
1291
|
+
_param = self._api_v1_resources_parent_get_serialize(
|
|
1292
|
+
uri=uri,
|
|
1293
|
+
_request_auth=_request_auth,
|
|
1294
|
+
_content_type=_content_type,
|
|
1295
|
+
_headers=_headers,
|
|
1296
|
+
_host_index=_host_index
|
|
1297
|
+
)
|
|
1298
|
+
|
|
1299
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1300
|
+
'200': "GetParentUriResponse",
|
|
1301
|
+
}
|
|
1302
|
+
response_data = self.api_client.call_api(
|
|
1303
|
+
*_param,
|
|
1304
|
+
_request_timeout=_request_timeout
|
|
1305
|
+
)
|
|
1306
|
+
return response_data.response
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
def _api_v1_resources_parent_get_serialize(
|
|
1310
|
+
self,
|
|
1311
|
+
uri,
|
|
1312
|
+
_request_auth,
|
|
1313
|
+
_content_type,
|
|
1314
|
+
_headers,
|
|
1315
|
+
_host_index,
|
|
1316
|
+
) -> RequestSerialized:
|
|
1317
|
+
|
|
1318
|
+
_host = None
|
|
1319
|
+
|
|
1320
|
+
_collection_formats: Dict[str, str] = {
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
_path_params: Dict[str, str] = {}
|
|
1324
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1325
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1326
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1327
|
+
_files: Dict[
|
|
1328
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1329
|
+
] = {}
|
|
1330
|
+
_body_params: Optional[bytes] = None
|
|
1331
|
+
|
|
1332
|
+
# process the path parameters
|
|
1333
|
+
# process the query parameters
|
|
1334
|
+
if uri is not None:
|
|
1335
|
+
|
|
1336
|
+
_query_params.append(('uri', uri))
|
|
1337
|
+
|
|
1338
|
+
# process the header parameters
|
|
1339
|
+
# process the form parameters
|
|
1340
|
+
# process the body parameter
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
# set the HTTP header `Accept`
|
|
1344
|
+
if 'Accept' not in _header_params:
|
|
1345
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1346
|
+
[
|
|
1347
|
+
'application/json'
|
|
1348
|
+
]
|
|
1349
|
+
)
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
# authentication setting
|
|
1353
|
+
_auth_settings: List[str] = [
|
|
1354
|
+
]
|
|
1355
|
+
|
|
1356
|
+
return self.api_client.param_serialize(
|
|
1357
|
+
method='GET',
|
|
1358
|
+
resource_path='/api/v1/resources/parent',
|
|
1359
|
+
path_params=_path_params,
|
|
1360
|
+
query_params=_query_params,
|
|
1361
|
+
header_params=_header_params,
|
|
1362
|
+
body=_body_params,
|
|
1363
|
+
post_params=_form_params,
|
|
1364
|
+
files=_files,
|
|
1365
|
+
auth_settings=_auth_settings,
|
|
1366
|
+
collection_formats=_collection_formats,
|
|
1367
|
+
_host=_host,
|
|
1368
|
+
_request_auth=_request_auth
|
|
1369
|
+
)
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
@validate_call
|
|
1375
|
+
def api_v1_resources_signed_url_get(
|
|
1376
|
+
self,
|
|
1377
|
+
uri: Optional[StrictStr] = None,
|
|
1378
|
+
_request_timeout: Union[
|
|
1379
|
+
None,
|
|
1380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1381
|
+
Tuple[
|
|
1382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1383
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1384
|
+
]
|
|
1385
|
+
] = None,
|
|
1386
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1387
|
+
_content_type: Optional[StrictStr] = None,
|
|
1388
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1389
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1390
|
+
) -> GetSignedUrlResponse:
|
|
1391
|
+
"""Get Signed Url
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
:param uri:
|
|
1395
|
+
:type uri: str
|
|
1396
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1397
|
+
number provided, it will be total request
|
|
1398
|
+
timeout. It can also be a pair (tuple) of
|
|
1399
|
+
(connection, read) timeouts.
|
|
1400
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1401
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1402
|
+
request; this effectively ignores the
|
|
1403
|
+
authentication in the spec for a single request.
|
|
1404
|
+
:type _request_auth: dict, optional
|
|
1405
|
+
:param _content_type: force content-type for the request.
|
|
1406
|
+
:type _content_type: str, Optional
|
|
1407
|
+
:param _headers: set to override the headers for a single
|
|
1408
|
+
request; this effectively ignores the headers
|
|
1409
|
+
in the spec for a single request.
|
|
1410
|
+
:type _headers: dict, optional
|
|
1411
|
+
:param _host_index: set to override the host_index for a single
|
|
1412
|
+
request; this effectively ignores the host_index
|
|
1413
|
+
in the spec for a single request.
|
|
1414
|
+
:type _host_index: int, optional
|
|
1415
|
+
:return: Returns the result object.
|
|
1416
|
+
""" # noqa: E501
|
|
1417
|
+
|
|
1418
|
+
_param = self._api_v1_resources_signed_url_get_serialize(
|
|
1419
|
+
uri=uri,
|
|
1420
|
+
_request_auth=_request_auth,
|
|
1421
|
+
_content_type=_content_type,
|
|
1422
|
+
_headers=_headers,
|
|
1423
|
+
_host_index=_host_index
|
|
1424
|
+
)
|
|
1425
|
+
|
|
1426
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1427
|
+
'200': "GetSignedUrlResponse",
|
|
1428
|
+
}
|
|
1429
|
+
response_data = self.api_client.call_api(
|
|
1430
|
+
*_param,
|
|
1431
|
+
_request_timeout=_request_timeout
|
|
1432
|
+
)
|
|
1433
|
+
response_data.read()
|
|
1434
|
+
return self.api_client.response_deserialize(
|
|
1435
|
+
response_data=response_data,
|
|
1436
|
+
response_types_map=_response_types_map,
|
|
1437
|
+
).data
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
@validate_call
|
|
1441
|
+
def api_v1_resources_signed_url_get_with_http_info(
|
|
1442
|
+
self,
|
|
1443
|
+
uri: Optional[StrictStr] = None,
|
|
1444
|
+
_request_timeout: Union[
|
|
1445
|
+
None,
|
|
1446
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1447
|
+
Tuple[
|
|
1448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1449
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1450
|
+
]
|
|
1451
|
+
] = None,
|
|
1452
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1453
|
+
_content_type: Optional[StrictStr] = None,
|
|
1454
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1455
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1456
|
+
) -> ApiResponse[GetSignedUrlResponse]:
|
|
1457
|
+
"""Get Signed Url
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
:param uri:
|
|
1461
|
+
:type uri: str
|
|
1462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1463
|
+
number provided, it will be total request
|
|
1464
|
+
timeout. It can also be a pair (tuple) of
|
|
1465
|
+
(connection, read) timeouts.
|
|
1466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1468
|
+
request; this effectively ignores the
|
|
1469
|
+
authentication in the spec for a single request.
|
|
1470
|
+
:type _request_auth: dict, optional
|
|
1471
|
+
:param _content_type: force content-type for the request.
|
|
1472
|
+
:type _content_type: str, Optional
|
|
1473
|
+
:param _headers: set to override the headers for a single
|
|
1474
|
+
request; this effectively ignores the headers
|
|
1475
|
+
in the spec for a single request.
|
|
1476
|
+
:type _headers: dict, optional
|
|
1477
|
+
:param _host_index: set to override the host_index for a single
|
|
1478
|
+
request; this effectively ignores the host_index
|
|
1479
|
+
in the spec for a single request.
|
|
1480
|
+
:type _host_index: int, optional
|
|
1481
|
+
:return: Returns the result object.
|
|
1482
|
+
""" # noqa: E501
|
|
1483
|
+
|
|
1484
|
+
_param = self._api_v1_resources_signed_url_get_serialize(
|
|
1485
|
+
uri=uri,
|
|
1486
|
+
_request_auth=_request_auth,
|
|
1487
|
+
_content_type=_content_type,
|
|
1488
|
+
_headers=_headers,
|
|
1489
|
+
_host_index=_host_index
|
|
1490
|
+
)
|
|
1491
|
+
|
|
1492
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1493
|
+
'200': "GetSignedUrlResponse",
|
|
1494
|
+
}
|
|
1495
|
+
response_data = self.api_client.call_api(
|
|
1496
|
+
*_param,
|
|
1497
|
+
_request_timeout=_request_timeout
|
|
1498
|
+
)
|
|
1499
|
+
response_data.read()
|
|
1500
|
+
return self.api_client.response_deserialize(
|
|
1501
|
+
response_data=response_data,
|
|
1502
|
+
response_types_map=_response_types_map,
|
|
1503
|
+
)
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
@validate_call
|
|
1507
|
+
def api_v1_resources_signed_url_get_without_preload_content(
|
|
1508
|
+
self,
|
|
1509
|
+
uri: Optional[StrictStr] = None,
|
|
1510
|
+
_request_timeout: Union[
|
|
1511
|
+
None,
|
|
1512
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1513
|
+
Tuple[
|
|
1514
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1515
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1516
|
+
]
|
|
1517
|
+
] = None,
|
|
1518
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1519
|
+
_content_type: Optional[StrictStr] = None,
|
|
1520
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1521
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1522
|
+
) -> RESTResponseType:
|
|
1523
|
+
"""Get Signed Url
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
:param uri:
|
|
1527
|
+
:type uri: str
|
|
1528
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1529
|
+
number provided, it will be total request
|
|
1530
|
+
timeout. It can also be a pair (tuple) of
|
|
1531
|
+
(connection, read) timeouts.
|
|
1532
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1533
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1534
|
+
request; this effectively ignores the
|
|
1535
|
+
authentication in the spec for a single request.
|
|
1536
|
+
:type _request_auth: dict, optional
|
|
1537
|
+
:param _content_type: force content-type for the request.
|
|
1538
|
+
:type _content_type: str, Optional
|
|
1539
|
+
:param _headers: set to override the headers for a single
|
|
1540
|
+
request; this effectively ignores the headers
|
|
1541
|
+
in the spec for a single request.
|
|
1542
|
+
:type _headers: dict, optional
|
|
1543
|
+
:param _host_index: set to override the host_index for a single
|
|
1544
|
+
request; this effectively ignores the host_index
|
|
1545
|
+
in the spec for a single request.
|
|
1546
|
+
:type _host_index: int, optional
|
|
1547
|
+
:return: Returns the result object.
|
|
1548
|
+
""" # noqa: E501
|
|
1549
|
+
|
|
1550
|
+
_param = self._api_v1_resources_signed_url_get_serialize(
|
|
1551
|
+
uri=uri,
|
|
1552
|
+
_request_auth=_request_auth,
|
|
1553
|
+
_content_type=_content_type,
|
|
1554
|
+
_headers=_headers,
|
|
1555
|
+
_host_index=_host_index
|
|
1556
|
+
)
|
|
1557
|
+
|
|
1558
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1559
|
+
'200': "GetSignedUrlResponse",
|
|
1560
|
+
}
|
|
1561
|
+
response_data = self.api_client.call_api(
|
|
1562
|
+
*_param,
|
|
1563
|
+
_request_timeout=_request_timeout
|
|
1564
|
+
)
|
|
1565
|
+
return response_data.response
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
def _api_v1_resources_signed_url_get_serialize(
|
|
1569
|
+
self,
|
|
1570
|
+
uri,
|
|
1571
|
+
_request_auth,
|
|
1572
|
+
_content_type,
|
|
1573
|
+
_headers,
|
|
1574
|
+
_host_index,
|
|
1575
|
+
) -> RequestSerialized:
|
|
1576
|
+
|
|
1577
|
+
_host = None
|
|
1578
|
+
|
|
1579
|
+
_collection_formats: Dict[str, str] = {
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
_path_params: Dict[str, str] = {}
|
|
1583
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1584
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1585
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1586
|
+
_files: Dict[
|
|
1587
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1588
|
+
] = {}
|
|
1589
|
+
_body_params: Optional[bytes] = None
|
|
1590
|
+
|
|
1591
|
+
# process the path parameters
|
|
1592
|
+
# process the query parameters
|
|
1593
|
+
if uri is not None:
|
|
1594
|
+
|
|
1595
|
+
_query_params.append(('uri', uri))
|
|
1596
|
+
|
|
1597
|
+
# process the header parameters
|
|
1598
|
+
# process the form parameters
|
|
1599
|
+
# process the body parameter
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
# set the HTTP header `Accept`
|
|
1603
|
+
if 'Accept' not in _header_params:
|
|
1604
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1605
|
+
[
|
|
1606
|
+
'application/json'
|
|
1607
|
+
]
|
|
1608
|
+
)
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
# authentication setting
|
|
1612
|
+
_auth_settings: List[str] = [
|
|
1613
|
+
]
|
|
1614
|
+
|
|
1615
|
+
return self.api_client.param_serialize(
|
|
1616
|
+
method='GET',
|
|
1617
|
+
resource_path='/api/v1/resources/signed-url',
|
|
1618
|
+
path_params=_path_params,
|
|
1619
|
+
query_params=_query_params,
|
|
1620
|
+
header_params=_header_params,
|
|
1621
|
+
body=_body_params,
|
|
1622
|
+
post_params=_form_params,
|
|
1623
|
+
files=_files,
|
|
1624
|
+
auth_settings=_auth_settings,
|
|
1625
|
+
collection_formats=_collection_formats,
|
|
1626
|
+
_host=_host,
|
|
1627
|
+
_request_auth=_request_auth
|
|
1628
|
+
)
|
|
1629
|
+
|
|
1630
|
+
|