perceptic-core-client 0.39.0__py3-none-any.whl → 0.50.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.
Files changed (77) hide show
  1. perceptic_core_client/__init__.py +51 -0
  2. perceptic_core_client/api/__init__.py +1 -0
  3. perceptic_core_client/api/tag_resource_api.py +100 -836
  4. perceptic_core_client/api/uri_resource_api.py +818 -207
  5. perceptic_core_client/api/user_resource_api.py +308 -1
  6. perceptic_core_client/api/worker_resource_api.py +1100 -211
  7. perceptic_core_client/api/worker_resource_v3_api.py +1477 -0
  8. perceptic_core_client/api_client.py +8 -5
  9. perceptic_core_client/configuration.py +6 -2
  10. perceptic_core_client/models/__init__.py +25 -1
  11. perceptic_core_client/models/citation_metadata_api_dto.py +0 -15
  12. perceptic_core_client/models/connection_settings_api_dto.py +0 -10
  13. perceptic_core_client/models/create_folder_response_v2.py +89 -0
  14. perceptic_core_client/models/file_system_api_dto.py +0 -10
  15. perceptic_core_client/models/file_system_root_metadata_api_dto.py +0 -10
  16. perceptic_core_client/models/get_run_event_rating_response.py +91 -0
  17. perceptic_core_client/models/get_worker_events_v2_response.py +101 -0
  18. perceptic_core_client/models/get_worker_events_v3_response.py +89 -0
  19. perceptic_core_client/models/info_event1.py +94 -0
  20. perceptic_core_client/models/ingest_event_request.py +94 -0
  21. perceptic_core_client/models/ingest_event_response.py +89 -0
  22. perceptic_core_client/models/ingest_stream_event_request.py +89 -0
  23. perceptic_core_client/models/list_users_response.py +104 -0
  24. perceptic_core_client/models/persistence_mode.py +38 -0
  25. perceptic_core_client/models/post_rating_request.py +89 -0
  26. perceptic_core_client/models/post_run_event_rating_response.py +91 -0
  27. perceptic_core_client/models/post_worker_run_request1.py +87 -0
  28. perceptic_core_client/models/post_worker_run_response1.py +87 -0
  29. perceptic_core_client/models/progress_event1.py +94 -0
  30. perceptic_core_client/models/rating_dto_worker_run_event_rating_secondary_id.py +108 -0
  31. perceptic_core_client/models/run_status_dto.py +1 -0
  32. perceptic_core_client/models/schedule_trigger.py +0 -15
  33. perceptic_core_client/models/upload_resource_response_v2.py +91 -0
  34. perceptic_core_client/models/user_input_event.py +101 -0
  35. perceptic_core_client/models/user_request_for_input_event.py +108 -0
  36. perceptic_core_client/models/worker_event.py +0 -15
  37. perceptic_core_client/models/worker_event_v2.py +193 -0
  38. perceptic_core_client/models/worker_run_event_rating_secondary_id.py +89 -0
  39. perceptic_core_client/models/worker_stream_event_v2.py +90 -0
  40. perceptic_core_client/models/worker_v2_next_page_token.py +89 -0
  41. perceptic_core_client/models/workflow_status_response.py +89 -0
  42. perceptic_core_client/test/test_create_folder_response_v2.py +52 -0
  43. perceptic_core_client/test/test_get_run_event_rating_response.py +57 -0
  44. perceptic_core_client/test/test_get_worker_events_v2_response.py +56 -0
  45. perceptic_core_client/test/test_get_worker_events_v3_response.py +54 -0
  46. perceptic_core_client/test/test_info_event1.py +54 -0
  47. perceptic_core_client/test/test_ingest_event_request.py +56 -0
  48. perceptic_core_client/test/test_ingest_event_response.py +52 -0
  49. perceptic_core_client/test/test_ingest_stream_event_request.py +52 -0
  50. perceptic_core_client/test/test_list_users_response.py +60 -0
  51. perceptic_core_client/test/test_persistence_mode.py +33 -0
  52. perceptic_core_client/test/test_post_rating_request.py +52 -0
  53. perceptic_core_client/test/test_post_run_event_rating_response.py +57 -0
  54. perceptic_core_client/test/test_post_worker_run_request1.py +51 -0
  55. perceptic_core_client/test/test_post_worker_run_response1.py +51 -0
  56. perceptic_core_client/test/test_progress_event.py +1 -1
  57. perceptic_core_client/test/test_progress_event1.py +54 -0
  58. perceptic_core_client/test/test_rating_dto_worker_run_event_rating_secondary_id.py +56 -0
  59. perceptic_core_client/test/test_request_for_input_event.py +1 -1
  60. perceptic_core_client/test/test_tag_resource_api.py +0 -21
  61. perceptic_core_client/test/test_upload_resource_response_v2.py +53 -0
  62. perceptic_core_client/test/test_uri_resource_api.py +14 -0
  63. perceptic_core_client/test/test_user_input_event.py +55 -0
  64. perceptic_core_client/test/test_user_request_for_input_event.py +56 -0
  65. perceptic_core_client/test/test_user_resource_api.py +7 -0
  66. perceptic_core_client/test/test_worker_event.py +2 -2
  67. perceptic_core_client/test/test_worker_event_v2.py +59 -0
  68. perceptic_core_client/test/test_worker_resource_api.py +21 -0
  69. perceptic_core_client/test/test_worker_resource_v3_api.py +66 -0
  70. perceptic_core_client/test/test_worker_run_event_rating_secondary_id.py +53 -0
  71. perceptic_core_client/test/test_worker_stream_event_v2.py +52 -0
  72. perceptic_core_client/test/test_worker_v2_next_page_token.py +52 -0
  73. perceptic_core_client/test/test_workflow_status_response.py +52 -0
  74. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/METADATA +1 -1
  75. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/RECORD +77 -27
  76. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/WHEEL +0 -0
  77. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/top_level.txt +0 -0
@@ -22,6 +22,7 @@ from typing_extensions import Annotated
22
22
  from perceptic_core_client.models.add_tag_to_file_request import AddTagToFileRequest
23
23
  from perceptic_core_client.models.create_folder_request import CreateFolderRequest
24
24
  from perceptic_core_client.models.create_folder_response import CreateFolderResponse
25
+ from perceptic_core_client.models.create_folder_response_v2 import CreateFolderResponseV2
25
26
  from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
26
27
  from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
27
28
  from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
@@ -29,6 +30,7 @@ from perceptic_core_client.models.list_file_system_response import ListFileSyste
29
30
  from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
30
31
  from perceptic_core_client.models.remove_tag_from_file_request import RemoveTagFromFileRequest
31
32
  from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
33
+ from perceptic_core_client.models.upload_resource_response_v2 import UploadResourceResponseV2
32
34
 
33
35
  from perceptic_core_client.api_client import ApiClient, RequestSerialized
34
36
  from perceptic_core_client.api_response import ApiResponse
@@ -622,8 +624,9 @@ class UriResourceApi:
622
624
 
623
625
 
624
626
  @validate_call
625
- def download_resource(
627
+ def create_uri_folder_v2(
626
628
  self,
629
+ create_folder_request: CreateFolderRequest,
627
630
  uri: Optional[StrictStr] = None,
628
631
  _request_timeout: Union[
629
632
  None,
@@ -637,10 +640,12 @@ class UriResourceApi:
637
640
  _content_type: Optional[StrictStr] = None,
638
641
  _headers: Optional[Dict[StrictStr, Any]] = None,
639
642
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
640
- ) -> bytearray:
641
- """Download Resource
643
+ ) -> CreateFolderResponseV2:
644
+ """Create folder and return its URI
642
645
 
643
646
 
647
+ :param create_folder_request: (required)
648
+ :type create_folder_request: CreateFolderRequest
644
649
  :param uri:
645
650
  :type uri: str
646
651
  :param _request_timeout: timeout setting for this request. If one
@@ -665,7 +670,8 @@ class UriResourceApi:
665
670
  :return: Returns the result object.
666
671
  """ # noqa: E501
667
672
 
668
- _param = self._download_resource_serialize(
673
+ _param = self._create_uri_folder_v2_serialize(
674
+ create_folder_request=create_folder_request,
669
675
  uri=uri,
670
676
  _request_auth=_request_auth,
671
677
  _content_type=_content_type,
@@ -674,7 +680,8 @@ class UriResourceApi:
674
680
  )
675
681
 
676
682
  _response_types_map: Dict[str, Optional[str]] = {
677
- '200': "bytearray",
683
+ '200': "CreateFolderResponseV2",
684
+ '400': None,
678
685
  }
679
686
  response_data = self.api_client.call_api(
680
687
  *_param,
@@ -688,8 +695,9 @@ class UriResourceApi:
688
695
 
689
696
 
690
697
  @validate_call
691
- def download_resource_with_http_info(
698
+ def create_uri_folder_v2_with_http_info(
692
699
  self,
700
+ create_folder_request: CreateFolderRequest,
693
701
  uri: Optional[StrictStr] = None,
694
702
  _request_timeout: Union[
695
703
  None,
@@ -703,10 +711,12 @@ class UriResourceApi:
703
711
  _content_type: Optional[StrictStr] = None,
704
712
  _headers: Optional[Dict[StrictStr, Any]] = None,
705
713
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
706
- ) -> ApiResponse[bytearray]:
707
- """Download Resource
714
+ ) -> ApiResponse[CreateFolderResponseV2]:
715
+ """Create folder and return its URI
708
716
 
709
717
 
718
+ :param create_folder_request: (required)
719
+ :type create_folder_request: CreateFolderRequest
710
720
  :param uri:
711
721
  :type uri: str
712
722
  :param _request_timeout: timeout setting for this request. If one
@@ -731,7 +741,8 @@ class UriResourceApi:
731
741
  :return: Returns the result object.
732
742
  """ # noqa: E501
733
743
 
734
- _param = self._download_resource_serialize(
744
+ _param = self._create_uri_folder_v2_serialize(
745
+ create_folder_request=create_folder_request,
735
746
  uri=uri,
736
747
  _request_auth=_request_auth,
737
748
  _content_type=_content_type,
@@ -740,7 +751,8 @@ class UriResourceApi:
740
751
  )
741
752
 
742
753
  _response_types_map: Dict[str, Optional[str]] = {
743
- '200': "bytearray",
754
+ '200': "CreateFolderResponseV2",
755
+ '400': None,
744
756
  }
745
757
  response_data = self.api_client.call_api(
746
758
  *_param,
@@ -754,8 +766,9 @@ class UriResourceApi:
754
766
 
755
767
 
756
768
  @validate_call
757
- def download_resource_without_preload_content(
769
+ def create_uri_folder_v2_without_preload_content(
758
770
  self,
771
+ create_folder_request: CreateFolderRequest,
759
772
  uri: Optional[StrictStr] = None,
760
773
  _request_timeout: Union[
761
774
  None,
@@ -770,9 +783,11 @@ class UriResourceApi:
770
783
  _headers: Optional[Dict[StrictStr, Any]] = None,
771
784
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
772
785
  ) -> RESTResponseType:
773
- """Download Resource
786
+ """Create folder and return its URI
774
787
 
775
788
 
789
+ :param create_folder_request: (required)
790
+ :type create_folder_request: CreateFolderRequest
776
791
  :param uri:
777
792
  :type uri: str
778
793
  :param _request_timeout: timeout setting for this request. If one
@@ -797,7 +812,8 @@ class UriResourceApi:
797
812
  :return: Returns the result object.
798
813
  """ # noqa: E501
799
814
 
800
- _param = self._download_resource_serialize(
815
+ _param = self._create_uri_folder_v2_serialize(
816
+ create_folder_request=create_folder_request,
801
817
  uri=uri,
802
818
  _request_auth=_request_auth,
803
819
  _content_type=_content_type,
@@ -806,7 +822,8 @@ class UriResourceApi:
806
822
  )
807
823
 
808
824
  _response_types_map: Dict[str, Optional[str]] = {
809
- '200': "bytearray",
825
+ '200': "CreateFolderResponseV2",
826
+ '400': None,
810
827
  }
811
828
  response_data = self.api_client.call_api(
812
829
  *_param,
@@ -815,8 +832,9 @@ class UriResourceApi:
815
832
  return response_data.response
816
833
 
817
834
 
818
- def _download_resource_serialize(
835
+ def _create_uri_folder_v2_serialize(
819
836
  self,
837
+ create_folder_request,
820
838
  uri,
821
839
  _request_auth,
822
840
  _content_type,
@@ -847,24 +865,39 @@ class UriResourceApi:
847
865
  # process the header parameters
848
866
  # process the form parameters
849
867
  # process the body parameter
868
+ if create_folder_request is not None:
869
+ _body_params = create_folder_request
850
870
 
851
871
 
852
872
  # set the HTTP header `Accept`
853
873
  if 'Accept' not in _header_params:
854
874
  _header_params['Accept'] = self.api_client.select_header_accept(
855
875
  [
856
- 'application/octet-stream'
876
+ 'application/json'
857
877
  ]
858
878
  )
859
879
 
880
+ # set the HTTP header `Content-Type`
881
+ if _content_type:
882
+ _header_params['Content-Type'] = _content_type
883
+ else:
884
+ _default_content_type = (
885
+ self.api_client.select_header_content_type(
886
+ [
887
+ 'application/json'
888
+ ]
889
+ )
890
+ )
891
+ if _default_content_type is not None:
892
+ _header_params['Content-Type'] = _default_content_type
860
893
 
861
894
  # authentication setting
862
895
  _auth_settings: List[str] = [
863
896
  ]
864
897
 
865
898
  return self.api_client.param_serialize(
866
- method='GET',
867
- resource_path='/api/v1/resources/download',
899
+ method='POST',
900
+ resource_path='/api/v2/resources/folders',
868
901
  path_params=_path_params,
869
902
  query_params=_query_params,
870
903
  header_params=_header_params,
@@ -881,7 +914,7 @@ class UriResourceApi:
881
914
 
882
915
 
883
916
  @validate_call
884
- def get_metadata_from_uri(
917
+ def download_resource(
885
918
  self,
886
919
  uri: Optional[StrictStr] = None,
887
920
  _request_timeout: Union[
@@ -896,8 +929,8 @@ class UriResourceApi:
896
929
  _content_type: Optional[StrictStr] = None,
897
930
  _headers: Optional[Dict[StrictStr, Any]] = None,
898
931
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
899
- ) -> GetMetadataResponse:
900
- """Get Metadata
932
+ ) -> bytearray:
933
+ """Download Resource
901
934
 
902
935
 
903
936
  :param uri:
@@ -924,7 +957,7 @@ class UriResourceApi:
924
957
  :return: Returns the result object.
925
958
  """ # noqa: E501
926
959
 
927
- _param = self._get_metadata_from_uri_serialize(
960
+ _param = self._download_resource_serialize(
928
961
  uri=uri,
929
962
  _request_auth=_request_auth,
930
963
  _content_type=_content_type,
@@ -933,7 +966,7 @@ class UriResourceApi:
933
966
  )
934
967
 
935
968
  _response_types_map: Dict[str, Optional[str]] = {
936
- '200': "GetMetadataResponse",
969
+ '200': "bytearray",
937
970
  }
938
971
  response_data = self.api_client.call_api(
939
972
  *_param,
@@ -947,7 +980,7 @@ class UriResourceApi:
947
980
 
948
981
 
949
982
  @validate_call
950
- def get_metadata_from_uri_with_http_info(
983
+ def download_resource_with_http_info(
951
984
  self,
952
985
  uri: Optional[StrictStr] = None,
953
986
  _request_timeout: Union[
@@ -962,8 +995,8 @@ class UriResourceApi:
962
995
  _content_type: Optional[StrictStr] = None,
963
996
  _headers: Optional[Dict[StrictStr, Any]] = None,
964
997
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
965
- ) -> ApiResponse[GetMetadataResponse]:
966
- """Get Metadata
998
+ ) -> ApiResponse[bytearray]:
999
+ """Download Resource
967
1000
 
968
1001
 
969
1002
  :param uri:
@@ -990,7 +1023,7 @@ class UriResourceApi:
990
1023
  :return: Returns the result object.
991
1024
  """ # noqa: E501
992
1025
 
993
- _param = self._get_metadata_from_uri_serialize(
1026
+ _param = self._download_resource_serialize(
994
1027
  uri=uri,
995
1028
  _request_auth=_request_auth,
996
1029
  _content_type=_content_type,
@@ -999,7 +1032,7 @@ class UriResourceApi:
999
1032
  )
1000
1033
 
1001
1034
  _response_types_map: Dict[str, Optional[str]] = {
1002
- '200': "GetMetadataResponse",
1035
+ '200': "bytearray",
1003
1036
  }
1004
1037
  response_data = self.api_client.call_api(
1005
1038
  *_param,
@@ -1013,7 +1046,7 @@ class UriResourceApi:
1013
1046
 
1014
1047
 
1015
1048
  @validate_call
1016
- def get_metadata_from_uri_without_preload_content(
1049
+ def download_resource_without_preload_content(
1017
1050
  self,
1018
1051
  uri: Optional[StrictStr] = None,
1019
1052
  _request_timeout: Union[
@@ -1029,7 +1062,7 @@ class UriResourceApi:
1029
1062
  _headers: Optional[Dict[StrictStr, Any]] = None,
1030
1063
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1031
1064
  ) -> RESTResponseType:
1032
- """Get Metadata
1065
+ """Download Resource
1033
1066
 
1034
1067
 
1035
1068
  :param uri:
@@ -1056,7 +1089,7 @@ class UriResourceApi:
1056
1089
  :return: Returns the result object.
1057
1090
  """ # noqa: E501
1058
1091
 
1059
- _param = self._get_metadata_from_uri_serialize(
1092
+ _param = self._download_resource_serialize(
1060
1093
  uri=uri,
1061
1094
  _request_auth=_request_auth,
1062
1095
  _content_type=_content_type,
@@ -1065,7 +1098,7 @@ class UriResourceApi:
1065
1098
  )
1066
1099
 
1067
1100
  _response_types_map: Dict[str, Optional[str]] = {
1068
- '200': "GetMetadataResponse",
1101
+ '200': "bytearray",
1069
1102
  }
1070
1103
  response_data = self.api_client.call_api(
1071
1104
  *_param,
@@ -1074,7 +1107,7 @@ class UriResourceApi:
1074
1107
  return response_data.response
1075
1108
 
1076
1109
 
1077
- def _get_metadata_from_uri_serialize(
1110
+ def _download_resource_serialize(
1078
1111
  self,
1079
1112
  uri,
1080
1113
  _request_auth,
@@ -1112,7 +1145,7 @@ class UriResourceApi:
1112
1145
  if 'Accept' not in _header_params:
1113
1146
  _header_params['Accept'] = self.api_client.select_header_accept(
1114
1147
  [
1115
- 'application/json'
1148
+ 'application/octet-stream'
1116
1149
  ]
1117
1150
  )
1118
1151
 
@@ -1123,7 +1156,7 @@ class UriResourceApi:
1123
1156
 
1124
1157
  return self.api_client.param_serialize(
1125
1158
  method='GET',
1126
- resource_path='/api/v1/resources/metadata',
1159
+ resource_path='/api/v1/resources/download',
1127
1160
  path_params=_path_params,
1128
1161
  query_params=_query_params,
1129
1162
  header_params=_header_params,
@@ -1140,7 +1173,7 @@ class UriResourceApi:
1140
1173
 
1141
1174
 
1142
1175
  @validate_call
1143
- def get_parent(
1176
+ def get_metadata_from_uri(
1144
1177
  self,
1145
1178
  uri: Optional[StrictStr] = None,
1146
1179
  _request_timeout: Union[
@@ -1155,8 +1188,8 @@ class UriResourceApi:
1155
1188
  _content_type: Optional[StrictStr] = None,
1156
1189
  _headers: Optional[Dict[StrictStr, Any]] = None,
1157
1190
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1158
- ) -> GetParentUriResponse:
1159
- """Get Parent
1191
+ ) -> GetMetadataResponse:
1192
+ """Get Metadata
1160
1193
 
1161
1194
 
1162
1195
  :param uri:
@@ -1183,7 +1216,7 @@ class UriResourceApi:
1183
1216
  :return: Returns the result object.
1184
1217
  """ # noqa: E501
1185
1218
 
1186
- _param = self._get_parent_serialize(
1219
+ _param = self._get_metadata_from_uri_serialize(
1187
1220
  uri=uri,
1188
1221
  _request_auth=_request_auth,
1189
1222
  _content_type=_content_type,
@@ -1192,7 +1225,7 @@ class UriResourceApi:
1192
1225
  )
1193
1226
 
1194
1227
  _response_types_map: Dict[str, Optional[str]] = {
1195
- '200': "GetParentUriResponse",
1228
+ '200': "GetMetadataResponse",
1196
1229
  }
1197
1230
  response_data = self.api_client.call_api(
1198
1231
  *_param,
@@ -1206,7 +1239,7 @@ class UriResourceApi:
1206
1239
 
1207
1240
 
1208
1241
  @validate_call
1209
- def get_parent_with_http_info(
1242
+ def get_metadata_from_uri_with_http_info(
1210
1243
  self,
1211
1244
  uri: Optional[StrictStr] = None,
1212
1245
  _request_timeout: Union[
@@ -1221,8 +1254,8 @@ class UriResourceApi:
1221
1254
  _content_type: Optional[StrictStr] = None,
1222
1255
  _headers: Optional[Dict[StrictStr, Any]] = None,
1223
1256
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1224
- ) -> ApiResponse[GetParentUriResponse]:
1225
- """Get Parent
1257
+ ) -> ApiResponse[GetMetadataResponse]:
1258
+ """Get Metadata
1226
1259
 
1227
1260
 
1228
1261
  :param uri:
@@ -1249,7 +1282,7 @@ class UriResourceApi:
1249
1282
  :return: Returns the result object.
1250
1283
  """ # noqa: E501
1251
1284
 
1252
- _param = self._get_parent_serialize(
1285
+ _param = self._get_metadata_from_uri_serialize(
1253
1286
  uri=uri,
1254
1287
  _request_auth=_request_auth,
1255
1288
  _content_type=_content_type,
@@ -1258,7 +1291,7 @@ class UriResourceApi:
1258
1291
  )
1259
1292
 
1260
1293
  _response_types_map: Dict[str, Optional[str]] = {
1261
- '200': "GetParentUriResponse",
1294
+ '200': "GetMetadataResponse",
1262
1295
  }
1263
1296
  response_data = self.api_client.call_api(
1264
1297
  *_param,
@@ -1272,7 +1305,7 @@ class UriResourceApi:
1272
1305
 
1273
1306
 
1274
1307
  @validate_call
1275
- def get_parent_without_preload_content(
1308
+ def get_metadata_from_uri_without_preload_content(
1276
1309
  self,
1277
1310
  uri: Optional[StrictStr] = None,
1278
1311
  _request_timeout: Union[
@@ -1288,7 +1321,7 @@ class UriResourceApi:
1288
1321
  _headers: Optional[Dict[StrictStr, Any]] = None,
1289
1322
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1290
1323
  ) -> RESTResponseType:
1291
- """Get Parent
1324
+ """Get Metadata
1292
1325
 
1293
1326
 
1294
1327
  :param uri:
@@ -1315,7 +1348,7 @@ class UriResourceApi:
1315
1348
  :return: Returns the result object.
1316
1349
  """ # noqa: E501
1317
1350
 
1318
- _param = self._get_parent_serialize(
1351
+ _param = self._get_metadata_from_uri_serialize(
1319
1352
  uri=uri,
1320
1353
  _request_auth=_request_auth,
1321
1354
  _content_type=_content_type,
@@ -1324,7 +1357,7 @@ class UriResourceApi:
1324
1357
  )
1325
1358
 
1326
1359
  _response_types_map: Dict[str, Optional[str]] = {
1327
- '200': "GetParentUriResponse",
1360
+ '200': "GetMetadataResponse",
1328
1361
  }
1329
1362
  response_data = self.api_client.call_api(
1330
1363
  *_param,
@@ -1333,7 +1366,7 @@ class UriResourceApi:
1333
1366
  return response_data.response
1334
1367
 
1335
1368
 
1336
- def _get_parent_serialize(
1369
+ def _get_metadata_from_uri_serialize(
1337
1370
  self,
1338
1371
  uri,
1339
1372
  _request_auth,
@@ -1382,7 +1415,7 @@ class UriResourceApi:
1382
1415
 
1383
1416
  return self.api_client.param_serialize(
1384
1417
  method='GET',
1385
- resource_path='/api/v1/resources/parent',
1418
+ resource_path='/api/v1/resources/metadata',
1386
1419
  path_params=_path_params,
1387
1420
  query_params=_query_params,
1388
1421
  header_params=_header_params,
@@ -1399,7 +1432,7 @@ class UriResourceApi:
1399
1432
 
1400
1433
 
1401
1434
  @validate_call
1402
- def get_signed_url_from_uri(
1435
+ def get_parent(
1403
1436
  self,
1404
1437
  uri: Optional[StrictStr] = None,
1405
1438
  _request_timeout: Union[
@@ -1414,8 +1447,8 @@ class UriResourceApi:
1414
1447
  _content_type: Optional[StrictStr] = None,
1415
1448
  _headers: Optional[Dict[StrictStr, Any]] = None,
1416
1449
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1417
- ) -> GetSignedUrlResponse:
1418
- """Get Signed Url
1450
+ ) -> GetParentUriResponse:
1451
+ """Get Parent
1419
1452
 
1420
1453
 
1421
1454
  :param uri:
@@ -1442,7 +1475,7 @@ class UriResourceApi:
1442
1475
  :return: Returns the result object.
1443
1476
  """ # noqa: E501
1444
1477
 
1445
- _param = self._get_signed_url_from_uri_serialize(
1478
+ _param = self._get_parent_serialize(
1446
1479
  uri=uri,
1447
1480
  _request_auth=_request_auth,
1448
1481
  _content_type=_content_type,
@@ -1451,7 +1484,7 @@ class UriResourceApi:
1451
1484
  )
1452
1485
 
1453
1486
  _response_types_map: Dict[str, Optional[str]] = {
1454
- '200': "GetSignedUrlResponse",
1487
+ '200': "GetParentUriResponse",
1455
1488
  }
1456
1489
  response_data = self.api_client.call_api(
1457
1490
  *_param,
@@ -1465,7 +1498,7 @@ class UriResourceApi:
1465
1498
 
1466
1499
 
1467
1500
  @validate_call
1468
- def get_signed_url_from_uri_with_http_info(
1501
+ def get_parent_with_http_info(
1469
1502
  self,
1470
1503
  uri: Optional[StrictStr] = None,
1471
1504
  _request_timeout: Union[
@@ -1480,8 +1513,8 @@ class UriResourceApi:
1480
1513
  _content_type: Optional[StrictStr] = None,
1481
1514
  _headers: Optional[Dict[StrictStr, Any]] = None,
1482
1515
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1483
- ) -> ApiResponse[GetSignedUrlResponse]:
1484
- """Get Signed Url
1516
+ ) -> ApiResponse[GetParentUriResponse]:
1517
+ """Get Parent
1485
1518
 
1486
1519
 
1487
1520
  :param uri:
@@ -1508,7 +1541,7 @@ class UriResourceApi:
1508
1541
  :return: Returns the result object.
1509
1542
  """ # noqa: E501
1510
1543
 
1511
- _param = self._get_signed_url_from_uri_serialize(
1544
+ _param = self._get_parent_serialize(
1512
1545
  uri=uri,
1513
1546
  _request_auth=_request_auth,
1514
1547
  _content_type=_content_type,
@@ -1517,7 +1550,7 @@ class UriResourceApi:
1517
1550
  )
1518
1551
 
1519
1552
  _response_types_map: Dict[str, Optional[str]] = {
1520
- '200': "GetSignedUrlResponse",
1553
+ '200': "GetParentUriResponse",
1521
1554
  }
1522
1555
  response_data = self.api_client.call_api(
1523
1556
  *_param,
@@ -1531,7 +1564,7 @@ class UriResourceApi:
1531
1564
 
1532
1565
 
1533
1566
  @validate_call
1534
- def get_signed_url_from_uri_without_preload_content(
1567
+ def get_parent_without_preload_content(
1535
1568
  self,
1536
1569
  uri: Optional[StrictStr] = None,
1537
1570
  _request_timeout: Union[
@@ -1547,7 +1580,7 @@ class UriResourceApi:
1547
1580
  _headers: Optional[Dict[StrictStr, Any]] = None,
1548
1581
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1549
1582
  ) -> RESTResponseType:
1550
- """Get Signed Url
1583
+ """Get Parent
1551
1584
 
1552
1585
 
1553
1586
  :param uri:
@@ -1574,7 +1607,7 @@ class UriResourceApi:
1574
1607
  :return: Returns the result object.
1575
1608
  """ # noqa: E501
1576
1609
 
1577
- _param = self._get_signed_url_from_uri_serialize(
1610
+ _param = self._get_parent_serialize(
1578
1611
  uri=uri,
1579
1612
  _request_auth=_request_auth,
1580
1613
  _content_type=_content_type,
@@ -1583,7 +1616,7 @@ class UriResourceApi:
1583
1616
  )
1584
1617
 
1585
1618
  _response_types_map: Dict[str, Optional[str]] = {
1586
- '200': "GetSignedUrlResponse",
1619
+ '200': "GetParentUriResponse",
1587
1620
  }
1588
1621
  response_data = self.api_client.call_api(
1589
1622
  *_param,
@@ -1592,7 +1625,7 @@ class UriResourceApi:
1592
1625
  return response_data.response
1593
1626
 
1594
1627
 
1595
- def _get_signed_url_from_uri_serialize(
1628
+ def _get_parent_serialize(
1596
1629
  self,
1597
1630
  uri,
1598
1631
  _request_auth,
@@ -1641,7 +1674,7 @@ class UriResourceApi:
1641
1674
 
1642
1675
  return self.api_client.param_serialize(
1643
1676
  method='GET',
1644
- resource_path='/api/v1/resources/signed-url',
1677
+ resource_path='/api/v1/resources/parent',
1645
1678
  path_params=_path_params,
1646
1679
  query_params=_query_params,
1647
1680
  header_params=_header_params,
@@ -1658,10 +1691,8 @@ class UriResourceApi:
1658
1691
 
1659
1692
 
1660
1693
  @validate_call
1661
- def list_files(
1694
+ def get_signed_url_from_uri(
1662
1695
  self,
1663
- page_size: Optional[StrictInt] = None,
1664
- resume_token: Optional[StrictStr] = None,
1665
1696
  uri: Optional[StrictStr] = None,
1666
1697
  _request_timeout: Union[
1667
1698
  None,
@@ -1675,14 +1706,10 @@ class UriResourceApi:
1675
1706
  _content_type: Optional[StrictStr] = None,
1676
1707
  _headers: Optional[Dict[StrictStr, Any]] = None,
1677
1708
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1678
- ) -> PagedListFileSystemResponse:
1679
- """List Files
1709
+ ) -> GetSignedUrlResponse:
1710
+ """Get Signed Url
1680
1711
 
1681
1712
 
1682
- :param page_size:
1683
- :type page_size: int
1684
- :param resume_token:
1685
- :type resume_token: str
1686
1713
  :param uri:
1687
1714
  :type uri: str
1688
1715
  :param _request_timeout: timeout setting for this request. If one
@@ -1707,9 +1734,7 @@ class UriResourceApi:
1707
1734
  :return: Returns the result object.
1708
1735
  """ # noqa: E501
1709
1736
 
1710
- _param = self._list_files_serialize(
1711
- page_size=page_size,
1712
- resume_token=resume_token,
1737
+ _param = self._get_signed_url_from_uri_serialize(
1713
1738
  uri=uri,
1714
1739
  _request_auth=_request_auth,
1715
1740
  _content_type=_content_type,
@@ -1718,7 +1743,7 @@ class UriResourceApi:
1718
1743
  )
1719
1744
 
1720
1745
  _response_types_map: Dict[str, Optional[str]] = {
1721
- '200': "PagedListFileSystemResponse",
1746
+ '200': "GetSignedUrlResponse",
1722
1747
  }
1723
1748
  response_data = self.api_client.call_api(
1724
1749
  *_param,
@@ -1732,10 +1757,8 @@ class UriResourceApi:
1732
1757
 
1733
1758
 
1734
1759
  @validate_call
1735
- def list_files_with_http_info(
1760
+ def get_signed_url_from_uri_with_http_info(
1736
1761
  self,
1737
- page_size: Optional[StrictInt] = None,
1738
- resume_token: Optional[StrictStr] = None,
1739
1762
  uri: Optional[StrictStr] = None,
1740
1763
  _request_timeout: Union[
1741
1764
  None,
@@ -1749,14 +1772,10 @@ class UriResourceApi:
1749
1772
  _content_type: Optional[StrictStr] = None,
1750
1773
  _headers: Optional[Dict[StrictStr, Any]] = None,
1751
1774
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1752
- ) -> ApiResponse[PagedListFileSystemResponse]:
1753
- """List Files
1775
+ ) -> ApiResponse[GetSignedUrlResponse]:
1776
+ """Get Signed Url
1754
1777
 
1755
1778
 
1756
- :param page_size:
1757
- :type page_size: int
1758
- :param resume_token:
1759
- :type resume_token: str
1760
1779
  :param uri:
1761
1780
  :type uri: str
1762
1781
  :param _request_timeout: timeout setting for this request. If one
@@ -1781,9 +1800,7 @@ class UriResourceApi:
1781
1800
  :return: Returns the result object.
1782
1801
  """ # noqa: E501
1783
1802
 
1784
- _param = self._list_files_serialize(
1785
- page_size=page_size,
1786
- resume_token=resume_token,
1803
+ _param = self._get_signed_url_from_uri_serialize(
1787
1804
  uri=uri,
1788
1805
  _request_auth=_request_auth,
1789
1806
  _content_type=_content_type,
@@ -1792,7 +1809,7 @@ class UriResourceApi:
1792
1809
  )
1793
1810
 
1794
1811
  _response_types_map: Dict[str, Optional[str]] = {
1795
- '200': "PagedListFileSystemResponse",
1812
+ '200': "GetSignedUrlResponse",
1796
1813
  }
1797
1814
  response_data = self.api_client.call_api(
1798
1815
  *_param,
@@ -1806,10 +1823,8 @@ class UriResourceApi:
1806
1823
 
1807
1824
 
1808
1825
  @validate_call
1809
- def list_files_without_preload_content(
1826
+ def get_signed_url_from_uri_without_preload_content(
1810
1827
  self,
1811
- page_size: Optional[StrictInt] = None,
1812
- resume_token: Optional[StrictStr] = None,
1813
1828
  uri: Optional[StrictStr] = None,
1814
1829
  _request_timeout: Union[
1815
1830
  None,
@@ -1824,13 +1839,9 @@ class UriResourceApi:
1824
1839
  _headers: Optional[Dict[StrictStr, Any]] = None,
1825
1840
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1826
1841
  ) -> RESTResponseType:
1827
- """List Files
1842
+ """Get Signed Url
1828
1843
 
1829
1844
 
1830
- :param page_size:
1831
- :type page_size: int
1832
- :param resume_token:
1833
- :type resume_token: str
1834
1845
  :param uri:
1835
1846
  :type uri: str
1836
1847
  :param _request_timeout: timeout setting for this request. If one
@@ -1855,9 +1866,7 @@ class UriResourceApi:
1855
1866
  :return: Returns the result object.
1856
1867
  """ # noqa: E501
1857
1868
 
1858
- _param = self._list_files_serialize(
1859
- page_size=page_size,
1860
- resume_token=resume_token,
1869
+ _param = self._get_signed_url_from_uri_serialize(
1861
1870
  uri=uri,
1862
1871
  _request_auth=_request_auth,
1863
1872
  _content_type=_content_type,
@@ -1866,7 +1875,7 @@ class UriResourceApi:
1866
1875
  )
1867
1876
 
1868
1877
  _response_types_map: Dict[str, Optional[str]] = {
1869
- '200': "PagedListFileSystemResponse",
1878
+ '200': "GetSignedUrlResponse",
1870
1879
  }
1871
1880
  response_data = self.api_client.call_api(
1872
1881
  *_param,
@@ -1875,10 +1884,8 @@ class UriResourceApi:
1875
1884
  return response_data.response
1876
1885
 
1877
1886
 
1878
- def _list_files_serialize(
1887
+ def _get_signed_url_from_uri_serialize(
1879
1888
  self,
1880
- page_size,
1881
- resume_token,
1882
1889
  uri,
1883
1890
  _request_auth,
1884
1891
  _content_type,
@@ -1902,14 +1909,6 @@ class UriResourceApi:
1902
1909
 
1903
1910
  # process the path parameters
1904
1911
  # process the query parameters
1905
- if page_size is not None:
1906
-
1907
- _query_params.append(('pageSize', page_size))
1908
-
1909
- if resume_token is not None:
1910
-
1911
- _query_params.append(('resumeToken', resume_token))
1912
-
1913
1912
  if uri is not None:
1914
1913
 
1915
1914
  _query_params.append(('uri', uri))
@@ -1934,7 +1933,7 @@ class UriResourceApi:
1934
1933
 
1935
1934
  return self.api_client.param_serialize(
1936
1935
  method='GET',
1937
- resource_path='/api/v1/resources/files',
1936
+ resource_path='/api/v1/resources/signed-url',
1938
1937
  path_params=_path_params,
1939
1938
  query_params=_query_params,
1940
1939
  header_params=_header_params,
@@ -1951,8 +1950,10 @@ class UriResourceApi:
1951
1950
 
1952
1951
 
1953
1952
  @validate_call
1954
- def list_resources(
1953
+ def list_files(
1955
1954
  self,
1955
+ page_size: Optional[StrictInt] = None,
1956
+ resume_token: Optional[StrictStr] = None,
1956
1957
  uri: Optional[StrictStr] = None,
1957
1958
  _request_timeout: Union[
1958
1959
  None,
@@ -1966,10 +1967,14 @@ class UriResourceApi:
1966
1967
  _content_type: Optional[StrictStr] = None,
1967
1968
  _headers: Optional[Dict[StrictStr, Any]] = None,
1968
1969
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1969
- ) -> ListFileSystemResponse:
1970
- """List Resources
1970
+ ) -> PagedListFileSystemResponse:
1971
+ """List Files
1971
1972
 
1972
1973
 
1974
+ :param page_size:
1975
+ :type page_size: int
1976
+ :param resume_token:
1977
+ :type resume_token: str
1973
1978
  :param uri:
1974
1979
  :type uri: str
1975
1980
  :param _request_timeout: timeout setting for this request. If one
@@ -1994,7 +1999,9 @@ class UriResourceApi:
1994
1999
  :return: Returns the result object.
1995
2000
  """ # noqa: E501
1996
2001
 
1997
- _param = self._list_resources_serialize(
2002
+ _param = self._list_files_serialize(
2003
+ page_size=page_size,
2004
+ resume_token=resume_token,
1998
2005
  uri=uri,
1999
2006
  _request_auth=_request_auth,
2000
2007
  _content_type=_content_type,
@@ -2003,7 +2010,7 @@ class UriResourceApi:
2003
2010
  )
2004
2011
 
2005
2012
  _response_types_map: Dict[str, Optional[str]] = {
2006
- '200': "ListFileSystemResponse",
2013
+ '200': "PagedListFileSystemResponse",
2007
2014
  }
2008
2015
  response_data = self.api_client.call_api(
2009
2016
  *_param,
@@ -2017,8 +2024,10 @@ class UriResourceApi:
2017
2024
 
2018
2025
 
2019
2026
  @validate_call
2020
- def list_resources_with_http_info(
2027
+ def list_files_with_http_info(
2021
2028
  self,
2029
+ page_size: Optional[StrictInt] = None,
2030
+ resume_token: Optional[StrictStr] = None,
2022
2031
  uri: Optional[StrictStr] = None,
2023
2032
  _request_timeout: Union[
2024
2033
  None,
@@ -2032,10 +2041,14 @@ class UriResourceApi:
2032
2041
  _content_type: Optional[StrictStr] = None,
2033
2042
  _headers: Optional[Dict[StrictStr, Any]] = None,
2034
2043
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2035
- ) -> ApiResponse[ListFileSystemResponse]:
2036
- """List Resources
2044
+ ) -> ApiResponse[PagedListFileSystemResponse]:
2045
+ """List Files
2037
2046
 
2038
2047
 
2048
+ :param page_size:
2049
+ :type page_size: int
2050
+ :param resume_token:
2051
+ :type resume_token: str
2039
2052
  :param uri:
2040
2053
  :type uri: str
2041
2054
  :param _request_timeout: timeout setting for this request. If one
@@ -2060,7 +2073,9 @@ class UriResourceApi:
2060
2073
  :return: Returns the result object.
2061
2074
  """ # noqa: E501
2062
2075
 
2063
- _param = self._list_resources_serialize(
2076
+ _param = self._list_files_serialize(
2077
+ page_size=page_size,
2078
+ resume_token=resume_token,
2064
2079
  uri=uri,
2065
2080
  _request_auth=_request_auth,
2066
2081
  _content_type=_content_type,
@@ -2069,7 +2084,7 @@ class UriResourceApi:
2069
2084
  )
2070
2085
 
2071
2086
  _response_types_map: Dict[str, Optional[str]] = {
2072
- '200': "ListFileSystemResponse",
2087
+ '200': "PagedListFileSystemResponse",
2073
2088
  }
2074
2089
  response_data = self.api_client.call_api(
2075
2090
  *_param,
@@ -2083,8 +2098,10 @@ class UriResourceApi:
2083
2098
 
2084
2099
 
2085
2100
  @validate_call
2086
- def list_resources_without_preload_content(
2101
+ def list_files_without_preload_content(
2087
2102
  self,
2103
+ page_size: Optional[StrictInt] = None,
2104
+ resume_token: Optional[StrictStr] = None,
2088
2105
  uri: Optional[StrictStr] = None,
2089
2106
  _request_timeout: Union[
2090
2107
  None,
@@ -2099,7 +2116,541 @@ class UriResourceApi:
2099
2116
  _headers: Optional[Dict[StrictStr, Any]] = None,
2100
2117
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2101
2118
  ) -> RESTResponseType:
2102
- """List Resources
2119
+ """List Files
2120
+
2121
+
2122
+ :param page_size:
2123
+ :type page_size: int
2124
+ :param resume_token:
2125
+ :type resume_token: str
2126
+ :param uri:
2127
+ :type uri: str
2128
+ :param _request_timeout: timeout setting for this request. If one
2129
+ number provided, it will be total request
2130
+ timeout. It can also be a pair (tuple) of
2131
+ (connection, read) timeouts.
2132
+ :type _request_timeout: int, tuple(int, int), optional
2133
+ :param _request_auth: set to override the auth_settings for an a single
2134
+ request; this effectively ignores the
2135
+ authentication in the spec for a single request.
2136
+ :type _request_auth: dict, optional
2137
+ :param _content_type: force content-type for the request.
2138
+ :type _content_type: str, Optional
2139
+ :param _headers: set to override the headers for a single
2140
+ request; this effectively ignores the headers
2141
+ in the spec for a single request.
2142
+ :type _headers: dict, optional
2143
+ :param _host_index: set to override the host_index for a single
2144
+ request; this effectively ignores the host_index
2145
+ in the spec for a single request.
2146
+ :type _host_index: int, optional
2147
+ :return: Returns the result object.
2148
+ """ # noqa: E501
2149
+
2150
+ _param = self._list_files_serialize(
2151
+ page_size=page_size,
2152
+ resume_token=resume_token,
2153
+ uri=uri,
2154
+ _request_auth=_request_auth,
2155
+ _content_type=_content_type,
2156
+ _headers=_headers,
2157
+ _host_index=_host_index
2158
+ )
2159
+
2160
+ _response_types_map: Dict[str, Optional[str]] = {
2161
+ '200': "PagedListFileSystemResponse",
2162
+ }
2163
+ response_data = self.api_client.call_api(
2164
+ *_param,
2165
+ _request_timeout=_request_timeout
2166
+ )
2167
+ return response_data.response
2168
+
2169
+
2170
+ def _list_files_serialize(
2171
+ self,
2172
+ page_size,
2173
+ resume_token,
2174
+ uri,
2175
+ _request_auth,
2176
+ _content_type,
2177
+ _headers,
2178
+ _host_index,
2179
+ ) -> RequestSerialized:
2180
+
2181
+ _host = None
2182
+
2183
+ _collection_formats: Dict[str, str] = {
2184
+ }
2185
+
2186
+ _path_params: Dict[str, str] = {}
2187
+ _query_params: List[Tuple[str, str]] = []
2188
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2189
+ _form_params: List[Tuple[str, str]] = []
2190
+ _files: Dict[
2191
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2192
+ ] = {}
2193
+ _body_params: Optional[bytes] = None
2194
+
2195
+ # process the path parameters
2196
+ # process the query parameters
2197
+ if page_size is not None:
2198
+
2199
+ _query_params.append(('pageSize', page_size))
2200
+
2201
+ if resume_token is not None:
2202
+
2203
+ _query_params.append(('resumeToken', resume_token))
2204
+
2205
+ if uri is not None:
2206
+
2207
+ _query_params.append(('uri', uri))
2208
+
2209
+ # process the header parameters
2210
+ # process the form parameters
2211
+ # process the body parameter
2212
+
2213
+
2214
+ # set the HTTP header `Accept`
2215
+ if 'Accept' not in _header_params:
2216
+ _header_params['Accept'] = self.api_client.select_header_accept(
2217
+ [
2218
+ 'application/json'
2219
+ ]
2220
+ )
2221
+
2222
+
2223
+ # authentication setting
2224
+ _auth_settings: List[str] = [
2225
+ ]
2226
+
2227
+ return self.api_client.param_serialize(
2228
+ method='GET',
2229
+ resource_path='/api/v1/resources/files',
2230
+ path_params=_path_params,
2231
+ query_params=_query_params,
2232
+ header_params=_header_params,
2233
+ body=_body_params,
2234
+ post_params=_form_params,
2235
+ files=_files,
2236
+ auth_settings=_auth_settings,
2237
+ collection_formats=_collection_formats,
2238
+ _host=_host,
2239
+ _request_auth=_request_auth
2240
+ )
2241
+
2242
+
2243
+
2244
+
2245
+ @validate_call
2246
+ def list_resources(
2247
+ self,
2248
+ uri: Optional[StrictStr] = None,
2249
+ _request_timeout: Union[
2250
+ None,
2251
+ Annotated[StrictFloat, Field(gt=0)],
2252
+ Tuple[
2253
+ Annotated[StrictFloat, Field(gt=0)],
2254
+ Annotated[StrictFloat, Field(gt=0)]
2255
+ ]
2256
+ ] = None,
2257
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2258
+ _content_type: Optional[StrictStr] = None,
2259
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2260
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2261
+ ) -> ListFileSystemResponse:
2262
+ """List Resources
2263
+
2264
+
2265
+ :param uri:
2266
+ :type uri: str
2267
+ :param _request_timeout: timeout setting for this request. If one
2268
+ number provided, it will be total request
2269
+ timeout. It can also be a pair (tuple) of
2270
+ (connection, read) timeouts.
2271
+ :type _request_timeout: int, tuple(int, int), optional
2272
+ :param _request_auth: set to override the auth_settings for an a single
2273
+ request; this effectively ignores the
2274
+ authentication in the spec for a single request.
2275
+ :type _request_auth: dict, optional
2276
+ :param _content_type: force content-type for the request.
2277
+ :type _content_type: str, Optional
2278
+ :param _headers: set to override the headers for a single
2279
+ request; this effectively ignores the headers
2280
+ in the spec for a single request.
2281
+ :type _headers: dict, optional
2282
+ :param _host_index: set to override the host_index for a single
2283
+ request; this effectively ignores the host_index
2284
+ in the spec for a single request.
2285
+ :type _host_index: int, optional
2286
+ :return: Returns the result object.
2287
+ """ # noqa: E501
2288
+
2289
+ _param = self._list_resources_serialize(
2290
+ uri=uri,
2291
+ _request_auth=_request_auth,
2292
+ _content_type=_content_type,
2293
+ _headers=_headers,
2294
+ _host_index=_host_index
2295
+ )
2296
+
2297
+ _response_types_map: Dict[str, Optional[str]] = {
2298
+ '200': "ListFileSystemResponse",
2299
+ }
2300
+ response_data = self.api_client.call_api(
2301
+ *_param,
2302
+ _request_timeout=_request_timeout
2303
+ )
2304
+ response_data.read()
2305
+ return self.api_client.response_deserialize(
2306
+ response_data=response_data,
2307
+ response_types_map=_response_types_map,
2308
+ ).data
2309
+
2310
+
2311
+ @validate_call
2312
+ def list_resources_with_http_info(
2313
+ self,
2314
+ uri: Optional[StrictStr] = None,
2315
+ _request_timeout: Union[
2316
+ None,
2317
+ Annotated[StrictFloat, Field(gt=0)],
2318
+ Tuple[
2319
+ Annotated[StrictFloat, Field(gt=0)],
2320
+ Annotated[StrictFloat, Field(gt=0)]
2321
+ ]
2322
+ ] = None,
2323
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2324
+ _content_type: Optional[StrictStr] = None,
2325
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2326
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2327
+ ) -> ApiResponse[ListFileSystemResponse]:
2328
+ """List Resources
2329
+
2330
+
2331
+ :param uri:
2332
+ :type uri: str
2333
+ :param _request_timeout: timeout setting for this request. If one
2334
+ number provided, it will be total request
2335
+ timeout. It can also be a pair (tuple) of
2336
+ (connection, read) timeouts.
2337
+ :type _request_timeout: int, tuple(int, int), optional
2338
+ :param _request_auth: set to override the auth_settings for an a single
2339
+ request; this effectively ignores the
2340
+ authentication in the spec for a single request.
2341
+ :type _request_auth: dict, optional
2342
+ :param _content_type: force content-type for the request.
2343
+ :type _content_type: str, Optional
2344
+ :param _headers: set to override the headers for a single
2345
+ request; this effectively ignores the headers
2346
+ in the spec for a single request.
2347
+ :type _headers: dict, optional
2348
+ :param _host_index: set to override the host_index for a single
2349
+ request; this effectively ignores the host_index
2350
+ in the spec for a single request.
2351
+ :type _host_index: int, optional
2352
+ :return: Returns the result object.
2353
+ """ # noqa: E501
2354
+
2355
+ _param = self._list_resources_serialize(
2356
+ uri=uri,
2357
+ _request_auth=_request_auth,
2358
+ _content_type=_content_type,
2359
+ _headers=_headers,
2360
+ _host_index=_host_index
2361
+ )
2362
+
2363
+ _response_types_map: Dict[str, Optional[str]] = {
2364
+ '200': "ListFileSystemResponse",
2365
+ }
2366
+ response_data = self.api_client.call_api(
2367
+ *_param,
2368
+ _request_timeout=_request_timeout
2369
+ )
2370
+ response_data.read()
2371
+ return self.api_client.response_deserialize(
2372
+ response_data=response_data,
2373
+ response_types_map=_response_types_map,
2374
+ )
2375
+
2376
+
2377
+ @validate_call
2378
+ def list_resources_without_preload_content(
2379
+ self,
2380
+ uri: Optional[StrictStr] = None,
2381
+ _request_timeout: Union[
2382
+ None,
2383
+ Annotated[StrictFloat, Field(gt=0)],
2384
+ Tuple[
2385
+ Annotated[StrictFloat, Field(gt=0)],
2386
+ Annotated[StrictFloat, Field(gt=0)]
2387
+ ]
2388
+ ] = None,
2389
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2390
+ _content_type: Optional[StrictStr] = None,
2391
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2392
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2393
+ ) -> RESTResponseType:
2394
+ """List Resources
2395
+
2396
+
2397
+ :param uri:
2398
+ :type uri: str
2399
+ :param _request_timeout: timeout setting for this request. If one
2400
+ number provided, it will be total request
2401
+ timeout. It can also be a pair (tuple) of
2402
+ (connection, read) timeouts.
2403
+ :type _request_timeout: int, tuple(int, int), optional
2404
+ :param _request_auth: set to override the auth_settings for an a single
2405
+ request; this effectively ignores the
2406
+ authentication in the spec for a single request.
2407
+ :type _request_auth: dict, optional
2408
+ :param _content_type: force content-type for the request.
2409
+ :type _content_type: str, Optional
2410
+ :param _headers: set to override the headers for a single
2411
+ request; this effectively ignores the headers
2412
+ in the spec for a single request.
2413
+ :type _headers: dict, optional
2414
+ :param _host_index: set to override the host_index for a single
2415
+ request; this effectively ignores the host_index
2416
+ in the spec for a single request.
2417
+ :type _host_index: int, optional
2418
+ :return: Returns the result object.
2419
+ """ # noqa: E501
2420
+
2421
+ _param = self._list_resources_serialize(
2422
+ uri=uri,
2423
+ _request_auth=_request_auth,
2424
+ _content_type=_content_type,
2425
+ _headers=_headers,
2426
+ _host_index=_host_index
2427
+ )
2428
+
2429
+ _response_types_map: Dict[str, Optional[str]] = {
2430
+ '200': "ListFileSystemResponse",
2431
+ }
2432
+ response_data = self.api_client.call_api(
2433
+ *_param,
2434
+ _request_timeout=_request_timeout
2435
+ )
2436
+ return response_data.response
2437
+
2438
+
2439
+ def _list_resources_serialize(
2440
+ self,
2441
+ uri,
2442
+ _request_auth,
2443
+ _content_type,
2444
+ _headers,
2445
+ _host_index,
2446
+ ) -> RequestSerialized:
2447
+
2448
+ _host = None
2449
+
2450
+ _collection_formats: Dict[str, str] = {
2451
+ }
2452
+
2453
+ _path_params: Dict[str, str] = {}
2454
+ _query_params: List[Tuple[str, str]] = []
2455
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2456
+ _form_params: List[Tuple[str, str]] = []
2457
+ _files: Dict[
2458
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2459
+ ] = {}
2460
+ _body_params: Optional[bytes] = None
2461
+
2462
+ # process the path parameters
2463
+ # process the query parameters
2464
+ if uri is not None:
2465
+
2466
+ _query_params.append(('uri', uri))
2467
+
2468
+ # process the header parameters
2469
+ # process the form parameters
2470
+ # process the body parameter
2471
+
2472
+
2473
+ # set the HTTP header `Accept`
2474
+ if 'Accept' not in _header_params:
2475
+ _header_params['Accept'] = self.api_client.select_header_accept(
2476
+ [
2477
+ 'application/json'
2478
+ ]
2479
+ )
2480
+
2481
+
2482
+ # authentication setting
2483
+ _auth_settings: List[str] = [
2484
+ ]
2485
+
2486
+ return self.api_client.param_serialize(
2487
+ method='GET',
2488
+ resource_path='/api/v1/resources/list',
2489
+ path_params=_path_params,
2490
+ query_params=_query_params,
2491
+ header_params=_header_params,
2492
+ body=_body_params,
2493
+ post_params=_form_params,
2494
+ files=_files,
2495
+ auth_settings=_auth_settings,
2496
+ collection_formats=_collection_formats,
2497
+ _host=_host,
2498
+ _request_auth=_request_auth
2499
+ )
2500
+
2501
+
2502
+
2503
+
2504
+ @validate_call
2505
+ def remove_resource(
2506
+ self,
2507
+ uri: Optional[StrictStr] = None,
2508
+ _request_timeout: Union[
2509
+ None,
2510
+ Annotated[StrictFloat, Field(gt=0)],
2511
+ Tuple[
2512
+ Annotated[StrictFloat, Field(gt=0)],
2513
+ Annotated[StrictFloat, Field(gt=0)]
2514
+ ]
2515
+ ] = None,
2516
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2517
+ _content_type: Optional[StrictStr] = None,
2518
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2519
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2520
+ ) -> None:
2521
+ """Remove Resource
2522
+
2523
+
2524
+ :param uri:
2525
+ :type uri: str
2526
+ :param _request_timeout: timeout setting for this request. If one
2527
+ number provided, it will be total request
2528
+ timeout. It can also be a pair (tuple) of
2529
+ (connection, read) timeouts.
2530
+ :type _request_timeout: int, tuple(int, int), optional
2531
+ :param _request_auth: set to override the auth_settings for an a single
2532
+ request; this effectively ignores the
2533
+ authentication in the spec for a single request.
2534
+ :type _request_auth: dict, optional
2535
+ :param _content_type: force content-type for the request.
2536
+ :type _content_type: str, Optional
2537
+ :param _headers: set to override the headers for a single
2538
+ request; this effectively ignores the headers
2539
+ in the spec for a single request.
2540
+ :type _headers: dict, optional
2541
+ :param _host_index: set to override the host_index for a single
2542
+ request; this effectively ignores the host_index
2543
+ in the spec for a single request.
2544
+ :type _host_index: int, optional
2545
+ :return: Returns the result object.
2546
+ """ # noqa: E501
2547
+
2548
+ _param = self._remove_resource_serialize(
2549
+ uri=uri,
2550
+ _request_auth=_request_auth,
2551
+ _content_type=_content_type,
2552
+ _headers=_headers,
2553
+ _host_index=_host_index
2554
+ )
2555
+
2556
+ _response_types_map: Dict[str, Optional[str]] = {
2557
+ '204': None,
2558
+ }
2559
+ response_data = self.api_client.call_api(
2560
+ *_param,
2561
+ _request_timeout=_request_timeout
2562
+ )
2563
+ response_data.read()
2564
+ return self.api_client.response_deserialize(
2565
+ response_data=response_data,
2566
+ response_types_map=_response_types_map,
2567
+ ).data
2568
+
2569
+
2570
+ @validate_call
2571
+ def remove_resource_with_http_info(
2572
+ self,
2573
+ uri: Optional[StrictStr] = None,
2574
+ _request_timeout: Union[
2575
+ None,
2576
+ Annotated[StrictFloat, Field(gt=0)],
2577
+ Tuple[
2578
+ Annotated[StrictFloat, Field(gt=0)],
2579
+ Annotated[StrictFloat, Field(gt=0)]
2580
+ ]
2581
+ ] = None,
2582
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2583
+ _content_type: Optional[StrictStr] = None,
2584
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2585
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2586
+ ) -> ApiResponse[None]:
2587
+ """Remove Resource
2588
+
2589
+
2590
+ :param uri:
2591
+ :type uri: str
2592
+ :param _request_timeout: timeout setting for this request. If one
2593
+ number provided, it will be total request
2594
+ timeout. It can also be a pair (tuple) of
2595
+ (connection, read) timeouts.
2596
+ :type _request_timeout: int, tuple(int, int), optional
2597
+ :param _request_auth: set to override the auth_settings for an a single
2598
+ request; this effectively ignores the
2599
+ authentication in the spec for a single request.
2600
+ :type _request_auth: dict, optional
2601
+ :param _content_type: force content-type for the request.
2602
+ :type _content_type: str, Optional
2603
+ :param _headers: set to override the headers for a single
2604
+ request; this effectively ignores the headers
2605
+ in the spec for a single request.
2606
+ :type _headers: dict, optional
2607
+ :param _host_index: set to override the host_index for a single
2608
+ request; this effectively ignores the host_index
2609
+ in the spec for a single request.
2610
+ :type _host_index: int, optional
2611
+ :return: Returns the result object.
2612
+ """ # noqa: E501
2613
+
2614
+ _param = self._remove_resource_serialize(
2615
+ uri=uri,
2616
+ _request_auth=_request_auth,
2617
+ _content_type=_content_type,
2618
+ _headers=_headers,
2619
+ _host_index=_host_index
2620
+ )
2621
+
2622
+ _response_types_map: Dict[str, Optional[str]] = {
2623
+ '204': None,
2624
+ }
2625
+ response_data = self.api_client.call_api(
2626
+ *_param,
2627
+ _request_timeout=_request_timeout
2628
+ )
2629
+ response_data.read()
2630
+ return self.api_client.response_deserialize(
2631
+ response_data=response_data,
2632
+ response_types_map=_response_types_map,
2633
+ )
2634
+
2635
+
2636
+ @validate_call
2637
+ def remove_resource_without_preload_content(
2638
+ self,
2639
+ uri: Optional[StrictStr] = None,
2640
+ _request_timeout: Union[
2641
+ None,
2642
+ Annotated[StrictFloat, Field(gt=0)],
2643
+ Tuple[
2644
+ Annotated[StrictFloat, Field(gt=0)],
2645
+ Annotated[StrictFloat, Field(gt=0)]
2646
+ ]
2647
+ ] = None,
2648
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2649
+ _content_type: Optional[StrictStr] = None,
2650
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2651
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2652
+ ) -> RESTResponseType:
2653
+ """Remove Resource
2103
2654
 
2104
2655
 
2105
2656
  :param uri:
@@ -2126,7 +2677,7 @@ class UriResourceApi:
2126
2677
  :return: Returns the result object.
2127
2678
  """ # noqa: E501
2128
2679
 
2129
- _param = self._list_resources_serialize(
2680
+ _param = self._remove_resource_serialize(
2130
2681
  uri=uri,
2131
2682
  _request_auth=_request_auth,
2132
2683
  _content_type=_content_type,
@@ -2135,7 +2686,7 @@ class UriResourceApi:
2135
2686
  )
2136
2687
 
2137
2688
  _response_types_map: Dict[str, Optional[str]] = {
2138
- '200': "ListFileSystemResponse",
2689
+ '204': None,
2139
2690
  }
2140
2691
  response_data = self.api_client.call_api(
2141
2692
  *_param,
@@ -2144,7 +2695,7 @@ class UriResourceApi:
2144
2695
  return response_data.response
2145
2696
 
2146
2697
 
2147
- def _list_resources_serialize(
2698
+ def _remove_resource_serialize(
2148
2699
  self,
2149
2700
  uri,
2150
2701
  _request_auth,
@@ -2178,13 +2729,6 @@ class UriResourceApi:
2178
2729
  # process the body parameter
2179
2730
 
2180
2731
 
2181
- # set the HTTP header `Accept`
2182
- if 'Accept' not in _header_params:
2183
- _header_params['Accept'] = self.api_client.select_header_accept(
2184
- [
2185
- 'application/json'
2186
- ]
2187
- )
2188
2732
 
2189
2733
 
2190
2734
  # authentication setting
@@ -2192,8 +2736,8 @@ class UriResourceApi:
2192
2736
  ]
2193
2737
 
2194
2738
  return self.api_client.param_serialize(
2195
- method='GET',
2196
- resource_path='/api/v1/resources/list',
2739
+ method='DELETE',
2740
+ resource_path='/api/v1/resources/remove',
2197
2741
  path_params=_path_params,
2198
2742
  query_params=_query_params,
2199
2743
  header_params=_header_params,
@@ -2210,8 +2754,9 @@ class UriResourceApi:
2210
2754
 
2211
2755
 
2212
2756
  @validate_call
2213
- def remove_resource(
2757
+ def remove_tag_from_file(
2214
2758
  self,
2759
+ remove_tag_from_file_request: RemoveTagFromFileRequest,
2215
2760
  uri: Optional[StrictStr] = None,
2216
2761
  _request_timeout: Union[
2217
2762
  None,
@@ -2226,9 +2771,11 @@ class UriResourceApi:
2226
2771
  _headers: Optional[Dict[StrictStr, Any]] = None,
2227
2772
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2228
2773
  ) -> None:
2229
- """Remove Resource
2774
+ """Remove Tag From File
2230
2775
 
2231
2776
 
2777
+ :param remove_tag_from_file_request: (required)
2778
+ :type remove_tag_from_file_request: RemoveTagFromFileRequest
2232
2779
  :param uri:
2233
2780
  :type uri: str
2234
2781
  :param _request_timeout: timeout setting for this request. If one
@@ -2253,7 +2800,8 @@ class UriResourceApi:
2253
2800
  :return: Returns the result object.
2254
2801
  """ # noqa: E501
2255
2802
 
2256
- _param = self._remove_resource_serialize(
2803
+ _param = self._remove_tag_from_file_serialize(
2804
+ remove_tag_from_file_request=remove_tag_from_file_request,
2257
2805
  uri=uri,
2258
2806
  _request_auth=_request_auth,
2259
2807
  _content_type=_content_type,
@@ -2262,7 +2810,8 @@ class UriResourceApi:
2262
2810
  )
2263
2811
 
2264
2812
  _response_types_map: Dict[str, Optional[str]] = {
2265
- '204': None,
2813
+ '201': None,
2814
+ '400': None,
2266
2815
  }
2267
2816
  response_data = self.api_client.call_api(
2268
2817
  *_param,
@@ -2276,8 +2825,9 @@ class UriResourceApi:
2276
2825
 
2277
2826
 
2278
2827
  @validate_call
2279
- def remove_resource_with_http_info(
2828
+ def remove_tag_from_file_with_http_info(
2280
2829
  self,
2830
+ remove_tag_from_file_request: RemoveTagFromFileRequest,
2281
2831
  uri: Optional[StrictStr] = None,
2282
2832
  _request_timeout: Union[
2283
2833
  None,
@@ -2292,9 +2842,11 @@ class UriResourceApi:
2292
2842
  _headers: Optional[Dict[StrictStr, Any]] = None,
2293
2843
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2294
2844
  ) -> ApiResponse[None]:
2295
- """Remove Resource
2845
+ """Remove Tag From File
2296
2846
 
2297
2847
 
2848
+ :param remove_tag_from_file_request: (required)
2849
+ :type remove_tag_from_file_request: RemoveTagFromFileRequest
2298
2850
  :param uri:
2299
2851
  :type uri: str
2300
2852
  :param _request_timeout: timeout setting for this request. If one
@@ -2319,7 +2871,8 @@ class UriResourceApi:
2319
2871
  :return: Returns the result object.
2320
2872
  """ # noqa: E501
2321
2873
 
2322
- _param = self._remove_resource_serialize(
2874
+ _param = self._remove_tag_from_file_serialize(
2875
+ remove_tag_from_file_request=remove_tag_from_file_request,
2323
2876
  uri=uri,
2324
2877
  _request_auth=_request_auth,
2325
2878
  _content_type=_content_type,
@@ -2328,7 +2881,8 @@ class UriResourceApi:
2328
2881
  )
2329
2882
 
2330
2883
  _response_types_map: Dict[str, Optional[str]] = {
2331
- '204': None,
2884
+ '201': None,
2885
+ '400': None,
2332
2886
  }
2333
2887
  response_data = self.api_client.call_api(
2334
2888
  *_param,
@@ -2342,8 +2896,9 @@ class UriResourceApi:
2342
2896
 
2343
2897
 
2344
2898
  @validate_call
2345
- def remove_resource_without_preload_content(
2899
+ def remove_tag_from_file_without_preload_content(
2346
2900
  self,
2901
+ remove_tag_from_file_request: RemoveTagFromFileRequest,
2347
2902
  uri: Optional[StrictStr] = None,
2348
2903
  _request_timeout: Union[
2349
2904
  None,
@@ -2358,9 +2913,11 @@ class UriResourceApi:
2358
2913
  _headers: Optional[Dict[StrictStr, Any]] = None,
2359
2914
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2360
2915
  ) -> RESTResponseType:
2361
- """Remove Resource
2916
+ """Remove Tag From File
2362
2917
 
2363
2918
 
2919
+ :param remove_tag_from_file_request: (required)
2920
+ :type remove_tag_from_file_request: RemoveTagFromFileRequest
2364
2921
  :param uri:
2365
2922
  :type uri: str
2366
2923
  :param _request_timeout: timeout setting for this request. If one
@@ -2385,7 +2942,8 @@ class UriResourceApi:
2385
2942
  :return: Returns the result object.
2386
2943
  """ # noqa: E501
2387
2944
 
2388
- _param = self._remove_resource_serialize(
2945
+ _param = self._remove_tag_from_file_serialize(
2946
+ remove_tag_from_file_request=remove_tag_from_file_request,
2389
2947
  uri=uri,
2390
2948
  _request_auth=_request_auth,
2391
2949
  _content_type=_content_type,
@@ -2394,7 +2952,8 @@ class UriResourceApi:
2394
2952
  )
2395
2953
 
2396
2954
  _response_types_map: Dict[str, Optional[str]] = {
2397
- '204': None,
2955
+ '201': None,
2956
+ '400': None,
2398
2957
  }
2399
2958
  response_data = self.api_client.call_api(
2400
2959
  *_param,
@@ -2403,8 +2962,9 @@ class UriResourceApi:
2403
2962
  return response_data.response
2404
2963
 
2405
2964
 
2406
- def _remove_resource_serialize(
2965
+ def _remove_tag_from_file_serialize(
2407
2966
  self,
2967
+ remove_tag_from_file_request,
2408
2968
  uri,
2409
2969
  _request_auth,
2410
2970
  _content_type,
@@ -2435,17 +2995,32 @@ class UriResourceApi:
2435
2995
  # process the header parameters
2436
2996
  # process the form parameters
2437
2997
  # process the body parameter
2998
+ if remove_tag_from_file_request is not None:
2999
+ _body_params = remove_tag_from_file_request
2438
3000
 
2439
3001
 
2440
3002
 
3003
+ # set the HTTP header `Content-Type`
3004
+ if _content_type:
3005
+ _header_params['Content-Type'] = _content_type
3006
+ else:
3007
+ _default_content_type = (
3008
+ self.api_client.select_header_content_type(
3009
+ [
3010
+ 'application/json'
3011
+ ]
3012
+ )
3013
+ )
3014
+ if _default_content_type is not None:
3015
+ _header_params['Content-Type'] = _default_content_type
2441
3016
 
2442
3017
  # authentication setting
2443
3018
  _auth_settings: List[str] = [
2444
3019
  ]
2445
3020
 
2446
3021
  return self.api_client.param_serialize(
2447
- method='DELETE',
2448
- resource_path='/api/v1/resources/remove',
3022
+ method='POST',
3023
+ resource_path='/api/v1/resources/untag',
2449
3024
  path_params=_path_params,
2450
3025
  query_params=_query_params,
2451
3026
  header_params=_header_params,
@@ -2462,9 +3037,11 @@ class UriResourceApi:
2462
3037
 
2463
3038
 
2464
3039
  @validate_call
2465
- def remove_tag_from_file(
3040
+ def upload_resource(
2466
3041
  self,
2467
- remove_tag_from_file_request: RemoveTagFromFileRequest,
3042
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
3043
+ filename: Annotated[str, Field(strict=True)],
3044
+ overwrite: Optional[StrictBool] = None,
2468
3045
  uri: Optional[StrictStr] = None,
2469
3046
  _request_timeout: Union[
2470
3047
  None,
@@ -2478,12 +3055,16 @@ class UriResourceApi:
2478
3055
  _content_type: Optional[StrictStr] = None,
2479
3056
  _headers: Optional[Dict[StrictStr, Any]] = None,
2480
3057
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2481
- ) -> None:
2482
- """Remove Tag From File
3058
+ ) -> UploadFileToManagedFileSystemResponse:
3059
+ """Upload
2483
3060
 
2484
3061
 
2485
- :param remove_tag_from_file_request: (required)
2486
- :type remove_tag_from_file_request: RemoveTagFromFileRequest
3062
+ :param file: (required)
3063
+ :type file: bytearray
3064
+ :param filename: (required)
3065
+ :type filename: str
3066
+ :param overwrite:
3067
+ :type overwrite: bool
2487
3068
  :param uri:
2488
3069
  :type uri: str
2489
3070
  :param _request_timeout: timeout setting for this request. If one
@@ -2508,8 +3089,10 @@ class UriResourceApi:
2508
3089
  :return: Returns the result object.
2509
3090
  """ # noqa: E501
2510
3091
 
2511
- _param = self._remove_tag_from_file_serialize(
2512
- remove_tag_from_file_request=remove_tag_from_file_request,
3092
+ _param = self._upload_resource_serialize(
3093
+ file=file,
3094
+ filename=filename,
3095
+ overwrite=overwrite,
2513
3096
  uri=uri,
2514
3097
  _request_auth=_request_auth,
2515
3098
  _content_type=_content_type,
@@ -2518,8 +3101,7 @@ class UriResourceApi:
2518
3101
  )
2519
3102
 
2520
3103
  _response_types_map: Dict[str, Optional[str]] = {
2521
- '201': None,
2522
- '400': None,
3104
+ '200': "UploadFileToManagedFileSystemResponse",
2523
3105
  }
2524
3106
  response_data = self.api_client.call_api(
2525
3107
  *_param,
@@ -2533,9 +3115,11 @@ class UriResourceApi:
2533
3115
 
2534
3116
 
2535
3117
  @validate_call
2536
- def remove_tag_from_file_with_http_info(
3118
+ def upload_resource_with_http_info(
2537
3119
  self,
2538
- remove_tag_from_file_request: RemoveTagFromFileRequest,
3120
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
3121
+ filename: Annotated[str, Field(strict=True)],
3122
+ overwrite: Optional[StrictBool] = None,
2539
3123
  uri: Optional[StrictStr] = None,
2540
3124
  _request_timeout: Union[
2541
3125
  None,
@@ -2549,12 +3133,16 @@ class UriResourceApi:
2549
3133
  _content_type: Optional[StrictStr] = None,
2550
3134
  _headers: Optional[Dict[StrictStr, Any]] = None,
2551
3135
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2552
- ) -> ApiResponse[None]:
2553
- """Remove Tag From File
3136
+ ) -> ApiResponse[UploadFileToManagedFileSystemResponse]:
3137
+ """Upload
2554
3138
 
2555
3139
 
2556
- :param remove_tag_from_file_request: (required)
2557
- :type remove_tag_from_file_request: RemoveTagFromFileRequest
3140
+ :param file: (required)
3141
+ :type file: bytearray
3142
+ :param filename: (required)
3143
+ :type filename: str
3144
+ :param overwrite:
3145
+ :type overwrite: bool
2558
3146
  :param uri:
2559
3147
  :type uri: str
2560
3148
  :param _request_timeout: timeout setting for this request. If one
@@ -2579,8 +3167,10 @@ class UriResourceApi:
2579
3167
  :return: Returns the result object.
2580
3168
  """ # noqa: E501
2581
3169
 
2582
- _param = self._remove_tag_from_file_serialize(
2583
- remove_tag_from_file_request=remove_tag_from_file_request,
3170
+ _param = self._upload_resource_serialize(
3171
+ file=file,
3172
+ filename=filename,
3173
+ overwrite=overwrite,
2584
3174
  uri=uri,
2585
3175
  _request_auth=_request_auth,
2586
3176
  _content_type=_content_type,
@@ -2589,8 +3179,7 @@ class UriResourceApi:
2589
3179
  )
2590
3180
 
2591
3181
  _response_types_map: Dict[str, Optional[str]] = {
2592
- '201': None,
2593
- '400': None,
3182
+ '200': "UploadFileToManagedFileSystemResponse",
2594
3183
  }
2595
3184
  response_data = self.api_client.call_api(
2596
3185
  *_param,
@@ -2604,9 +3193,11 @@ class UriResourceApi:
2604
3193
 
2605
3194
 
2606
3195
  @validate_call
2607
- def remove_tag_from_file_without_preload_content(
3196
+ def upload_resource_without_preload_content(
2608
3197
  self,
2609
- remove_tag_from_file_request: RemoveTagFromFileRequest,
3198
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
3199
+ filename: Annotated[str, Field(strict=True)],
3200
+ overwrite: Optional[StrictBool] = None,
2610
3201
  uri: Optional[StrictStr] = None,
2611
3202
  _request_timeout: Union[
2612
3203
  None,
@@ -2621,11 +3212,15 @@ class UriResourceApi:
2621
3212
  _headers: Optional[Dict[StrictStr, Any]] = None,
2622
3213
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2623
3214
  ) -> RESTResponseType:
2624
- """Remove Tag From File
3215
+ """Upload
2625
3216
 
2626
3217
 
2627
- :param remove_tag_from_file_request: (required)
2628
- :type remove_tag_from_file_request: RemoveTagFromFileRequest
3218
+ :param file: (required)
3219
+ :type file: bytearray
3220
+ :param filename: (required)
3221
+ :type filename: str
3222
+ :param overwrite:
3223
+ :type overwrite: bool
2629
3224
  :param uri:
2630
3225
  :type uri: str
2631
3226
  :param _request_timeout: timeout setting for this request. If one
@@ -2650,8 +3245,10 @@ class UriResourceApi:
2650
3245
  :return: Returns the result object.
2651
3246
  """ # noqa: E501
2652
3247
 
2653
- _param = self._remove_tag_from_file_serialize(
2654
- remove_tag_from_file_request=remove_tag_from_file_request,
3248
+ _param = self._upload_resource_serialize(
3249
+ file=file,
3250
+ filename=filename,
3251
+ overwrite=overwrite,
2655
3252
  uri=uri,
2656
3253
  _request_auth=_request_auth,
2657
3254
  _content_type=_content_type,
@@ -2660,8 +3257,7 @@ class UriResourceApi:
2660
3257
  )
2661
3258
 
2662
3259
  _response_types_map: Dict[str, Optional[str]] = {
2663
- '201': None,
2664
- '400': None,
3260
+ '200': "UploadFileToManagedFileSystemResponse",
2665
3261
  }
2666
3262
  response_data = self.api_client.call_api(
2667
3263
  *_param,
@@ -2670,9 +3266,11 @@ class UriResourceApi:
2670
3266
  return response_data.response
2671
3267
 
2672
3268
 
2673
- def _remove_tag_from_file_serialize(
3269
+ def _upload_resource_serialize(
2674
3270
  self,
2675
- remove_tag_from_file_request,
3271
+ file,
3272
+ filename,
3273
+ overwrite,
2676
3274
  uri,
2677
3275
  _request_auth,
2678
3276
  _content_type,
@@ -2696,17 +3294,30 @@ class UriResourceApi:
2696
3294
 
2697
3295
  # process the path parameters
2698
3296
  # process the query parameters
3297
+ if overwrite is not None:
3298
+
3299
+ _query_params.append(('overwrite', overwrite))
3300
+
2699
3301
  if uri is not None:
2700
3302
 
2701
3303
  _query_params.append(('uri', uri))
2702
3304
 
2703
3305
  # process the header parameters
2704
3306
  # process the form parameters
3307
+ if file is not None:
3308
+ _files['file'] = file
3309
+ if filename is not None:
3310
+ _form_params.append(('filename', filename))
2705
3311
  # process the body parameter
2706
- if remove_tag_from_file_request is not None:
2707
- _body_params = remove_tag_from_file_request
2708
3312
 
2709
3313
 
3314
+ # set the HTTP header `Accept`
3315
+ if 'Accept' not in _header_params:
3316
+ _header_params['Accept'] = self.api_client.select_header_accept(
3317
+ [
3318
+ 'application/json'
3319
+ ]
3320
+ )
2710
3321
 
2711
3322
  # set the HTTP header `Content-Type`
2712
3323
  if _content_type:
@@ -2715,7 +3326,7 @@ class UriResourceApi:
2715
3326
  _default_content_type = (
2716
3327
  self.api_client.select_header_content_type(
2717
3328
  [
2718
- 'application/json'
3329
+ 'multipart/form-data'
2719
3330
  ]
2720
3331
  )
2721
3332
  )
@@ -2728,7 +3339,7 @@ class UriResourceApi:
2728
3339
 
2729
3340
  return self.api_client.param_serialize(
2730
3341
  method='POST',
2731
- resource_path='/api/v1/resources/untag',
3342
+ resource_path='/api/v1/resources/upload',
2732
3343
  path_params=_path_params,
2733
3344
  query_params=_query_params,
2734
3345
  header_params=_header_params,
@@ -2745,7 +3356,7 @@ class UriResourceApi:
2745
3356
 
2746
3357
 
2747
3358
  @validate_call
2748
- def upload_resource(
3359
+ def upload_resource_v2(
2749
3360
  self,
2750
3361
  file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2751
3362
  filename: Annotated[str, Field(strict=True)],
@@ -2763,8 +3374,8 @@ class UriResourceApi:
2763
3374
  _content_type: Optional[StrictStr] = None,
2764
3375
  _headers: Optional[Dict[StrictStr, Any]] = None,
2765
3376
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2766
- ) -> UploadFileToManagedFileSystemResponse:
2767
- """Upload
3377
+ ) -> UploadResourceResponseV2:
3378
+ """Upload file and return the resulting URI
2768
3379
 
2769
3380
 
2770
3381
  :param file: (required)
@@ -2797,7 +3408,7 @@ class UriResourceApi:
2797
3408
  :return: Returns the result object.
2798
3409
  """ # noqa: E501
2799
3410
 
2800
- _param = self._upload_resource_serialize(
3411
+ _param = self._upload_resource_v2_serialize(
2801
3412
  file=file,
2802
3413
  filename=filename,
2803
3414
  overwrite=overwrite,
@@ -2809,7 +3420,7 @@ class UriResourceApi:
2809
3420
  )
2810
3421
 
2811
3422
  _response_types_map: Dict[str, Optional[str]] = {
2812
- '200': "UploadFileToManagedFileSystemResponse",
3423
+ '200': "UploadResourceResponseV2",
2813
3424
  }
2814
3425
  response_data = self.api_client.call_api(
2815
3426
  *_param,
@@ -2823,7 +3434,7 @@ class UriResourceApi:
2823
3434
 
2824
3435
 
2825
3436
  @validate_call
2826
- def upload_resource_with_http_info(
3437
+ def upload_resource_v2_with_http_info(
2827
3438
  self,
2828
3439
  file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2829
3440
  filename: Annotated[str, Field(strict=True)],
@@ -2841,8 +3452,8 @@ class UriResourceApi:
2841
3452
  _content_type: Optional[StrictStr] = None,
2842
3453
  _headers: Optional[Dict[StrictStr, Any]] = None,
2843
3454
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2844
- ) -> ApiResponse[UploadFileToManagedFileSystemResponse]:
2845
- """Upload
3455
+ ) -> ApiResponse[UploadResourceResponseV2]:
3456
+ """Upload file and return the resulting URI
2846
3457
 
2847
3458
 
2848
3459
  :param file: (required)
@@ -2875,7 +3486,7 @@ class UriResourceApi:
2875
3486
  :return: Returns the result object.
2876
3487
  """ # noqa: E501
2877
3488
 
2878
- _param = self._upload_resource_serialize(
3489
+ _param = self._upload_resource_v2_serialize(
2879
3490
  file=file,
2880
3491
  filename=filename,
2881
3492
  overwrite=overwrite,
@@ -2887,7 +3498,7 @@ class UriResourceApi:
2887
3498
  )
2888
3499
 
2889
3500
  _response_types_map: Dict[str, Optional[str]] = {
2890
- '200': "UploadFileToManagedFileSystemResponse",
3501
+ '200': "UploadResourceResponseV2",
2891
3502
  }
2892
3503
  response_data = self.api_client.call_api(
2893
3504
  *_param,
@@ -2901,7 +3512,7 @@ class UriResourceApi:
2901
3512
 
2902
3513
 
2903
3514
  @validate_call
2904
- def upload_resource_without_preload_content(
3515
+ def upload_resource_v2_without_preload_content(
2905
3516
  self,
2906
3517
  file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2907
3518
  filename: Annotated[str, Field(strict=True)],
@@ -2920,7 +3531,7 @@ class UriResourceApi:
2920
3531
  _headers: Optional[Dict[StrictStr, Any]] = None,
2921
3532
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2922
3533
  ) -> RESTResponseType:
2923
- """Upload
3534
+ """Upload file and return the resulting URI
2924
3535
 
2925
3536
 
2926
3537
  :param file: (required)
@@ -2953,7 +3564,7 @@ class UriResourceApi:
2953
3564
  :return: Returns the result object.
2954
3565
  """ # noqa: E501
2955
3566
 
2956
- _param = self._upload_resource_serialize(
3567
+ _param = self._upload_resource_v2_serialize(
2957
3568
  file=file,
2958
3569
  filename=filename,
2959
3570
  overwrite=overwrite,
@@ -2965,7 +3576,7 @@ class UriResourceApi:
2965
3576
  )
2966
3577
 
2967
3578
  _response_types_map: Dict[str, Optional[str]] = {
2968
- '200': "UploadFileToManagedFileSystemResponse",
3579
+ '200': "UploadResourceResponseV2",
2969
3580
  }
2970
3581
  response_data = self.api_client.call_api(
2971
3582
  *_param,
@@ -2974,7 +3585,7 @@ class UriResourceApi:
2974
3585
  return response_data.response
2975
3586
 
2976
3587
 
2977
- def _upload_resource_serialize(
3588
+ def _upload_resource_v2_serialize(
2978
3589
  self,
2979
3590
  file,
2980
3591
  filename,
@@ -3047,7 +3658,7 @@ class UriResourceApi:
3047
3658
 
3048
3659
  return self.api_client.param_serialize(
3049
3660
  method='POST',
3050
- resource_path='/api/v1/resources/upload',
3661
+ resource_path='/api/v2/resources/upload',
3051
3662
  path_params=_path_params,
3052
3663
  query_params=_query_params,
3053
3664
  header_params=_header_params,