perceptic-core-client 0.7.1__py3-none-any.whl → 0.7.2__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/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-0.7.1.dist-info → perceptic_core_client-0.7.2.dist-info}/METADATA +15 -6
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.2.dist-info}/RECORD +14 -14
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.2.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.7.1.dist-info → perceptic_core_client-0.7.2.dist-info}/top_level.txt +0 -0
|
@@ -42,9 +42,9 @@ class FileSystemResourceApi:
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
@validate_call
|
|
45
|
-
def
|
|
45
|
+
def create_managed_file_system(
|
|
46
46
|
self,
|
|
47
|
-
|
|
47
|
+
create_managed_file_system_request: CreateManagedFileSystemRequest,
|
|
48
48
|
_request_timeout: Union[
|
|
49
49
|
None,
|
|
50
50
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -57,12 +57,12 @@ class FileSystemResourceApi:
|
|
|
57
57
|
_content_type: Optional[StrictStr] = None,
|
|
58
58
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
59
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
-
) ->
|
|
61
|
-
"""
|
|
60
|
+
) -> CreateFileSystemResponse:
|
|
61
|
+
"""Create Managed File System
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
:param
|
|
65
|
-
:type
|
|
64
|
+
:param create_managed_file_system_request: (required)
|
|
65
|
+
:type create_managed_file_system_request: CreateManagedFileSystemRequest
|
|
66
66
|
:param _request_timeout: timeout setting for this request. If one
|
|
67
67
|
number provided, it will be total request
|
|
68
68
|
timeout. It can also be a pair (tuple) of
|
|
@@ -85,8 +85,8 @@ class FileSystemResourceApi:
|
|
|
85
85
|
:return: Returns the result object.
|
|
86
86
|
""" # noqa: E501
|
|
87
87
|
|
|
88
|
-
_param = self.
|
|
89
|
-
|
|
88
|
+
_param = self._create_managed_file_system_serialize(
|
|
89
|
+
create_managed_file_system_request=create_managed_file_system_request,
|
|
90
90
|
_request_auth=_request_auth,
|
|
91
91
|
_content_type=_content_type,
|
|
92
92
|
_headers=_headers,
|
|
@@ -94,7 +94,8 @@ class FileSystemResourceApi:
|
|
|
94
94
|
)
|
|
95
95
|
|
|
96
96
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
-
'200': "
|
|
97
|
+
'200': "CreateFileSystemResponse",
|
|
98
|
+
'400': None,
|
|
98
99
|
}
|
|
99
100
|
response_data = self.api_client.call_api(
|
|
100
101
|
*_param,
|
|
@@ -108,9 +109,9 @@ class FileSystemResourceApi:
|
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
@validate_call
|
|
111
|
-
def
|
|
112
|
+
def create_managed_file_system_with_http_info(
|
|
112
113
|
self,
|
|
113
|
-
|
|
114
|
+
create_managed_file_system_request: CreateManagedFileSystemRequest,
|
|
114
115
|
_request_timeout: Union[
|
|
115
116
|
None,
|
|
116
117
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -123,12 +124,12 @@ class FileSystemResourceApi:
|
|
|
123
124
|
_content_type: Optional[StrictStr] = None,
|
|
124
125
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
126
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
-
) -> ApiResponse[
|
|
127
|
-
"""
|
|
127
|
+
) -> ApiResponse[CreateFileSystemResponse]:
|
|
128
|
+
"""Create Managed File System
|
|
128
129
|
|
|
129
130
|
|
|
130
|
-
:param
|
|
131
|
-
:type
|
|
131
|
+
:param create_managed_file_system_request: (required)
|
|
132
|
+
:type create_managed_file_system_request: CreateManagedFileSystemRequest
|
|
132
133
|
:param _request_timeout: timeout setting for this request. If one
|
|
133
134
|
number provided, it will be total request
|
|
134
135
|
timeout. It can also be a pair (tuple) of
|
|
@@ -151,8 +152,8 @@ class FileSystemResourceApi:
|
|
|
151
152
|
:return: Returns the result object.
|
|
152
153
|
""" # noqa: E501
|
|
153
154
|
|
|
154
|
-
_param = self.
|
|
155
|
-
|
|
155
|
+
_param = self._create_managed_file_system_serialize(
|
|
156
|
+
create_managed_file_system_request=create_managed_file_system_request,
|
|
156
157
|
_request_auth=_request_auth,
|
|
157
158
|
_content_type=_content_type,
|
|
158
159
|
_headers=_headers,
|
|
@@ -160,7 +161,8 @@ class FileSystemResourceApi:
|
|
|
160
161
|
)
|
|
161
162
|
|
|
162
163
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
163
|
-
'200': "
|
|
164
|
+
'200': "CreateFileSystemResponse",
|
|
165
|
+
'400': None,
|
|
164
166
|
}
|
|
165
167
|
response_data = self.api_client.call_api(
|
|
166
168
|
*_param,
|
|
@@ -174,9 +176,9 @@ class FileSystemResourceApi:
|
|
|
174
176
|
|
|
175
177
|
|
|
176
178
|
@validate_call
|
|
177
|
-
def
|
|
179
|
+
def create_managed_file_system_without_preload_content(
|
|
178
180
|
self,
|
|
179
|
-
|
|
181
|
+
create_managed_file_system_request: CreateManagedFileSystemRequest,
|
|
180
182
|
_request_timeout: Union[
|
|
181
183
|
None,
|
|
182
184
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -190,11 +192,11 @@ class FileSystemResourceApi:
|
|
|
190
192
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
191
193
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
192
194
|
) -> RESTResponseType:
|
|
193
|
-
"""
|
|
195
|
+
"""Create Managed File System
|
|
194
196
|
|
|
195
197
|
|
|
196
|
-
:param
|
|
197
|
-
:type
|
|
198
|
+
:param create_managed_file_system_request: (required)
|
|
199
|
+
:type create_managed_file_system_request: CreateManagedFileSystemRequest
|
|
198
200
|
:param _request_timeout: timeout setting for this request. If one
|
|
199
201
|
number provided, it will be total request
|
|
200
202
|
timeout. It can also be a pair (tuple) of
|
|
@@ -217,8 +219,8 @@ class FileSystemResourceApi:
|
|
|
217
219
|
:return: Returns the result object.
|
|
218
220
|
""" # noqa: E501
|
|
219
221
|
|
|
220
|
-
_param = self.
|
|
221
|
-
|
|
222
|
+
_param = self._create_managed_file_system_serialize(
|
|
223
|
+
create_managed_file_system_request=create_managed_file_system_request,
|
|
222
224
|
_request_auth=_request_auth,
|
|
223
225
|
_content_type=_content_type,
|
|
224
226
|
_headers=_headers,
|
|
@@ -226,7 +228,8 @@ class FileSystemResourceApi:
|
|
|
226
228
|
)
|
|
227
229
|
|
|
228
230
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
229
|
-
'200': "
|
|
231
|
+
'200': "CreateFileSystemResponse",
|
|
232
|
+
'400': None,
|
|
230
233
|
}
|
|
231
234
|
response_data = self.api_client.call_api(
|
|
232
235
|
*_param,
|
|
@@ -235,9 +238,9 @@ class FileSystemResourceApi:
|
|
|
235
238
|
return response_data.response
|
|
236
239
|
|
|
237
240
|
|
|
238
|
-
def
|
|
241
|
+
def _create_managed_file_system_serialize(
|
|
239
242
|
self,
|
|
240
|
-
|
|
243
|
+
create_managed_file_system_request,
|
|
241
244
|
_request_auth,
|
|
242
245
|
_content_type,
|
|
243
246
|
_headers,
|
|
@@ -259,12 +262,12 @@ class FileSystemResourceApi:
|
|
|
259
262
|
_body_params: Optional[bytes] = None
|
|
260
263
|
|
|
261
264
|
# process the path parameters
|
|
262
|
-
if file_system_rid is not None:
|
|
263
|
-
_path_params['fileSystemRid'] = file_system_rid
|
|
264
265
|
# process the query parameters
|
|
265
266
|
# process the header parameters
|
|
266
267
|
# process the form parameters
|
|
267
268
|
# process the body parameter
|
|
269
|
+
if create_managed_file_system_request is not None:
|
|
270
|
+
_body_params = create_managed_file_system_request
|
|
268
271
|
|
|
269
272
|
|
|
270
273
|
# set the HTTP header `Accept`
|
|
@@ -275,14 +278,27 @@ class FileSystemResourceApi:
|
|
|
275
278
|
]
|
|
276
279
|
)
|
|
277
280
|
|
|
281
|
+
# set the HTTP header `Content-Type`
|
|
282
|
+
if _content_type:
|
|
283
|
+
_header_params['Content-Type'] = _content_type
|
|
284
|
+
else:
|
|
285
|
+
_default_content_type = (
|
|
286
|
+
self.api_client.select_header_content_type(
|
|
287
|
+
[
|
|
288
|
+
'application/json'
|
|
289
|
+
]
|
|
290
|
+
)
|
|
291
|
+
)
|
|
292
|
+
if _default_content_type is not None:
|
|
293
|
+
_header_params['Content-Type'] = _default_content_type
|
|
278
294
|
|
|
279
295
|
# authentication setting
|
|
280
296
|
_auth_settings: List[str] = [
|
|
281
297
|
]
|
|
282
298
|
|
|
283
299
|
return self.api_client.param_serialize(
|
|
284
|
-
method='
|
|
285
|
-
resource_path='/api/v1/file-systems/
|
|
300
|
+
method='POST',
|
|
301
|
+
resource_path='/api/v1/file-systems/managed',
|
|
286
302
|
path_params=_path_params,
|
|
287
303
|
query_params=_query_params,
|
|
288
304
|
header_params=_header_params,
|
|
@@ -299,8 +315,9 @@ class FileSystemResourceApi:
|
|
|
299
315
|
|
|
300
316
|
|
|
301
317
|
@validate_call
|
|
302
|
-
def
|
|
318
|
+
def create_remote_file_system(
|
|
303
319
|
self,
|
|
320
|
+
create_remote_file_system_request: CreateRemoteFileSystemRequest,
|
|
304
321
|
_request_timeout: Union[
|
|
305
322
|
None,
|
|
306
323
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -313,10 +330,12 @@ class FileSystemResourceApi:
|
|
|
313
330
|
_content_type: Optional[StrictStr] = None,
|
|
314
331
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
315
332
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
316
|
-
) ->
|
|
317
|
-
"""
|
|
333
|
+
) -> CreateFileSystemResponse:
|
|
334
|
+
"""Create Remote File System
|
|
318
335
|
|
|
319
336
|
|
|
337
|
+
:param create_remote_file_system_request: (required)
|
|
338
|
+
:type create_remote_file_system_request: CreateRemoteFileSystemRequest
|
|
320
339
|
:param _request_timeout: timeout setting for this request. If one
|
|
321
340
|
number provided, it will be total request
|
|
322
341
|
timeout. It can also be a pair (tuple) of
|
|
@@ -339,7 +358,8 @@ class FileSystemResourceApi:
|
|
|
339
358
|
:return: Returns the result object.
|
|
340
359
|
""" # noqa: E501
|
|
341
360
|
|
|
342
|
-
_param = self.
|
|
361
|
+
_param = self._create_remote_file_system_serialize(
|
|
362
|
+
create_remote_file_system_request=create_remote_file_system_request,
|
|
343
363
|
_request_auth=_request_auth,
|
|
344
364
|
_content_type=_content_type,
|
|
345
365
|
_headers=_headers,
|
|
@@ -347,7 +367,8 @@ class FileSystemResourceApi:
|
|
|
347
367
|
)
|
|
348
368
|
|
|
349
369
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
350
|
-
'200': "
|
|
370
|
+
'200': "CreateFileSystemResponse",
|
|
371
|
+
'400': None,
|
|
351
372
|
}
|
|
352
373
|
response_data = self.api_client.call_api(
|
|
353
374
|
*_param,
|
|
@@ -361,8 +382,9 @@ class FileSystemResourceApi:
|
|
|
361
382
|
|
|
362
383
|
|
|
363
384
|
@validate_call
|
|
364
|
-
def
|
|
385
|
+
def create_remote_file_system_with_http_info(
|
|
365
386
|
self,
|
|
387
|
+
create_remote_file_system_request: CreateRemoteFileSystemRequest,
|
|
366
388
|
_request_timeout: Union[
|
|
367
389
|
None,
|
|
368
390
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -375,10 +397,12 @@ class FileSystemResourceApi:
|
|
|
375
397
|
_content_type: Optional[StrictStr] = None,
|
|
376
398
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
377
399
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
378
|
-
) -> ApiResponse[
|
|
379
|
-
"""
|
|
400
|
+
) -> ApiResponse[CreateFileSystemResponse]:
|
|
401
|
+
"""Create Remote File System
|
|
380
402
|
|
|
381
403
|
|
|
404
|
+
:param create_remote_file_system_request: (required)
|
|
405
|
+
:type create_remote_file_system_request: CreateRemoteFileSystemRequest
|
|
382
406
|
:param _request_timeout: timeout setting for this request. If one
|
|
383
407
|
number provided, it will be total request
|
|
384
408
|
timeout. It can also be a pair (tuple) of
|
|
@@ -401,7 +425,8 @@ class FileSystemResourceApi:
|
|
|
401
425
|
:return: Returns the result object.
|
|
402
426
|
""" # noqa: E501
|
|
403
427
|
|
|
404
|
-
_param = self.
|
|
428
|
+
_param = self._create_remote_file_system_serialize(
|
|
429
|
+
create_remote_file_system_request=create_remote_file_system_request,
|
|
405
430
|
_request_auth=_request_auth,
|
|
406
431
|
_content_type=_content_type,
|
|
407
432
|
_headers=_headers,
|
|
@@ -409,7 +434,8 @@ class FileSystemResourceApi:
|
|
|
409
434
|
)
|
|
410
435
|
|
|
411
436
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
412
|
-
'200': "
|
|
437
|
+
'200': "CreateFileSystemResponse",
|
|
438
|
+
'400': None,
|
|
413
439
|
}
|
|
414
440
|
response_data = self.api_client.call_api(
|
|
415
441
|
*_param,
|
|
@@ -423,8 +449,9 @@ class FileSystemResourceApi:
|
|
|
423
449
|
|
|
424
450
|
|
|
425
451
|
@validate_call
|
|
426
|
-
def
|
|
452
|
+
def create_remote_file_system_without_preload_content(
|
|
427
453
|
self,
|
|
454
|
+
create_remote_file_system_request: CreateRemoteFileSystemRequest,
|
|
428
455
|
_request_timeout: Union[
|
|
429
456
|
None,
|
|
430
457
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -438,9 +465,11 @@ class FileSystemResourceApi:
|
|
|
438
465
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
439
466
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
440
467
|
) -> RESTResponseType:
|
|
441
|
-
"""
|
|
468
|
+
"""Create Remote File System
|
|
442
469
|
|
|
443
470
|
|
|
471
|
+
:param create_remote_file_system_request: (required)
|
|
472
|
+
:type create_remote_file_system_request: CreateRemoteFileSystemRequest
|
|
444
473
|
:param _request_timeout: timeout setting for this request. If one
|
|
445
474
|
number provided, it will be total request
|
|
446
475
|
timeout. It can also be a pair (tuple) of
|
|
@@ -463,7 +492,8 @@ class FileSystemResourceApi:
|
|
|
463
492
|
:return: Returns the result object.
|
|
464
493
|
""" # noqa: E501
|
|
465
494
|
|
|
466
|
-
_param = self.
|
|
495
|
+
_param = self._create_remote_file_system_serialize(
|
|
496
|
+
create_remote_file_system_request=create_remote_file_system_request,
|
|
467
497
|
_request_auth=_request_auth,
|
|
468
498
|
_content_type=_content_type,
|
|
469
499
|
_headers=_headers,
|
|
@@ -471,7 +501,8 @@ class FileSystemResourceApi:
|
|
|
471
501
|
)
|
|
472
502
|
|
|
473
503
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
474
|
-
'200': "
|
|
504
|
+
'200': "CreateFileSystemResponse",
|
|
505
|
+
'400': None,
|
|
475
506
|
}
|
|
476
507
|
response_data = self.api_client.call_api(
|
|
477
508
|
*_param,
|
|
@@ -480,8 +511,9 @@ class FileSystemResourceApi:
|
|
|
480
511
|
return response_data.response
|
|
481
512
|
|
|
482
513
|
|
|
483
|
-
def
|
|
514
|
+
def _create_remote_file_system_serialize(
|
|
484
515
|
self,
|
|
516
|
+
create_remote_file_system_request,
|
|
485
517
|
_request_auth,
|
|
486
518
|
_content_type,
|
|
487
519
|
_headers,
|
|
@@ -507,6 +539,8 @@ class FileSystemResourceApi:
|
|
|
507
539
|
# process the header parameters
|
|
508
540
|
# process the form parameters
|
|
509
541
|
# process the body parameter
|
|
542
|
+
if create_remote_file_system_request is not None:
|
|
543
|
+
_body_params = create_remote_file_system_request
|
|
510
544
|
|
|
511
545
|
|
|
512
546
|
# set the HTTP header `Accept`
|
|
@@ -517,14 +551,27 @@ class FileSystemResourceApi:
|
|
|
517
551
|
]
|
|
518
552
|
)
|
|
519
553
|
|
|
554
|
+
# set the HTTP header `Content-Type`
|
|
555
|
+
if _content_type:
|
|
556
|
+
_header_params['Content-Type'] = _content_type
|
|
557
|
+
else:
|
|
558
|
+
_default_content_type = (
|
|
559
|
+
self.api_client.select_header_content_type(
|
|
560
|
+
[
|
|
561
|
+
'application/json'
|
|
562
|
+
]
|
|
563
|
+
)
|
|
564
|
+
)
|
|
565
|
+
if _default_content_type is not None:
|
|
566
|
+
_header_params['Content-Type'] = _default_content_type
|
|
520
567
|
|
|
521
568
|
# authentication setting
|
|
522
569
|
_auth_settings: List[str] = [
|
|
523
570
|
]
|
|
524
571
|
|
|
525
572
|
return self.api_client.param_serialize(
|
|
526
|
-
method='
|
|
527
|
-
resource_path='/api/v1/file-systems',
|
|
573
|
+
method='POST',
|
|
574
|
+
resource_path='/api/v1/file-systems/remote',
|
|
528
575
|
path_params=_path_params,
|
|
529
576
|
query_params=_query_params,
|
|
530
577
|
header_params=_header_params,
|
|
@@ -541,9 +588,9 @@ class FileSystemResourceApi:
|
|
|
541
588
|
|
|
542
589
|
|
|
543
590
|
@validate_call
|
|
544
|
-
def
|
|
591
|
+
def get_file_system(
|
|
545
592
|
self,
|
|
546
|
-
|
|
593
|
+
file_system_rid: StrictStr,
|
|
547
594
|
_request_timeout: Union[
|
|
548
595
|
None,
|
|
549
596
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -556,12 +603,12 @@ class FileSystemResourceApi:
|
|
|
556
603
|
_content_type: Optional[StrictStr] = None,
|
|
557
604
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
558
605
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
559
|
-
) ->
|
|
560
|
-
"""
|
|
606
|
+
) -> FileSystemApiDto:
|
|
607
|
+
"""Get File System
|
|
561
608
|
|
|
562
609
|
|
|
563
|
-
:param
|
|
564
|
-
:type
|
|
610
|
+
:param file_system_rid: (required)
|
|
611
|
+
:type file_system_rid: str
|
|
565
612
|
:param _request_timeout: timeout setting for this request. If one
|
|
566
613
|
number provided, it will be total request
|
|
567
614
|
timeout. It can also be a pair (tuple) of
|
|
@@ -584,8 +631,8 @@ class FileSystemResourceApi:
|
|
|
584
631
|
:return: Returns the result object.
|
|
585
632
|
""" # noqa: E501
|
|
586
633
|
|
|
587
|
-
_param = self.
|
|
588
|
-
|
|
634
|
+
_param = self._get_file_system_serialize(
|
|
635
|
+
file_system_rid=file_system_rid,
|
|
589
636
|
_request_auth=_request_auth,
|
|
590
637
|
_content_type=_content_type,
|
|
591
638
|
_headers=_headers,
|
|
@@ -593,8 +640,7 @@ class FileSystemResourceApi:
|
|
|
593
640
|
)
|
|
594
641
|
|
|
595
642
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
596
|
-
'200': "
|
|
597
|
-
'400': None,
|
|
643
|
+
'200': "FileSystemApiDto",
|
|
598
644
|
}
|
|
599
645
|
response_data = self.api_client.call_api(
|
|
600
646
|
*_param,
|
|
@@ -608,9 +654,9 @@ class FileSystemResourceApi:
|
|
|
608
654
|
|
|
609
655
|
|
|
610
656
|
@validate_call
|
|
611
|
-
def
|
|
657
|
+
def get_file_system_with_http_info(
|
|
612
658
|
self,
|
|
613
|
-
|
|
659
|
+
file_system_rid: StrictStr,
|
|
614
660
|
_request_timeout: Union[
|
|
615
661
|
None,
|
|
616
662
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -623,12 +669,12 @@ class FileSystemResourceApi:
|
|
|
623
669
|
_content_type: Optional[StrictStr] = None,
|
|
624
670
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
625
671
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
626
|
-
) -> ApiResponse[
|
|
627
|
-
"""
|
|
672
|
+
) -> ApiResponse[FileSystemApiDto]:
|
|
673
|
+
"""Get File System
|
|
628
674
|
|
|
629
675
|
|
|
630
|
-
:param
|
|
631
|
-
:type
|
|
676
|
+
:param file_system_rid: (required)
|
|
677
|
+
:type file_system_rid: str
|
|
632
678
|
:param _request_timeout: timeout setting for this request. If one
|
|
633
679
|
number provided, it will be total request
|
|
634
680
|
timeout. It can also be a pair (tuple) of
|
|
@@ -651,8 +697,8 @@ class FileSystemResourceApi:
|
|
|
651
697
|
:return: Returns the result object.
|
|
652
698
|
""" # noqa: E501
|
|
653
699
|
|
|
654
|
-
_param = self.
|
|
655
|
-
|
|
700
|
+
_param = self._get_file_system_serialize(
|
|
701
|
+
file_system_rid=file_system_rid,
|
|
656
702
|
_request_auth=_request_auth,
|
|
657
703
|
_content_type=_content_type,
|
|
658
704
|
_headers=_headers,
|
|
@@ -660,8 +706,7 @@ class FileSystemResourceApi:
|
|
|
660
706
|
)
|
|
661
707
|
|
|
662
708
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
663
|
-
'200': "
|
|
664
|
-
'400': None,
|
|
709
|
+
'200': "FileSystemApiDto",
|
|
665
710
|
}
|
|
666
711
|
response_data = self.api_client.call_api(
|
|
667
712
|
*_param,
|
|
@@ -675,9 +720,9 @@ class FileSystemResourceApi:
|
|
|
675
720
|
|
|
676
721
|
|
|
677
722
|
@validate_call
|
|
678
|
-
def
|
|
723
|
+
def get_file_system_without_preload_content(
|
|
679
724
|
self,
|
|
680
|
-
|
|
725
|
+
file_system_rid: StrictStr,
|
|
681
726
|
_request_timeout: Union[
|
|
682
727
|
None,
|
|
683
728
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -691,11 +736,11 @@ class FileSystemResourceApi:
|
|
|
691
736
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
692
737
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
693
738
|
) -> RESTResponseType:
|
|
694
|
-
"""
|
|
739
|
+
"""Get File System
|
|
695
740
|
|
|
696
741
|
|
|
697
|
-
:param
|
|
698
|
-
:type
|
|
742
|
+
:param file_system_rid: (required)
|
|
743
|
+
:type file_system_rid: str
|
|
699
744
|
:param _request_timeout: timeout setting for this request. If one
|
|
700
745
|
number provided, it will be total request
|
|
701
746
|
timeout. It can also be a pair (tuple) of
|
|
@@ -718,8 +763,8 @@ class FileSystemResourceApi:
|
|
|
718
763
|
:return: Returns the result object.
|
|
719
764
|
""" # noqa: E501
|
|
720
765
|
|
|
721
|
-
_param = self.
|
|
722
|
-
|
|
766
|
+
_param = self._get_file_system_serialize(
|
|
767
|
+
file_system_rid=file_system_rid,
|
|
723
768
|
_request_auth=_request_auth,
|
|
724
769
|
_content_type=_content_type,
|
|
725
770
|
_headers=_headers,
|
|
@@ -727,8 +772,7 @@ class FileSystemResourceApi:
|
|
|
727
772
|
)
|
|
728
773
|
|
|
729
774
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
730
|
-
'200': "
|
|
731
|
-
'400': None,
|
|
775
|
+
'200': "FileSystemApiDto",
|
|
732
776
|
}
|
|
733
777
|
response_data = self.api_client.call_api(
|
|
734
778
|
*_param,
|
|
@@ -737,9 +781,9 @@ class FileSystemResourceApi:
|
|
|
737
781
|
return response_data.response
|
|
738
782
|
|
|
739
783
|
|
|
740
|
-
def
|
|
784
|
+
def _get_file_system_serialize(
|
|
741
785
|
self,
|
|
742
|
-
|
|
786
|
+
file_system_rid,
|
|
743
787
|
_request_auth,
|
|
744
788
|
_content_type,
|
|
745
789
|
_headers,
|
|
@@ -761,12 +805,12 @@ class FileSystemResourceApi:
|
|
|
761
805
|
_body_params: Optional[bytes] = None
|
|
762
806
|
|
|
763
807
|
# process the path parameters
|
|
808
|
+
if file_system_rid is not None:
|
|
809
|
+
_path_params['fileSystemRid'] = file_system_rid
|
|
764
810
|
# process the query parameters
|
|
765
811
|
# process the header parameters
|
|
766
812
|
# process the form parameters
|
|
767
813
|
# process the body parameter
|
|
768
|
-
if create_managed_file_system_request is not None:
|
|
769
|
-
_body_params = create_managed_file_system_request
|
|
770
814
|
|
|
771
815
|
|
|
772
816
|
# set the HTTP header `Accept`
|
|
@@ -777,27 +821,14 @@ class FileSystemResourceApi:
|
|
|
777
821
|
]
|
|
778
822
|
)
|
|
779
823
|
|
|
780
|
-
# set the HTTP header `Content-Type`
|
|
781
|
-
if _content_type:
|
|
782
|
-
_header_params['Content-Type'] = _content_type
|
|
783
|
-
else:
|
|
784
|
-
_default_content_type = (
|
|
785
|
-
self.api_client.select_header_content_type(
|
|
786
|
-
[
|
|
787
|
-
'application/json'
|
|
788
|
-
]
|
|
789
|
-
)
|
|
790
|
-
)
|
|
791
|
-
if _default_content_type is not None:
|
|
792
|
-
_header_params['Content-Type'] = _default_content_type
|
|
793
824
|
|
|
794
825
|
# authentication setting
|
|
795
826
|
_auth_settings: List[str] = [
|
|
796
827
|
]
|
|
797
828
|
|
|
798
829
|
return self.api_client.param_serialize(
|
|
799
|
-
method='
|
|
800
|
-
resource_path='/api/v1/file-systems/
|
|
830
|
+
method='GET',
|
|
831
|
+
resource_path='/api/v1/file-systems/{fileSystemRid}',
|
|
801
832
|
path_params=_path_params,
|
|
802
833
|
query_params=_query_params,
|
|
803
834
|
header_params=_header_params,
|
|
@@ -814,9 +845,8 @@ class FileSystemResourceApi:
|
|
|
814
845
|
|
|
815
846
|
|
|
816
847
|
@validate_call
|
|
817
|
-
def
|
|
848
|
+
def list_all_file_systems(
|
|
818
849
|
self,
|
|
819
|
-
create_remote_file_system_request: CreateRemoteFileSystemRequest,
|
|
820
850
|
_request_timeout: Union[
|
|
821
851
|
None,
|
|
822
852
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -829,12 +859,10 @@ class FileSystemResourceApi:
|
|
|
829
859
|
_content_type: Optional[StrictStr] = None,
|
|
830
860
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
831
861
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
832
|
-
) ->
|
|
833
|
-
"""
|
|
862
|
+
) -> ListAllFileSystemsResponse:
|
|
863
|
+
"""List All File Systems
|
|
834
864
|
|
|
835
865
|
|
|
836
|
-
:param create_remote_file_system_request: (required)
|
|
837
|
-
:type create_remote_file_system_request: CreateRemoteFileSystemRequest
|
|
838
866
|
:param _request_timeout: timeout setting for this request. If one
|
|
839
867
|
number provided, it will be total request
|
|
840
868
|
timeout. It can also be a pair (tuple) of
|
|
@@ -857,8 +885,7 @@ class FileSystemResourceApi:
|
|
|
857
885
|
:return: Returns the result object.
|
|
858
886
|
""" # noqa: E501
|
|
859
887
|
|
|
860
|
-
_param = self.
|
|
861
|
-
create_remote_file_system_request=create_remote_file_system_request,
|
|
888
|
+
_param = self._list_all_file_systems_serialize(
|
|
862
889
|
_request_auth=_request_auth,
|
|
863
890
|
_content_type=_content_type,
|
|
864
891
|
_headers=_headers,
|
|
@@ -866,8 +893,7 @@ class FileSystemResourceApi:
|
|
|
866
893
|
)
|
|
867
894
|
|
|
868
895
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
869
|
-
'200': "
|
|
870
|
-
'400': None,
|
|
896
|
+
'200': "ListAllFileSystemsResponse",
|
|
871
897
|
}
|
|
872
898
|
response_data = self.api_client.call_api(
|
|
873
899
|
*_param,
|
|
@@ -881,9 +907,8 @@ class FileSystemResourceApi:
|
|
|
881
907
|
|
|
882
908
|
|
|
883
909
|
@validate_call
|
|
884
|
-
def
|
|
910
|
+
def list_all_file_systems_with_http_info(
|
|
885
911
|
self,
|
|
886
|
-
create_remote_file_system_request: CreateRemoteFileSystemRequest,
|
|
887
912
|
_request_timeout: Union[
|
|
888
913
|
None,
|
|
889
914
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -896,12 +921,10 @@ class FileSystemResourceApi:
|
|
|
896
921
|
_content_type: Optional[StrictStr] = None,
|
|
897
922
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
898
923
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
899
|
-
) -> ApiResponse[
|
|
900
|
-
"""
|
|
924
|
+
) -> ApiResponse[ListAllFileSystemsResponse]:
|
|
925
|
+
"""List All File Systems
|
|
901
926
|
|
|
902
927
|
|
|
903
|
-
:param create_remote_file_system_request: (required)
|
|
904
|
-
:type create_remote_file_system_request: CreateRemoteFileSystemRequest
|
|
905
928
|
:param _request_timeout: timeout setting for this request. If one
|
|
906
929
|
number provided, it will be total request
|
|
907
930
|
timeout. It can also be a pair (tuple) of
|
|
@@ -924,8 +947,7 @@ class FileSystemResourceApi:
|
|
|
924
947
|
:return: Returns the result object.
|
|
925
948
|
""" # noqa: E501
|
|
926
949
|
|
|
927
|
-
_param = self.
|
|
928
|
-
create_remote_file_system_request=create_remote_file_system_request,
|
|
950
|
+
_param = self._list_all_file_systems_serialize(
|
|
929
951
|
_request_auth=_request_auth,
|
|
930
952
|
_content_type=_content_type,
|
|
931
953
|
_headers=_headers,
|
|
@@ -933,8 +955,7 @@ class FileSystemResourceApi:
|
|
|
933
955
|
)
|
|
934
956
|
|
|
935
957
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
936
|
-
'200': "
|
|
937
|
-
'400': None,
|
|
958
|
+
'200': "ListAllFileSystemsResponse",
|
|
938
959
|
}
|
|
939
960
|
response_data = self.api_client.call_api(
|
|
940
961
|
*_param,
|
|
@@ -948,9 +969,8 @@ class FileSystemResourceApi:
|
|
|
948
969
|
|
|
949
970
|
|
|
950
971
|
@validate_call
|
|
951
|
-
def
|
|
972
|
+
def list_all_file_systems_without_preload_content(
|
|
952
973
|
self,
|
|
953
|
-
create_remote_file_system_request: CreateRemoteFileSystemRequest,
|
|
954
974
|
_request_timeout: Union[
|
|
955
975
|
None,
|
|
956
976
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -964,11 +984,9 @@ class FileSystemResourceApi:
|
|
|
964
984
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
965
985
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
966
986
|
) -> RESTResponseType:
|
|
967
|
-
"""
|
|
987
|
+
"""List All File Systems
|
|
968
988
|
|
|
969
989
|
|
|
970
|
-
:param create_remote_file_system_request: (required)
|
|
971
|
-
:type create_remote_file_system_request: CreateRemoteFileSystemRequest
|
|
972
990
|
:param _request_timeout: timeout setting for this request. If one
|
|
973
991
|
number provided, it will be total request
|
|
974
992
|
timeout. It can also be a pair (tuple) of
|
|
@@ -991,8 +1009,7 @@ class FileSystemResourceApi:
|
|
|
991
1009
|
:return: Returns the result object.
|
|
992
1010
|
""" # noqa: E501
|
|
993
1011
|
|
|
994
|
-
_param = self.
|
|
995
|
-
create_remote_file_system_request=create_remote_file_system_request,
|
|
1012
|
+
_param = self._list_all_file_systems_serialize(
|
|
996
1013
|
_request_auth=_request_auth,
|
|
997
1014
|
_content_type=_content_type,
|
|
998
1015
|
_headers=_headers,
|
|
@@ -1000,8 +1017,7 @@ class FileSystemResourceApi:
|
|
|
1000
1017
|
)
|
|
1001
1018
|
|
|
1002
1019
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1003
|
-
'200': "
|
|
1004
|
-
'400': None,
|
|
1020
|
+
'200': "ListAllFileSystemsResponse",
|
|
1005
1021
|
}
|
|
1006
1022
|
response_data = self.api_client.call_api(
|
|
1007
1023
|
*_param,
|
|
@@ -1010,9 +1026,8 @@ class FileSystemResourceApi:
|
|
|
1010
1026
|
return response_data.response
|
|
1011
1027
|
|
|
1012
1028
|
|
|
1013
|
-
def
|
|
1029
|
+
def _list_all_file_systems_serialize(
|
|
1014
1030
|
self,
|
|
1015
|
-
create_remote_file_system_request,
|
|
1016
1031
|
_request_auth,
|
|
1017
1032
|
_content_type,
|
|
1018
1033
|
_headers,
|
|
@@ -1038,8 +1053,6 @@ class FileSystemResourceApi:
|
|
|
1038
1053
|
# process the header parameters
|
|
1039
1054
|
# process the form parameters
|
|
1040
1055
|
# process the body parameter
|
|
1041
|
-
if create_remote_file_system_request is not None:
|
|
1042
|
-
_body_params = create_remote_file_system_request
|
|
1043
1056
|
|
|
1044
1057
|
|
|
1045
1058
|
# set the HTTP header `Accept`
|
|
@@ -1050,27 +1063,14 @@ class FileSystemResourceApi:
|
|
|
1050
1063
|
]
|
|
1051
1064
|
)
|
|
1052
1065
|
|
|
1053
|
-
# set the HTTP header `Content-Type`
|
|
1054
|
-
if _content_type:
|
|
1055
|
-
_header_params['Content-Type'] = _content_type
|
|
1056
|
-
else:
|
|
1057
|
-
_default_content_type = (
|
|
1058
|
-
self.api_client.select_header_content_type(
|
|
1059
|
-
[
|
|
1060
|
-
'application/json'
|
|
1061
|
-
]
|
|
1062
|
-
)
|
|
1063
|
-
)
|
|
1064
|
-
if _default_content_type is not None:
|
|
1065
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1066
1066
|
|
|
1067
1067
|
# authentication setting
|
|
1068
1068
|
_auth_settings: List[str] = [
|
|
1069
1069
|
]
|
|
1070
1070
|
|
|
1071
1071
|
return self.api_client.param_serialize(
|
|
1072
|
-
method='
|
|
1073
|
-
resource_path='/api/v1/file-systems
|
|
1072
|
+
method='GET',
|
|
1073
|
+
resource_path='/api/v1/file-systems',
|
|
1074
1074
|
path_params=_path_params,
|
|
1075
1075
|
query_params=_query_params,
|
|
1076
1076
|
header_params=_header_params,
|