perceptic-core-client 0.7.2__py3-none-any.whl → 0.7.3__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.

@@ -16,13 +16,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import StrictBytes, StrictInt, StrictStr
19
+ from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator
20
20
  from typing import Optional, Tuple, Union
21
+ from typing_extensions import Annotated
21
22
  from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
22
23
  from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
23
24
  from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
24
25
  from perceptic_core_client.models.list_file_system_response import ListFileSystemResponse
25
26
  from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
27
+ from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
26
28
 
27
29
  from perceptic_core_client.api_client import ApiClient, RequestSerialized
28
30
  from perceptic_core_client.api_response import ApiResponse
@@ -43,7 +45,7 @@ class UriResourceApi:
43
45
 
44
46
 
45
47
  @validate_call
46
- def api_v1_resources_download_get(
48
+ def download_resource(
47
49
  self,
48
50
  uri: Optional[StrictStr] = None,
49
51
  _request_timeout: Union[
@@ -86,7 +88,7 @@ class UriResourceApi:
86
88
  :return: Returns the result object.
87
89
  """ # noqa: E501
88
90
 
89
- _param = self._api_v1_resources_download_get_serialize(
91
+ _param = self._download_resource_serialize(
90
92
  uri=uri,
91
93
  _request_auth=_request_auth,
92
94
  _content_type=_content_type,
@@ -109,7 +111,7 @@ class UriResourceApi:
109
111
 
110
112
 
111
113
  @validate_call
112
- def api_v1_resources_download_get_with_http_info(
114
+ def download_resource_with_http_info(
113
115
  self,
114
116
  uri: Optional[StrictStr] = None,
115
117
  _request_timeout: Union[
@@ -152,7 +154,7 @@ class UriResourceApi:
152
154
  :return: Returns the result object.
153
155
  """ # noqa: E501
154
156
 
155
- _param = self._api_v1_resources_download_get_serialize(
157
+ _param = self._download_resource_serialize(
156
158
  uri=uri,
157
159
  _request_auth=_request_auth,
158
160
  _content_type=_content_type,
@@ -175,7 +177,7 @@ class UriResourceApi:
175
177
 
176
178
 
177
179
  @validate_call
178
- def api_v1_resources_download_get_without_preload_content(
180
+ def download_resource_without_preload_content(
179
181
  self,
180
182
  uri: Optional[StrictStr] = None,
181
183
  _request_timeout: Union[
@@ -218,7 +220,7 @@ class UriResourceApi:
218
220
  :return: Returns the result object.
219
221
  """ # noqa: E501
220
222
 
221
- _param = self._api_v1_resources_download_get_serialize(
223
+ _param = self._download_resource_serialize(
222
224
  uri=uri,
223
225
  _request_auth=_request_auth,
224
226
  _content_type=_content_type,
@@ -236,7 +238,7 @@ class UriResourceApi:
236
238
  return response_data.response
237
239
 
238
240
 
239
- def _api_v1_resources_download_get_serialize(
241
+ def _download_resource_serialize(
240
242
  self,
241
243
  uri,
242
244
  _request_auth,
@@ -302,10 +304,8 @@ class UriResourceApi:
302
304
 
303
305
 
304
306
  @validate_call
305
- def api_v1_resources_files_get(
307
+ def get_metadata_from_uri(
306
308
  self,
307
- page_size: Optional[StrictInt] = None,
308
- resume_token: Optional[StrictStr] = None,
309
309
  uri: Optional[StrictStr] = None,
310
310
  _request_timeout: Union[
311
311
  None,
@@ -319,14 +319,10 @@ class UriResourceApi:
319
319
  _content_type: Optional[StrictStr] = None,
320
320
  _headers: Optional[Dict[StrictStr, Any]] = None,
321
321
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
322
- ) -> PagedListFileSystemResponse:
323
- """List Files
322
+ ) -> GetMetadataResponse:
323
+ """Get Metadata
324
324
 
325
325
 
326
- :param page_size:
327
- :type page_size: int
328
- :param resume_token:
329
- :type resume_token: str
330
326
  :param uri:
331
327
  :type uri: str
332
328
  :param _request_timeout: timeout setting for this request. If one
@@ -351,9 +347,7 @@ class UriResourceApi:
351
347
  :return: Returns the result object.
352
348
  """ # noqa: E501
353
349
 
354
- _param = self._api_v1_resources_files_get_serialize(
355
- page_size=page_size,
356
- resume_token=resume_token,
350
+ _param = self._get_metadata_from_uri_serialize(
357
351
  uri=uri,
358
352
  _request_auth=_request_auth,
359
353
  _content_type=_content_type,
@@ -362,7 +356,7 @@ class UriResourceApi:
362
356
  )
363
357
 
364
358
  _response_types_map: Dict[str, Optional[str]] = {
365
- '200': "PagedListFileSystemResponse",
359
+ '200': "GetMetadataResponse",
366
360
  }
367
361
  response_data = self.api_client.call_api(
368
362
  *_param,
@@ -376,10 +370,8 @@ class UriResourceApi:
376
370
 
377
371
 
378
372
  @validate_call
379
- def api_v1_resources_files_get_with_http_info(
373
+ def get_metadata_from_uri_with_http_info(
380
374
  self,
381
- page_size: Optional[StrictInt] = None,
382
- resume_token: Optional[StrictStr] = None,
383
375
  uri: Optional[StrictStr] = None,
384
376
  _request_timeout: Union[
385
377
  None,
@@ -393,14 +385,10 @@ class UriResourceApi:
393
385
  _content_type: Optional[StrictStr] = None,
394
386
  _headers: Optional[Dict[StrictStr, Any]] = None,
395
387
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
396
- ) -> ApiResponse[PagedListFileSystemResponse]:
397
- """List Files
388
+ ) -> ApiResponse[GetMetadataResponse]:
389
+ """Get Metadata
398
390
 
399
391
 
400
- :param page_size:
401
- :type page_size: int
402
- :param resume_token:
403
- :type resume_token: str
404
392
  :param uri:
405
393
  :type uri: str
406
394
  :param _request_timeout: timeout setting for this request. If one
@@ -425,9 +413,7 @@ class UriResourceApi:
425
413
  :return: Returns the result object.
426
414
  """ # noqa: E501
427
415
 
428
- _param = self._api_v1_resources_files_get_serialize(
429
- page_size=page_size,
430
- resume_token=resume_token,
416
+ _param = self._get_metadata_from_uri_serialize(
431
417
  uri=uri,
432
418
  _request_auth=_request_auth,
433
419
  _content_type=_content_type,
@@ -436,7 +422,7 @@ class UriResourceApi:
436
422
  )
437
423
 
438
424
  _response_types_map: Dict[str, Optional[str]] = {
439
- '200': "PagedListFileSystemResponse",
425
+ '200': "GetMetadataResponse",
440
426
  }
441
427
  response_data = self.api_client.call_api(
442
428
  *_param,
@@ -450,10 +436,8 @@ class UriResourceApi:
450
436
 
451
437
 
452
438
  @validate_call
453
- def api_v1_resources_files_get_without_preload_content(
439
+ def get_metadata_from_uri_without_preload_content(
454
440
  self,
455
- page_size: Optional[StrictInt] = None,
456
- resume_token: Optional[StrictStr] = None,
457
441
  uri: Optional[StrictStr] = None,
458
442
  _request_timeout: Union[
459
443
  None,
@@ -468,13 +452,9 @@ class UriResourceApi:
468
452
  _headers: Optional[Dict[StrictStr, Any]] = None,
469
453
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
470
454
  ) -> RESTResponseType:
471
- """List Files
455
+ """Get Metadata
472
456
 
473
457
 
474
- :param page_size:
475
- :type page_size: int
476
- :param resume_token:
477
- :type resume_token: str
478
458
  :param uri:
479
459
  :type uri: str
480
460
  :param _request_timeout: timeout setting for this request. If one
@@ -499,9 +479,7 @@ class UriResourceApi:
499
479
  :return: Returns the result object.
500
480
  """ # noqa: E501
501
481
 
502
- _param = self._api_v1_resources_files_get_serialize(
503
- page_size=page_size,
504
- resume_token=resume_token,
482
+ _param = self._get_metadata_from_uri_serialize(
505
483
  uri=uri,
506
484
  _request_auth=_request_auth,
507
485
  _content_type=_content_type,
@@ -510,7 +488,7 @@ class UriResourceApi:
510
488
  )
511
489
 
512
490
  _response_types_map: Dict[str, Optional[str]] = {
513
- '200': "PagedListFileSystemResponse",
491
+ '200': "GetMetadataResponse",
514
492
  }
515
493
  response_data = self.api_client.call_api(
516
494
  *_param,
@@ -519,10 +497,8 @@ class UriResourceApi:
519
497
  return response_data.response
520
498
 
521
499
 
522
- def _api_v1_resources_files_get_serialize(
500
+ def _get_metadata_from_uri_serialize(
523
501
  self,
524
- page_size,
525
- resume_token,
526
502
  uri,
527
503
  _request_auth,
528
504
  _content_type,
@@ -546,14 +522,6 @@ class UriResourceApi:
546
522
 
547
523
  # process the path parameters
548
524
  # 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
525
  if uri is not None:
558
526
 
559
527
  _query_params.append(('uri', uri))
@@ -578,7 +546,7 @@ class UriResourceApi:
578
546
 
579
547
  return self.api_client.param_serialize(
580
548
  method='GET',
581
- resource_path='/api/v1/resources/files',
549
+ resource_path='/api/v1/resources/metadata',
582
550
  path_params=_path_params,
583
551
  query_params=_query_params,
584
552
  header_params=_header_params,
@@ -595,7 +563,7 @@ class UriResourceApi:
595
563
 
596
564
 
597
565
  @validate_call
598
- def api_v1_resources_list_get(
566
+ def get_parent(
599
567
  self,
600
568
  uri: Optional[StrictStr] = None,
601
569
  _request_timeout: Union[
@@ -610,8 +578,8 @@ class UriResourceApi:
610
578
  _content_type: Optional[StrictStr] = None,
611
579
  _headers: Optional[Dict[StrictStr, Any]] = None,
612
580
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
613
- ) -> ListFileSystemResponse:
614
- """List Resources
581
+ ) -> GetParentUriResponse:
582
+ """Get Parent
615
583
 
616
584
 
617
585
  :param uri:
@@ -638,7 +606,7 @@ class UriResourceApi:
638
606
  :return: Returns the result object.
639
607
  """ # noqa: E501
640
608
 
641
- _param = self._api_v1_resources_list_get_serialize(
609
+ _param = self._get_parent_serialize(
642
610
  uri=uri,
643
611
  _request_auth=_request_auth,
644
612
  _content_type=_content_type,
@@ -647,7 +615,7 @@ class UriResourceApi:
647
615
  )
648
616
 
649
617
  _response_types_map: Dict[str, Optional[str]] = {
650
- '200': "ListFileSystemResponse",
618
+ '200': "GetParentUriResponse",
651
619
  }
652
620
  response_data = self.api_client.call_api(
653
621
  *_param,
@@ -661,7 +629,7 @@ class UriResourceApi:
661
629
 
662
630
 
663
631
  @validate_call
664
- def api_v1_resources_list_get_with_http_info(
632
+ def get_parent_with_http_info(
665
633
  self,
666
634
  uri: Optional[StrictStr] = None,
667
635
  _request_timeout: Union[
@@ -676,8 +644,8 @@ class UriResourceApi:
676
644
  _content_type: Optional[StrictStr] = None,
677
645
  _headers: Optional[Dict[StrictStr, Any]] = None,
678
646
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
679
- ) -> ApiResponse[ListFileSystemResponse]:
680
- """List Resources
647
+ ) -> ApiResponse[GetParentUriResponse]:
648
+ """Get Parent
681
649
 
682
650
 
683
651
  :param uri:
@@ -704,7 +672,7 @@ class UriResourceApi:
704
672
  :return: Returns the result object.
705
673
  """ # noqa: E501
706
674
 
707
- _param = self._api_v1_resources_list_get_serialize(
675
+ _param = self._get_parent_serialize(
708
676
  uri=uri,
709
677
  _request_auth=_request_auth,
710
678
  _content_type=_content_type,
@@ -713,7 +681,7 @@ class UriResourceApi:
713
681
  )
714
682
 
715
683
  _response_types_map: Dict[str, Optional[str]] = {
716
- '200': "ListFileSystemResponse",
684
+ '200': "GetParentUriResponse",
717
685
  }
718
686
  response_data = self.api_client.call_api(
719
687
  *_param,
@@ -727,7 +695,7 @@ class UriResourceApi:
727
695
 
728
696
 
729
697
  @validate_call
730
- def api_v1_resources_list_get_without_preload_content(
698
+ def get_parent_without_preload_content(
731
699
  self,
732
700
  uri: Optional[StrictStr] = None,
733
701
  _request_timeout: Union[
@@ -743,7 +711,7 @@ class UriResourceApi:
743
711
  _headers: Optional[Dict[StrictStr, Any]] = None,
744
712
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
745
713
  ) -> RESTResponseType:
746
- """List Resources
714
+ """Get Parent
747
715
 
748
716
 
749
717
  :param uri:
@@ -770,7 +738,7 @@ class UriResourceApi:
770
738
  :return: Returns the result object.
771
739
  """ # noqa: E501
772
740
 
773
- _param = self._api_v1_resources_list_get_serialize(
741
+ _param = self._get_parent_serialize(
774
742
  uri=uri,
775
743
  _request_auth=_request_auth,
776
744
  _content_type=_content_type,
@@ -779,7 +747,7 @@ class UriResourceApi:
779
747
  )
780
748
 
781
749
  _response_types_map: Dict[str, Optional[str]] = {
782
- '200': "ListFileSystemResponse",
750
+ '200': "GetParentUriResponse",
783
751
  }
784
752
  response_data = self.api_client.call_api(
785
753
  *_param,
@@ -788,7 +756,7 @@ class UriResourceApi:
788
756
  return response_data.response
789
757
 
790
758
 
791
- def _api_v1_resources_list_get_serialize(
759
+ def _get_parent_serialize(
792
760
  self,
793
761
  uri,
794
762
  _request_auth,
@@ -837,7 +805,7 @@ class UriResourceApi:
837
805
 
838
806
  return self.api_client.param_serialize(
839
807
  method='GET',
840
- resource_path='/api/v1/resources/list',
808
+ resource_path='/api/v1/resources/parent',
841
809
  path_params=_path_params,
842
810
  query_params=_query_params,
843
811
  header_params=_header_params,
@@ -854,7 +822,7 @@ class UriResourceApi:
854
822
 
855
823
 
856
824
  @validate_call
857
- def api_v1_resources_metadata_get(
825
+ def get_signed_url_from_uri(
858
826
  self,
859
827
  uri: Optional[StrictStr] = None,
860
828
  _request_timeout: Union[
@@ -869,8 +837,8 @@ class UriResourceApi:
869
837
  _content_type: Optional[StrictStr] = None,
870
838
  _headers: Optional[Dict[StrictStr, Any]] = None,
871
839
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
872
- ) -> GetMetadataResponse:
873
- """Get Metadata
840
+ ) -> GetSignedUrlResponse:
841
+ """Get Signed Url
874
842
 
875
843
 
876
844
  :param uri:
@@ -897,7 +865,7 @@ class UriResourceApi:
897
865
  :return: Returns the result object.
898
866
  """ # noqa: E501
899
867
 
900
- _param = self._api_v1_resources_metadata_get_serialize(
868
+ _param = self._get_signed_url_from_uri_serialize(
901
869
  uri=uri,
902
870
  _request_auth=_request_auth,
903
871
  _content_type=_content_type,
@@ -906,7 +874,7 @@ class UriResourceApi:
906
874
  )
907
875
 
908
876
  _response_types_map: Dict[str, Optional[str]] = {
909
- '200': "GetMetadataResponse",
877
+ '200': "GetSignedUrlResponse",
910
878
  }
911
879
  response_data = self.api_client.call_api(
912
880
  *_param,
@@ -920,7 +888,7 @@ class UriResourceApi:
920
888
 
921
889
 
922
890
  @validate_call
923
- def api_v1_resources_metadata_get_with_http_info(
891
+ def get_signed_url_from_uri_with_http_info(
924
892
  self,
925
893
  uri: Optional[StrictStr] = None,
926
894
  _request_timeout: Union[
@@ -935,8 +903,8 @@ class UriResourceApi:
935
903
  _content_type: Optional[StrictStr] = None,
936
904
  _headers: Optional[Dict[StrictStr, Any]] = None,
937
905
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
938
- ) -> ApiResponse[GetMetadataResponse]:
939
- """Get Metadata
906
+ ) -> ApiResponse[GetSignedUrlResponse]:
907
+ """Get Signed Url
940
908
 
941
909
 
942
910
  :param uri:
@@ -963,7 +931,7 @@ class UriResourceApi:
963
931
  :return: Returns the result object.
964
932
  """ # noqa: E501
965
933
 
966
- _param = self._api_v1_resources_metadata_get_serialize(
934
+ _param = self._get_signed_url_from_uri_serialize(
967
935
  uri=uri,
968
936
  _request_auth=_request_auth,
969
937
  _content_type=_content_type,
@@ -972,7 +940,7 @@ class UriResourceApi:
972
940
  )
973
941
 
974
942
  _response_types_map: Dict[str, Optional[str]] = {
975
- '200': "GetMetadataResponse",
943
+ '200': "GetSignedUrlResponse",
976
944
  }
977
945
  response_data = self.api_client.call_api(
978
946
  *_param,
@@ -986,7 +954,7 @@ class UriResourceApi:
986
954
 
987
955
 
988
956
  @validate_call
989
- def api_v1_resources_metadata_get_without_preload_content(
957
+ def get_signed_url_from_uri_without_preload_content(
990
958
  self,
991
959
  uri: Optional[StrictStr] = None,
992
960
  _request_timeout: Union[
@@ -1002,7 +970,7 @@ class UriResourceApi:
1002
970
  _headers: Optional[Dict[StrictStr, Any]] = None,
1003
971
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1004
972
  ) -> RESTResponseType:
1005
- """Get Metadata
973
+ """Get Signed Url
1006
974
 
1007
975
 
1008
976
  :param uri:
@@ -1029,7 +997,7 @@ class UriResourceApi:
1029
997
  :return: Returns the result object.
1030
998
  """ # noqa: E501
1031
999
 
1032
- _param = self._api_v1_resources_metadata_get_serialize(
1000
+ _param = self._get_signed_url_from_uri_serialize(
1033
1001
  uri=uri,
1034
1002
  _request_auth=_request_auth,
1035
1003
  _content_type=_content_type,
@@ -1038,7 +1006,7 @@ class UriResourceApi:
1038
1006
  )
1039
1007
 
1040
1008
  _response_types_map: Dict[str, Optional[str]] = {
1041
- '200': "GetMetadataResponse",
1009
+ '200': "GetSignedUrlResponse",
1042
1010
  }
1043
1011
  response_data = self.api_client.call_api(
1044
1012
  *_param,
@@ -1047,7 +1015,7 @@ class UriResourceApi:
1047
1015
  return response_data.response
1048
1016
 
1049
1017
 
1050
- def _api_v1_resources_metadata_get_serialize(
1018
+ def _get_signed_url_from_uri_serialize(
1051
1019
  self,
1052
1020
  uri,
1053
1021
  _request_auth,
@@ -1096,7 +1064,7 @@ class UriResourceApi:
1096
1064
 
1097
1065
  return self.api_client.param_serialize(
1098
1066
  method='GET',
1099
- resource_path='/api/v1/resources/metadata',
1067
+ resource_path='/api/v1/resources/signed-url',
1100
1068
  path_params=_path_params,
1101
1069
  query_params=_query_params,
1102
1070
  header_params=_header_params,
@@ -1113,8 +1081,10 @@ class UriResourceApi:
1113
1081
 
1114
1082
 
1115
1083
  @validate_call
1116
- def api_v1_resources_parent_get(
1084
+ def list_files(
1117
1085
  self,
1086
+ page_size: Optional[StrictInt] = None,
1087
+ resume_token: Optional[StrictStr] = None,
1118
1088
  uri: Optional[StrictStr] = None,
1119
1089
  _request_timeout: Union[
1120
1090
  None,
@@ -1128,10 +1098,14 @@ class UriResourceApi:
1128
1098
  _content_type: Optional[StrictStr] = None,
1129
1099
  _headers: Optional[Dict[StrictStr, Any]] = None,
1130
1100
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1131
- ) -> GetParentUriResponse:
1132
- """Get Parent
1101
+ ) -> PagedListFileSystemResponse:
1102
+ """List Files
1133
1103
 
1134
1104
 
1105
+ :param page_size:
1106
+ :type page_size: int
1107
+ :param resume_token:
1108
+ :type resume_token: str
1135
1109
  :param uri:
1136
1110
  :type uri: str
1137
1111
  :param _request_timeout: timeout setting for this request. If one
@@ -1156,7 +1130,9 @@ class UriResourceApi:
1156
1130
  :return: Returns the result object.
1157
1131
  """ # noqa: E501
1158
1132
 
1159
- _param = self._api_v1_resources_parent_get_serialize(
1133
+ _param = self._list_files_serialize(
1134
+ page_size=page_size,
1135
+ resume_token=resume_token,
1160
1136
  uri=uri,
1161
1137
  _request_auth=_request_auth,
1162
1138
  _content_type=_content_type,
@@ -1165,7 +1141,7 @@ class UriResourceApi:
1165
1141
  )
1166
1142
 
1167
1143
  _response_types_map: Dict[str, Optional[str]] = {
1168
- '200': "GetParentUriResponse",
1144
+ '200': "PagedListFileSystemResponse",
1169
1145
  }
1170
1146
  response_data = self.api_client.call_api(
1171
1147
  *_param,
@@ -1179,8 +1155,10 @@ class UriResourceApi:
1179
1155
 
1180
1156
 
1181
1157
  @validate_call
1182
- def api_v1_resources_parent_get_with_http_info(
1158
+ def list_files_with_http_info(
1183
1159
  self,
1160
+ page_size: Optional[StrictInt] = None,
1161
+ resume_token: Optional[StrictStr] = None,
1184
1162
  uri: Optional[StrictStr] = None,
1185
1163
  _request_timeout: Union[
1186
1164
  None,
@@ -1194,10 +1172,14 @@ class UriResourceApi:
1194
1172
  _content_type: Optional[StrictStr] = None,
1195
1173
  _headers: Optional[Dict[StrictStr, Any]] = None,
1196
1174
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1197
- ) -> ApiResponse[GetParentUriResponse]:
1198
- """Get Parent
1175
+ ) -> ApiResponse[PagedListFileSystemResponse]:
1176
+ """List Files
1199
1177
 
1200
1178
 
1179
+ :param page_size:
1180
+ :type page_size: int
1181
+ :param resume_token:
1182
+ :type resume_token: str
1201
1183
  :param uri:
1202
1184
  :type uri: str
1203
1185
  :param _request_timeout: timeout setting for this request. If one
@@ -1222,7 +1204,9 @@ class UriResourceApi:
1222
1204
  :return: Returns the result object.
1223
1205
  """ # noqa: E501
1224
1206
 
1225
- _param = self._api_v1_resources_parent_get_serialize(
1207
+ _param = self._list_files_serialize(
1208
+ page_size=page_size,
1209
+ resume_token=resume_token,
1226
1210
  uri=uri,
1227
1211
  _request_auth=_request_auth,
1228
1212
  _content_type=_content_type,
@@ -1231,7 +1215,7 @@ class UriResourceApi:
1231
1215
  )
1232
1216
 
1233
1217
  _response_types_map: Dict[str, Optional[str]] = {
1234
- '200': "GetParentUriResponse",
1218
+ '200': "PagedListFileSystemResponse",
1235
1219
  }
1236
1220
  response_data = self.api_client.call_api(
1237
1221
  *_param,
@@ -1245,8 +1229,10 @@ class UriResourceApi:
1245
1229
 
1246
1230
 
1247
1231
  @validate_call
1248
- def api_v1_resources_parent_get_without_preload_content(
1232
+ def list_files_without_preload_content(
1249
1233
  self,
1234
+ page_size: Optional[StrictInt] = None,
1235
+ resume_token: Optional[StrictStr] = None,
1250
1236
  uri: Optional[StrictStr] = None,
1251
1237
  _request_timeout: Union[
1252
1238
  None,
@@ -1261,9 +1247,13 @@ class UriResourceApi:
1261
1247
  _headers: Optional[Dict[StrictStr, Any]] = None,
1262
1248
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1263
1249
  ) -> RESTResponseType:
1264
- """Get Parent
1250
+ """List Files
1265
1251
 
1266
1252
 
1253
+ :param page_size:
1254
+ :type page_size: int
1255
+ :param resume_token:
1256
+ :type resume_token: str
1267
1257
  :param uri:
1268
1258
  :type uri: str
1269
1259
  :param _request_timeout: timeout setting for this request. If one
@@ -1288,7 +1278,9 @@ class UriResourceApi:
1288
1278
  :return: Returns the result object.
1289
1279
  """ # noqa: E501
1290
1280
 
1291
- _param = self._api_v1_resources_parent_get_serialize(
1281
+ _param = self._list_files_serialize(
1282
+ page_size=page_size,
1283
+ resume_token=resume_token,
1292
1284
  uri=uri,
1293
1285
  _request_auth=_request_auth,
1294
1286
  _content_type=_content_type,
@@ -1297,7 +1289,7 @@ class UriResourceApi:
1297
1289
  )
1298
1290
 
1299
1291
  _response_types_map: Dict[str, Optional[str]] = {
1300
- '200': "GetParentUriResponse",
1292
+ '200': "PagedListFileSystemResponse",
1301
1293
  }
1302
1294
  response_data = self.api_client.call_api(
1303
1295
  *_param,
@@ -1306,8 +1298,10 @@ class UriResourceApi:
1306
1298
  return response_data.response
1307
1299
 
1308
1300
 
1309
- def _api_v1_resources_parent_get_serialize(
1301
+ def _list_files_serialize(
1310
1302
  self,
1303
+ page_size,
1304
+ resume_token,
1311
1305
  uri,
1312
1306
  _request_auth,
1313
1307
  _content_type,
@@ -1331,6 +1325,14 @@ class UriResourceApi:
1331
1325
 
1332
1326
  # process the path parameters
1333
1327
  # process the query parameters
1328
+ if page_size is not None:
1329
+
1330
+ _query_params.append(('pageSize', page_size))
1331
+
1332
+ if resume_token is not None:
1333
+
1334
+ _query_params.append(('resumeToken', resume_token))
1335
+
1334
1336
  if uri is not None:
1335
1337
 
1336
1338
  _query_params.append(('uri', uri))
@@ -1355,7 +1357,7 @@ class UriResourceApi:
1355
1357
 
1356
1358
  return self.api_client.param_serialize(
1357
1359
  method='GET',
1358
- resource_path='/api/v1/resources/parent',
1360
+ resource_path='/api/v1/resources/files',
1359
1361
  path_params=_path_params,
1360
1362
  query_params=_query_params,
1361
1363
  header_params=_header_params,
@@ -1372,7 +1374,7 @@ class UriResourceApi:
1372
1374
 
1373
1375
 
1374
1376
  @validate_call
1375
- def api_v1_resources_signed_url_get(
1377
+ def list_resources(
1376
1378
  self,
1377
1379
  uri: Optional[StrictStr] = None,
1378
1380
  _request_timeout: Union[
@@ -1387,8 +1389,8 @@ class UriResourceApi:
1387
1389
  _content_type: Optional[StrictStr] = None,
1388
1390
  _headers: Optional[Dict[StrictStr, Any]] = None,
1389
1391
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1390
- ) -> GetSignedUrlResponse:
1391
- """Get Signed Url
1392
+ ) -> ListFileSystemResponse:
1393
+ """List Resources
1392
1394
 
1393
1395
 
1394
1396
  :param uri:
@@ -1415,7 +1417,7 @@ class UriResourceApi:
1415
1417
  :return: Returns the result object.
1416
1418
  """ # noqa: E501
1417
1419
 
1418
- _param = self._api_v1_resources_signed_url_get_serialize(
1420
+ _param = self._list_resources_serialize(
1419
1421
  uri=uri,
1420
1422
  _request_auth=_request_auth,
1421
1423
  _content_type=_content_type,
@@ -1424,7 +1426,7 @@ class UriResourceApi:
1424
1426
  )
1425
1427
 
1426
1428
  _response_types_map: Dict[str, Optional[str]] = {
1427
- '200': "GetSignedUrlResponse",
1429
+ '200': "ListFileSystemResponse",
1428
1430
  }
1429
1431
  response_data = self.api_client.call_api(
1430
1432
  *_param,
@@ -1438,7 +1440,7 @@ class UriResourceApi:
1438
1440
 
1439
1441
 
1440
1442
  @validate_call
1441
- def api_v1_resources_signed_url_get_with_http_info(
1443
+ def list_resources_with_http_info(
1442
1444
  self,
1443
1445
  uri: Optional[StrictStr] = None,
1444
1446
  _request_timeout: Union[
@@ -1453,8 +1455,8 @@ class UriResourceApi:
1453
1455
  _content_type: Optional[StrictStr] = None,
1454
1456
  _headers: Optional[Dict[StrictStr, Any]] = None,
1455
1457
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1456
- ) -> ApiResponse[GetSignedUrlResponse]:
1457
- """Get Signed Url
1458
+ ) -> ApiResponse[ListFileSystemResponse]:
1459
+ """List Resources
1458
1460
 
1459
1461
 
1460
1462
  :param uri:
@@ -1481,7 +1483,7 @@ class UriResourceApi:
1481
1483
  :return: Returns the result object.
1482
1484
  """ # noqa: E501
1483
1485
 
1484
- _param = self._api_v1_resources_signed_url_get_serialize(
1486
+ _param = self._list_resources_serialize(
1485
1487
  uri=uri,
1486
1488
  _request_auth=_request_auth,
1487
1489
  _content_type=_content_type,
@@ -1490,7 +1492,7 @@ class UriResourceApi:
1490
1492
  )
1491
1493
 
1492
1494
  _response_types_map: Dict[str, Optional[str]] = {
1493
- '200': "GetSignedUrlResponse",
1495
+ '200': "ListFileSystemResponse",
1494
1496
  }
1495
1497
  response_data = self.api_client.call_api(
1496
1498
  *_param,
@@ -1504,7 +1506,7 @@ class UriResourceApi:
1504
1506
 
1505
1507
 
1506
1508
  @validate_call
1507
- def api_v1_resources_signed_url_get_without_preload_content(
1509
+ def list_resources_without_preload_content(
1508
1510
  self,
1509
1511
  uri: Optional[StrictStr] = None,
1510
1512
  _request_timeout: Union[
@@ -1520,7 +1522,7 @@ class UriResourceApi:
1520
1522
  _headers: Optional[Dict[StrictStr, Any]] = None,
1521
1523
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1522
1524
  ) -> RESTResponseType:
1523
- """Get Signed Url
1525
+ """List Resources
1524
1526
 
1525
1527
 
1526
1528
  :param uri:
@@ -1547,7 +1549,7 @@ class UriResourceApi:
1547
1549
  :return: Returns the result object.
1548
1550
  """ # noqa: E501
1549
1551
 
1550
- _param = self._api_v1_resources_signed_url_get_serialize(
1552
+ _param = self._list_resources_serialize(
1551
1553
  uri=uri,
1552
1554
  _request_auth=_request_auth,
1553
1555
  _content_type=_content_type,
@@ -1556,7 +1558,7 @@ class UriResourceApi:
1556
1558
  )
1557
1559
 
1558
1560
  _response_types_map: Dict[str, Optional[str]] = {
1559
- '200': "GetSignedUrlResponse",
1561
+ '200': "ListFileSystemResponse",
1560
1562
  }
1561
1563
  response_data = self.api_client.call_api(
1562
1564
  *_param,
@@ -1565,7 +1567,7 @@ class UriResourceApi:
1565
1567
  return response_data.response
1566
1568
 
1567
1569
 
1568
- def _api_v1_resources_signed_url_get_serialize(
1570
+ def _list_resources_serialize(
1569
1571
  self,
1570
1572
  uri,
1571
1573
  _request_auth,
@@ -1614,7 +1616,578 @@ class UriResourceApi:
1614
1616
 
1615
1617
  return self.api_client.param_serialize(
1616
1618
  method='GET',
1617
- resource_path='/api/v1/resources/signed-url',
1619
+ resource_path='/api/v1/resources/list',
1620
+ path_params=_path_params,
1621
+ query_params=_query_params,
1622
+ header_params=_header_params,
1623
+ body=_body_params,
1624
+ post_params=_form_params,
1625
+ files=_files,
1626
+ auth_settings=_auth_settings,
1627
+ collection_formats=_collection_formats,
1628
+ _host=_host,
1629
+ _request_auth=_request_auth
1630
+ )
1631
+
1632
+
1633
+
1634
+
1635
+ @validate_call
1636
+ def remove_resource(
1637
+ self,
1638
+ uri: Optional[StrictStr] = None,
1639
+ _request_timeout: Union[
1640
+ None,
1641
+ Annotated[StrictFloat, Field(gt=0)],
1642
+ Tuple[
1643
+ Annotated[StrictFloat, Field(gt=0)],
1644
+ Annotated[StrictFloat, Field(gt=0)]
1645
+ ]
1646
+ ] = None,
1647
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1648
+ _content_type: Optional[StrictStr] = None,
1649
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1650
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1651
+ ) -> None:
1652
+ """Remove Resource
1653
+
1654
+
1655
+ :param uri:
1656
+ :type uri: str
1657
+ :param _request_timeout: timeout setting for this request. If one
1658
+ number provided, it will be total request
1659
+ timeout. It can also be a pair (tuple) of
1660
+ (connection, read) timeouts.
1661
+ :type _request_timeout: int, tuple(int, int), optional
1662
+ :param _request_auth: set to override the auth_settings for an a single
1663
+ request; this effectively ignores the
1664
+ authentication in the spec for a single request.
1665
+ :type _request_auth: dict, optional
1666
+ :param _content_type: force content-type for the request.
1667
+ :type _content_type: str, Optional
1668
+ :param _headers: set to override the headers for a single
1669
+ request; this effectively ignores the headers
1670
+ in the spec for a single request.
1671
+ :type _headers: dict, optional
1672
+ :param _host_index: set to override the host_index for a single
1673
+ request; this effectively ignores the host_index
1674
+ in the spec for a single request.
1675
+ :type _host_index: int, optional
1676
+ :return: Returns the result object.
1677
+ """ # noqa: E501
1678
+
1679
+ _param = self._remove_resource_serialize(
1680
+ uri=uri,
1681
+ _request_auth=_request_auth,
1682
+ _content_type=_content_type,
1683
+ _headers=_headers,
1684
+ _host_index=_host_index
1685
+ )
1686
+
1687
+ _response_types_map: Dict[str, Optional[str]] = {
1688
+ '204': None,
1689
+ }
1690
+ response_data = self.api_client.call_api(
1691
+ *_param,
1692
+ _request_timeout=_request_timeout
1693
+ )
1694
+ response_data.read()
1695
+ return self.api_client.response_deserialize(
1696
+ response_data=response_data,
1697
+ response_types_map=_response_types_map,
1698
+ ).data
1699
+
1700
+
1701
+ @validate_call
1702
+ def remove_resource_with_http_info(
1703
+ self,
1704
+ uri: Optional[StrictStr] = None,
1705
+ _request_timeout: Union[
1706
+ None,
1707
+ Annotated[StrictFloat, Field(gt=0)],
1708
+ Tuple[
1709
+ Annotated[StrictFloat, Field(gt=0)],
1710
+ Annotated[StrictFloat, Field(gt=0)]
1711
+ ]
1712
+ ] = None,
1713
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1714
+ _content_type: Optional[StrictStr] = None,
1715
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1716
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1717
+ ) -> ApiResponse[None]:
1718
+ """Remove Resource
1719
+
1720
+
1721
+ :param uri:
1722
+ :type uri: str
1723
+ :param _request_timeout: timeout setting for this request. If one
1724
+ number provided, it will be total request
1725
+ timeout. It can also be a pair (tuple) of
1726
+ (connection, read) timeouts.
1727
+ :type _request_timeout: int, tuple(int, int), optional
1728
+ :param _request_auth: set to override the auth_settings for an a single
1729
+ request; this effectively ignores the
1730
+ authentication in the spec for a single request.
1731
+ :type _request_auth: dict, optional
1732
+ :param _content_type: force content-type for the request.
1733
+ :type _content_type: str, Optional
1734
+ :param _headers: set to override the headers for a single
1735
+ request; this effectively ignores the headers
1736
+ in the spec for a single request.
1737
+ :type _headers: dict, optional
1738
+ :param _host_index: set to override the host_index for a single
1739
+ request; this effectively ignores the host_index
1740
+ in the spec for a single request.
1741
+ :type _host_index: int, optional
1742
+ :return: Returns the result object.
1743
+ """ # noqa: E501
1744
+
1745
+ _param = self._remove_resource_serialize(
1746
+ uri=uri,
1747
+ _request_auth=_request_auth,
1748
+ _content_type=_content_type,
1749
+ _headers=_headers,
1750
+ _host_index=_host_index
1751
+ )
1752
+
1753
+ _response_types_map: Dict[str, Optional[str]] = {
1754
+ '204': None,
1755
+ }
1756
+ response_data = self.api_client.call_api(
1757
+ *_param,
1758
+ _request_timeout=_request_timeout
1759
+ )
1760
+ response_data.read()
1761
+ return self.api_client.response_deserialize(
1762
+ response_data=response_data,
1763
+ response_types_map=_response_types_map,
1764
+ )
1765
+
1766
+
1767
+ @validate_call
1768
+ def remove_resource_without_preload_content(
1769
+ self,
1770
+ uri: Optional[StrictStr] = None,
1771
+ _request_timeout: Union[
1772
+ None,
1773
+ Annotated[StrictFloat, Field(gt=0)],
1774
+ Tuple[
1775
+ Annotated[StrictFloat, Field(gt=0)],
1776
+ Annotated[StrictFloat, Field(gt=0)]
1777
+ ]
1778
+ ] = None,
1779
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1780
+ _content_type: Optional[StrictStr] = None,
1781
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1782
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1783
+ ) -> RESTResponseType:
1784
+ """Remove Resource
1785
+
1786
+
1787
+ :param uri:
1788
+ :type uri: str
1789
+ :param _request_timeout: timeout setting for this request. If one
1790
+ number provided, it will be total request
1791
+ timeout. It can also be a pair (tuple) of
1792
+ (connection, read) timeouts.
1793
+ :type _request_timeout: int, tuple(int, int), optional
1794
+ :param _request_auth: set to override the auth_settings for an a single
1795
+ request; this effectively ignores the
1796
+ authentication in the spec for a single request.
1797
+ :type _request_auth: dict, optional
1798
+ :param _content_type: force content-type for the request.
1799
+ :type _content_type: str, Optional
1800
+ :param _headers: set to override the headers for a single
1801
+ request; this effectively ignores the headers
1802
+ in the spec for a single request.
1803
+ :type _headers: dict, optional
1804
+ :param _host_index: set to override the host_index for a single
1805
+ request; this effectively ignores the host_index
1806
+ in the spec for a single request.
1807
+ :type _host_index: int, optional
1808
+ :return: Returns the result object.
1809
+ """ # noqa: E501
1810
+
1811
+ _param = self._remove_resource_serialize(
1812
+ uri=uri,
1813
+ _request_auth=_request_auth,
1814
+ _content_type=_content_type,
1815
+ _headers=_headers,
1816
+ _host_index=_host_index
1817
+ )
1818
+
1819
+ _response_types_map: Dict[str, Optional[str]] = {
1820
+ '204': None,
1821
+ }
1822
+ response_data = self.api_client.call_api(
1823
+ *_param,
1824
+ _request_timeout=_request_timeout
1825
+ )
1826
+ return response_data.response
1827
+
1828
+
1829
+ def _remove_resource_serialize(
1830
+ self,
1831
+ uri,
1832
+ _request_auth,
1833
+ _content_type,
1834
+ _headers,
1835
+ _host_index,
1836
+ ) -> RequestSerialized:
1837
+
1838
+ _host = None
1839
+
1840
+ _collection_formats: Dict[str, str] = {
1841
+ }
1842
+
1843
+ _path_params: Dict[str, str] = {}
1844
+ _query_params: List[Tuple[str, str]] = []
1845
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1846
+ _form_params: List[Tuple[str, str]] = []
1847
+ _files: Dict[
1848
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1849
+ ] = {}
1850
+ _body_params: Optional[bytes] = None
1851
+
1852
+ # process the path parameters
1853
+ # process the query parameters
1854
+ if uri is not None:
1855
+
1856
+ _query_params.append(('uri', uri))
1857
+
1858
+ # process the header parameters
1859
+ # process the form parameters
1860
+ # process the body parameter
1861
+
1862
+
1863
+
1864
+
1865
+ # authentication setting
1866
+ _auth_settings: List[str] = [
1867
+ ]
1868
+
1869
+ return self.api_client.param_serialize(
1870
+ method='DELETE',
1871
+ resource_path='/api/v1/resources/remove',
1872
+ path_params=_path_params,
1873
+ query_params=_query_params,
1874
+ header_params=_header_params,
1875
+ body=_body_params,
1876
+ post_params=_form_params,
1877
+ files=_files,
1878
+ auth_settings=_auth_settings,
1879
+ collection_formats=_collection_formats,
1880
+ _host=_host,
1881
+ _request_auth=_request_auth
1882
+ )
1883
+
1884
+
1885
+
1886
+
1887
+ @validate_call
1888
+ def upload_resource(
1889
+ self,
1890
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1891
+ filename: Annotated[str, Field(strict=True)],
1892
+ overwrite: Optional[StrictBool] = None,
1893
+ uri: Optional[StrictStr] = None,
1894
+ _request_timeout: Union[
1895
+ None,
1896
+ Annotated[StrictFloat, Field(gt=0)],
1897
+ Tuple[
1898
+ Annotated[StrictFloat, Field(gt=0)],
1899
+ Annotated[StrictFloat, Field(gt=0)]
1900
+ ]
1901
+ ] = None,
1902
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1903
+ _content_type: Optional[StrictStr] = None,
1904
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1905
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1906
+ ) -> UploadFileToManagedFileSystemResponse:
1907
+ """Upload
1908
+
1909
+
1910
+ :param file: (required)
1911
+ :type file: bytearray
1912
+ :param filename: (required)
1913
+ :type filename: str
1914
+ :param overwrite:
1915
+ :type overwrite: bool
1916
+ :param uri:
1917
+ :type uri: str
1918
+ :param _request_timeout: timeout setting for this request. If one
1919
+ number provided, it will be total request
1920
+ timeout. It can also be a pair (tuple) of
1921
+ (connection, read) timeouts.
1922
+ :type _request_timeout: int, tuple(int, int), optional
1923
+ :param _request_auth: set to override the auth_settings for an a single
1924
+ request; this effectively ignores the
1925
+ authentication in the spec for a single request.
1926
+ :type _request_auth: dict, optional
1927
+ :param _content_type: force content-type for the request.
1928
+ :type _content_type: str, Optional
1929
+ :param _headers: set to override the headers for a single
1930
+ request; this effectively ignores the headers
1931
+ in the spec for a single request.
1932
+ :type _headers: dict, optional
1933
+ :param _host_index: set to override the host_index for a single
1934
+ request; this effectively ignores the host_index
1935
+ in the spec for a single request.
1936
+ :type _host_index: int, optional
1937
+ :return: Returns the result object.
1938
+ """ # noqa: E501
1939
+
1940
+ _param = self._upload_resource_serialize(
1941
+ file=file,
1942
+ filename=filename,
1943
+ overwrite=overwrite,
1944
+ uri=uri,
1945
+ _request_auth=_request_auth,
1946
+ _content_type=_content_type,
1947
+ _headers=_headers,
1948
+ _host_index=_host_index
1949
+ )
1950
+
1951
+ _response_types_map: Dict[str, Optional[str]] = {
1952
+ '200': "UploadFileToManagedFileSystemResponse",
1953
+ }
1954
+ response_data = self.api_client.call_api(
1955
+ *_param,
1956
+ _request_timeout=_request_timeout
1957
+ )
1958
+ response_data.read()
1959
+ return self.api_client.response_deserialize(
1960
+ response_data=response_data,
1961
+ response_types_map=_response_types_map,
1962
+ ).data
1963
+
1964
+
1965
+ @validate_call
1966
+ def upload_resource_with_http_info(
1967
+ self,
1968
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1969
+ filename: Annotated[str, Field(strict=True)],
1970
+ overwrite: Optional[StrictBool] = None,
1971
+ uri: Optional[StrictStr] = None,
1972
+ _request_timeout: Union[
1973
+ None,
1974
+ Annotated[StrictFloat, Field(gt=0)],
1975
+ Tuple[
1976
+ Annotated[StrictFloat, Field(gt=0)],
1977
+ Annotated[StrictFloat, Field(gt=0)]
1978
+ ]
1979
+ ] = None,
1980
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1981
+ _content_type: Optional[StrictStr] = None,
1982
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1983
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1984
+ ) -> ApiResponse[UploadFileToManagedFileSystemResponse]:
1985
+ """Upload
1986
+
1987
+
1988
+ :param file: (required)
1989
+ :type file: bytearray
1990
+ :param filename: (required)
1991
+ :type filename: str
1992
+ :param overwrite:
1993
+ :type overwrite: bool
1994
+ :param uri:
1995
+ :type uri: str
1996
+ :param _request_timeout: timeout setting for this request. If one
1997
+ number provided, it will be total request
1998
+ timeout. It can also be a pair (tuple) of
1999
+ (connection, read) timeouts.
2000
+ :type _request_timeout: int, tuple(int, int), optional
2001
+ :param _request_auth: set to override the auth_settings for an a single
2002
+ request; this effectively ignores the
2003
+ authentication in the spec for a single request.
2004
+ :type _request_auth: dict, optional
2005
+ :param _content_type: force content-type for the request.
2006
+ :type _content_type: str, Optional
2007
+ :param _headers: set to override the headers for a single
2008
+ request; this effectively ignores the headers
2009
+ in the spec for a single request.
2010
+ :type _headers: dict, optional
2011
+ :param _host_index: set to override the host_index for a single
2012
+ request; this effectively ignores the host_index
2013
+ in the spec for a single request.
2014
+ :type _host_index: int, optional
2015
+ :return: Returns the result object.
2016
+ """ # noqa: E501
2017
+
2018
+ _param = self._upload_resource_serialize(
2019
+ file=file,
2020
+ filename=filename,
2021
+ overwrite=overwrite,
2022
+ uri=uri,
2023
+ _request_auth=_request_auth,
2024
+ _content_type=_content_type,
2025
+ _headers=_headers,
2026
+ _host_index=_host_index
2027
+ )
2028
+
2029
+ _response_types_map: Dict[str, Optional[str]] = {
2030
+ '200': "UploadFileToManagedFileSystemResponse",
2031
+ }
2032
+ response_data = self.api_client.call_api(
2033
+ *_param,
2034
+ _request_timeout=_request_timeout
2035
+ )
2036
+ response_data.read()
2037
+ return self.api_client.response_deserialize(
2038
+ response_data=response_data,
2039
+ response_types_map=_response_types_map,
2040
+ )
2041
+
2042
+
2043
+ @validate_call
2044
+ def upload_resource_without_preload_content(
2045
+ self,
2046
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2047
+ filename: Annotated[str, Field(strict=True)],
2048
+ overwrite: Optional[StrictBool] = None,
2049
+ uri: Optional[StrictStr] = None,
2050
+ _request_timeout: Union[
2051
+ None,
2052
+ Annotated[StrictFloat, Field(gt=0)],
2053
+ Tuple[
2054
+ Annotated[StrictFloat, Field(gt=0)],
2055
+ Annotated[StrictFloat, Field(gt=0)]
2056
+ ]
2057
+ ] = None,
2058
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2059
+ _content_type: Optional[StrictStr] = None,
2060
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2061
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2062
+ ) -> RESTResponseType:
2063
+ """Upload
2064
+
2065
+
2066
+ :param file: (required)
2067
+ :type file: bytearray
2068
+ :param filename: (required)
2069
+ :type filename: str
2070
+ :param overwrite:
2071
+ :type overwrite: bool
2072
+ :param uri:
2073
+ :type uri: str
2074
+ :param _request_timeout: timeout setting for this request. If one
2075
+ number provided, it will be total request
2076
+ timeout. It can also be a pair (tuple) of
2077
+ (connection, read) timeouts.
2078
+ :type _request_timeout: int, tuple(int, int), optional
2079
+ :param _request_auth: set to override the auth_settings for an a single
2080
+ request; this effectively ignores the
2081
+ authentication in the spec for a single request.
2082
+ :type _request_auth: dict, optional
2083
+ :param _content_type: force content-type for the request.
2084
+ :type _content_type: str, Optional
2085
+ :param _headers: set to override the headers for a single
2086
+ request; this effectively ignores the headers
2087
+ in the spec for a single request.
2088
+ :type _headers: dict, optional
2089
+ :param _host_index: set to override the host_index for a single
2090
+ request; this effectively ignores the host_index
2091
+ in the spec for a single request.
2092
+ :type _host_index: int, optional
2093
+ :return: Returns the result object.
2094
+ """ # noqa: E501
2095
+
2096
+ _param = self._upload_resource_serialize(
2097
+ file=file,
2098
+ filename=filename,
2099
+ overwrite=overwrite,
2100
+ uri=uri,
2101
+ _request_auth=_request_auth,
2102
+ _content_type=_content_type,
2103
+ _headers=_headers,
2104
+ _host_index=_host_index
2105
+ )
2106
+
2107
+ _response_types_map: Dict[str, Optional[str]] = {
2108
+ '200': "UploadFileToManagedFileSystemResponse",
2109
+ }
2110
+ response_data = self.api_client.call_api(
2111
+ *_param,
2112
+ _request_timeout=_request_timeout
2113
+ )
2114
+ return response_data.response
2115
+
2116
+
2117
+ def _upload_resource_serialize(
2118
+ self,
2119
+ file,
2120
+ filename,
2121
+ overwrite,
2122
+ uri,
2123
+ _request_auth,
2124
+ _content_type,
2125
+ _headers,
2126
+ _host_index,
2127
+ ) -> RequestSerialized:
2128
+
2129
+ _host = None
2130
+
2131
+ _collection_formats: Dict[str, str] = {
2132
+ }
2133
+
2134
+ _path_params: Dict[str, str] = {}
2135
+ _query_params: List[Tuple[str, str]] = []
2136
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2137
+ _form_params: List[Tuple[str, str]] = []
2138
+ _files: Dict[
2139
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2140
+ ] = {}
2141
+ _body_params: Optional[bytes] = None
2142
+
2143
+ # process the path parameters
2144
+ # process the query parameters
2145
+ if overwrite is not None:
2146
+
2147
+ _query_params.append(('overwrite', overwrite))
2148
+
2149
+ if uri is not None:
2150
+
2151
+ _query_params.append(('uri', uri))
2152
+
2153
+ # process the header parameters
2154
+ # process the form parameters
2155
+ if file is not None:
2156
+ _files['file'] = file
2157
+ if filename is not None:
2158
+ _form_params.append(('filename', filename))
2159
+ # process the body parameter
2160
+
2161
+
2162
+ # set the HTTP header `Accept`
2163
+ if 'Accept' not in _header_params:
2164
+ _header_params['Accept'] = self.api_client.select_header_accept(
2165
+ [
2166
+ 'application/json'
2167
+ ]
2168
+ )
2169
+
2170
+ # set the HTTP header `Content-Type`
2171
+ if _content_type:
2172
+ _header_params['Content-Type'] = _content_type
2173
+ else:
2174
+ _default_content_type = (
2175
+ self.api_client.select_header_content_type(
2176
+ [
2177
+ 'multipart/form-data'
2178
+ ]
2179
+ )
2180
+ )
2181
+ if _default_content_type is not None:
2182
+ _header_params['Content-Type'] = _default_content_type
2183
+
2184
+ # authentication setting
2185
+ _auth_settings: List[str] = [
2186
+ ]
2187
+
2188
+ return self.api_client.param_serialize(
2189
+ method='POST',
2190
+ resource_path='/api/v1/resources/upload',
1618
2191
  path_params=_path_params,
1619
2192
  query_params=_query_params,
1620
2193
  header_params=_header_params,