perceptic-core-client 0.7.2__py3-none-any.whl → 0.7.5__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,17 @@ 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
22
+ from perceptic_core_client.models.create_folder_request import CreateFolderRequest
23
+ from perceptic_core_client.models.create_folder_response import CreateFolderResponse
21
24
  from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
22
25
  from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
23
26
  from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
24
27
  from perceptic_core_client.models.list_file_system_response import ListFileSystemResponse
25
28
  from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
29
+ from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
26
30
 
27
31
  from perceptic_core_client.api_client import ApiClient, RequestSerialized
28
32
  from perceptic_core_client.api_response import ApiResponse
@@ -43,8 +47,9 @@ class UriResourceApi:
43
47
 
44
48
 
45
49
  @validate_call
46
- def api_v1_resources_download_get(
50
+ def create_folder(
47
51
  self,
52
+ create_folder_request: CreateFolderRequest,
48
53
  uri: Optional[StrictStr] = None,
49
54
  _request_timeout: Union[
50
55
  None,
@@ -58,10 +63,12 @@ class UriResourceApi:
58
63
  _content_type: Optional[StrictStr] = None,
59
64
  _headers: Optional[Dict[StrictStr, Any]] = None,
60
65
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
- ) -> bytearray:
62
- """Download Resource
66
+ ) -> CreateFolderResponse:
67
+ """Create Folder
63
68
 
64
69
 
70
+ :param create_folder_request: (required)
71
+ :type create_folder_request: CreateFolderRequest
65
72
  :param uri:
66
73
  :type uri: str
67
74
  :param _request_timeout: timeout setting for this request. If one
@@ -86,7 +93,8 @@ class UriResourceApi:
86
93
  :return: Returns the result object.
87
94
  """ # noqa: E501
88
95
 
89
- _param = self._api_v1_resources_download_get_serialize(
96
+ _param = self._create_folder_serialize(
97
+ create_folder_request=create_folder_request,
90
98
  uri=uri,
91
99
  _request_auth=_request_auth,
92
100
  _content_type=_content_type,
@@ -95,7 +103,8 @@ class UriResourceApi:
95
103
  )
96
104
 
97
105
  _response_types_map: Dict[str, Optional[str]] = {
98
- '200': "bytearray",
106
+ '200': "CreateFolderResponse",
107
+ '400': None,
99
108
  }
100
109
  response_data = self.api_client.call_api(
101
110
  *_param,
@@ -109,8 +118,9 @@ class UriResourceApi:
109
118
 
110
119
 
111
120
  @validate_call
112
- def api_v1_resources_download_get_with_http_info(
121
+ def create_folder_with_http_info(
113
122
  self,
123
+ create_folder_request: CreateFolderRequest,
114
124
  uri: Optional[StrictStr] = None,
115
125
  _request_timeout: Union[
116
126
  None,
@@ -124,10 +134,12 @@ class UriResourceApi:
124
134
  _content_type: Optional[StrictStr] = None,
125
135
  _headers: Optional[Dict[StrictStr, Any]] = None,
126
136
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[bytearray]:
128
- """Download Resource
137
+ ) -> ApiResponse[CreateFolderResponse]:
138
+ """Create Folder
129
139
 
130
140
 
141
+ :param create_folder_request: (required)
142
+ :type create_folder_request: CreateFolderRequest
131
143
  :param uri:
132
144
  :type uri: str
133
145
  :param _request_timeout: timeout setting for this request. If one
@@ -152,7 +164,8 @@ class UriResourceApi:
152
164
  :return: Returns the result object.
153
165
  """ # noqa: E501
154
166
 
155
- _param = self._api_v1_resources_download_get_serialize(
167
+ _param = self._create_folder_serialize(
168
+ create_folder_request=create_folder_request,
156
169
  uri=uri,
157
170
  _request_auth=_request_auth,
158
171
  _content_type=_content_type,
@@ -161,7 +174,8 @@ class UriResourceApi:
161
174
  )
162
175
 
163
176
  _response_types_map: Dict[str, Optional[str]] = {
164
- '200': "bytearray",
177
+ '200': "CreateFolderResponse",
178
+ '400': None,
165
179
  }
166
180
  response_data = self.api_client.call_api(
167
181
  *_param,
@@ -175,8 +189,9 @@ class UriResourceApi:
175
189
 
176
190
 
177
191
  @validate_call
178
- def api_v1_resources_download_get_without_preload_content(
192
+ def create_folder_without_preload_content(
179
193
  self,
194
+ create_folder_request: CreateFolderRequest,
180
195
  uri: Optional[StrictStr] = None,
181
196
  _request_timeout: Union[
182
197
  None,
@@ -191,9 +206,11 @@ class UriResourceApi:
191
206
  _headers: Optional[Dict[StrictStr, Any]] = None,
192
207
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
193
208
  ) -> RESTResponseType:
194
- """Download Resource
209
+ """Create Folder
195
210
 
196
211
 
212
+ :param create_folder_request: (required)
213
+ :type create_folder_request: CreateFolderRequest
197
214
  :param uri:
198
215
  :type uri: str
199
216
  :param _request_timeout: timeout setting for this request. If one
@@ -218,7 +235,8 @@ class UriResourceApi:
218
235
  :return: Returns the result object.
219
236
  """ # noqa: E501
220
237
 
221
- _param = self._api_v1_resources_download_get_serialize(
238
+ _param = self._create_folder_serialize(
239
+ create_folder_request=create_folder_request,
222
240
  uri=uri,
223
241
  _request_auth=_request_auth,
224
242
  _content_type=_content_type,
@@ -227,7 +245,8 @@ class UriResourceApi:
227
245
  )
228
246
 
229
247
  _response_types_map: Dict[str, Optional[str]] = {
230
- '200': "bytearray",
248
+ '200': "CreateFolderResponse",
249
+ '400': None,
231
250
  }
232
251
  response_data = self.api_client.call_api(
233
252
  *_param,
@@ -236,8 +255,9 @@ class UriResourceApi:
236
255
  return response_data.response
237
256
 
238
257
 
239
- def _api_v1_resources_download_get_serialize(
258
+ def _create_folder_serialize(
240
259
  self,
260
+ create_folder_request,
241
261
  uri,
242
262
  _request_auth,
243
263
  _content_type,
@@ -268,24 +288,39 @@ class UriResourceApi:
268
288
  # process the header parameters
269
289
  # process the form parameters
270
290
  # process the body parameter
291
+ if create_folder_request is not None:
292
+ _body_params = create_folder_request
271
293
 
272
294
 
273
295
  # set the HTTP header `Accept`
274
296
  if 'Accept' not in _header_params:
275
297
  _header_params['Accept'] = self.api_client.select_header_accept(
276
298
  [
277
- 'application/octet-stream'
299
+ 'application/json'
278
300
  ]
279
301
  )
280
302
 
303
+ # set the HTTP header `Content-Type`
304
+ if _content_type:
305
+ _header_params['Content-Type'] = _content_type
306
+ else:
307
+ _default_content_type = (
308
+ self.api_client.select_header_content_type(
309
+ [
310
+ 'application/json'
311
+ ]
312
+ )
313
+ )
314
+ if _default_content_type is not None:
315
+ _header_params['Content-Type'] = _default_content_type
281
316
 
282
317
  # authentication setting
283
318
  _auth_settings: List[str] = [
284
319
  ]
285
320
 
286
321
  return self.api_client.param_serialize(
287
- method='GET',
288
- resource_path='/api/v1/resources/download',
322
+ method='POST',
323
+ resource_path='/api/v1/resources/folders',
289
324
  path_params=_path_params,
290
325
  query_params=_query_params,
291
326
  header_params=_header_params,
@@ -302,10 +337,8 @@ class UriResourceApi:
302
337
 
303
338
 
304
339
  @validate_call
305
- def api_v1_resources_files_get(
340
+ def download_resource(
306
341
  self,
307
- page_size: Optional[StrictInt] = None,
308
- resume_token: Optional[StrictStr] = None,
309
342
  uri: Optional[StrictStr] = None,
310
343
  _request_timeout: Union[
311
344
  None,
@@ -319,14 +352,10 @@ class UriResourceApi:
319
352
  _content_type: Optional[StrictStr] = None,
320
353
  _headers: Optional[Dict[StrictStr, Any]] = None,
321
354
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
322
- ) -> PagedListFileSystemResponse:
323
- """List Files
355
+ ) -> bytearray:
356
+ """Download Resource
324
357
 
325
358
 
326
- :param page_size:
327
- :type page_size: int
328
- :param resume_token:
329
- :type resume_token: str
330
359
  :param uri:
331
360
  :type uri: str
332
361
  :param _request_timeout: timeout setting for this request. If one
@@ -351,9 +380,7 @@ class UriResourceApi:
351
380
  :return: Returns the result object.
352
381
  """ # noqa: E501
353
382
 
354
- _param = self._api_v1_resources_files_get_serialize(
355
- page_size=page_size,
356
- resume_token=resume_token,
383
+ _param = self._download_resource_serialize(
357
384
  uri=uri,
358
385
  _request_auth=_request_auth,
359
386
  _content_type=_content_type,
@@ -362,7 +389,7 @@ class UriResourceApi:
362
389
  )
363
390
 
364
391
  _response_types_map: Dict[str, Optional[str]] = {
365
- '200': "PagedListFileSystemResponse",
392
+ '200': "bytearray",
366
393
  }
367
394
  response_data = self.api_client.call_api(
368
395
  *_param,
@@ -376,10 +403,8 @@ class UriResourceApi:
376
403
 
377
404
 
378
405
  @validate_call
379
- def api_v1_resources_files_get_with_http_info(
406
+ def download_resource_with_http_info(
380
407
  self,
381
- page_size: Optional[StrictInt] = None,
382
- resume_token: Optional[StrictStr] = None,
383
408
  uri: Optional[StrictStr] = None,
384
409
  _request_timeout: Union[
385
410
  None,
@@ -393,14 +418,10 @@ class UriResourceApi:
393
418
  _content_type: Optional[StrictStr] = None,
394
419
  _headers: Optional[Dict[StrictStr, Any]] = None,
395
420
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
396
- ) -> ApiResponse[PagedListFileSystemResponse]:
397
- """List Files
421
+ ) -> ApiResponse[bytearray]:
422
+ """Download Resource
398
423
 
399
424
 
400
- :param page_size:
401
- :type page_size: int
402
- :param resume_token:
403
- :type resume_token: str
404
425
  :param uri:
405
426
  :type uri: str
406
427
  :param _request_timeout: timeout setting for this request. If one
@@ -425,9 +446,7 @@ class UriResourceApi:
425
446
  :return: Returns the result object.
426
447
  """ # noqa: E501
427
448
 
428
- _param = self._api_v1_resources_files_get_serialize(
429
- page_size=page_size,
430
- resume_token=resume_token,
449
+ _param = self._download_resource_serialize(
431
450
  uri=uri,
432
451
  _request_auth=_request_auth,
433
452
  _content_type=_content_type,
@@ -436,7 +455,7 @@ class UriResourceApi:
436
455
  )
437
456
 
438
457
  _response_types_map: Dict[str, Optional[str]] = {
439
- '200': "PagedListFileSystemResponse",
458
+ '200': "bytearray",
440
459
  }
441
460
  response_data = self.api_client.call_api(
442
461
  *_param,
@@ -450,10 +469,8 @@ class UriResourceApi:
450
469
 
451
470
 
452
471
  @validate_call
453
- def api_v1_resources_files_get_without_preload_content(
472
+ def download_resource_without_preload_content(
454
473
  self,
455
- page_size: Optional[StrictInt] = None,
456
- resume_token: Optional[StrictStr] = None,
457
474
  uri: Optional[StrictStr] = None,
458
475
  _request_timeout: Union[
459
476
  None,
@@ -468,13 +485,9 @@ class UriResourceApi:
468
485
  _headers: Optional[Dict[StrictStr, Any]] = None,
469
486
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
470
487
  ) -> RESTResponseType:
471
- """List Files
488
+ """Download Resource
472
489
 
473
490
 
474
- :param page_size:
475
- :type page_size: int
476
- :param resume_token:
477
- :type resume_token: str
478
491
  :param uri:
479
492
  :type uri: str
480
493
  :param _request_timeout: timeout setting for this request. If one
@@ -499,9 +512,7 @@ class UriResourceApi:
499
512
  :return: Returns the result object.
500
513
  """ # noqa: E501
501
514
 
502
- _param = self._api_v1_resources_files_get_serialize(
503
- page_size=page_size,
504
- resume_token=resume_token,
515
+ _param = self._download_resource_serialize(
505
516
  uri=uri,
506
517
  _request_auth=_request_auth,
507
518
  _content_type=_content_type,
@@ -510,7 +521,7 @@ class UriResourceApi:
510
521
  )
511
522
 
512
523
  _response_types_map: Dict[str, Optional[str]] = {
513
- '200': "PagedListFileSystemResponse",
524
+ '200': "bytearray",
514
525
  }
515
526
  response_data = self.api_client.call_api(
516
527
  *_param,
@@ -519,10 +530,8 @@ class UriResourceApi:
519
530
  return response_data.response
520
531
 
521
532
 
522
- def _api_v1_resources_files_get_serialize(
533
+ def _download_resource_serialize(
523
534
  self,
524
- page_size,
525
- resume_token,
526
535
  uri,
527
536
  _request_auth,
528
537
  _content_type,
@@ -546,14 +555,6 @@ class UriResourceApi:
546
555
 
547
556
  # process the path parameters
548
557
  # 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
558
  if uri is not None:
558
559
 
559
560
  _query_params.append(('uri', uri))
@@ -567,7 +568,7 @@ class UriResourceApi:
567
568
  if 'Accept' not in _header_params:
568
569
  _header_params['Accept'] = self.api_client.select_header_accept(
569
570
  [
570
- 'application/json'
571
+ 'application/octet-stream'
571
572
  ]
572
573
  )
573
574
 
@@ -578,7 +579,7 @@ class UriResourceApi:
578
579
 
579
580
  return self.api_client.param_serialize(
580
581
  method='GET',
581
- resource_path='/api/v1/resources/files',
582
+ resource_path='/api/v1/resources/download',
582
583
  path_params=_path_params,
583
584
  query_params=_query_params,
584
585
  header_params=_header_params,
@@ -595,7 +596,7 @@ class UriResourceApi:
595
596
 
596
597
 
597
598
  @validate_call
598
- def api_v1_resources_list_get(
599
+ def get_metadata_from_uri(
599
600
  self,
600
601
  uri: Optional[StrictStr] = None,
601
602
  _request_timeout: Union[
@@ -610,8 +611,8 @@ class UriResourceApi:
610
611
  _content_type: Optional[StrictStr] = None,
611
612
  _headers: Optional[Dict[StrictStr, Any]] = None,
612
613
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
613
- ) -> ListFileSystemResponse:
614
- """List Resources
614
+ ) -> GetMetadataResponse:
615
+ """Get Metadata
615
616
 
616
617
 
617
618
  :param uri:
@@ -638,7 +639,7 @@ class UriResourceApi:
638
639
  :return: Returns the result object.
639
640
  """ # noqa: E501
640
641
 
641
- _param = self._api_v1_resources_list_get_serialize(
642
+ _param = self._get_metadata_from_uri_serialize(
642
643
  uri=uri,
643
644
  _request_auth=_request_auth,
644
645
  _content_type=_content_type,
@@ -647,7 +648,7 @@ class UriResourceApi:
647
648
  )
648
649
 
649
650
  _response_types_map: Dict[str, Optional[str]] = {
650
- '200': "ListFileSystemResponse",
651
+ '200': "GetMetadataResponse",
651
652
  }
652
653
  response_data = self.api_client.call_api(
653
654
  *_param,
@@ -661,7 +662,7 @@ class UriResourceApi:
661
662
 
662
663
 
663
664
  @validate_call
664
- def api_v1_resources_list_get_with_http_info(
665
+ def get_metadata_from_uri_with_http_info(
665
666
  self,
666
667
  uri: Optional[StrictStr] = None,
667
668
  _request_timeout: Union[
@@ -676,8 +677,8 @@ class UriResourceApi:
676
677
  _content_type: Optional[StrictStr] = None,
677
678
  _headers: Optional[Dict[StrictStr, Any]] = None,
678
679
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
679
- ) -> ApiResponse[ListFileSystemResponse]:
680
- """List Resources
680
+ ) -> ApiResponse[GetMetadataResponse]:
681
+ """Get Metadata
681
682
 
682
683
 
683
684
  :param uri:
@@ -704,7 +705,7 @@ class UriResourceApi:
704
705
  :return: Returns the result object.
705
706
  """ # noqa: E501
706
707
 
707
- _param = self._api_v1_resources_list_get_serialize(
708
+ _param = self._get_metadata_from_uri_serialize(
708
709
  uri=uri,
709
710
  _request_auth=_request_auth,
710
711
  _content_type=_content_type,
@@ -713,7 +714,7 @@ class UriResourceApi:
713
714
  )
714
715
 
715
716
  _response_types_map: Dict[str, Optional[str]] = {
716
- '200': "ListFileSystemResponse",
717
+ '200': "GetMetadataResponse",
717
718
  }
718
719
  response_data = self.api_client.call_api(
719
720
  *_param,
@@ -727,7 +728,7 @@ class UriResourceApi:
727
728
 
728
729
 
729
730
  @validate_call
730
- def api_v1_resources_list_get_without_preload_content(
731
+ def get_metadata_from_uri_without_preload_content(
731
732
  self,
732
733
  uri: Optional[StrictStr] = None,
733
734
  _request_timeout: Union[
@@ -743,7 +744,7 @@ class UriResourceApi:
743
744
  _headers: Optional[Dict[StrictStr, Any]] = None,
744
745
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
745
746
  ) -> RESTResponseType:
746
- """List Resources
747
+ """Get Metadata
747
748
 
748
749
 
749
750
  :param uri:
@@ -770,7 +771,7 @@ class UriResourceApi:
770
771
  :return: Returns the result object.
771
772
  """ # noqa: E501
772
773
 
773
- _param = self._api_v1_resources_list_get_serialize(
774
+ _param = self._get_metadata_from_uri_serialize(
774
775
  uri=uri,
775
776
  _request_auth=_request_auth,
776
777
  _content_type=_content_type,
@@ -779,7 +780,7 @@ class UriResourceApi:
779
780
  )
780
781
 
781
782
  _response_types_map: Dict[str, Optional[str]] = {
782
- '200': "ListFileSystemResponse",
783
+ '200': "GetMetadataResponse",
783
784
  }
784
785
  response_data = self.api_client.call_api(
785
786
  *_param,
@@ -788,7 +789,7 @@ class UriResourceApi:
788
789
  return response_data.response
789
790
 
790
791
 
791
- def _api_v1_resources_list_get_serialize(
792
+ def _get_metadata_from_uri_serialize(
792
793
  self,
793
794
  uri,
794
795
  _request_auth,
@@ -837,7 +838,7 @@ class UriResourceApi:
837
838
 
838
839
  return self.api_client.param_serialize(
839
840
  method='GET',
840
- resource_path='/api/v1/resources/list',
841
+ resource_path='/api/v1/resources/metadata',
841
842
  path_params=_path_params,
842
843
  query_params=_query_params,
843
844
  header_params=_header_params,
@@ -854,7 +855,7 @@ class UriResourceApi:
854
855
 
855
856
 
856
857
  @validate_call
857
- def api_v1_resources_metadata_get(
858
+ def get_parent(
858
859
  self,
859
860
  uri: Optional[StrictStr] = None,
860
861
  _request_timeout: Union[
@@ -869,8 +870,8 @@ class UriResourceApi:
869
870
  _content_type: Optional[StrictStr] = None,
870
871
  _headers: Optional[Dict[StrictStr, Any]] = None,
871
872
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
872
- ) -> GetMetadataResponse:
873
- """Get Metadata
873
+ ) -> GetParentUriResponse:
874
+ """Get Parent
874
875
 
875
876
 
876
877
  :param uri:
@@ -897,7 +898,7 @@ class UriResourceApi:
897
898
  :return: Returns the result object.
898
899
  """ # noqa: E501
899
900
 
900
- _param = self._api_v1_resources_metadata_get_serialize(
901
+ _param = self._get_parent_serialize(
901
902
  uri=uri,
902
903
  _request_auth=_request_auth,
903
904
  _content_type=_content_type,
@@ -906,7 +907,7 @@ class UriResourceApi:
906
907
  )
907
908
 
908
909
  _response_types_map: Dict[str, Optional[str]] = {
909
- '200': "GetMetadataResponse",
910
+ '200': "GetParentUriResponse",
910
911
  }
911
912
  response_data = self.api_client.call_api(
912
913
  *_param,
@@ -920,7 +921,7 @@ class UriResourceApi:
920
921
 
921
922
 
922
923
  @validate_call
923
- def api_v1_resources_metadata_get_with_http_info(
924
+ def get_parent_with_http_info(
924
925
  self,
925
926
  uri: Optional[StrictStr] = None,
926
927
  _request_timeout: Union[
@@ -935,8 +936,8 @@ class UriResourceApi:
935
936
  _content_type: Optional[StrictStr] = None,
936
937
  _headers: Optional[Dict[StrictStr, Any]] = None,
937
938
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
938
- ) -> ApiResponse[GetMetadataResponse]:
939
- """Get Metadata
939
+ ) -> ApiResponse[GetParentUriResponse]:
940
+ """Get Parent
940
941
 
941
942
 
942
943
  :param uri:
@@ -963,7 +964,7 @@ class UriResourceApi:
963
964
  :return: Returns the result object.
964
965
  """ # noqa: E501
965
966
 
966
- _param = self._api_v1_resources_metadata_get_serialize(
967
+ _param = self._get_parent_serialize(
967
968
  uri=uri,
968
969
  _request_auth=_request_auth,
969
970
  _content_type=_content_type,
@@ -972,7 +973,7 @@ class UriResourceApi:
972
973
  )
973
974
 
974
975
  _response_types_map: Dict[str, Optional[str]] = {
975
- '200': "GetMetadataResponse",
976
+ '200': "GetParentUriResponse",
976
977
  }
977
978
  response_data = self.api_client.call_api(
978
979
  *_param,
@@ -986,7 +987,7 @@ class UriResourceApi:
986
987
 
987
988
 
988
989
  @validate_call
989
- def api_v1_resources_metadata_get_without_preload_content(
990
+ def get_parent_without_preload_content(
990
991
  self,
991
992
  uri: Optional[StrictStr] = None,
992
993
  _request_timeout: Union[
@@ -1002,7 +1003,7 @@ class UriResourceApi:
1002
1003
  _headers: Optional[Dict[StrictStr, Any]] = None,
1003
1004
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1004
1005
  ) -> RESTResponseType:
1005
- """Get Metadata
1006
+ """Get Parent
1006
1007
 
1007
1008
 
1008
1009
  :param uri:
@@ -1029,7 +1030,7 @@ class UriResourceApi:
1029
1030
  :return: Returns the result object.
1030
1031
  """ # noqa: E501
1031
1032
 
1032
- _param = self._api_v1_resources_metadata_get_serialize(
1033
+ _param = self._get_parent_serialize(
1033
1034
  uri=uri,
1034
1035
  _request_auth=_request_auth,
1035
1036
  _content_type=_content_type,
@@ -1038,7 +1039,7 @@ class UriResourceApi:
1038
1039
  )
1039
1040
 
1040
1041
  _response_types_map: Dict[str, Optional[str]] = {
1041
- '200': "GetMetadataResponse",
1042
+ '200': "GetParentUriResponse",
1042
1043
  }
1043
1044
  response_data = self.api_client.call_api(
1044
1045
  *_param,
@@ -1047,7 +1048,7 @@ class UriResourceApi:
1047
1048
  return response_data.response
1048
1049
 
1049
1050
 
1050
- def _api_v1_resources_metadata_get_serialize(
1051
+ def _get_parent_serialize(
1051
1052
  self,
1052
1053
  uri,
1053
1054
  _request_auth,
@@ -1096,7 +1097,7 @@ class UriResourceApi:
1096
1097
 
1097
1098
  return self.api_client.param_serialize(
1098
1099
  method='GET',
1099
- resource_path='/api/v1/resources/metadata',
1100
+ resource_path='/api/v1/resources/parent',
1100
1101
  path_params=_path_params,
1101
1102
  query_params=_query_params,
1102
1103
  header_params=_header_params,
@@ -1113,7 +1114,7 @@ class UriResourceApi:
1113
1114
 
1114
1115
 
1115
1116
  @validate_call
1116
- def api_v1_resources_parent_get(
1117
+ def get_signed_url_from_uri(
1117
1118
  self,
1118
1119
  uri: Optional[StrictStr] = None,
1119
1120
  _request_timeout: Union[
@@ -1128,8 +1129,8 @@ class UriResourceApi:
1128
1129
  _content_type: Optional[StrictStr] = None,
1129
1130
  _headers: Optional[Dict[StrictStr, Any]] = None,
1130
1131
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1131
- ) -> GetParentUriResponse:
1132
- """Get Parent
1132
+ ) -> GetSignedUrlResponse:
1133
+ """Get Signed Url
1133
1134
 
1134
1135
 
1135
1136
  :param uri:
@@ -1156,7 +1157,7 @@ class UriResourceApi:
1156
1157
  :return: Returns the result object.
1157
1158
  """ # noqa: E501
1158
1159
 
1159
- _param = self._api_v1_resources_parent_get_serialize(
1160
+ _param = self._get_signed_url_from_uri_serialize(
1160
1161
  uri=uri,
1161
1162
  _request_auth=_request_auth,
1162
1163
  _content_type=_content_type,
@@ -1165,7 +1166,7 @@ class UriResourceApi:
1165
1166
  )
1166
1167
 
1167
1168
  _response_types_map: Dict[str, Optional[str]] = {
1168
- '200': "GetParentUriResponse",
1169
+ '200': "GetSignedUrlResponse",
1169
1170
  }
1170
1171
  response_data = self.api_client.call_api(
1171
1172
  *_param,
@@ -1179,7 +1180,7 @@ class UriResourceApi:
1179
1180
 
1180
1181
 
1181
1182
  @validate_call
1182
- def api_v1_resources_parent_get_with_http_info(
1183
+ def get_signed_url_from_uri_with_http_info(
1183
1184
  self,
1184
1185
  uri: Optional[StrictStr] = None,
1185
1186
  _request_timeout: Union[
@@ -1194,8 +1195,8 @@ class UriResourceApi:
1194
1195
  _content_type: Optional[StrictStr] = None,
1195
1196
  _headers: Optional[Dict[StrictStr, Any]] = None,
1196
1197
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1197
- ) -> ApiResponse[GetParentUriResponse]:
1198
- """Get Parent
1198
+ ) -> ApiResponse[GetSignedUrlResponse]:
1199
+ """Get Signed Url
1199
1200
 
1200
1201
 
1201
1202
  :param uri:
@@ -1222,7 +1223,7 @@ class UriResourceApi:
1222
1223
  :return: Returns the result object.
1223
1224
  """ # noqa: E501
1224
1225
 
1225
- _param = self._api_v1_resources_parent_get_serialize(
1226
+ _param = self._get_signed_url_from_uri_serialize(
1226
1227
  uri=uri,
1227
1228
  _request_auth=_request_auth,
1228
1229
  _content_type=_content_type,
@@ -1231,7 +1232,7 @@ class UriResourceApi:
1231
1232
  )
1232
1233
 
1233
1234
  _response_types_map: Dict[str, Optional[str]] = {
1234
- '200': "GetParentUriResponse",
1235
+ '200': "GetSignedUrlResponse",
1235
1236
  }
1236
1237
  response_data = self.api_client.call_api(
1237
1238
  *_param,
@@ -1245,7 +1246,7 @@ class UriResourceApi:
1245
1246
 
1246
1247
 
1247
1248
  @validate_call
1248
- def api_v1_resources_parent_get_without_preload_content(
1249
+ def get_signed_url_from_uri_without_preload_content(
1249
1250
  self,
1250
1251
  uri: Optional[StrictStr] = None,
1251
1252
  _request_timeout: Union[
@@ -1261,7 +1262,7 @@ class UriResourceApi:
1261
1262
  _headers: Optional[Dict[StrictStr, Any]] = None,
1262
1263
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1263
1264
  ) -> RESTResponseType:
1264
- """Get Parent
1265
+ """Get Signed Url
1265
1266
 
1266
1267
 
1267
1268
  :param uri:
@@ -1288,7 +1289,7 @@ class UriResourceApi:
1288
1289
  :return: Returns the result object.
1289
1290
  """ # noqa: E501
1290
1291
 
1291
- _param = self._api_v1_resources_parent_get_serialize(
1292
+ _param = self._get_signed_url_from_uri_serialize(
1292
1293
  uri=uri,
1293
1294
  _request_auth=_request_auth,
1294
1295
  _content_type=_content_type,
@@ -1297,7 +1298,7 @@ class UriResourceApi:
1297
1298
  )
1298
1299
 
1299
1300
  _response_types_map: Dict[str, Optional[str]] = {
1300
- '200': "GetParentUriResponse",
1301
+ '200': "GetSignedUrlResponse",
1301
1302
  }
1302
1303
  response_data = self.api_client.call_api(
1303
1304
  *_param,
@@ -1306,7 +1307,7 @@ class UriResourceApi:
1306
1307
  return response_data.response
1307
1308
 
1308
1309
 
1309
- def _api_v1_resources_parent_get_serialize(
1310
+ def _get_signed_url_from_uri_serialize(
1310
1311
  self,
1311
1312
  uri,
1312
1313
  _request_auth,
@@ -1355,7 +1356,7 @@ class UriResourceApi:
1355
1356
 
1356
1357
  return self.api_client.param_serialize(
1357
1358
  method='GET',
1358
- resource_path='/api/v1/resources/parent',
1359
+ resource_path='/api/v1/resources/signed-url',
1359
1360
  path_params=_path_params,
1360
1361
  query_params=_query_params,
1361
1362
  header_params=_header_params,
@@ -1372,8 +1373,10 @@ class UriResourceApi:
1372
1373
 
1373
1374
 
1374
1375
  @validate_call
1375
- def api_v1_resources_signed_url_get(
1376
+ def list_files(
1376
1377
  self,
1378
+ page_size: Optional[StrictInt] = None,
1379
+ resume_token: Optional[StrictStr] = None,
1377
1380
  uri: Optional[StrictStr] = None,
1378
1381
  _request_timeout: Union[
1379
1382
  None,
@@ -1387,10 +1390,14 @@ class UriResourceApi:
1387
1390
  _content_type: Optional[StrictStr] = None,
1388
1391
  _headers: Optional[Dict[StrictStr, Any]] = None,
1389
1392
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1390
- ) -> GetSignedUrlResponse:
1391
- """Get Signed Url
1393
+ ) -> PagedListFileSystemResponse:
1394
+ """List Files
1392
1395
 
1393
1396
 
1397
+ :param page_size:
1398
+ :type page_size: int
1399
+ :param resume_token:
1400
+ :type resume_token: str
1394
1401
  :param uri:
1395
1402
  :type uri: str
1396
1403
  :param _request_timeout: timeout setting for this request. If one
@@ -1415,7 +1422,9 @@ class UriResourceApi:
1415
1422
  :return: Returns the result object.
1416
1423
  """ # noqa: E501
1417
1424
 
1418
- _param = self._api_v1_resources_signed_url_get_serialize(
1425
+ _param = self._list_files_serialize(
1426
+ page_size=page_size,
1427
+ resume_token=resume_token,
1419
1428
  uri=uri,
1420
1429
  _request_auth=_request_auth,
1421
1430
  _content_type=_content_type,
@@ -1424,7 +1433,7 @@ class UriResourceApi:
1424
1433
  )
1425
1434
 
1426
1435
  _response_types_map: Dict[str, Optional[str]] = {
1427
- '200': "GetSignedUrlResponse",
1436
+ '200': "PagedListFileSystemResponse",
1428
1437
  }
1429
1438
  response_data = self.api_client.call_api(
1430
1439
  *_param,
@@ -1438,8 +1447,10 @@ class UriResourceApi:
1438
1447
 
1439
1448
 
1440
1449
  @validate_call
1441
- def api_v1_resources_signed_url_get_with_http_info(
1450
+ def list_files_with_http_info(
1442
1451
  self,
1452
+ page_size: Optional[StrictInt] = None,
1453
+ resume_token: Optional[StrictStr] = None,
1443
1454
  uri: Optional[StrictStr] = None,
1444
1455
  _request_timeout: Union[
1445
1456
  None,
@@ -1453,10 +1464,14 @@ class UriResourceApi:
1453
1464
  _content_type: Optional[StrictStr] = None,
1454
1465
  _headers: Optional[Dict[StrictStr, Any]] = None,
1455
1466
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1456
- ) -> ApiResponse[GetSignedUrlResponse]:
1457
- """Get Signed Url
1467
+ ) -> ApiResponse[PagedListFileSystemResponse]:
1468
+ """List Files
1458
1469
 
1459
1470
 
1471
+ :param page_size:
1472
+ :type page_size: int
1473
+ :param resume_token:
1474
+ :type resume_token: str
1460
1475
  :param uri:
1461
1476
  :type uri: str
1462
1477
  :param _request_timeout: timeout setting for this request. If one
@@ -1481,7 +1496,9 @@ class UriResourceApi:
1481
1496
  :return: Returns the result object.
1482
1497
  """ # noqa: E501
1483
1498
 
1484
- _param = self._api_v1_resources_signed_url_get_serialize(
1499
+ _param = self._list_files_serialize(
1500
+ page_size=page_size,
1501
+ resume_token=resume_token,
1485
1502
  uri=uri,
1486
1503
  _request_auth=_request_auth,
1487
1504
  _content_type=_content_type,
@@ -1490,7 +1507,7 @@ class UriResourceApi:
1490
1507
  )
1491
1508
 
1492
1509
  _response_types_map: Dict[str, Optional[str]] = {
1493
- '200': "GetSignedUrlResponse",
1510
+ '200': "PagedListFileSystemResponse",
1494
1511
  }
1495
1512
  response_data = self.api_client.call_api(
1496
1513
  *_param,
@@ -1504,8 +1521,10 @@ class UriResourceApi:
1504
1521
 
1505
1522
 
1506
1523
  @validate_call
1507
- def api_v1_resources_signed_url_get_without_preload_content(
1524
+ def list_files_without_preload_content(
1508
1525
  self,
1526
+ page_size: Optional[StrictInt] = None,
1527
+ resume_token: Optional[StrictStr] = None,
1509
1528
  uri: Optional[StrictStr] = None,
1510
1529
  _request_timeout: Union[
1511
1530
  None,
@@ -1520,9 +1539,13 @@ class UriResourceApi:
1520
1539
  _headers: Optional[Dict[StrictStr, Any]] = None,
1521
1540
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1522
1541
  ) -> RESTResponseType:
1523
- """Get Signed Url
1542
+ """List Files
1524
1543
 
1525
1544
 
1545
+ :param page_size:
1546
+ :type page_size: int
1547
+ :param resume_token:
1548
+ :type resume_token: str
1526
1549
  :param uri:
1527
1550
  :type uri: str
1528
1551
  :param _request_timeout: timeout setting for this request. If one
@@ -1547,7 +1570,9 @@ class UriResourceApi:
1547
1570
  :return: Returns the result object.
1548
1571
  """ # noqa: E501
1549
1572
 
1550
- _param = self._api_v1_resources_signed_url_get_serialize(
1573
+ _param = self._list_files_serialize(
1574
+ page_size=page_size,
1575
+ resume_token=resume_token,
1551
1576
  uri=uri,
1552
1577
  _request_auth=_request_auth,
1553
1578
  _content_type=_content_type,
@@ -1556,7 +1581,7 @@ class UriResourceApi:
1556
1581
  )
1557
1582
 
1558
1583
  _response_types_map: Dict[str, Optional[str]] = {
1559
- '200': "GetSignedUrlResponse",
1584
+ '200': "PagedListFileSystemResponse",
1560
1585
  }
1561
1586
  response_data = self.api_client.call_api(
1562
1587
  *_param,
@@ -1565,8 +1590,10 @@ class UriResourceApi:
1565
1590
  return response_data.response
1566
1591
 
1567
1592
 
1568
- def _api_v1_resources_signed_url_get_serialize(
1593
+ def _list_files_serialize(
1569
1594
  self,
1595
+ page_size,
1596
+ resume_token,
1570
1597
  uri,
1571
1598
  _request_auth,
1572
1599
  _content_type,
@@ -1590,6 +1617,14 @@ class UriResourceApi:
1590
1617
 
1591
1618
  # process the path parameters
1592
1619
  # process the query parameters
1620
+ if page_size is not None:
1621
+
1622
+ _query_params.append(('pageSize', page_size))
1623
+
1624
+ if resume_token is not None:
1625
+
1626
+ _query_params.append(('resumeToken', resume_token))
1627
+
1593
1628
  if uri is not None:
1594
1629
 
1595
1630
  _query_params.append(('uri', uri))
@@ -1614,7 +1649,837 @@ class UriResourceApi:
1614
1649
 
1615
1650
  return self.api_client.param_serialize(
1616
1651
  method='GET',
1617
- resource_path='/api/v1/resources/signed-url',
1652
+ resource_path='/api/v1/resources/files',
1653
+ path_params=_path_params,
1654
+ query_params=_query_params,
1655
+ header_params=_header_params,
1656
+ body=_body_params,
1657
+ post_params=_form_params,
1658
+ files=_files,
1659
+ auth_settings=_auth_settings,
1660
+ collection_formats=_collection_formats,
1661
+ _host=_host,
1662
+ _request_auth=_request_auth
1663
+ )
1664
+
1665
+
1666
+
1667
+
1668
+ @validate_call
1669
+ def list_resources(
1670
+ self,
1671
+ uri: Optional[StrictStr] = None,
1672
+ _request_timeout: Union[
1673
+ None,
1674
+ Annotated[StrictFloat, Field(gt=0)],
1675
+ Tuple[
1676
+ Annotated[StrictFloat, Field(gt=0)],
1677
+ Annotated[StrictFloat, Field(gt=0)]
1678
+ ]
1679
+ ] = None,
1680
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1681
+ _content_type: Optional[StrictStr] = None,
1682
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1683
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1684
+ ) -> ListFileSystemResponse:
1685
+ """List Resources
1686
+
1687
+
1688
+ :param uri:
1689
+ :type uri: str
1690
+ :param _request_timeout: timeout setting for this request. If one
1691
+ number provided, it will be total request
1692
+ timeout. It can also be a pair (tuple) of
1693
+ (connection, read) timeouts.
1694
+ :type _request_timeout: int, tuple(int, int), optional
1695
+ :param _request_auth: set to override the auth_settings for an a single
1696
+ request; this effectively ignores the
1697
+ authentication in the spec for a single request.
1698
+ :type _request_auth: dict, optional
1699
+ :param _content_type: force content-type for the request.
1700
+ :type _content_type: str, Optional
1701
+ :param _headers: set to override the headers for a single
1702
+ request; this effectively ignores the headers
1703
+ in the spec for a single request.
1704
+ :type _headers: dict, optional
1705
+ :param _host_index: set to override the host_index for a single
1706
+ request; this effectively ignores the host_index
1707
+ in the spec for a single request.
1708
+ :type _host_index: int, optional
1709
+ :return: Returns the result object.
1710
+ """ # noqa: E501
1711
+
1712
+ _param = self._list_resources_serialize(
1713
+ uri=uri,
1714
+ _request_auth=_request_auth,
1715
+ _content_type=_content_type,
1716
+ _headers=_headers,
1717
+ _host_index=_host_index
1718
+ )
1719
+
1720
+ _response_types_map: Dict[str, Optional[str]] = {
1721
+ '200': "ListFileSystemResponse",
1722
+ }
1723
+ response_data = self.api_client.call_api(
1724
+ *_param,
1725
+ _request_timeout=_request_timeout
1726
+ )
1727
+ response_data.read()
1728
+ return self.api_client.response_deserialize(
1729
+ response_data=response_data,
1730
+ response_types_map=_response_types_map,
1731
+ ).data
1732
+
1733
+
1734
+ @validate_call
1735
+ def list_resources_with_http_info(
1736
+ self,
1737
+ uri: Optional[StrictStr] = None,
1738
+ _request_timeout: Union[
1739
+ None,
1740
+ Annotated[StrictFloat, Field(gt=0)],
1741
+ Tuple[
1742
+ Annotated[StrictFloat, Field(gt=0)],
1743
+ Annotated[StrictFloat, Field(gt=0)]
1744
+ ]
1745
+ ] = None,
1746
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1747
+ _content_type: Optional[StrictStr] = None,
1748
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1749
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1750
+ ) -> ApiResponse[ListFileSystemResponse]:
1751
+ """List Resources
1752
+
1753
+
1754
+ :param uri:
1755
+ :type uri: str
1756
+ :param _request_timeout: timeout setting for this request. If one
1757
+ number provided, it will be total request
1758
+ timeout. It can also be a pair (tuple) of
1759
+ (connection, read) timeouts.
1760
+ :type _request_timeout: int, tuple(int, int), optional
1761
+ :param _request_auth: set to override the auth_settings for an a single
1762
+ request; this effectively ignores the
1763
+ authentication in the spec for a single request.
1764
+ :type _request_auth: dict, optional
1765
+ :param _content_type: force content-type for the request.
1766
+ :type _content_type: str, Optional
1767
+ :param _headers: set to override the headers for a single
1768
+ request; this effectively ignores the headers
1769
+ in the spec for a single request.
1770
+ :type _headers: dict, optional
1771
+ :param _host_index: set to override the host_index for a single
1772
+ request; this effectively ignores the host_index
1773
+ in the spec for a single request.
1774
+ :type _host_index: int, optional
1775
+ :return: Returns the result object.
1776
+ """ # noqa: E501
1777
+
1778
+ _param = self._list_resources_serialize(
1779
+ uri=uri,
1780
+ _request_auth=_request_auth,
1781
+ _content_type=_content_type,
1782
+ _headers=_headers,
1783
+ _host_index=_host_index
1784
+ )
1785
+
1786
+ _response_types_map: Dict[str, Optional[str]] = {
1787
+ '200': "ListFileSystemResponse",
1788
+ }
1789
+ response_data = self.api_client.call_api(
1790
+ *_param,
1791
+ _request_timeout=_request_timeout
1792
+ )
1793
+ response_data.read()
1794
+ return self.api_client.response_deserialize(
1795
+ response_data=response_data,
1796
+ response_types_map=_response_types_map,
1797
+ )
1798
+
1799
+
1800
+ @validate_call
1801
+ def list_resources_without_preload_content(
1802
+ self,
1803
+ uri: Optional[StrictStr] = None,
1804
+ _request_timeout: Union[
1805
+ None,
1806
+ Annotated[StrictFloat, Field(gt=0)],
1807
+ Tuple[
1808
+ Annotated[StrictFloat, Field(gt=0)],
1809
+ Annotated[StrictFloat, Field(gt=0)]
1810
+ ]
1811
+ ] = None,
1812
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1813
+ _content_type: Optional[StrictStr] = None,
1814
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1815
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1816
+ ) -> RESTResponseType:
1817
+ """List Resources
1818
+
1819
+
1820
+ :param uri:
1821
+ :type uri: str
1822
+ :param _request_timeout: timeout setting for this request. If one
1823
+ number provided, it will be total request
1824
+ timeout. It can also be a pair (tuple) of
1825
+ (connection, read) timeouts.
1826
+ :type _request_timeout: int, tuple(int, int), optional
1827
+ :param _request_auth: set to override the auth_settings for an a single
1828
+ request; this effectively ignores the
1829
+ authentication in the spec for a single request.
1830
+ :type _request_auth: dict, optional
1831
+ :param _content_type: force content-type for the request.
1832
+ :type _content_type: str, Optional
1833
+ :param _headers: set to override the headers for a single
1834
+ request; this effectively ignores the headers
1835
+ in the spec for a single request.
1836
+ :type _headers: dict, optional
1837
+ :param _host_index: set to override the host_index for a single
1838
+ request; this effectively ignores the host_index
1839
+ in the spec for a single request.
1840
+ :type _host_index: int, optional
1841
+ :return: Returns the result object.
1842
+ """ # noqa: E501
1843
+
1844
+ _param = self._list_resources_serialize(
1845
+ uri=uri,
1846
+ _request_auth=_request_auth,
1847
+ _content_type=_content_type,
1848
+ _headers=_headers,
1849
+ _host_index=_host_index
1850
+ )
1851
+
1852
+ _response_types_map: Dict[str, Optional[str]] = {
1853
+ '200': "ListFileSystemResponse",
1854
+ }
1855
+ response_data = self.api_client.call_api(
1856
+ *_param,
1857
+ _request_timeout=_request_timeout
1858
+ )
1859
+ return response_data.response
1860
+
1861
+
1862
+ def _list_resources_serialize(
1863
+ self,
1864
+ uri,
1865
+ _request_auth,
1866
+ _content_type,
1867
+ _headers,
1868
+ _host_index,
1869
+ ) -> RequestSerialized:
1870
+
1871
+ _host = None
1872
+
1873
+ _collection_formats: Dict[str, str] = {
1874
+ }
1875
+
1876
+ _path_params: Dict[str, str] = {}
1877
+ _query_params: List[Tuple[str, str]] = []
1878
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1879
+ _form_params: List[Tuple[str, str]] = []
1880
+ _files: Dict[
1881
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1882
+ ] = {}
1883
+ _body_params: Optional[bytes] = None
1884
+
1885
+ # process the path parameters
1886
+ # process the query parameters
1887
+ if uri is not None:
1888
+
1889
+ _query_params.append(('uri', uri))
1890
+
1891
+ # process the header parameters
1892
+ # process the form parameters
1893
+ # process the body parameter
1894
+
1895
+
1896
+ # set the HTTP header `Accept`
1897
+ if 'Accept' not in _header_params:
1898
+ _header_params['Accept'] = self.api_client.select_header_accept(
1899
+ [
1900
+ 'application/json'
1901
+ ]
1902
+ )
1903
+
1904
+
1905
+ # authentication setting
1906
+ _auth_settings: List[str] = [
1907
+ ]
1908
+
1909
+ return self.api_client.param_serialize(
1910
+ method='GET',
1911
+ resource_path='/api/v1/resources/list',
1912
+ path_params=_path_params,
1913
+ query_params=_query_params,
1914
+ header_params=_header_params,
1915
+ body=_body_params,
1916
+ post_params=_form_params,
1917
+ files=_files,
1918
+ auth_settings=_auth_settings,
1919
+ collection_formats=_collection_formats,
1920
+ _host=_host,
1921
+ _request_auth=_request_auth
1922
+ )
1923
+
1924
+
1925
+
1926
+
1927
+ @validate_call
1928
+ def remove_resource(
1929
+ self,
1930
+ uri: Optional[StrictStr] = None,
1931
+ _request_timeout: Union[
1932
+ None,
1933
+ Annotated[StrictFloat, Field(gt=0)],
1934
+ Tuple[
1935
+ Annotated[StrictFloat, Field(gt=0)],
1936
+ Annotated[StrictFloat, Field(gt=0)]
1937
+ ]
1938
+ ] = None,
1939
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1940
+ _content_type: Optional[StrictStr] = None,
1941
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1942
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1943
+ ) -> None:
1944
+ """Remove Resource
1945
+
1946
+
1947
+ :param uri:
1948
+ :type uri: str
1949
+ :param _request_timeout: timeout setting for this request. If one
1950
+ number provided, it will be total request
1951
+ timeout. It can also be a pair (tuple) of
1952
+ (connection, read) timeouts.
1953
+ :type _request_timeout: int, tuple(int, int), optional
1954
+ :param _request_auth: set to override the auth_settings for an a single
1955
+ request; this effectively ignores the
1956
+ authentication in the spec for a single request.
1957
+ :type _request_auth: dict, optional
1958
+ :param _content_type: force content-type for the request.
1959
+ :type _content_type: str, Optional
1960
+ :param _headers: set to override the headers for a single
1961
+ request; this effectively ignores the headers
1962
+ in the spec for a single request.
1963
+ :type _headers: dict, optional
1964
+ :param _host_index: set to override the host_index for a single
1965
+ request; this effectively ignores the host_index
1966
+ in the spec for a single request.
1967
+ :type _host_index: int, optional
1968
+ :return: Returns the result object.
1969
+ """ # noqa: E501
1970
+
1971
+ _param = self._remove_resource_serialize(
1972
+ uri=uri,
1973
+ _request_auth=_request_auth,
1974
+ _content_type=_content_type,
1975
+ _headers=_headers,
1976
+ _host_index=_host_index
1977
+ )
1978
+
1979
+ _response_types_map: Dict[str, Optional[str]] = {
1980
+ '204': None,
1981
+ }
1982
+ response_data = self.api_client.call_api(
1983
+ *_param,
1984
+ _request_timeout=_request_timeout
1985
+ )
1986
+ response_data.read()
1987
+ return self.api_client.response_deserialize(
1988
+ response_data=response_data,
1989
+ response_types_map=_response_types_map,
1990
+ ).data
1991
+
1992
+
1993
+ @validate_call
1994
+ def remove_resource_with_http_info(
1995
+ self,
1996
+ uri: Optional[StrictStr] = None,
1997
+ _request_timeout: Union[
1998
+ None,
1999
+ Annotated[StrictFloat, Field(gt=0)],
2000
+ Tuple[
2001
+ Annotated[StrictFloat, Field(gt=0)],
2002
+ Annotated[StrictFloat, Field(gt=0)]
2003
+ ]
2004
+ ] = None,
2005
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2006
+ _content_type: Optional[StrictStr] = None,
2007
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2008
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2009
+ ) -> ApiResponse[None]:
2010
+ """Remove Resource
2011
+
2012
+
2013
+ :param uri:
2014
+ :type uri: str
2015
+ :param _request_timeout: timeout setting for this request. If one
2016
+ number provided, it will be total request
2017
+ timeout. It can also be a pair (tuple) of
2018
+ (connection, read) timeouts.
2019
+ :type _request_timeout: int, tuple(int, int), optional
2020
+ :param _request_auth: set to override the auth_settings for an a single
2021
+ request; this effectively ignores the
2022
+ authentication in the spec for a single request.
2023
+ :type _request_auth: dict, optional
2024
+ :param _content_type: force content-type for the request.
2025
+ :type _content_type: str, Optional
2026
+ :param _headers: set to override the headers for a single
2027
+ request; this effectively ignores the headers
2028
+ in the spec for a single request.
2029
+ :type _headers: dict, optional
2030
+ :param _host_index: set to override the host_index for a single
2031
+ request; this effectively ignores the host_index
2032
+ in the spec for a single request.
2033
+ :type _host_index: int, optional
2034
+ :return: Returns the result object.
2035
+ """ # noqa: E501
2036
+
2037
+ _param = self._remove_resource_serialize(
2038
+ uri=uri,
2039
+ _request_auth=_request_auth,
2040
+ _content_type=_content_type,
2041
+ _headers=_headers,
2042
+ _host_index=_host_index
2043
+ )
2044
+
2045
+ _response_types_map: Dict[str, Optional[str]] = {
2046
+ '204': None,
2047
+ }
2048
+ response_data = self.api_client.call_api(
2049
+ *_param,
2050
+ _request_timeout=_request_timeout
2051
+ )
2052
+ response_data.read()
2053
+ return self.api_client.response_deserialize(
2054
+ response_data=response_data,
2055
+ response_types_map=_response_types_map,
2056
+ )
2057
+
2058
+
2059
+ @validate_call
2060
+ def remove_resource_without_preload_content(
2061
+ self,
2062
+ uri: Optional[StrictStr] = None,
2063
+ _request_timeout: Union[
2064
+ None,
2065
+ Annotated[StrictFloat, Field(gt=0)],
2066
+ Tuple[
2067
+ Annotated[StrictFloat, Field(gt=0)],
2068
+ Annotated[StrictFloat, Field(gt=0)]
2069
+ ]
2070
+ ] = None,
2071
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2072
+ _content_type: Optional[StrictStr] = None,
2073
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2074
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2075
+ ) -> RESTResponseType:
2076
+ """Remove Resource
2077
+
2078
+
2079
+ :param uri:
2080
+ :type uri: str
2081
+ :param _request_timeout: timeout setting for this request. If one
2082
+ number provided, it will be total request
2083
+ timeout. It can also be a pair (tuple) of
2084
+ (connection, read) timeouts.
2085
+ :type _request_timeout: int, tuple(int, int), optional
2086
+ :param _request_auth: set to override the auth_settings for an a single
2087
+ request; this effectively ignores the
2088
+ authentication in the spec for a single request.
2089
+ :type _request_auth: dict, optional
2090
+ :param _content_type: force content-type for the request.
2091
+ :type _content_type: str, Optional
2092
+ :param _headers: set to override the headers for a single
2093
+ request; this effectively ignores the headers
2094
+ in the spec for a single request.
2095
+ :type _headers: dict, optional
2096
+ :param _host_index: set to override the host_index for a single
2097
+ request; this effectively ignores the host_index
2098
+ in the spec for a single request.
2099
+ :type _host_index: int, optional
2100
+ :return: Returns the result object.
2101
+ """ # noqa: E501
2102
+
2103
+ _param = self._remove_resource_serialize(
2104
+ uri=uri,
2105
+ _request_auth=_request_auth,
2106
+ _content_type=_content_type,
2107
+ _headers=_headers,
2108
+ _host_index=_host_index
2109
+ )
2110
+
2111
+ _response_types_map: Dict[str, Optional[str]] = {
2112
+ '204': None,
2113
+ }
2114
+ response_data = self.api_client.call_api(
2115
+ *_param,
2116
+ _request_timeout=_request_timeout
2117
+ )
2118
+ return response_data.response
2119
+
2120
+
2121
+ def _remove_resource_serialize(
2122
+ self,
2123
+ uri,
2124
+ _request_auth,
2125
+ _content_type,
2126
+ _headers,
2127
+ _host_index,
2128
+ ) -> RequestSerialized:
2129
+
2130
+ _host = None
2131
+
2132
+ _collection_formats: Dict[str, str] = {
2133
+ }
2134
+
2135
+ _path_params: Dict[str, str] = {}
2136
+ _query_params: List[Tuple[str, str]] = []
2137
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2138
+ _form_params: List[Tuple[str, str]] = []
2139
+ _files: Dict[
2140
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2141
+ ] = {}
2142
+ _body_params: Optional[bytes] = None
2143
+
2144
+ # process the path parameters
2145
+ # process the query parameters
2146
+ if uri is not None:
2147
+
2148
+ _query_params.append(('uri', uri))
2149
+
2150
+ # process the header parameters
2151
+ # process the form parameters
2152
+ # process the body parameter
2153
+
2154
+
2155
+
2156
+
2157
+ # authentication setting
2158
+ _auth_settings: List[str] = [
2159
+ ]
2160
+
2161
+ return self.api_client.param_serialize(
2162
+ method='DELETE',
2163
+ resource_path='/api/v1/resources/remove',
2164
+ path_params=_path_params,
2165
+ query_params=_query_params,
2166
+ header_params=_header_params,
2167
+ body=_body_params,
2168
+ post_params=_form_params,
2169
+ files=_files,
2170
+ auth_settings=_auth_settings,
2171
+ collection_formats=_collection_formats,
2172
+ _host=_host,
2173
+ _request_auth=_request_auth
2174
+ )
2175
+
2176
+
2177
+
2178
+
2179
+ @validate_call
2180
+ def upload_resource(
2181
+ self,
2182
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2183
+ filename: Annotated[str, Field(strict=True)],
2184
+ overwrite: Optional[StrictBool] = None,
2185
+ uri: Optional[StrictStr] = None,
2186
+ _request_timeout: Union[
2187
+ None,
2188
+ Annotated[StrictFloat, Field(gt=0)],
2189
+ Tuple[
2190
+ Annotated[StrictFloat, Field(gt=0)],
2191
+ Annotated[StrictFloat, Field(gt=0)]
2192
+ ]
2193
+ ] = None,
2194
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2195
+ _content_type: Optional[StrictStr] = None,
2196
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2197
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2198
+ ) -> UploadFileToManagedFileSystemResponse:
2199
+ """Upload
2200
+
2201
+
2202
+ :param file: (required)
2203
+ :type file: bytearray
2204
+ :param filename: (required)
2205
+ :type filename: str
2206
+ :param overwrite:
2207
+ :type overwrite: bool
2208
+ :param uri:
2209
+ :type uri: str
2210
+ :param _request_timeout: timeout setting for this request. If one
2211
+ number provided, it will be total request
2212
+ timeout. It can also be a pair (tuple) of
2213
+ (connection, read) timeouts.
2214
+ :type _request_timeout: int, tuple(int, int), optional
2215
+ :param _request_auth: set to override the auth_settings for an a single
2216
+ request; this effectively ignores the
2217
+ authentication in the spec for a single request.
2218
+ :type _request_auth: dict, optional
2219
+ :param _content_type: force content-type for the request.
2220
+ :type _content_type: str, Optional
2221
+ :param _headers: set to override the headers for a single
2222
+ request; this effectively ignores the headers
2223
+ in the spec for a single request.
2224
+ :type _headers: dict, optional
2225
+ :param _host_index: set to override the host_index for a single
2226
+ request; this effectively ignores the host_index
2227
+ in the spec for a single request.
2228
+ :type _host_index: int, optional
2229
+ :return: Returns the result object.
2230
+ """ # noqa: E501
2231
+
2232
+ _param = self._upload_resource_serialize(
2233
+ file=file,
2234
+ filename=filename,
2235
+ overwrite=overwrite,
2236
+ uri=uri,
2237
+ _request_auth=_request_auth,
2238
+ _content_type=_content_type,
2239
+ _headers=_headers,
2240
+ _host_index=_host_index
2241
+ )
2242
+
2243
+ _response_types_map: Dict[str, Optional[str]] = {
2244
+ '200': "UploadFileToManagedFileSystemResponse",
2245
+ }
2246
+ response_data = self.api_client.call_api(
2247
+ *_param,
2248
+ _request_timeout=_request_timeout
2249
+ )
2250
+ response_data.read()
2251
+ return self.api_client.response_deserialize(
2252
+ response_data=response_data,
2253
+ response_types_map=_response_types_map,
2254
+ ).data
2255
+
2256
+
2257
+ @validate_call
2258
+ def upload_resource_with_http_info(
2259
+ self,
2260
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2261
+ filename: Annotated[str, Field(strict=True)],
2262
+ overwrite: Optional[StrictBool] = None,
2263
+ uri: Optional[StrictStr] = None,
2264
+ _request_timeout: Union[
2265
+ None,
2266
+ Annotated[StrictFloat, Field(gt=0)],
2267
+ Tuple[
2268
+ Annotated[StrictFloat, Field(gt=0)],
2269
+ Annotated[StrictFloat, Field(gt=0)]
2270
+ ]
2271
+ ] = None,
2272
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2273
+ _content_type: Optional[StrictStr] = None,
2274
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2275
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2276
+ ) -> ApiResponse[UploadFileToManagedFileSystemResponse]:
2277
+ """Upload
2278
+
2279
+
2280
+ :param file: (required)
2281
+ :type file: bytearray
2282
+ :param filename: (required)
2283
+ :type filename: str
2284
+ :param overwrite:
2285
+ :type overwrite: bool
2286
+ :param uri:
2287
+ :type uri: str
2288
+ :param _request_timeout: timeout setting for this request. If one
2289
+ number provided, it will be total request
2290
+ timeout. It can also be a pair (tuple) of
2291
+ (connection, read) timeouts.
2292
+ :type _request_timeout: int, tuple(int, int), optional
2293
+ :param _request_auth: set to override the auth_settings for an a single
2294
+ request; this effectively ignores the
2295
+ authentication in the spec for a single request.
2296
+ :type _request_auth: dict, optional
2297
+ :param _content_type: force content-type for the request.
2298
+ :type _content_type: str, Optional
2299
+ :param _headers: set to override the headers for a single
2300
+ request; this effectively ignores the headers
2301
+ in the spec for a single request.
2302
+ :type _headers: dict, optional
2303
+ :param _host_index: set to override the host_index for a single
2304
+ request; this effectively ignores the host_index
2305
+ in the spec for a single request.
2306
+ :type _host_index: int, optional
2307
+ :return: Returns the result object.
2308
+ """ # noqa: E501
2309
+
2310
+ _param = self._upload_resource_serialize(
2311
+ file=file,
2312
+ filename=filename,
2313
+ overwrite=overwrite,
2314
+ uri=uri,
2315
+ _request_auth=_request_auth,
2316
+ _content_type=_content_type,
2317
+ _headers=_headers,
2318
+ _host_index=_host_index
2319
+ )
2320
+
2321
+ _response_types_map: Dict[str, Optional[str]] = {
2322
+ '200': "UploadFileToManagedFileSystemResponse",
2323
+ }
2324
+ response_data = self.api_client.call_api(
2325
+ *_param,
2326
+ _request_timeout=_request_timeout
2327
+ )
2328
+ response_data.read()
2329
+ return self.api_client.response_deserialize(
2330
+ response_data=response_data,
2331
+ response_types_map=_response_types_map,
2332
+ )
2333
+
2334
+
2335
+ @validate_call
2336
+ def upload_resource_without_preload_content(
2337
+ self,
2338
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
2339
+ filename: Annotated[str, Field(strict=True)],
2340
+ overwrite: Optional[StrictBool] = None,
2341
+ uri: Optional[StrictStr] = None,
2342
+ _request_timeout: Union[
2343
+ None,
2344
+ Annotated[StrictFloat, Field(gt=0)],
2345
+ Tuple[
2346
+ Annotated[StrictFloat, Field(gt=0)],
2347
+ Annotated[StrictFloat, Field(gt=0)]
2348
+ ]
2349
+ ] = None,
2350
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2351
+ _content_type: Optional[StrictStr] = None,
2352
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2353
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2354
+ ) -> RESTResponseType:
2355
+ """Upload
2356
+
2357
+
2358
+ :param file: (required)
2359
+ :type file: bytearray
2360
+ :param filename: (required)
2361
+ :type filename: str
2362
+ :param overwrite:
2363
+ :type overwrite: bool
2364
+ :param uri:
2365
+ :type uri: str
2366
+ :param _request_timeout: timeout setting for this request. If one
2367
+ number provided, it will be total request
2368
+ timeout. It can also be a pair (tuple) of
2369
+ (connection, read) timeouts.
2370
+ :type _request_timeout: int, tuple(int, int), optional
2371
+ :param _request_auth: set to override the auth_settings for an a single
2372
+ request; this effectively ignores the
2373
+ authentication in the spec for a single request.
2374
+ :type _request_auth: dict, optional
2375
+ :param _content_type: force content-type for the request.
2376
+ :type _content_type: str, Optional
2377
+ :param _headers: set to override the headers for a single
2378
+ request; this effectively ignores the headers
2379
+ in the spec for a single request.
2380
+ :type _headers: dict, optional
2381
+ :param _host_index: set to override the host_index for a single
2382
+ request; this effectively ignores the host_index
2383
+ in the spec for a single request.
2384
+ :type _host_index: int, optional
2385
+ :return: Returns the result object.
2386
+ """ # noqa: E501
2387
+
2388
+ _param = self._upload_resource_serialize(
2389
+ file=file,
2390
+ filename=filename,
2391
+ overwrite=overwrite,
2392
+ uri=uri,
2393
+ _request_auth=_request_auth,
2394
+ _content_type=_content_type,
2395
+ _headers=_headers,
2396
+ _host_index=_host_index
2397
+ )
2398
+
2399
+ _response_types_map: Dict[str, Optional[str]] = {
2400
+ '200': "UploadFileToManagedFileSystemResponse",
2401
+ }
2402
+ response_data = self.api_client.call_api(
2403
+ *_param,
2404
+ _request_timeout=_request_timeout
2405
+ )
2406
+ return response_data.response
2407
+
2408
+
2409
+ def _upload_resource_serialize(
2410
+ self,
2411
+ file,
2412
+ filename,
2413
+ overwrite,
2414
+ uri,
2415
+ _request_auth,
2416
+ _content_type,
2417
+ _headers,
2418
+ _host_index,
2419
+ ) -> RequestSerialized:
2420
+
2421
+ _host = None
2422
+
2423
+ _collection_formats: Dict[str, str] = {
2424
+ }
2425
+
2426
+ _path_params: Dict[str, str] = {}
2427
+ _query_params: List[Tuple[str, str]] = []
2428
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2429
+ _form_params: List[Tuple[str, str]] = []
2430
+ _files: Dict[
2431
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2432
+ ] = {}
2433
+ _body_params: Optional[bytes] = None
2434
+
2435
+ # process the path parameters
2436
+ # process the query parameters
2437
+ if overwrite is not None:
2438
+
2439
+ _query_params.append(('overwrite', overwrite))
2440
+
2441
+ if uri is not None:
2442
+
2443
+ _query_params.append(('uri', uri))
2444
+
2445
+ # process the header parameters
2446
+ # process the form parameters
2447
+ if file is not None:
2448
+ _files['file'] = file
2449
+ if filename is not None:
2450
+ _form_params.append(('filename', filename))
2451
+ # process the body parameter
2452
+
2453
+
2454
+ # set the HTTP header `Accept`
2455
+ if 'Accept' not in _header_params:
2456
+ _header_params['Accept'] = self.api_client.select_header_accept(
2457
+ [
2458
+ 'application/json'
2459
+ ]
2460
+ )
2461
+
2462
+ # set the HTTP header `Content-Type`
2463
+ if _content_type:
2464
+ _header_params['Content-Type'] = _content_type
2465
+ else:
2466
+ _default_content_type = (
2467
+ self.api_client.select_header_content_type(
2468
+ [
2469
+ 'multipart/form-data'
2470
+ ]
2471
+ )
2472
+ )
2473
+ if _default_content_type is not None:
2474
+ _header_params['Content-Type'] = _default_content_type
2475
+
2476
+ # authentication setting
2477
+ _auth_settings: List[str] = [
2478
+ ]
2479
+
2480
+ return self.api_client.param_serialize(
2481
+ method='POST',
2482
+ resource_path='/api/v1/resources/upload',
1618
2483
  path_params=_path_params,
1619
2484
  query_params=_query_params,
1620
2485
  header_params=_header_params,