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