perceptic-core-client 0.7.1__py3-none-any.whl → 0.7.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client/api/connection_resource_api.py +80 -80
- perceptic_core_client/api/file_system_contents_resource_api.py +293 -293
- perceptic_core_client/api/file_system_resource_api.py +145 -145
- perceptic_core_client/api/indexer_resource_api.py +47 -47
- perceptic_core_client/api/indexing_task_resource_api.py +109 -109
- perceptic_core_client/api/uri_resource_api.py +695 -122
- perceptic_core_client/test/test_connection_resource_api.py +6 -6
- perceptic_core_client/test/test_file_system_contents_resource_api.py +23 -23
- perceptic_core_client/test/test_file_system_resource_api.py +12 -12
- perceptic_core_client/test/test_indexer_resource_api.py +6 -6
- perceptic_core_client/test/test_indexing_task_resource_api.py +11 -11
- perceptic_core_client/test/test_uri_resource_api.py +31 -17
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.3.dist-info}/METADATA +15 -6
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.3.dist-info}/RECORD +16 -16
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.3.dist-info}/WHEEL +1 -1
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.3.dist-info}/top_level.txt +0 -0
|
@@ -47,10 +47,11 @@ class FileSystemContentsResourceApi:
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
@validate_call
|
|
50
|
-
def
|
|
50
|
+
def create_folder(
|
|
51
51
|
self,
|
|
52
52
|
file_system_rid: StrictStr,
|
|
53
|
-
|
|
53
|
+
create_folder_request: CreateFolderRequest,
|
|
54
|
+
parent: Optional[StrictStr] = None,
|
|
54
55
|
_request_timeout: Union[
|
|
55
56
|
None,
|
|
56
57
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -63,14 +64,16 @@ class FileSystemContentsResourceApi:
|
|
|
63
64
|
_content_type: Optional[StrictStr] = None,
|
|
64
65
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
65
66
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
66
|
-
) ->
|
|
67
|
-
"""
|
|
67
|
+
) -> CreateFolderResponse:
|
|
68
|
+
"""Create Folder
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
:param file_system_rid: (required)
|
|
71
72
|
:type file_system_rid: str
|
|
72
|
-
:param
|
|
73
|
-
:type
|
|
73
|
+
:param create_folder_request: (required)
|
|
74
|
+
:type create_folder_request: CreateFolderRequest
|
|
75
|
+
:param parent:
|
|
76
|
+
:type parent: str
|
|
74
77
|
:param _request_timeout: timeout setting for this request. If one
|
|
75
78
|
number provided, it will be total request
|
|
76
79
|
timeout. It can also be a pair (tuple) of
|
|
@@ -93,9 +96,10 @@ class FileSystemContentsResourceApi:
|
|
|
93
96
|
:return: Returns the result object.
|
|
94
97
|
""" # noqa: E501
|
|
95
98
|
|
|
96
|
-
_param = self.
|
|
99
|
+
_param = self._create_folder_serialize(
|
|
97
100
|
file_system_rid=file_system_rid,
|
|
98
|
-
|
|
101
|
+
create_folder_request=create_folder_request,
|
|
102
|
+
parent=parent,
|
|
99
103
|
_request_auth=_request_auth,
|
|
100
104
|
_content_type=_content_type,
|
|
101
105
|
_headers=_headers,
|
|
@@ -103,7 +107,8 @@ class FileSystemContentsResourceApi:
|
|
|
103
107
|
)
|
|
104
108
|
|
|
105
109
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
106
|
-
'200': "
|
|
110
|
+
'200': "CreateFolderResponse",
|
|
111
|
+
'400': None,
|
|
107
112
|
}
|
|
108
113
|
response_data = self.api_client.call_api(
|
|
109
114
|
*_param,
|
|
@@ -117,10 +122,11 @@ class FileSystemContentsResourceApi:
|
|
|
117
122
|
|
|
118
123
|
|
|
119
124
|
@validate_call
|
|
120
|
-
def
|
|
125
|
+
def create_folder_with_http_info(
|
|
121
126
|
self,
|
|
122
127
|
file_system_rid: StrictStr,
|
|
123
|
-
|
|
128
|
+
create_folder_request: CreateFolderRequest,
|
|
129
|
+
parent: Optional[StrictStr] = None,
|
|
124
130
|
_request_timeout: Union[
|
|
125
131
|
None,
|
|
126
132
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -133,14 +139,16 @@ class FileSystemContentsResourceApi:
|
|
|
133
139
|
_content_type: Optional[StrictStr] = None,
|
|
134
140
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
141
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
-
) -> ApiResponse[
|
|
137
|
-
"""
|
|
142
|
+
) -> ApiResponse[CreateFolderResponse]:
|
|
143
|
+
"""Create Folder
|
|
138
144
|
|
|
139
145
|
|
|
140
146
|
:param file_system_rid: (required)
|
|
141
147
|
:type file_system_rid: str
|
|
142
|
-
:param
|
|
143
|
-
:type
|
|
148
|
+
:param create_folder_request: (required)
|
|
149
|
+
:type create_folder_request: CreateFolderRequest
|
|
150
|
+
:param parent:
|
|
151
|
+
:type parent: str
|
|
144
152
|
:param _request_timeout: timeout setting for this request. If one
|
|
145
153
|
number provided, it will be total request
|
|
146
154
|
timeout. It can also be a pair (tuple) of
|
|
@@ -163,9 +171,10 @@ class FileSystemContentsResourceApi:
|
|
|
163
171
|
:return: Returns the result object.
|
|
164
172
|
""" # noqa: E501
|
|
165
173
|
|
|
166
|
-
_param = self.
|
|
174
|
+
_param = self._create_folder_serialize(
|
|
167
175
|
file_system_rid=file_system_rid,
|
|
168
|
-
|
|
176
|
+
create_folder_request=create_folder_request,
|
|
177
|
+
parent=parent,
|
|
169
178
|
_request_auth=_request_auth,
|
|
170
179
|
_content_type=_content_type,
|
|
171
180
|
_headers=_headers,
|
|
@@ -173,7 +182,8 @@ class FileSystemContentsResourceApi:
|
|
|
173
182
|
)
|
|
174
183
|
|
|
175
184
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
176
|
-
'200': "
|
|
185
|
+
'200': "CreateFolderResponse",
|
|
186
|
+
'400': None,
|
|
177
187
|
}
|
|
178
188
|
response_data = self.api_client.call_api(
|
|
179
189
|
*_param,
|
|
@@ -187,10 +197,11 @@ class FileSystemContentsResourceApi:
|
|
|
187
197
|
|
|
188
198
|
|
|
189
199
|
@validate_call
|
|
190
|
-
def
|
|
200
|
+
def create_folder_without_preload_content(
|
|
191
201
|
self,
|
|
192
202
|
file_system_rid: StrictStr,
|
|
193
|
-
|
|
203
|
+
create_folder_request: CreateFolderRequest,
|
|
204
|
+
parent: Optional[StrictStr] = None,
|
|
194
205
|
_request_timeout: Union[
|
|
195
206
|
None,
|
|
196
207
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -204,13 +215,15 @@ class FileSystemContentsResourceApi:
|
|
|
204
215
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
205
216
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
206
217
|
) -> RESTResponseType:
|
|
207
|
-
"""
|
|
218
|
+
"""Create Folder
|
|
208
219
|
|
|
209
220
|
|
|
210
221
|
:param file_system_rid: (required)
|
|
211
222
|
:type file_system_rid: str
|
|
212
|
-
:param
|
|
213
|
-
:type
|
|
223
|
+
:param create_folder_request: (required)
|
|
224
|
+
:type create_folder_request: CreateFolderRequest
|
|
225
|
+
:param parent:
|
|
226
|
+
:type parent: str
|
|
214
227
|
:param _request_timeout: timeout setting for this request. If one
|
|
215
228
|
number provided, it will be total request
|
|
216
229
|
timeout. It can also be a pair (tuple) of
|
|
@@ -233,9 +246,10 @@ class FileSystemContentsResourceApi:
|
|
|
233
246
|
:return: Returns the result object.
|
|
234
247
|
""" # noqa: E501
|
|
235
248
|
|
|
236
|
-
_param = self.
|
|
249
|
+
_param = self._create_folder_serialize(
|
|
237
250
|
file_system_rid=file_system_rid,
|
|
238
|
-
|
|
251
|
+
create_folder_request=create_folder_request,
|
|
252
|
+
parent=parent,
|
|
239
253
|
_request_auth=_request_auth,
|
|
240
254
|
_content_type=_content_type,
|
|
241
255
|
_headers=_headers,
|
|
@@ -243,7 +257,8 @@ class FileSystemContentsResourceApi:
|
|
|
243
257
|
)
|
|
244
258
|
|
|
245
259
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
-
'200': "
|
|
260
|
+
'200': "CreateFolderResponse",
|
|
261
|
+
'400': None,
|
|
247
262
|
}
|
|
248
263
|
response_data = self.api_client.call_api(
|
|
249
264
|
*_param,
|
|
@@ -252,10 +267,11 @@ class FileSystemContentsResourceApi:
|
|
|
252
267
|
return response_data.response
|
|
253
268
|
|
|
254
269
|
|
|
255
|
-
def
|
|
270
|
+
def _create_folder_serialize(
|
|
256
271
|
self,
|
|
257
272
|
file_system_rid,
|
|
258
|
-
|
|
273
|
+
create_folder_request,
|
|
274
|
+
parent,
|
|
259
275
|
_request_auth,
|
|
260
276
|
_content_type,
|
|
261
277
|
_headers,
|
|
@@ -280,31 +296,46 @@ class FileSystemContentsResourceApi:
|
|
|
280
296
|
if file_system_rid is not None:
|
|
281
297
|
_path_params['fileSystemRid'] = file_system_rid
|
|
282
298
|
# process the query parameters
|
|
283
|
-
if
|
|
299
|
+
if parent is not None:
|
|
284
300
|
|
|
285
|
-
_query_params.append(('
|
|
301
|
+
_query_params.append(('parent', parent))
|
|
286
302
|
|
|
287
303
|
# process the header parameters
|
|
288
304
|
# process the form parameters
|
|
289
305
|
# process the body parameter
|
|
306
|
+
if create_folder_request is not None:
|
|
307
|
+
_body_params = create_folder_request
|
|
290
308
|
|
|
291
309
|
|
|
292
310
|
# set the HTTP header `Accept`
|
|
293
311
|
if 'Accept' not in _header_params:
|
|
294
312
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
295
313
|
[
|
|
296
|
-
'application/
|
|
314
|
+
'application/json'
|
|
297
315
|
]
|
|
298
316
|
)
|
|
299
317
|
|
|
318
|
+
# set the HTTP header `Content-Type`
|
|
319
|
+
if _content_type:
|
|
320
|
+
_header_params['Content-Type'] = _content_type
|
|
321
|
+
else:
|
|
322
|
+
_default_content_type = (
|
|
323
|
+
self.api_client.select_header_content_type(
|
|
324
|
+
[
|
|
325
|
+
'application/json'
|
|
326
|
+
]
|
|
327
|
+
)
|
|
328
|
+
)
|
|
329
|
+
if _default_content_type is not None:
|
|
330
|
+
_header_params['Content-Type'] = _default_content_type
|
|
300
331
|
|
|
301
332
|
# authentication setting
|
|
302
333
|
_auth_settings: List[str] = [
|
|
303
334
|
]
|
|
304
335
|
|
|
305
336
|
return self.api_client.param_serialize(
|
|
306
|
-
method='
|
|
307
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
337
|
+
method='POST',
|
|
338
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/folders',
|
|
308
339
|
path_params=_path_params,
|
|
309
340
|
query_params=_query_params,
|
|
310
341
|
header_params=_header_params,
|
|
@@ -321,12 +352,10 @@ class FileSystemContentsResourceApi:
|
|
|
321
352
|
|
|
322
353
|
|
|
323
354
|
@validate_call
|
|
324
|
-
def
|
|
355
|
+
def download_file(
|
|
325
356
|
self,
|
|
326
357
|
file_system_rid: StrictStr,
|
|
327
|
-
|
|
328
|
-
page_size: Optional[StrictInt] = None,
|
|
329
|
-
resume_token: Optional[StrictStr] = None,
|
|
358
|
+
file: Optional[StrictStr] = None,
|
|
330
359
|
_request_timeout: Union[
|
|
331
360
|
None,
|
|
332
361
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -339,18 +368,14 @@ class FileSystemContentsResourceApi:
|
|
|
339
368
|
_content_type: Optional[StrictStr] = None,
|
|
340
369
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
341
370
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
342
|
-
) ->
|
|
343
|
-
"""
|
|
371
|
+
) -> bytearray:
|
|
372
|
+
"""Download
|
|
344
373
|
|
|
345
374
|
|
|
346
375
|
:param file_system_rid: (required)
|
|
347
376
|
:type file_system_rid: str
|
|
348
|
-
:param
|
|
349
|
-
:type
|
|
350
|
-
:param page_size:
|
|
351
|
-
:type page_size: int
|
|
352
|
-
:param resume_token:
|
|
353
|
-
:type resume_token: str
|
|
377
|
+
:param file:
|
|
378
|
+
:type file: str
|
|
354
379
|
:param _request_timeout: timeout setting for this request. If one
|
|
355
380
|
number provided, it will be total request
|
|
356
381
|
timeout. It can also be a pair (tuple) of
|
|
@@ -373,11 +398,9 @@ class FileSystemContentsResourceApi:
|
|
|
373
398
|
:return: Returns the result object.
|
|
374
399
|
""" # noqa: E501
|
|
375
400
|
|
|
376
|
-
_param = self.
|
|
401
|
+
_param = self._download_file_serialize(
|
|
377
402
|
file_system_rid=file_system_rid,
|
|
378
|
-
|
|
379
|
-
page_size=page_size,
|
|
380
|
-
resume_token=resume_token,
|
|
403
|
+
file=file,
|
|
381
404
|
_request_auth=_request_auth,
|
|
382
405
|
_content_type=_content_type,
|
|
383
406
|
_headers=_headers,
|
|
@@ -385,7 +408,7 @@ class FileSystemContentsResourceApi:
|
|
|
385
408
|
)
|
|
386
409
|
|
|
387
410
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
388
|
-
'200': "
|
|
411
|
+
'200': "bytearray",
|
|
389
412
|
}
|
|
390
413
|
response_data = self.api_client.call_api(
|
|
391
414
|
*_param,
|
|
@@ -399,12 +422,10 @@ class FileSystemContentsResourceApi:
|
|
|
399
422
|
|
|
400
423
|
|
|
401
424
|
@validate_call
|
|
402
|
-
def
|
|
425
|
+
def download_file_with_http_info(
|
|
403
426
|
self,
|
|
404
427
|
file_system_rid: StrictStr,
|
|
405
|
-
|
|
406
|
-
page_size: Optional[StrictInt] = None,
|
|
407
|
-
resume_token: Optional[StrictStr] = None,
|
|
428
|
+
file: Optional[StrictStr] = None,
|
|
408
429
|
_request_timeout: Union[
|
|
409
430
|
None,
|
|
410
431
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -417,18 +438,14 @@ class FileSystemContentsResourceApi:
|
|
|
417
438
|
_content_type: Optional[StrictStr] = None,
|
|
418
439
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
419
440
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
420
|
-
) -> ApiResponse[
|
|
421
|
-
"""
|
|
441
|
+
) -> ApiResponse[bytearray]:
|
|
442
|
+
"""Download
|
|
422
443
|
|
|
423
444
|
|
|
424
445
|
:param file_system_rid: (required)
|
|
425
446
|
:type file_system_rid: str
|
|
426
|
-
:param
|
|
427
|
-
:type
|
|
428
|
-
:param page_size:
|
|
429
|
-
:type page_size: int
|
|
430
|
-
:param resume_token:
|
|
431
|
-
:type resume_token: str
|
|
447
|
+
:param file:
|
|
448
|
+
:type file: str
|
|
432
449
|
:param _request_timeout: timeout setting for this request. If one
|
|
433
450
|
number provided, it will be total request
|
|
434
451
|
timeout. It can also be a pair (tuple) of
|
|
@@ -451,11 +468,9 @@ class FileSystemContentsResourceApi:
|
|
|
451
468
|
:return: Returns the result object.
|
|
452
469
|
""" # noqa: E501
|
|
453
470
|
|
|
454
|
-
_param = self.
|
|
471
|
+
_param = self._download_file_serialize(
|
|
455
472
|
file_system_rid=file_system_rid,
|
|
456
|
-
|
|
457
|
-
page_size=page_size,
|
|
458
|
-
resume_token=resume_token,
|
|
473
|
+
file=file,
|
|
459
474
|
_request_auth=_request_auth,
|
|
460
475
|
_content_type=_content_type,
|
|
461
476
|
_headers=_headers,
|
|
@@ -463,7 +478,7 @@ class FileSystemContentsResourceApi:
|
|
|
463
478
|
)
|
|
464
479
|
|
|
465
480
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
466
|
-
'200': "
|
|
481
|
+
'200': "bytearray",
|
|
467
482
|
}
|
|
468
483
|
response_data = self.api_client.call_api(
|
|
469
484
|
*_param,
|
|
@@ -477,12 +492,10 @@ class FileSystemContentsResourceApi:
|
|
|
477
492
|
|
|
478
493
|
|
|
479
494
|
@validate_call
|
|
480
|
-
def
|
|
495
|
+
def download_file_without_preload_content(
|
|
481
496
|
self,
|
|
482
497
|
file_system_rid: StrictStr,
|
|
483
|
-
|
|
484
|
-
page_size: Optional[StrictInt] = None,
|
|
485
|
-
resume_token: Optional[StrictStr] = None,
|
|
498
|
+
file: Optional[StrictStr] = None,
|
|
486
499
|
_request_timeout: Union[
|
|
487
500
|
None,
|
|
488
501
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -496,17 +509,13 @@ class FileSystemContentsResourceApi:
|
|
|
496
509
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
497
510
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
498
511
|
) -> RESTResponseType:
|
|
499
|
-
"""
|
|
512
|
+
"""Download
|
|
500
513
|
|
|
501
514
|
|
|
502
515
|
:param file_system_rid: (required)
|
|
503
516
|
:type file_system_rid: str
|
|
504
|
-
:param
|
|
505
|
-
:type
|
|
506
|
-
:param page_size:
|
|
507
|
-
:type page_size: int
|
|
508
|
-
:param resume_token:
|
|
509
|
-
:type resume_token: str
|
|
517
|
+
:param file:
|
|
518
|
+
:type file: str
|
|
510
519
|
:param _request_timeout: timeout setting for this request. If one
|
|
511
520
|
number provided, it will be total request
|
|
512
521
|
timeout. It can also be a pair (tuple) of
|
|
@@ -529,11 +538,9 @@ class FileSystemContentsResourceApi:
|
|
|
529
538
|
:return: Returns the result object.
|
|
530
539
|
""" # noqa: E501
|
|
531
540
|
|
|
532
|
-
_param = self.
|
|
541
|
+
_param = self._download_file_serialize(
|
|
533
542
|
file_system_rid=file_system_rid,
|
|
534
|
-
|
|
535
|
-
page_size=page_size,
|
|
536
|
-
resume_token=resume_token,
|
|
543
|
+
file=file,
|
|
537
544
|
_request_auth=_request_auth,
|
|
538
545
|
_content_type=_content_type,
|
|
539
546
|
_headers=_headers,
|
|
@@ -541,7 +548,7 @@ class FileSystemContentsResourceApi:
|
|
|
541
548
|
)
|
|
542
549
|
|
|
543
550
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
544
|
-
'200': "
|
|
551
|
+
'200': "bytearray",
|
|
545
552
|
}
|
|
546
553
|
response_data = self.api_client.call_api(
|
|
547
554
|
*_param,
|
|
@@ -550,12 +557,10 @@ class FileSystemContentsResourceApi:
|
|
|
550
557
|
return response_data.response
|
|
551
558
|
|
|
552
559
|
|
|
553
|
-
def
|
|
560
|
+
def _download_file_serialize(
|
|
554
561
|
self,
|
|
555
562
|
file_system_rid,
|
|
556
|
-
|
|
557
|
-
page_size,
|
|
558
|
-
resume_token,
|
|
563
|
+
file,
|
|
559
564
|
_request_auth,
|
|
560
565
|
_content_type,
|
|
561
566
|
_headers,
|
|
@@ -580,17 +585,9 @@ class FileSystemContentsResourceApi:
|
|
|
580
585
|
if file_system_rid is not None:
|
|
581
586
|
_path_params['fileSystemRid'] = file_system_rid
|
|
582
587
|
# process the query parameters
|
|
583
|
-
if
|
|
584
|
-
|
|
585
|
-
_query_params.append(('folder', folder))
|
|
586
|
-
|
|
587
|
-
if page_size is not None:
|
|
588
|
-
|
|
589
|
-
_query_params.append(('pageSize', page_size))
|
|
590
|
-
|
|
591
|
-
if resume_token is not None:
|
|
588
|
+
if file is not None:
|
|
592
589
|
|
|
593
|
-
_query_params.append(('
|
|
590
|
+
_query_params.append(('file', file))
|
|
594
591
|
|
|
595
592
|
# process the header parameters
|
|
596
593
|
# process the form parameters
|
|
@@ -601,7 +598,7 @@ class FileSystemContentsResourceApi:
|
|
|
601
598
|
if 'Accept' not in _header_params:
|
|
602
599
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
603
600
|
[
|
|
604
|
-
'application/
|
|
601
|
+
'application/octet-stream'
|
|
605
602
|
]
|
|
606
603
|
)
|
|
607
604
|
|
|
@@ -612,7 +609,7 @@ class FileSystemContentsResourceApi:
|
|
|
612
609
|
|
|
613
610
|
return self.api_client.param_serialize(
|
|
614
611
|
method='GET',
|
|
615
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
612
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/download',
|
|
616
613
|
path_params=_path_params,
|
|
617
614
|
query_params=_query_params,
|
|
618
615
|
header_params=_header_params,
|
|
@@ -629,11 +626,10 @@ class FileSystemContentsResourceApi:
|
|
|
629
626
|
|
|
630
627
|
|
|
631
628
|
@validate_call
|
|
632
|
-
def
|
|
629
|
+
def get_metadata(
|
|
633
630
|
self,
|
|
634
631
|
file_system_rid: StrictStr,
|
|
635
|
-
|
|
636
|
-
parent: Optional[StrictStr] = None,
|
|
632
|
+
id: Optional[StrictStr] = None,
|
|
637
633
|
_request_timeout: Union[
|
|
638
634
|
None,
|
|
639
635
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -646,16 +642,14 @@ class FileSystemContentsResourceApi:
|
|
|
646
642
|
_content_type: Optional[StrictStr] = None,
|
|
647
643
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
648
644
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
649
|
-
) ->
|
|
650
|
-
"""
|
|
645
|
+
) -> GetMetadataResponse:
|
|
646
|
+
"""Get Metadata
|
|
651
647
|
|
|
652
648
|
|
|
653
649
|
:param file_system_rid: (required)
|
|
654
650
|
:type file_system_rid: str
|
|
655
|
-
:param
|
|
656
|
-
:type
|
|
657
|
-
:param parent:
|
|
658
|
-
:type parent: str
|
|
651
|
+
:param id:
|
|
652
|
+
:type id: str
|
|
659
653
|
:param _request_timeout: timeout setting for this request. If one
|
|
660
654
|
number provided, it will be total request
|
|
661
655
|
timeout. It can also be a pair (tuple) of
|
|
@@ -678,10 +672,9 @@ class FileSystemContentsResourceApi:
|
|
|
678
672
|
:return: Returns the result object.
|
|
679
673
|
""" # noqa: E501
|
|
680
674
|
|
|
681
|
-
_param = self.
|
|
675
|
+
_param = self._get_metadata_serialize(
|
|
682
676
|
file_system_rid=file_system_rid,
|
|
683
|
-
|
|
684
|
-
parent=parent,
|
|
677
|
+
id=id,
|
|
685
678
|
_request_auth=_request_auth,
|
|
686
679
|
_content_type=_content_type,
|
|
687
680
|
_headers=_headers,
|
|
@@ -689,8 +682,7 @@ class FileSystemContentsResourceApi:
|
|
|
689
682
|
)
|
|
690
683
|
|
|
691
684
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
692
|
-
'200': "
|
|
693
|
-
'400': None,
|
|
685
|
+
'200': "GetMetadataResponse",
|
|
694
686
|
}
|
|
695
687
|
response_data = self.api_client.call_api(
|
|
696
688
|
*_param,
|
|
@@ -704,11 +696,10 @@ class FileSystemContentsResourceApi:
|
|
|
704
696
|
|
|
705
697
|
|
|
706
698
|
@validate_call
|
|
707
|
-
def
|
|
699
|
+
def get_metadata_with_http_info(
|
|
708
700
|
self,
|
|
709
701
|
file_system_rid: StrictStr,
|
|
710
|
-
|
|
711
|
-
parent: Optional[StrictStr] = None,
|
|
702
|
+
id: Optional[StrictStr] = None,
|
|
712
703
|
_request_timeout: Union[
|
|
713
704
|
None,
|
|
714
705
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -721,16 +712,14 @@ class FileSystemContentsResourceApi:
|
|
|
721
712
|
_content_type: Optional[StrictStr] = None,
|
|
722
713
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
723
714
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
724
|
-
) -> ApiResponse[
|
|
725
|
-
"""
|
|
715
|
+
) -> ApiResponse[GetMetadataResponse]:
|
|
716
|
+
"""Get Metadata
|
|
726
717
|
|
|
727
718
|
|
|
728
719
|
:param file_system_rid: (required)
|
|
729
720
|
:type file_system_rid: str
|
|
730
|
-
:param
|
|
731
|
-
:type
|
|
732
|
-
:param parent:
|
|
733
|
-
:type parent: str
|
|
721
|
+
:param id:
|
|
722
|
+
:type id: str
|
|
734
723
|
:param _request_timeout: timeout setting for this request. If one
|
|
735
724
|
number provided, it will be total request
|
|
736
725
|
timeout. It can also be a pair (tuple) of
|
|
@@ -753,10 +742,9 @@ class FileSystemContentsResourceApi:
|
|
|
753
742
|
:return: Returns the result object.
|
|
754
743
|
""" # noqa: E501
|
|
755
744
|
|
|
756
|
-
_param = self.
|
|
745
|
+
_param = self._get_metadata_serialize(
|
|
757
746
|
file_system_rid=file_system_rid,
|
|
758
|
-
|
|
759
|
-
parent=parent,
|
|
747
|
+
id=id,
|
|
760
748
|
_request_auth=_request_auth,
|
|
761
749
|
_content_type=_content_type,
|
|
762
750
|
_headers=_headers,
|
|
@@ -764,8 +752,7 @@ class FileSystemContentsResourceApi:
|
|
|
764
752
|
)
|
|
765
753
|
|
|
766
754
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
767
|
-
'200': "
|
|
768
|
-
'400': None,
|
|
755
|
+
'200': "GetMetadataResponse",
|
|
769
756
|
}
|
|
770
757
|
response_data = self.api_client.call_api(
|
|
771
758
|
*_param,
|
|
@@ -779,11 +766,10 @@ class FileSystemContentsResourceApi:
|
|
|
779
766
|
|
|
780
767
|
|
|
781
768
|
@validate_call
|
|
782
|
-
def
|
|
769
|
+
def get_metadata_without_preload_content(
|
|
783
770
|
self,
|
|
784
771
|
file_system_rid: StrictStr,
|
|
785
|
-
|
|
786
|
-
parent: Optional[StrictStr] = None,
|
|
772
|
+
id: Optional[StrictStr] = None,
|
|
787
773
|
_request_timeout: Union[
|
|
788
774
|
None,
|
|
789
775
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -797,15 +783,13 @@ class FileSystemContentsResourceApi:
|
|
|
797
783
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
798
784
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
799
785
|
) -> RESTResponseType:
|
|
800
|
-
"""
|
|
786
|
+
"""Get Metadata
|
|
801
787
|
|
|
802
788
|
|
|
803
789
|
:param file_system_rid: (required)
|
|
804
790
|
:type file_system_rid: str
|
|
805
|
-
:param
|
|
806
|
-
:type
|
|
807
|
-
:param parent:
|
|
808
|
-
:type parent: str
|
|
791
|
+
:param id:
|
|
792
|
+
:type id: str
|
|
809
793
|
:param _request_timeout: timeout setting for this request. If one
|
|
810
794
|
number provided, it will be total request
|
|
811
795
|
timeout. It can also be a pair (tuple) of
|
|
@@ -828,10 +812,9 @@ class FileSystemContentsResourceApi:
|
|
|
828
812
|
:return: Returns the result object.
|
|
829
813
|
""" # noqa: E501
|
|
830
814
|
|
|
831
|
-
_param = self.
|
|
815
|
+
_param = self._get_metadata_serialize(
|
|
832
816
|
file_system_rid=file_system_rid,
|
|
833
|
-
|
|
834
|
-
parent=parent,
|
|
817
|
+
id=id,
|
|
835
818
|
_request_auth=_request_auth,
|
|
836
819
|
_content_type=_content_type,
|
|
837
820
|
_headers=_headers,
|
|
@@ -839,8 +822,7 @@ class FileSystemContentsResourceApi:
|
|
|
839
822
|
)
|
|
840
823
|
|
|
841
824
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
842
|
-
'200': "
|
|
843
|
-
'400': None,
|
|
825
|
+
'200': "GetMetadataResponse",
|
|
844
826
|
}
|
|
845
827
|
response_data = self.api_client.call_api(
|
|
846
828
|
*_param,
|
|
@@ -849,11 +831,10 @@ class FileSystemContentsResourceApi:
|
|
|
849
831
|
return response_data.response
|
|
850
832
|
|
|
851
833
|
|
|
852
|
-
def
|
|
834
|
+
def _get_metadata_serialize(
|
|
853
835
|
self,
|
|
854
836
|
file_system_rid,
|
|
855
|
-
|
|
856
|
-
parent,
|
|
837
|
+
id,
|
|
857
838
|
_request_auth,
|
|
858
839
|
_content_type,
|
|
859
840
|
_headers,
|
|
@@ -878,15 +859,13 @@ class FileSystemContentsResourceApi:
|
|
|
878
859
|
if file_system_rid is not None:
|
|
879
860
|
_path_params['fileSystemRid'] = file_system_rid
|
|
880
861
|
# process the query parameters
|
|
881
|
-
if
|
|
862
|
+
if id is not None:
|
|
882
863
|
|
|
883
|
-
_query_params.append(('
|
|
864
|
+
_query_params.append(('id', id))
|
|
884
865
|
|
|
885
866
|
# process the header parameters
|
|
886
867
|
# process the form parameters
|
|
887
868
|
# process the body parameter
|
|
888
|
-
if create_folder_request is not None:
|
|
889
|
-
_body_params = create_folder_request
|
|
890
869
|
|
|
891
870
|
|
|
892
871
|
# set the HTTP header `Accept`
|
|
@@ -897,27 +876,14 @@ class FileSystemContentsResourceApi:
|
|
|
897
876
|
]
|
|
898
877
|
)
|
|
899
878
|
|
|
900
|
-
# set the HTTP header `Content-Type`
|
|
901
|
-
if _content_type:
|
|
902
|
-
_header_params['Content-Type'] = _content_type
|
|
903
|
-
else:
|
|
904
|
-
_default_content_type = (
|
|
905
|
-
self.api_client.select_header_content_type(
|
|
906
|
-
[
|
|
907
|
-
'application/json'
|
|
908
|
-
]
|
|
909
|
-
)
|
|
910
|
-
)
|
|
911
|
-
if _default_content_type is not None:
|
|
912
|
-
_header_params['Content-Type'] = _default_content_type
|
|
913
879
|
|
|
914
880
|
# authentication setting
|
|
915
881
|
_auth_settings: List[str] = [
|
|
916
882
|
]
|
|
917
883
|
|
|
918
884
|
return self.api_client.param_serialize(
|
|
919
|
-
method='
|
|
920
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
885
|
+
method='GET',
|
|
886
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/metadata',
|
|
921
887
|
path_params=_path_params,
|
|
922
888
|
query_params=_query_params,
|
|
923
889
|
header_params=_header_params,
|
|
@@ -934,10 +900,10 @@ class FileSystemContentsResourceApi:
|
|
|
934
900
|
|
|
935
901
|
|
|
936
902
|
@validate_call
|
|
937
|
-
def
|
|
903
|
+
def get_parent_resource(
|
|
938
904
|
self,
|
|
939
905
|
file_system_rid: StrictStr,
|
|
940
|
-
|
|
906
|
+
id: Optional[StrictStr] = None,
|
|
941
907
|
_request_timeout: Union[
|
|
942
908
|
None,
|
|
943
909
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -950,14 +916,14 @@ class FileSystemContentsResourceApi:
|
|
|
950
916
|
_content_type: Optional[StrictStr] = None,
|
|
951
917
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
952
918
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
953
|
-
) ->
|
|
954
|
-
"""
|
|
919
|
+
) -> GetParentResponse:
|
|
920
|
+
"""Get Parent
|
|
955
921
|
|
|
956
922
|
|
|
957
923
|
:param file_system_rid: (required)
|
|
958
924
|
:type file_system_rid: str
|
|
959
|
-
:param
|
|
960
|
-
:type
|
|
925
|
+
:param id:
|
|
926
|
+
:type id: str
|
|
961
927
|
:param _request_timeout: timeout setting for this request. If one
|
|
962
928
|
number provided, it will be total request
|
|
963
929
|
timeout. It can also be a pair (tuple) of
|
|
@@ -980,9 +946,9 @@ class FileSystemContentsResourceApi:
|
|
|
980
946
|
:return: Returns the result object.
|
|
981
947
|
""" # noqa: E501
|
|
982
948
|
|
|
983
|
-
_param = self.
|
|
949
|
+
_param = self._get_parent_resource_serialize(
|
|
984
950
|
file_system_rid=file_system_rid,
|
|
985
|
-
|
|
951
|
+
id=id,
|
|
986
952
|
_request_auth=_request_auth,
|
|
987
953
|
_content_type=_content_type,
|
|
988
954
|
_headers=_headers,
|
|
@@ -990,7 +956,7 @@ class FileSystemContentsResourceApi:
|
|
|
990
956
|
)
|
|
991
957
|
|
|
992
958
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
993
|
-
'200': "
|
|
959
|
+
'200': "GetParentResponse",
|
|
994
960
|
}
|
|
995
961
|
response_data = self.api_client.call_api(
|
|
996
962
|
*_param,
|
|
@@ -1004,10 +970,10 @@ class FileSystemContentsResourceApi:
|
|
|
1004
970
|
|
|
1005
971
|
|
|
1006
972
|
@validate_call
|
|
1007
|
-
def
|
|
973
|
+
def get_parent_resource_with_http_info(
|
|
1008
974
|
self,
|
|
1009
975
|
file_system_rid: StrictStr,
|
|
1010
|
-
|
|
976
|
+
id: Optional[StrictStr] = None,
|
|
1011
977
|
_request_timeout: Union[
|
|
1012
978
|
None,
|
|
1013
979
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1020,14 +986,14 @@ class FileSystemContentsResourceApi:
|
|
|
1020
986
|
_content_type: Optional[StrictStr] = None,
|
|
1021
987
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1022
988
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1023
|
-
) -> ApiResponse[
|
|
1024
|
-
"""
|
|
989
|
+
) -> ApiResponse[GetParentResponse]:
|
|
990
|
+
"""Get Parent
|
|
1025
991
|
|
|
1026
992
|
|
|
1027
993
|
:param file_system_rid: (required)
|
|
1028
994
|
:type file_system_rid: str
|
|
1029
|
-
:param
|
|
1030
|
-
:type
|
|
995
|
+
:param id:
|
|
996
|
+
:type id: str
|
|
1031
997
|
:param _request_timeout: timeout setting for this request. If one
|
|
1032
998
|
number provided, it will be total request
|
|
1033
999
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1050,9 +1016,9 @@ class FileSystemContentsResourceApi:
|
|
|
1050
1016
|
:return: Returns the result object.
|
|
1051
1017
|
""" # noqa: E501
|
|
1052
1018
|
|
|
1053
|
-
_param = self.
|
|
1019
|
+
_param = self._get_parent_resource_serialize(
|
|
1054
1020
|
file_system_rid=file_system_rid,
|
|
1055
|
-
|
|
1021
|
+
id=id,
|
|
1056
1022
|
_request_auth=_request_auth,
|
|
1057
1023
|
_content_type=_content_type,
|
|
1058
1024
|
_headers=_headers,
|
|
@@ -1060,7 +1026,7 @@ class FileSystemContentsResourceApi:
|
|
|
1060
1026
|
)
|
|
1061
1027
|
|
|
1062
1028
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1063
|
-
'200': "
|
|
1029
|
+
'200': "GetParentResponse",
|
|
1064
1030
|
}
|
|
1065
1031
|
response_data = self.api_client.call_api(
|
|
1066
1032
|
*_param,
|
|
@@ -1074,10 +1040,10 @@ class FileSystemContentsResourceApi:
|
|
|
1074
1040
|
|
|
1075
1041
|
|
|
1076
1042
|
@validate_call
|
|
1077
|
-
def
|
|
1043
|
+
def get_parent_resource_without_preload_content(
|
|
1078
1044
|
self,
|
|
1079
1045
|
file_system_rid: StrictStr,
|
|
1080
|
-
|
|
1046
|
+
id: Optional[StrictStr] = None,
|
|
1081
1047
|
_request_timeout: Union[
|
|
1082
1048
|
None,
|
|
1083
1049
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1091,13 +1057,13 @@ class FileSystemContentsResourceApi:
|
|
|
1091
1057
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1092
1058
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1093
1059
|
) -> RESTResponseType:
|
|
1094
|
-
"""
|
|
1060
|
+
"""Get Parent
|
|
1095
1061
|
|
|
1096
1062
|
|
|
1097
1063
|
:param file_system_rid: (required)
|
|
1098
1064
|
:type file_system_rid: str
|
|
1099
|
-
:param
|
|
1100
|
-
:type
|
|
1065
|
+
:param id:
|
|
1066
|
+
:type id: str
|
|
1101
1067
|
:param _request_timeout: timeout setting for this request. If one
|
|
1102
1068
|
number provided, it will be total request
|
|
1103
1069
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1120,9 +1086,9 @@ class FileSystemContentsResourceApi:
|
|
|
1120
1086
|
:return: Returns the result object.
|
|
1121
1087
|
""" # noqa: E501
|
|
1122
1088
|
|
|
1123
|
-
_param = self.
|
|
1089
|
+
_param = self._get_parent_resource_serialize(
|
|
1124
1090
|
file_system_rid=file_system_rid,
|
|
1125
|
-
|
|
1091
|
+
id=id,
|
|
1126
1092
|
_request_auth=_request_auth,
|
|
1127
1093
|
_content_type=_content_type,
|
|
1128
1094
|
_headers=_headers,
|
|
@@ -1130,7 +1096,7 @@ class FileSystemContentsResourceApi:
|
|
|
1130
1096
|
)
|
|
1131
1097
|
|
|
1132
1098
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1133
|
-
'200': "
|
|
1099
|
+
'200': "GetParentResponse",
|
|
1134
1100
|
}
|
|
1135
1101
|
response_data = self.api_client.call_api(
|
|
1136
1102
|
*_param,
|
|
@@ -1139,10 +1105,10 @@ class FileSystemContentsResourceApi:
|
|
|
1139
1105
|
return response_data.response
|
|
1140
1106
|
|
|
1141
1107
|
|
|
1142
|
-
def
|
|
1108
|
+
def _get_parent_resource_serialize(
|
|
1143
1109
|
self,
|
|
1144
1110
|
file_system_rid,
|
|
1145
|
-
|
|
1111
|
+
id,
|
|
1146
1112
|
_request_auth,
|
|
1147
1113
|
_content_type,
|
|
1148
1114
|
_headers,
|
|
@@ -1167,9 +1133,9 @@ class FileSystemContentsResourceApi:
|
|
|
1167
1133
|
if file_system_rid is not None:
|
|
1168
1134
|
_path_params['fileSystemRid'] = file_system_rid
|
|
1169
1135
|
# process the query parameters
|
|
1170
|
-
if
|
|
1136
|
+
if id is not None:
|
|
1171
1137
|
|
|
1172
|
-
_query_params.append(('
|
|
1138
|
+
_query_params.append(('id', id))
|
|
1173
1139
|
|
|
1174
1140
|
# process the header parameters
|
|
1175
1141
|
# process the form parameters
|
|
@@ -1191,7 +1157,7 @@ class FileSystemContentsResourceApi:
|
|
|
1191
1157
|
|
|
1192
1158
|
return self.api_client.param_serialize(
|
|
1193
1159
|
method='GET',
|
|
1194
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
1160
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/parent',
|
|
1195
1161
|
path_params=_path_params,
|
|
1196
1162
|
query_params=_query_params,
|
|
1197
1163
|
header_params=_header_params,
|
|
@@ -1208,10 +1174,10 @@ class FileSystemContentsResourceApi:
|
|
|
1208
1174
|
|
|
1209
1175
|
|
|
1210
1176
|
@validate_call
|
|
1211
|
-
def
|
|
1177
|
+
def get_signed_url(
|
|
1212
1178
|
self,
|
|
1213
1179
|
file_system_rid: StrictStr,
|
|
1214
|
-
|
|
1180
|
+
file: Optional[StrictStr] = None,
|
|
1215
1181
|
_request_timeout: Union[
|
|
1216
1182
|
None,
|
|
1217
1183
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1224,14 +1190,14 @@ class FileSystemContentsResourceApi:
|
|
|
1224
1190
|
_content_type: Optional[StrictStr] = None,
|
|
1225
1191
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1226
1192
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1227
|
-
) ->
|
|
1228
|
-
"""
|
|
1193
|
+
) -> GetSignedUrlResponse:
|
|
1194
|
+
"""Signed Url
|
|
1229
1195
|
|
|
1230
1196
|
|
|
1231
1197
|
:param file_system_rid: (required)
|
|
1232
1198
|
:type file_system_rid: str
|
|
1233
|
-
:param
|
|
1234
|
-
:type
|
|
1199
|
+
:param file:
|
|
1200
|
+
:type file: str
|
|
1235
1201
|
:param _request_timeout: timeout setting for this request. If one
|
|
1236
1202
|
number provided, it will be total request
|
|
1237
1203
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1254,9 +1220,9 @@ class FileSystemContentsResourceApi:
|
|
|
1254
1220
|
:return: Returns the result object.
|
|
1255
1221
|
""" # noqa: E501
|
|
1256
1222
|
|
|
1257
|
-
_param = self.
|
|
1223
|
+
_param = self._get_signed_url_serialize(
|
|
1258
1224
|
file_system_rid=file_system_rid,
|
|
1259
|
-
|
|
1225
|
+
file=file,
|
|
1260
1226
|
_request_auth=_request_auth,
|
|
1261
1227
|
_content_type=_content_type,
|
|
1262
1228
|
_headers=_headers,
|
|
@@ -1264,7 +1230,7 @@ class FileSystemContentsResourceApi:
|
|
|
1264
1230
|
)
|
|
1265
1231
|
|
|
1266
1232
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1267
|
-
'200': "
|
|
1233
|
+
'200': "GetSignedUrlResponse",
|
|
1268
1234
|
}
|
|
1269
1235
|
response_data = self.api_client.call_api(
|
|
1270
1236
|
*_param,
|
|
@@ -1278,10 +1244,10 @@ class FileSystemContentsResourceApi:
|
|
|
1278
1244
|
|
|
1279
1245
|
|
|
1280
1246
|
@validate_call
|
|
1281
|
-
def
|
|
1247
|
+
def get_signed_url_with_http_info(
|
|
1282
1248
|
self,
|
|
1283
1249
|
file_system_rid: StrictStr,
|
|
1284
|
-
|
|
1250
|
+
file: Optional[StrictStr] = None,
|
|
1285
1251
|
_request_timeout: Union[
|
|
1286
1252
|
None,
|
|
1287
1253
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1294,14 +1260,14 @@ class FileSystemContentsResourceApi:
|
|
|
1294
1260
|
_content_type: Optional[StrictStr] = None,
|
|
1295
1261
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1296
1262
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1297
|
-
) -> ApiResponse[
|
|
1298
|
-
"""
|
|
1263
|
+
) -> ApiResponse[GetSignedUrlResponse]:
|
|
1264
|
+
"""Signed Url
|
|
1299
1265
|
|
|
1300
1266
|
|
|
1301
1267
|
:param file_system_rid: (required)
|
|
1302
1268
|
:type file_system_rid: str
|
|
1303
|
-
:param
|
|
1304
|
-
:type
|
|
1269
|
+
:param file:
|
|
1270
|
+
:type file: str
|
|
1305
1271
|
:param _request_timeout: timeout setting for this request. If one
|
|
1306
1272
|
number provided, it will be total request
|
|
1307
1273
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1324,9 +1290,9 @@ class FileSystemContentsResourceApi:
|
|
|
1324
1290
|
:return: Returns the result object.
|
|
1325
1291
|
""" # noqa: E501
|
|
1326
1292
|
|
|
1327
|
-
_param = self.
|
|
1293
|
+
_param = self._get_signed_url_serialize(
|
|
1328
1294
|
file_system_rid=file_system_rid,
|
|
1329
|
-
|
|
1295
|
+
file=file,
|
|
1330
1296
|
_request_auth=_request_auth,
|
|
1331
1297
|
_content_type=_content_type,
|
|
1332
1298
|
_headers=_headers,
|
|
@@ -1334,7 +1300,7 @@ class FileSystemContentsResourceApi:
|
|
|
1334
1300
|
)
|
|
1335
1301
|
|
|
1336
1302
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1337
|
-
'200': "
|
|
1303
|
+
'200': "GetSignedUrlResponse",
|
|
1338
1304
|
}
|
|
1339
1305
|
response_data = self.api_client.call_api(
|
|
1340
1306
|
*_param,
|
|
@@ -1348,10 +1314,10 @@ class FileSystemContentsResourceApi:
|
|
|
1348
1314
|
|
|
1349
1315
|
|
|
1350
1316
|
@validate_call
|
|
1351
|
-
def
|
|
1317
|
+
def get_signed_url_without_preload_content(
|
|
1352
1318
|
self,
|
|
1353
1319
|
file_system_rid: StrictStr,
|
|
1354
|
-
|
|
1320
|
+
file: Optional[StrictStr] = None,
|
|
1355
1321
|
_request_timeout: Union[
|
|
1356
1322
|
None,
|
|
1357
1323
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1365,13 +1331,13 @@ class FileSystemContentsResourceApi:
|
|
|
1365
1331
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1366
1332
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1367
1333
|
) -> RESTResponseType:
|
|
1368
|
-
"""
|
|
1334
|
+
"""Signed Url
|
|
1369
1335
|
|
|
1370
1336
|
|
|
1371
1337
|
:param file_system_rid: (required)
|
|
1372
1338
|
:type file_system_rid: str
|
|
1373
|
-
:param
|
|
1374
|
-
:type
|
|
1339
|
+
:param file:
|
|
1340
|
+
:type file: str
|
|
1375
1341
|
:param _request_timeout: timeout setting for this request. If one
|
|
1376
1342
|
number provided, it will be total request
|
|
1377
1343
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1394,9 +1360,9 @@ class FileSystemContentsResourceApi:
|
|
|
1394
1360
|
:return: Returns the result object.
|
|
1395
1361
|
""" # noqa: E501
|
|
1396
1362
|
|
|
1397
|
-
_param = self.
|
|
1363
|
+
_param = self._get_signed_url_serialize(
|
|
1398
1364
|
file_system_rid=file_system_rid,
|
|
1399
|
-
|
|
1365
|
+
file=file,
|
|
1400
1366
|
_request_auth=_request_auth,
|
|
1401
1367
|
_content_type=_content_type,
|
|
1402
1368
|
_headers=_headers,
|
|
@@ -1404,7 +1370,7 @@ class FileSystemContentsResourceApi:
|
|
|
1404
1370
|
)
|
|
1405
1371
|
|
|
1406
1372
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1407
|
-
'200': "
|
|
1373
|
+
'200': "GetSignedUrlResponse",
|
|
1408
1374
|
}
|
|
1409
1375
|
response_data = self.api_client.call_api(
|
|
1410
1376
|
*_param,
|
|
@@ -1413,10 +1379,10 @@ class FileSystemContentsResourceApi:
|
|
|
1413
1379
|
return response_data.response
|
|
1414
1380
|
|
|
1415
1381
|
|
|
1416
|
-
def
|
|
1382
|
+
def _get_signed_url_serialize(
|
|
1417
1383
|
self,
|
|
1418
1384
|
file_system_rid,
|
|
1419
|
-
|
|
1385
|
+
file,
|
|
1420
1386
|
_request_auth,
|
|
1421
1387
|
_content_type,
|
|
1422
1388
|
_headers,
|
|
@@ -1441,9 +1407,9 @@ class FileSystemContentsResourceApi:
|
|
|
1441
1407
|
if file_system_rid is not None:
|
|
1442
1408
|
_path_params['fileSystemRid'] = file_system_rid
|
|
1443
1409
|
# process the query parameters
|
|
1444
|
-
if
|
|
1410
|
+
if file is not None:
|
|
1445
1411
|
|
|
1446
|
-
_query_params.append(('
|
|
1412
|
+
_query_params.append(('file', file))
|
|
1447
1413
|
|
|
1448
1414
|
# process the header parameters
|
|
1449
1415
|
# process the form parameters
|
|
@@ -1465,7 +1431,7 @@ class FileSystemContentsResourceApi:
|
|
|
1465
1431
|
|
|
1466
1432
|
return self.api_client.param_serialize(
|
|
1467
1433
|
method='GET',
|
|
1468
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
1434
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/signed-url',
|
|
1469
1435
|
path_params=_path_params,
|
|
1470
1436
|
query_params=_query_params,
|
|
1471
1437
|
header_params=_header_params,
|
|
@@ -1482,10 +1448,12 @@ class FileSystemContentsResourceApi:
|
|
|
1482
1448
|
|
|
1483
1449
|
|
|
1484
1450
|
@validate_call
|
|
1485
|
-
def
|
|
1451
|
+
def list_files_flattened(
|
|
1486
1452
|
self,
|
|
1487
1453
|
file_system_rid: StrictStr,
|
|
1488
|
-
|
|
1454
|
+
folder: Optional[StrictStr] = None,
|
|
1455
|
+
page_size: Optional[StrictInt] = None,
|
|
1456
|
+
resume_token: Optional[StrictStr] = None,
|
|
1489
1457
|
_request_timeout: Union[
|
|
1490
1458
|
None,
|
|
1491
1459
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1498,14 +1466,18 @@ class FileSystemContentsResourceApi:
|
|
|
1498
1466
|
_content_type: Optional[StrictStr] = None,
|
|
1499
1467
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1500
1468
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1501
|
-
) ->
|
|
1502
|
-
"""
|
|
1469
|
+
) -> PagedListFileSystemResponse:
|
|
1470
|
+
"""List Files Flattened
|
|
1503
1471
|
|
|
1504
1472
|
|
|
1505
1473
|
:param file_system_rid: (required)
|
|
1506
1474
|
:type file_system_rid: str
|
|
1507
|
-
:param
|
|
1508
|
-
:type
|
|
1475
|
+
:param folder:
|
|
1476
|
+
:type folder: str
|
|
1477
|
+
:param page_size:
|
|
1478
|
+
:type page_size: int
|
|
1479
|
+
:param resume_token:
|
|
1480
|
+
:type resume_token: str
|
|
1509
1481
|
:param _request_timeout: timeout setting for this request. If one
|
|
1510
1482
|
number provided, it will be total request
|
|
1511
1483
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1528,9 +1500,11 @@ class FileSystemContentsResourceApi:
|
|
|
1528
1500
|
:return: Returns the result object.
|
|
1529
1501
|
""" # noqa: E501
|
|
1530
1502
|
|
|
1531
|
-
_param = self.
|
|
1503
|
+
_param = self._list_files_flattened_serialize(
|
|
1532
1504
|
file_system_rid=file_system_rid,
|
|
1533
|
-
|
|
1505
|
+
folder=folder,
|
|
1506
|
+
page_size=page_size,
|
|
1507
|
+
resume_token=resume_token,
|
|
1534
1508
|
_request_auth=_request_auth,
|
|
1535
1509
|
_content_type=_content_type,
|
|
1536
1510
|
_headers=_headers,
|
|
@@ -1538,7 +1512,7 @@ class FileSystemContentsResourceApi:
|
|
|
1538
1512
|
)
|
|
1539
1513
|
|
|
1540
1514
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1541
|
-
'200': "
|
|
1515
|
+
'200': "PagedListFileSystemResponse",
|
|
1542
1516
|
}
|
|
1543
1517
|
response_data = self.api_client.call_api(
|
|
1544
1518
|
*_param,
|
|
@@ -1552,10 +1526,12 @@ class FileSystemContentsResourceApi:
|
|
|
1552
1526
|
|
|
1553
1527
|
|
|
1554
1528
|
@validate_call
|
|
1555
|
-
def
|
|
1529
|
+
def list_files_flattened_with_http_info(
|
|
1556
1530
|
self,
|
|
1557
1531
|
file_system_rid: StrictStr,
|
|
1558
|
-
|
|
1532
|
+
folder: Optional[StrictStr] = None,
|
|
1533
|
+
page_size: Optional[StrictInt] = None,
|
|
1534
|
+
resume_token: Optional[StrictStr] = None,
|
|
1559
1535
|
_request_timeout: Union[
|
|
1560
1536
|
None,
|
|
1561
1537
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1568,14 +1544,18 @@ class FileSystemContentsResourceApi:
|
|
|
1568
1544
|
_content_type: Optional[StrictStr] = None,
|
|
1569
1545
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1570
1546
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1571
|
-
) -> ApiResponse[
|
|
1572
|
-
"""
|
|
1547
|
+
) -> ApiResponse[PagedListFileSystemResponse]:
|
|
1548
|
+
"""List Files Flattened
|
|
1573
1549
|
|
|
1574
1550
|
|
|
1575
1551
|
:param file_system_rid: (required)
|
|
1576
1552
|
:type file_system_rid: str
|
|
1577
|
-
:param
|
|
1578
|
-
:type
|
|
1553
|
+
:param folder:
|
|
1554
|
+
:type folder: str
|
|
1555
|
+
:param page_size:
|
|
1556
|
+
:type page_size: int
|
|
1557
|
+
:param resume_token:
|
|
1558
|
+
:type resume_token: str
|
|
1579
1559
|
:param _request_timeout: timeout setting for this request. If one
|
|
1580
1560
|
number provided, it will be total request
|
|
1581
1561
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1598,9 +1578,11 @@ class FileSystemContentsResourceApi:
|
|
|
1598
1578
|
:return: Returns the result object.
|
|
1599
1579
|
""" # noqa: E501
|
|
1600
1580
|
|
|
1601
|
-
_param = self.
|
|
1581
|
+
_param = self._list_files_flattened_serialize(
|
|
1602
1582
|
file_system_rid=file_system_rid,
|
|
1603
|
-
|
|
1583
|
+
folder=folder,
|
|
1584
|
+
page_size=page_size,
|
|
1585
|
+
resume_token=resume_token,
|
|
1604
1586
|
_request_auth=_request_auth,
|
|
1605
1587
|
_content_type=_content_type,
|
|
1606
1588
|
_headers=_headers,
|
|
@@ -1608,7 +1590,7 @@ class FileSystemContentsResourceApi:
|
|
|
1608
1590
|
)
|
|
1609
1591
|
|
|
1610
1592
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1611
|
-
'200': "
|
|
1593
|
+
'200': "PagedListFileSystemResponse",
|
|
1612
1594
|
}
|
|
1613
1595
|
response_data = self.api_client.call_api(
|
|
1614
1596
|
*_param,
|
|
@@ -1622,10 +1604,12 @@ class FileSystemContentsResourceApi:
|
|
|
1622
1604
|
|
|
1623
1605
|
|
|
1624
1606
|
@validate_call
|
|
1625
|
-
def
|
|
1607
|
+
def list_files_flattened_without_preload_content(
|
|
1626
1608
|
self,
|
|
1627
1609
|
file_system_rid: StrictStr,
|
|
1628
|
-
|
|
1610
|
+
folder: Optional[StrictStr] = None,
|
|
1611
|
+
page_size: Optional[StrictInt] = None,
|
|
1612
|
+
resume_token: Optional[StrictStr] = None,
|
|
1629
1613
|
_request_timeout: Union[
|
|
1630
1614
|
None,
|
|
1631
1615
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1639,13 +1623,17 @@ class FileSystemContentsResourceApi:
|
|
|
1639
1623
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1640
1624
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1641
1625
|
) -> RESTResponseType:
|
|
1642
|
-
"""
|
|
1626
|
+
"""List Files Flattened
|
|
1643
1627
|
|
|
1644
1628
|
|
|
1645
1629
|
:param file_system_rid: (required)
|
|
1646
1630
|
:type file_system_rid: str
|
|
1647
|
-
:param
|
|
1648
|
-
:type
|
|
1631
|
+
:param folder:
|
|
1632
|
+
:type folder: str
|
|
1633
|
+
:param page_size:
|
|
1634
|
+
:type page_size: int
|
|
1635
|
+
:param resume_token:
|
|
1636
|
+
:type resume_token: str
|
|
1649
1637
|
:param _request_timeout: timeout setting for this request. If one
|
|
1650
1638
|
number provided, it will be total request
|
|
1651
1639
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1668,9 +1656,11 @@ class FileSystemContentsResourceApi:
|
|
|
1668
1656
|
:return: Returns the result object.
|
|
1669
1657
|
""" # noqa: E501
|
|
1670
1658
|
|
|
1671
|
-
_param = self.
|
|
1659
|
+
_param = self._list_files_flattened_serialize(
|
|
1672
1660
|
file_system_rid=file_system_rid,
|
|
1673
|
-
|
|
1661
|
+
folder=folder,
|
|
1662
|
+
page_size=page_size,
|
|
1663
|
+
resume_token=resume_token,
|
|
1674
1664
|
_request_auth=_request_auth,
|
|
1675
1665
|
_content_type=_content_type,
|
|
1676
1666
|
_headers=_headers,
|
|
@@ -1678,7 +1668,7 @@ class FileSystemContentsResourceApi:
|
|
|
1678
1668
|
)
|
|
1679
1669
|
|
|
1680
1670
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1681
|
-
'200': "
|
|
1671
|
+
'200': "PagedListFileSystemResponse",
|
|
1682
1672
|
}
|
|
1683
1673
|
response_data = self.api_client.call_api(
|
|
1684
1674
|
*_param,
|
|
@@ -1687,10 +1677,12 @@ class FileSystemContentsResourceApi:
|
|
|
1687
1677
|
return response_data.response
|
|
1688
1678
|
|
|
1689
1679
|
|
|
1690
|
-
def
|
|
1680
|
+
def _list_files_flattened_serialize(
|
|
1691
1681
|
self,
|
|
1692
1682
|
file_system_rid,
|
|
1693
|
-
|
|
1683
|
+
folder,
|
|
1684
|
+
page_size,
|
|
1685
|
+
resume_token,
|
|
1694
1686
|
_request_auth,
|
|
1695
1687
|
_content_type,
|
|
1696
1688
|
_headers,
|
|
@@ -1715,9 +1707,17 @@ class FileSystemContentsResourceApi:
|
|
|
1715
1707
|
if file_system_rid is not None:
|
|
1716
1708
|
_path_params['fileSystemRid'] = file_system_rid
|
|
1717
1709
|
# process the query parameters
|
|
1718
|
-
if
|
|
1710
|
+
if folder is not None:
|
|
1719
1711
|
|
|
1720
|
-
_query_params.append(('
|
|
1712
|
+
_query_params.append(('folder', folder))
|
|
1713
|
+
|
|
1714
|
+
if page_size is not None:
|
|
1715
|
+
|
|
1716
|
+
_query_params.append(('pageSize', page_size))
|
|
1717
|
+
|
|
1718
|
+
if resume_token is not None:
|
|
1719
|
+
|
|
1720
|
+
_query_params.append(('resumeToken', resume_token))
|
|
1721
1721
|
|
|
1722
1722
|
# process the header parameters
|
|
1723
1723
|
# process the form parameters
|
|
@@ -1739,7 +1739,7 @@ class FileSystemContentsResourceApi:
|
|
|
1739
1739
|
|
|
1740
1740
|
return self.api_client.param_serialize(
|
|
1741
1741
|
method='GET',
|
|
1742
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
1742
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/files',
|
|
1743
1743
|
path_params=_path_params,
|
|
1744
1744
|
query_params=_query_params,
|
|
1745
1745
|
header_params=_header_params,
|
|
@@ -1756,10 +1756,10 @@ class FileSystemContentsResourceApi:
|
|
|
1756
1756
|
|
|
1757
1757
|
|
|
1758
1758
|
@validate_call
|
|
1759
|
-
def
|
|
1759
|
+
def list_folder_contents(
|
|
1760
1760
|
self,
|
|
1761
1761
|
file_system_rid: StrictStr,
|
|
1762
|
-
|
|
1762
|
+
folder: Optional[StrictStr] = None,
|
|
1763
1763
|
_request_timeout: Union[
|
|
1764
1764
|
None,
|
|
1765
1765
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1772,14 +1772,14 @@ class FileSystemContentsResourceApi:
|
|
|
1772
1772
|
_content_type: Optional[StrictStr] = None,
|
|
1773
1773
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1774
1774
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1775
|
-
) ->
|
|
1776
|
-
"""
|
|
1775
|
+
) -> ListFileSystemResponse:
|
|
1776
|
+
"""List
|
|
1777
1777
|
|
|
1778
1778
|
|
|
1779
1779
|
:param file_system_rid: (required)
|
|
1780
1780
|
:type file_system_rid: str
|
|
1781
|
-
:param
|
|
1782
|
-
:type
|
|
1781
|
+
:param folder:
|
|
1782
|
+
:type folder: str
|
|
1783
1783
|
:param _request_timeout: timeout setting for this request. If one
|
|
1784
1784
|
number provided, it will be total request
|
|
1785
1785
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1802,9 +1802,9 @@ class FileSystemContentsResourceApi:
|
|
|
1802
1802
|
:return: Returns the result object.
|
|
1803
1803
|
""" # noqa: E501
|
|
1804
1804
|
|
|
1805
|
-
_param = self.
|
|
1805
|
+
_param = self._list_folder_contents_serialize(
|
|
1806
1806
|
file_system_rid=file_system_rid,
|
|
1807
|
-
|
|
1807
|
+
folder=folder,
|
|
1808
1808
|
_request_auth=_request_auth,
|
|
1809
1809
|
_content_type=_content_type,
|
|
1810
1810
|
_headers=_headers,
|
|
@@ -1812,7 +1812,7 @@ class FileSystemContentsResourceApi:
|
|
|
1812
1812
|
)
|
|
1813
1813
|
|
|
1814
1814
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1815
|
-
'200': "
|
|
1815
|
+
'200': "ListFileSystemResponse",
|
|
1816
1816
|
}
|
|
1817
1817
|
response_data = self.api_client.call_api(
|
|
1818
1818
|
*_param,
|
|
@@ -1826,10 +1826,10 @@ class FileSystemContentsResourceApi:
|
|
|
1826
1826
|
|
|
1827
1827
|
|
|
1828
1828
|
@validate_call
|
|
1829
|
-
def
|
|
1829
|
+
def list_folder_contents_with_http_info(
|
|
1830
1830
|
self,
|
|
1831
1831
|
file_system_rid: StrictStr,
|
|
1832
|
-
|
|
1832
|
+
folder: Optional[StrictStr] = None,
|
|
1833
1833
|
_request_timeout: Union[
|
|
1834
1834
|
None,
|
|
1835
1835
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1842,14 +1842,14 @@ class FileSystemContentsResourceApi:
|
|
|
1842
1842
|
_content_type: Optional[StrictStr] = None,
|
|
1843
1843
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1844
1844
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1845
|
-
) -> ApiResponse[
|
|
1846
|
-
"""
|
|
1845
|
+
) -> ApiResponse[ListFileSystemResponse]:
|
|
1846
|
+
"""List
|
|
1847
1847
|
|
|
1848
1848
|
|
|
1849
1849
|
:param file_system_rid: (required)
|
|
1850
1850
|
:type file_system_rid: str
|
|
1851
|
-
:param
|
|
1852
|
-
:type
|
|
1851
|
+
:param folder:
|
|
1852
|
+
:type folder: str
|
|
1853
1853
|
:param _request_timeout: timeout setting for this request. If one
|
|
1854
1854
|
number provided, it will be total request
|
|
1855
1855
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1872,9 +1872,9 @@ class FileSystemContentsResourceApi:
|
|
|
1872
1872
|
:return: Returns the result object.
|
|
1873
1873
|
""" # noqa: E501
|
|
1874
1874
|
|
|
1875
|
-
_param = self.
|
|
1875
|
+
_param = self._list_folder_contents_serialize(
|
|
1876
1876
|
file_system_rid=file_system_rid,
|
|
1877
|
-
|
|
1877
|
+
folder=folder,
|
|
1878
1878
|
_request_auth=_request_auth,
|
|
1879
1879
|
_content_type=_content_type,
|
|
1880
1880
|
_headers=_headers,
|
|
@@ -1882,7 +1882,7 @@ class FileSystemContentsResourceApi:
|
|
|
1882
1882
|
)
|
|
1883
1883
|
|
|
1884
1884
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1885
|
-
'200': "
|
|
1885
|
+
'200': "ListFileSystemResponse",
|
|
1886
1886
|
}
|
|
1887
1887
|
response_data = self.api_client.call_api(
|
|
1888
1888
|
*_param,
|
|
@@ -1896,10 +1896,10 @@ class FileSystemContentsResourceApi:
|
|
|
1896
1896
|
|
|
1897
1897
|
|
|
1898
1898
|
@validate_call
|
|
1899
|
-
def
|
|
1899
|
+
def list_folder_contents_without_preload_content(
|
|
1900
1900
|
self,
|
|
1901
1901
|
file_system_rid: StrictStr,
|
|
1902
|
-
|
|
1902
|
+
folder: Optional[StrictStr] = None,
|
|
1903
1903
|
_request_timeout: Union[
|
|
1904
1904
|
None,
|
|
1905
1905
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1913,13 +1913,13 @@ class FileSystemContentsResourceApi:
|
|
|
1913
1913
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1914
1914
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1915
1915
|
) -> RESTResponseType:
|
|
1916
|
-
"""
|
|
1916
|
+
"""List
|
|
1917
1917
|
|
|
1918
1918
|
|
|
1919
1919
|
:param file_system_rid: (required)
|
|
1920
1920
|
:type file_system_rid: str
|
|
1921
|
-
:param
|
|
1922
|
-
:type
|
|
1921
|
+
:param folder:
|
|
1922
|
+
:type folder: str
|
|
1923
1923
|
:param _request_timeout: timeout setting for this request. If one
|
|
1924
1924
|
number provided, it will be total request
|
|
1925
1925
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1942,9 +1942,9 @@ class FileSystemContentsResourceApi:
|
|
|
1942
1942
|
:return: Returns the result object.
|
|
1943
1943
|
""" # noqa: E501
|
|
1944
1944
|
|
|
1945
|
-
_param = self.
|
|
1945
|
+
_param = self._list_folder_contents_serialize(
|
|
1946
1946
|
file_system_rid=file_system_rid,
|
|
1947
|
-
|
|
1947
|
+
folder=folder,
|
|
1948
1948
|
_request_auth=_request_auth,
|
|
1949
1949
|
_content_type=_content_type,
|
|
1950
1950
|
_headers=_headers,
|
|
@@ -1952,7 +1952,7 @@ class FileSystemContentsResourceApi:
|
|
|
1952
1952
|
)
|
|
1953
1953
|
|
|
1954
1954
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1955
|
-
'200': "
|
|
1955
|
+
'200': "ListFileSystemResponse",
|
|
1956
1956
|
}
|
|
1957
1957
|
response_data = self.api_client.call_api(
|
|
1958
1958
|
*_param,
|
|
@@ -1961,10 +1961,10 @@ class FileSystemContentsResourceApi:
|
|
|
1961
1961
|
return response_data.response
|
|
1962
1962
|
|
|
1963
1963
|
|
|
1964
|
-
def
|
|
1964
|
+
def _list_folder_contents_serialize(
|
|
1965
1965
|
self,
|
|
1966
1966
|
file_system_rid,
|
|
1967
|
-
|
|
1967
|
+
folder,
|
|
1968
1968
|
_request_auth,
|
|
1969
1969
|
_content_type,
|
|
1970
1970
|
_headers,
|
|
@@ -1989,9 +1989,9 @@ class FileSystemContentsResourceApi:
|
|
|
1989
1989
|
if file_system_rid is not None:
|
|
1990
1990
|
_path_params['fileSystemRid'] = file_system_rid
|
|
1991
1991
|
# process the query parameters
|
|
1992
|
-
if
|
|
1992
|
+
if folder is not None:
|
|
1993
1993
|
|
|
1994
|
-
_query_params.append(('
|
|
1994
|
+
_query_params.append(('folder', folder))
|
|
1995
1995
|
|
|
1996
1996
|
# process the header parameters
|
|
1997
1997
|
# process the form parameters
|
|
@@ -2013,7 +2013,7 @@ class FileSystemContentsResourceApi:
|
|
|
2013
2013
|
|
|
2014
2014
|
return self.api_client.param_serialize(
|
|
2015
2015
|
method='GET',
|
|
2016
|
-
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/
|
|
2016
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}/contents/list',
|
|
2017
2017
|
path_params=_path_params,
|
|
2018
2018
|
query_params=_query_params,
|
|
2019
2019
|
header_params=_header_params,
|
|
@@ -2030,7 +2030,7 @@ class FileSystemContentsResourceApi:
|
|
|
2030
2030
|
|
|
2031
2031
|
|
|
2032
2032
|
@validate_call
|
|
2033
|
-
def
|
|
2033
|
+
def upload_file(
|
|
2034
2034
|
self,
|
|
2035
2035
|
file_system_rid: StrictStr,
|
|
2036
2036
|
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
@@ -2085,7 +2085,7 @@ class FileSystemContentsResourceApi:
|
|
|
2085
2085
|
:return: Returns the result object.
|
|
2086
2086
|
""" # noqa: E501
|
|
2087
2087
|
|
|
2088
|
-
_param = self.
|
|
2088
|
+
_param = self._upload_file_serialize(
|
|
2089
2089
|
file_system_rid=file_system_rid,
|
|
2090
2090
|
file=file,
|
|
2091
2091
|
filename=filename,
|
|
@@ -2112,7 +2112,7 @@ class FileSystemContentsResourceApi:
|
|
|
2112
2112
|
|
|
2113
2113
|
|
|
2114
2114
|
@validate_call
|
|
2115
|
-
def
|
|
2115
|
+
def upload_file_with_http_info(
|
|
2116
2116
|
self,
|
|
2117
2117
|
file_system_rid: StrictStr,
|
|
2118
2118
|
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
@@ -2167,7 +2167,7 @@ class FileSystemContentsResourceApi:
|
|
|
2167
2167
|
:return: Returns the result object.
|
|
2168
2168
|
""" # noqa: E501
|
|
2169
2169
|
|
|
2170
|
-
_param = self.
|
|
2170
|
+
_param = self._upload_file_serialize(
|
|
2171
2171
|
file_system_rid=file_system_rid,
|
|
2172
2172
|
file=file,
|
|
2173
2173
|
filename=filename,
|
|
@@ -2194,7 +2194,7 @@ class FileSystemContentsResourceApi:
|
|
|
2194
2194
|
|
|
2195
2195
|
|
|
2196
2196
|
@validate_call
|
|
2197
|
-
def
|
|
2197
|
+
def upload_file_without_preload_content(
|
|
2198
2198
|
self,
|
|
2199
2199
|
file_system_rid: StrictStr,
|
|
2200
2200
|
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
@@ -2249,7 +2249,7 @@ class FileSystemContentsResourceApi:
|
|
|
2249
2249
|
:return: Returns the result object.
|
|
2250
2250
|
""" # noqa: E501
|
|
2251
2251
|
|
|
2252
|
-
_param = self.
|
|
2252
|
+
_param = self._upload_file_serialize(
|
|
2253
2253
|
file_system_rid=file_system_rid,
|
|
2254
2254
|
file=file,
|
|
2255
2255
|
filename=filename,
|
|
@@ -2271,7 +2271,7 @@ class FileSystemContentsResourceApi:
|
|
|
2271
2271
|
return response_data.response
|
|
2272
2272
|
|
|
2273
2273
|
|
|
2274
|
-
def
|
|
2274
|
+
def _upload_file_serialize(
|
|
2275
2275
|
self,
|
|
2276
2276
|
file_system_rid,
|
|
2277
2277
|
file,
|