flywheel-sdk 20.1.0__py2.py3-none-any.whl → 20.2.0__py2.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.
@@ -0,0 +1,135 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Flywheel
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: 0.0.1
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ from flywheel.api_client import ApiClient
22
+ import flywheel.models
23
+
24
+ # NOTE: This file is auto generated by the swagger code generator program.
25
+ # Do not edit the class manually.
26
+
27
+ class ContainerTypeApi(object):
28
+ def __init__(self, api_client=None):
29
+ if api_client is None:
30
+ api_client = ApiClient()
31
+ self.api_client = api_client
32
+
33
+ def cleanup_info(self, container_type, path, **kwargs): # noqa: E501
34
+ """Remove a custom field from all applicable containers
35
+
36
+ Clean up a custom field from all containers of a type.
37
+ This method makes a synchronous HTTP request by default.
38
+
39
+ :param InfoContainerType container_type: (required)
40
+ :param str path: The dot-separated custom field name to delete (required)
41
+ :param bool async_: Perform the request asynchronously
42
+ :return: ModifiedResult
43
+ """
44
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
45
+ kwargs['_return_http_data_only'] = True
46
+
47
+ if kwargs.get('async_'):
48
+ return self.cleanup_info_with_http_info(container_type, path, **kwargs) # noqa: E501
49
+ else:
50
+ (data) = self.cleanup_info_with_http_info(container_type, path, **kwargs) # noqa: E501
51
+ if (
52
+ data
53
+ and hasattr(data, 'return_value')
54
+ and not ignore_simplified_return_value
55
+ ):
56
+ return data.return_value()
57
+ return data
58
+
59
+
60
+ def cleanup_info_with_http_info(self, container_type, path, **kwargs): # noqa: E501
61
+ """Remove a custom field from all applicable containers
62
+
63
+ Clean up a custom field from all containers of a type.
64
+ This method makes a synchronous HTTP request by default.
65
+
66
+ :param InfoContainerType container_type: (required)
67
+ :param str path: The dot-separated custom field name to delete (required)
68
+ :param bool async_: Perform the request asynchronously
69
+ :return: ModifiedResult
70
+ """
71
+
72
+ all_params = ['container_type','path',] # noqa: E501
73
+ all_params.append('async_')
74
+ all_params.append('_return_http_data_only')
75
+ all_params.append('_preload_content')
76
+ all_params.append('_request_timeout')
77
+ all_params.append('_request_out')
78
+
79
+ params = locals()
80
+ for key, val in six.iteritems(params['kwargs']):
81
+ if key not in all_params:
82
+ raise TypeError(
83
+ "Got an unexpected keyword argument '%s'"
84
+ " to method cleanup_info" % key
85
+ )
86
+ params[key] = val
87
+ del params['kwargs']
88
+ # verify the required parameter 'container_type' is set
89
+ if ('container_type' not in params or
90
+ params['container_type'] is None):
91
+ raise ValueError("Missing the required parameter `container_type` when calling `cleanup_info`") # noqa: E501
92
+ # verify the required parameter 'path' is set
93
+ if ('path' not in params or
94
+ params['path'] is None):
95
+ raise ValueError("Missing the required parameter `path` when calling `cleanup_info`") # noqa: E501
96
+
97
+ collection_formats = {}
98
+
99
+ path_params = {}
100
+ if 'container_type' in params:
101
+ path_params['container_type'] = params['container_type'] # noqa: E501
102
+ if 'path' in params:
103
+ path_params['path'] = params['path'] # noqa: E501
104
+
105
+ query_params = []
106
+
107
+ header_params = {}
108
+
109
+ form_params = []
110
+ local_var_files = {}
111
+
112
+ body_params = None
113
+ # HTTP header `Accept`
114
+ header_params['Accept'] = self.api_client.select_header_accept(
115
+ ['application/json']) # noqa: E501
116
+
117
+ # Authentication setting
118
+ auth_settings = ['ApiKey'] # noqa: E501
119
+
120
+ return self.api_client.call_api(
121
+ '/{container_type}/info/cleanup/{path}', 'PATCH',
122
+ path_params,
123
+ query_params,
124
+ header_params,
125
+ body=body_params,
126
+ post_params=form_params,
127
+ files=local_var_files,
128
+ response_type='ModifiedResult', # noqa: E501
129
+ auth_settings=auth_settings,
130
+ async_=params.get('async_'),
131
+ _return_http_data_only=params.get('_return_http_data_only'),
132
+ _preload_content=params.get('_preload_content', True),
133
+ _request_timeout=params.get('_request_timeout'),
134
+ _request_out=params.get('_request_out'),
135
+ collection_formats=collection_formats)
@@ -352,6 +352,96 @@ class DataexplorerApi(object):
352
352
  _request_out=params.get('_request_out'),
353
353
  collection_formats=collection_formats)
354
354
 
355
+ def get_mapped_fields(self, **kwargs): # noqa: E501
356
+ """Get fields mapped for search
357
+
358
+ This method makes a synchronous HTTP request by default.
359
+
360
+ :param str path: Dot-separated subfield to drill down to
361
+ :param bool async_: Perform the request asynchronously
362
+ :return: object
363
+ """
364
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
365
+ kwargs['_return_http_data_only'] = True
366
+
367
+ if kwargs.get('async_'):
368
+ return self.get_mapped_fields_with_http_info(**kwargs) # noqa: E501
369
+ else:
370
+ (data) = self.get_mapped_fields_with_http_info(**kwargs) # noqa: E501
371
+ if (
372
+ data
373
+ and hasattr(data, 'return_value')
374
+ and not ignore_simplified_return_value
375
+ ):
376
+ return data.return_value()
377
+ return data
378
+
379
+
380
+ def get_mapped_fields_with_http_info(self, **kwargs): # noqa: E501
381
+ """Get fields mapped for search
382
+
383
+ This method makes a synchronous HTTP request by default.
384
+
385
+ :param str path: Dot-separated subfield to drill down to
386
+ :param bool async_: Perform the request asynchronously
387
+ :return: object
388
+ """
389
+
390
+ all_params = ['path',] # noqa: E501
391
+ all_params.append('async_')
392
+ all_params.append('_return_http_data_only')
393
+ all_params.append('_preload_content')
394
+ all_params.append('_request_timeout')
395
+ all_params.append('_request_out')
396
+
397
+ params = locals()
398
+ for key, val in six.iteritems(params['kwargs']):
399
+ if key not in all_params:
400
+ raise TypeError(
401
+ "Got an unexpected keyword argument '%s'"
402
+ " to method get_mapped_fields" % key
403
+ )
404
+ params[key] = val
405
+ del params['kwargs']
406
+
407
+ collection_formats = {}
408
+
409
+ path_params = {}
410
+
411
+ query_params = []
412
+ if 'path' in params:
413
+ query_params.append(('path', params['path'])) # noqa: E501
414
+
415
+ header_params = {}
416
+
417
+ form_params = []
418
+ local_var_files = {}
419
+
420
+ body_params = None
421
+ # HTTP header `Accept`
422
+ header_params['Accept'] = self.api_client.select_header_accept(
423
+ ['application/json']) # noqa: E501
424
+
425
+ # Authentication setting
426
+ auth_settings = ['ApiKey'] # noqa: E501
427
+
428
+ return self.api_client.call_api(
429
+ '/dataexplorer/mapped_fields', 'GET',
430
+ path_params,
431
+ query_params,
432
+ header_params,
433
+ body=body_params,
434
+ post_params=form_params,
435
+ files=local_var_files,
436
+ response_type='object', # noqa: E501
437
+ auth_settings=auth_settings,
438
+ async_=params.get('async_'),
439
+ _return_http_data_only=params.get('_return_http_data_only'),
440
+ _preload_content=params.get('_preload_content', True),
441
+ _request_timeout=params.get('_request_timeout'),
442
+ _request_out=params.get('_request_out'),
443
+ collection_formats=collection_formats)
444
+
355
445
  def get_saved_search(self, sid, **kwargs): # noqa: E501
356
446
  """Return a saved search query
357
447
 
flywheel/api/files_api.py CHANGED
@@ -770,6 +770,106 @@ class FilesApi(object):
770
770
  _request_out=params.get('_request_out'),
771
771
  collection_formats=collection_formats)
772
772
 
773
+ def get_file_info(self, file_id, **kwargs): # noqa: E501
774
+ """Get Info
775
+
776
+ Get info dict for any file version. Returns: dict of key/value pairs
777
+ This method makes a synchronous HTTP request by default.
778
+
779
+ :param str file_id: (required)
780
+ :param int version:
781
+ :param bool async_: Perform the request asynchronously
782
+ :return: object
783
+ """
784
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
785
+ kwargs['_return_http_data_only'] = True
786
+
787
+ if kwargs.get('async_'):
788
+ return self.get_file_info_with_http_info(file_id, **kwargs) # noqa: E501
789
+ else:
790
+ (data) = self.get_file_info_with_http_info(file_id, **kwargs) # noqa: E501
791
+ if (
792
+ data
793
+ and hasattr(data, 'return_value')
794
+ and not ignore_simplified_return_value
795
+ ):
796
+ return data.return_value()
797
+ return data
798
+
799
+
800
+ def get_file_info_with_http_info(self, file_id, **kwargs): # noqa: E501
801
+ """Get Info
802
+
803
+ Get info dict for any file version. Returns: dict of key/value pairs
804
+ This method makes a synchronous HTTP request by default.
805
+
806
+ :param str file_id: (required)
807
+ :param int version:
808
+ :param bool async_: Perform the request asynchronously
809
+ :return: object
810
+ """
811
+
812
+ all_params = ['file_id','version',] # noqa: E501
813
+ all_params.append('async_')
814
+ all_params.append('_return_http_data_only')
815
+ all_params.append('_preload_content')
816
+ all_params.append('_request_timeout')
817
+ all_params.append('_request_out')
818
+
819
+ params = locals()
820
+ for key, val in six.iteritems(params['kwargs']):
821
+ if key not in all_params:
822
+ raise TypeError(
823
+ "Got an unexpected keyword argument '%s'"
824
+ " to method get_file_info" % key
825
+ )
826
+ params[key] = val
827
+ del params['kwargs']
828
+ # verify the required parameter 'file_id' is set
829
+ if ('file_id' not in params or
830
+ params['file_id'] is None):
831
+ raise ValueError("Missing the required parameter `file_id` when calling `get_file_info`") # noqa: E501
832
+
833
+ collection_formats = {}
834
+
835
+ path_params = {}
836
+ if 'file_id' in params:
837
+ path_params['file_id'] = params['file_id'] # noqa: E501
838
+
839
+ query_params = []
840
+ if 'version' in params:
841
+ query_params.append(('version', params['version'])) # noqa: E501
842
+
843
+ header_params = {}
844
+
845
+ form_params = []
846
+ local_var_files = {}
847
+
848
+ body_params = None
849
+ # HTTP header `Accept`
850
+ header_params['Accept'] = self.api_client.select_header_accept(
851
+ ['application/json']) # noqa: E501
852
+
853
+ # Authentication setting
854
+ auth_settings = ['ApiKey'] # noqa: E501
855
+
856
+ return self.api_client.call_api(
857
+ '/files/{file_id}/info', 'GET',
858
+ path_params,
859
+ query_params,
860
+ header_params,
861
+ body=body_params,
862
+ post_params=form_params,
863
+ files=local_var_files,
864
+ response_type='object', # noqa: E501
865
+ auth_settings=auth_settings,
866
+ async_=params.get('async_'),
867
+ _return_http_data_only=params.get('_return_http_data_only'),
868
+ _preload_content=params.get('_preload_content', True),
869
+ _request_timeout=params.get('_request_timeout'),
870
+ _request_out=params.get('_request_out'),
871
+ collection_formats=collection_formats)
872
+
773
873
  def get_file_tags(self, file_id, **kwargs): # noqa: E501
774
874
  """Return a file tags, from any version
775
875
 
@@ -1070,6 +1170,232 @@ class FilesApi(object):
1070
1170
  _request_out=params.get('_request_out'),
1071
1171
  collection_formats=collection_formats)
1072
1172
 
1173
+ def modify_file_classification(self, file_id, body, **kwargs): # noqa: E501
1174
+ """Modify Classification
1175
+
1176
+ Modify classification of most recent file version
1177
+ This method makes a synchronous HTTP request by default.
1178
+
1179
+ :param str file_id: (required)
1180
+ :param FileClassificationDelta body: (required)
1181
+ :param bool async_: Perform the request asynchronously
1182
+ :return: ModifiedResult
1183
+ """
1184
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
1185
+ kwargs['_return_http_data_only'] = True
1186
+
1187
+ if kwargs.get('async_'):
1188
+ return self.modify_file_classification_with_http_info(file_id, body, **kwargs) # noqa: E501
1189
+ else:
1190
+ (data) = self.modify_file_classification_with_http_info(file_id, body, **kwargs) # noqa: E501
1191
+ if (
1192
+ data
1193
+ and hasattr(data, 'return_value')
1194
+ and not ignore_simplified_return_value
1195
+ ):
1196
+ return data.return_value()
1197
+ return data
1198
+
1199
+
1200
+ def modify_file_classification_with_http_info(self, file_id, body, **kwargs): # noqa: E501
1201
+ """Modify Classification
1202
+
1203
+ Modify classification of most recent file version
1204
+ This method makes a synchronous HTTP request by default.
1205
+
1206
+ :param str file_id: (required)
1207
+ :param FileClassificationDelta body: (required)
1208
+ :param bool async_: Perform the request asynchronously
1209
+ :return: ModifiedResult
1210
+ """
1211
+
1212
+ all_params = ['file_id','body',] # noqa: E501
1213
+ all_params.append('async_')
1214
+ all_params.append('_return_http_data_only')
1215
+ all_params.append('_preload_content')
1216
+ all_params.append('_request_timeout')
1217
+ all_params.append('_request_out')
1218
+
1219
+ params = locals()
1220
+ for key, val in six.iteritems(params['kwargs']):
1221
+ if key not in all_params:
1222
+ raise TypeError(
1223
+ "Got an unexpected keyword argument '%s'"
1224
+ " to method modify_file_classification" % key
1225
+ )
1226
+ params[key] = val
1227
+ del params['kwargs']
1228
+ # verify the required parameter 'file_id' is set
1229
+ if ('file_id' not in params or
1230
+ params['file_id'] is None):
1231
+ raise ValueError("Missing the required parameter `file_id` when calling `modify_file_classification`") # noqa: E501
1232
+ # verify the required parameter 'body' is set
1233
+ if ('body' not in params or
1234
+ params['body'] is None):
1235
+ raise ValueError("Missing the required parameter `body` when calling `modify_file_classification`") # noqa: E501
1236
+
1237
+ collection_formats = {}
1238
+
1239
+ path_params = {}
1240
+ if 'file_id' in params:
1241
+ path_params['file_id'] = params['file_id'] # noqa: E501
1242
+
1243
+ query_params = []
1244
+
1245
+ header_params = {}
1246
+
1247
+ form_params = []
1248
+ local_var_files = {}
1249
+
1250
+ body_params = None
1251
+ if 'body' in params:
1252
+ if 'FileClassificationDelta'.startswith('union'):
1253
+ body_type = type(params['body'])
1254
+ if getattr(body_type, 'positional_to_model', None):
1255
+ body_params = body_type.positional_to_model(params['body'])
1256
+ else:
1257
+ body_params = params['body']
1258
+ else:
1259
+ body_params = flywheel.models.FileClassificationDelta.positional_to_model(params['body'])
1260
+ # HTTP header `Accept`
1261
+ header_params['Accept'] = self.api_client.select_header_accept(
1262
+ ['application/json']) # noqa: E501
1263
+
1264
+ # HTTP header `Content-Type`
1265
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1266
+ ['application/json']) # noqa: E501
1267
+
1268
+ # Authentication setting
1269
+ auth_settings = ['ApiKey'] # noqa: E501
1270
+
1271
+ return self.api_client.call_api(
1272
+ '/files/{file_id}/classification', 'PUT',
1273
+ path_params,
1274
+ query_params,
1275
+ header_params,
1276
+ body=body_params,
1277
+ post_params=form_params,
1278
+ files=local_var_files,
1279
+ response_type='ModifiedResult', # noqa: E501
1280
+ auth_settings=auth_settings,
1281
+ async_=params.get('async_'),
1282
+ _return_http_data_only=params.get('_return_http_data_only'),
1283
+ _preload_content=params.get('_preload_content', True),
1284
+ _request_timeout=params.get('_request_timeout'),
1285
+ _request_out=params.get('_request_out'),
1286
+ collection_formats=collection_formats)
1287
+
1288
+ def modify_file_info(self, file_id, **kwargs): # noqa: E501
1289
+ """Modify Info
1290
+
1291
+ Add info to most recent file version, adding items or replacing some existing ones. Parameters: info (dict) -- key/value pairs to add Returns: dict added
1292
+ This method makes a synchronous HTTP request by default.
1293
+
1294
+ :param str file_id: (required)
1295
+ :param object body:
1296
+ :param bool async_: Perform the request asynchronously
1297
+ :return: ModifiedResult
1298
+ """
1299
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
1300
+ kwargs['_return_http_data_only'] = True
1301
+
1302
+ if kwargs.get('async_'):
1303
+ return self.modify_file_info_with_http_info(file_id, **kwargs) # noqa: E501
1304
+ else:
1305
+ (data) = self.modify_file_info_with_http_info(file_id, **kwargs) # noqa: E501
1306
+ if (
1307
+ data
1308
+ and hasattr(data, 'return_value')
1309
+ and not ignore_simplified_return_value
1310
+ ):
1311
+ return data.return_value()
1312
+ return data
1313
+
1314
+
1315
+ def modify_file_info_with_http_info(self, file_id, **kwargs): # noqa: E501
1316
+ """Modify Info
1317
+
1318
+ Add info to most recent file version, adding items or replacing some existing ones. Parameters: info (dict) -- key/value pairs to add Returns: dict added
1319
+ This method makes a synchronous HTTP request by default.
1320
+
1321
+ :param str file_id: (required)
1322
+ :param object body:
1323
+ :param bool async_: Perform the request asynchronously
1324
+ :return: ModifiedResult
1325
+ """
1326
+
1327
+ all_params = ['file_id','body',] # noqa: E501
1328
+ all_params.append('async_')
1329
+ all_params.append('_return_http_data_only')
1330
+ all_params.append('_preload_content')
1331
+ all_params.append('_request_timeout')
1332
+ all_params.append('_request_out')
1333
+
1334
+ params = locals()
1335
+ for key, val in six.iteritems(params['kwargs']):
1336
+ if key not in all_params:
1337
+ raise TypeError(
1338
+ "Got an unexpected keyword argument '%s'"
1339
+ " to method modify_file_info" % key
1340
+ )
1341
+ params[key] = val
1342
+ del params['kwargs']
1343
+ # verify the required parameter 'file_id' is set
1344
+ if ('file_id' not in params or
1345
+ params['file_id'] is None):
1346
+ raise ValueError("Missing the required parameter `file_id` when calling `modify_file_info`") # noqa: E501
1347
+
1348
+ collection_formats = {}
1349
+
1350
+ path_params = {}
1351
+ if 'file_id' in params:
1352
+ path_params['file_id'] = params['file_id'] # noqa: E501
1353
+
1354
+ query_params = []
1355
+
1356
+ header_params = {}
1357
+
1358
+ form_params = []
1359
+ local_var_files = {}
1360
+
1361
+ body_params = None
1362
+ if 'body' in params:
1363
+ if 'object'.startswith('union'):
1364
+ body_type = type(params['body'])
1365
+ if getattr(body_type, 'positional_to_model', None):
1366
+ body_params = body_type.positional_to_model(params['body'])
1367
+ else:
1368
+ body_params = params['body']
1369
+ else:
1370
+ body_params = flywheel.models.object.positional_to_model(params['body'])
1371
+ # HTTP header `Accept`
1372
+ header_params['Accept'] = self.api_client.select_header_accept(
1373
+ ['application/json']) # noqa: E501
1374
+
1375
+ # HTTP header `Content-Type`
1376
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1377
+ ['application/json']) # noqa: E501
1378
+
1379
+ # Authentication setting
1380
+ auth_settings = ['ApiKey'] # noqa: E501
1381
+
1382
+ return self.api_client.call_api(
1383
+ '/files/{file_id}/info', 'PATCH',
1384
+ path_params,
1385
+ query_params,
1386
+ header_params,
1387
+ body=body_params,
1388
+ post_params=form_params,
1389
+ files=local_var_files,
1390
+ response_type='ModifiedResult', # noqa: E501
1391
+ auth_settings=auth_settings,
1392
+ async_=params.get('async_'),
1393
+ _return_http_data_only=params.get('_return_http_data_only'),
1394
+ _preload_content=params.get('_preload_content', True),
1395
+ _request_timeout=params.get('_request_timeout'),
1396
+ _request_out=params.get('_request_out'),
1397
+ collection_formats=collection_formats)
1398
+
1073
1399
  def move_file(self, file_id, body, **kwargs): # noqa: E501
1074
1400
  """Move and/or rename a file
1075
1401
 
@@ -1185,6 +1511,117 @@ class FilesApi(object):
1185
1511
  _request_out=params.get('_request_out'),
1186
1512
  collection_formats=collection_formats)
1187
1513
 
1514
+ def replace_file_info(self, file_id, **kwargs): # noqa: E501
1515
+ """Replace Info
1516
+
1517
+ Add info to most recent file version, replacing all existing values. Parameters: info (dict) -- all key/value pairs to populate info Returns: dict added
1518
+ This method makes a synchronous HTTP request by default.
1519
+
1520
+ :param str file_id: (required)
1521
+ :param object body:
1522
+ :param bool async_: Perform the request asynchronously
1523
+ :return: object
1524
+ """
1525
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
1526
+ kwargs['_return_http_data_only'] = True
1527
+
1528
+ if kwargs.get('async_'):
1529
+ return self.replace_file_info_with_http_info(file_id, **kwargs) # noqa: E501
1530
+ else:
1531
+ (data) = self.replace_file_info_with_http_info(file_id, **kwargs) # noqa: E501
1532
+ if (
1533
+ data
1534
+ and hasattr(data, 'return_value')
1535
+ and not ignore_simplified_return_value
1536
+ ):
1537
+ return data.return_value()
1538
+ return data
1539
+
1540
+
1541
+ def replace_file_info_with_http_info(self, file_id, **kwargs): # noqa: E501
1542
+ """Replace Info
1543
+
1544
+ Add info to most recent file version, replacing all existing values. Parameters: info (dict) -- all key/value pairs to populate info Returns: dict added
1545
+ This method makes a synchronous HTTP request by default.
1546
+
1547
+ :param str file_id: (required)
1548
+ :param object body:
1549
+ :param bool async_: Perform the request asynchronously
1550
+ :return: object
1551
+ """
1552
+
1553
+ all_params = ['file_id','body',] # noqa: E501
1554
+ all_params.append('async_')
1555
+ all_params.append('_return_http_data_only')
1556
+ all_params.append('_preload_content')
1557
+ all_params.append('_request_timeout')
1558
+ all_params.append('_request_out')
1559
+
1560
+ params = locals()
1561
+ for key, val in six.iteritems(params['kwargs']):
1562
+ if key not in all_params:
1563
+ raise TypeError(
1564
+ "Got an unexpected keyword argument '%s'"
1565
+ " to method replace_file_info" % key
1566
+ )
1567
+ params[key] = val
1568
+ del params['kwargs']
1569
+ # verify the required parameter 'file_id' is set
1570
+ if ('file_id' not in params or
1571
+ params['file_id'] is None):
1572
+ raise ValueError("Missing the required parameter `file_id` when calling `replace_file_info`") # noqa: E501
1573
+
1574
+ collection_formats = {}
1575
+
1576
+ path_params = {}
1577
+ if 'file_id' in params:
1578
+ path_params['file_id'] = params['file_id'] # noqa: E501
1579
+
1580
+ query_params = []
1581
+
1582
+ header_params = {}
1583
+
1584
+ form_params = []
1585
+ local_var_files = {}
1586
+
1587
+ body_params = None
1588
+ if 'body' in params:
1589
+ if 'object'.startswith('union'):
1590
+ body_type = type(params['body'])
1591
+ if getattr(body_type, 'positional_to_model', None):
1592
+ body_params = body_type.positional_to_model(params['body'])
1593
+ else:
1594
+ body_params = params['body']
1595
+ else:
1596
+ body_params = flywheel.models.object.positional_to_model(params['body'])
1597
+ # HTTP header `Accept`
1598
+ header_params['Accept'] = self.api_client.select_header_accept(
1599
+ ['application/json']) # noqa: E501
1600
+
1601
+ # HTTP header `Content-Type`
1602
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1603
+ ['application/json']) # noqa: E501
1604
+
1605
+ # Authentication setting
1606
+ auth_settings = ['ApiKey'] # noqa: E501
1607
+
1608
+ return self.api_client.call_api(
1609
+ '/files/{file_id}/info', 'PUT',
1610
+ path_params,
1611
+ query_params,
1612
+ header_params,
1613
+ body=body_params,
1614
+ post_params=form_params,
1615
+ files=local_var_files,
1616
+ response_type='object', # noqa: E501
1617
+ auth_settings=auth_settings,
1618
+ async_=params.get('async_'),
1619
+ _return_http_data_only=params.get('_return_http_data_only'),
1620
+ _preload_content=params.get('_preload_content', True),
1621
+ _request_timeout=params.get('_request_timeout'),
1622
+ _request_out=params.get('_request_out'),
1623
+ collection_formats=collection_formats)
1624
+
1188
1625
  def restore_file(self, file_id, version, evaluate_gear_rules, **kwargs): # noqa: E501
1189
1626
  """Restore a File
1190
1627