flywheel-sdk 19.2.0rc0__py2.py3-none-any.whl → 19.3.0rc0__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.
@@ -31,13 +31,13 @@ class AnalysesApi(object):
31
31
  self.api_client = api_client
32
32
 
33
33
  def add_analysis_note(self, container_id, body, **kwargs): # noqa: E501
34
- """Add a note to analysis.
34
+ """Add a note to a(n) analysis.
35
35
 
36
- Add a note to analysis.
36
+ Add a note to a(n) analysis.
37
37
  This method makes a synchronous HTTP request by default.
38
38
 
39
- :param str container_id: Container id (required)
40
- :param NoteInput body: note content (required)
39
+ :param str container_id: (required)
40
+ :param NoteInput body: (required)
41
41
  :param bool async_: Perform the request asynchronously
42
42
  :return: Note
43
43
  """
@@ -58,13 +58,13 @@ class AnalysesApi(object):
58
58
 
59
59
 
60
60
  def add_analysis_note_with_http_info(self, container_id, body, **kwargs): # noqa: E501
61
- """Add a note to analysis.
61
+ """Add a note to a(n) analysis.
62
62
 
63
- Add a note to analysis.
63
+ Add a note to a(n) analysis.
64
64
  This method makes a synchronous HTTP request by default.
65
65
 
66
- :param str container_id: Container id (required)
67
- :param NoteInput body: note content (required)
66
+ :param str container_id: (required)
67
+ :param NoteInput body: (required)
68
68
  :param bool async_: Perform the request asynchronously
69
69
  :return: Note
70
70
  """
@@ -146,7 +146,7 @@ class AnalysesApi(object):
146
146
  collection_formats=collection_formats)
147
147
 
148
148
  def add_analysis_tag(self, container_id, body, **kwargs): # noqa: E501
149
- """Add a tag to analysis.
149
+ """Add a tag to a(n) analysis.
150
150
 
151
151
  Propagates changes to projects, sessions and acquisitions
152
152
  This method makes a synchronous HTTP request by default.
@@ -173,7 +173,7 @@ class AnalysesApi(object):
173
173
 
174
174
 
175
175
  def add_analysis_tag_with_http_info(self, container_id, body, **kwargs): # noqa: E501
176
- """Add a tag to analysis.
176
+ """Add a tag to a(n) analysis.
177
177
 
178
178
  Propagates changes to projects, sessions and acquisitions
179
179
  This method makes a synchronous HTTP request by default.
@@ -260,6 +260,110 @@ class AnalysesApi(object):
260
260
  _request_out=params.get('_request_out'),
261
261
  collection_formats=collection_formats)
262
262
 
263
+ def delete_analyses_by_ids(self, body, **kwargs): # noqa: E501
264
+ """Delete multiple analyses by ID list
265
+
266
+ Delete analyses by id Args: analysis_ids: The ids of the analysis auth_session: The auth session delete_reason: The reason for deletion (required when audit-trail is enabled)
267
+ This method makes a synchronous HTTP request by default.
268
+
269
+ :param list[str] body: List of IDs to delete (required)
270
+ :param ContainerDeleteReason delete_reason:
271
+ :param bool async_: Perform the request asynchronously
272
+ :return: DeletedResult
273
+ """
274
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
275
+ kwargs['_return_http_data_only'] = True
276
+
277
+ if kwargs.get('async_'):
278
+ return self.delete_analyses_by_ids_with_http_info(body, **kwargs) # noqa: E501
279
+ else:
280
+ (data) = self.delete_analyses_by_ids_with_http_info(body, **kwargs) # noqa: E501
281
+ if (
282
+ data
283
+ and hasattr(data, 'return_value')
284
+ and not ignore_simplified_return_value
285
+ ):
286
+ return data.return_value()
287
+ return data
288
+
289
+
290
+ def delete_analyses_by_ids_with_http_info(self, body, **kwargs): # noqa: E501
291
+ """Delete multiple analyses by ID list
292
+
293
+ Delete analyses by id Args: analysis_ids: The ids of the analysis auth_session: The auth session delete_reason: The reason for deletion (required when audit-trail is enabled)
294
+ This method makes a synchronous HTTP request by default.
295
+
296
+ :param list[str] body: List of IDs to delete (required)
297
+ :param ContainerDeleteReason delete_reason:
298
+ :param bool async_: Perform the request asynchronously
299
+ :return: DeletedResult
300
+ """
301
+
302
+ all_params = ['body','delete_reason',] # noqa: E501
303
+ all_params.append('async_')
304
+ all_params.append('_return_http_data_only')
305
+ all_params.append('_preload_content')
306
+ all_params.append('_request_timeout')
307
+ all_params.append('_request_out')
308
+
309
+ params = locals()
310
+ for key, val in six.iteritems(params['kwargs']):
311
+ if key not in all_params:
312
+ raise TypeError(
313
+ "Got an unexpected keyword argument '%s'"
314
+ " to method delete_analyses_by_ids" % key
315
+ )
316
+ params[key] = val
317
+ del params['kwargs']
318
+ # verify the required parameter 'body' is set
319
+ if ('body' not in params or
320
+ params['body'] is None):
321
+ raise ValueError("Missing the required parameter `body` when calling `delete_analyses_by_ids`") # noqa: E501
322
+
323
+ collection_formats = {}
324
+
325
+ path_params = {}
326
+
327
+ query_params = []
328
+ if 'delete_reason' in params:
329
+ query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
330
+
331
+ header_params = {}
332
+
333
+ form_params = []
334
+ local_var_files = {}
335
+
336
+ body_params = None
337
+ if 'body' in params:
338
+ body_params = params['body']
339
+ # HTTP header `Accept`
340
+ header_params['Accept'] = self.api_client.select_header_accept(
341
+ ['application/json']) # noqa: E501
342
+
343
+ # HTTP header `Content-Type`
344
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
345
+ ['application/json']) # noqa: E501
346
+
347
+ # Authentication setting
348
+ auth_settings = ['ApiKey'] # noqa: E501
349
+
350
+ return self.api_client.call_api(
351
+ '/analyses', 'DELETE',
352
+ path_params,
353
+ query_params,
354
+ header_params,
355
+ body=body_params,
356
+ post_params=form_params,
357
+ files=local_var_files,
358
+ response_type='DeletedResult', # noqa: E501
359
+ auth_settings=auth_settings,
360
+ async_=params.get('async_'),
361
+ _return_http_data_only=params.get('_return_http_data_only'),
362
+ _preload_content=params.get('_preload_content', True),
363
+ _request_timeout=params.get('_request_timeout'),
364
+ _request_out=params.get('_request_out'),
365
+ collection_formats=collection_formats)
366
+
263
367
  def delete_analysis(self, analysis_id, **kwargs): # noqa: E501
264
368
  """Delete an analysis
265
369
 
@@ -361,15 +465,15 @@ class AnalysesApi(object):
361
465
  collection_formats=collection_formats)
362
466
 
363
467
  def delete_analysis_note(self, container_id, note_id, **kwargs): # noqa: E501
364
- """Remove a note from analysis
468
+ """Remove a note from a(n) analysis
365
469
 
366
- Remove a note from analysis
470
+ Remove a note from a(n) analysis
367
471
  This method makes a synchronous HTTP request by default.
368
472
 
369
- :param str container_id: Container id (required)
370
- :param str note_id: 24-char hex note id (required)
473
+ :param str container_id: (required)
474
+ :param str note_id: (required)
371
475
  :param bool async_: Perform the request asynchronously
372
- :return: None
476
+ :return: DeletedResult
373
477
  """
374
478
  ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
375
479
  kwargs['_return_http_data_only'] = True
@@ -388,15 +492,15 @@ class AnalysesApi(object):
388
492
 
389
493
 
390
494
  def delete_analysis_note_with_http_info(self, container_id, note_id, **kwargs): # noqa: E501
391
- """Remove a note from analysis
495
+ """Remove a note from a(n) analysis
392
496
 
393
- Remove a note from analysis
497
+ Remove a note from a(n) analysis
394
498
  This method makes a synchronous HTTP request by default.
395
499
 
396
- :param str container_id: Container id (required)
397
- :param str note_id: 24-char hex note id (required)
500
+ :param str container_id: (required)
501
+ :param str note_id: (required)
398
502
  :param bool async_: Perform the request asynchronously
399
- :return: None
503
+ :return: DeletedResult
400
504
  """
401
505
 
402
506
  all_params = ['container_id','note_id',] # noqa: E501
@@ -455,7 +559,7 @@ class AnalysesApi(object):
455
559
  body=body_params,
456
560
  post_params=form_params,
457
561
  files=local_var_files,
458
- response_type=None, # noqa: E501
562
+ response_type='DeletedResult', # noqa: E501
459
563
  auth_settings=auth_settings,
460
564
  async_=params.get('async_'),
461
565
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -473,7 +577,7 @@ class AnalysesApi(object):
473
577
  :param str container_id: (required)
474
578
  :param str value: The tag to interact with (required)
475
579
  :param bool async_: Perform the request asynchronously
476
- :return: None
580
+ :return: DeletedResult
477
581
  """
478
582
  ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
479
583
  kwargs['_return_http_data_only'] = True
@@ -500,7 +604,7 @@ class AnalysesApi(object):
500
604
  :param str container_id: (required)
501
605
  :param str value: The tag to interact with (required)
502
606
  :param bool async_: Perform the request asynchronously
503
- :return: None
607
+ :return: DeletedResult
504
608
  """
505
609
 
506
610
  all_params = ['container_id','value',] # noqa: E501
@@ -559,7 +663,7 @@ class AnalysesApi(object):
559
663
  body=body_params,
560
664
  post_params=form_params,
561
665
  files=local_var_files,
562
- response_type=None, # noqa: E501
666
+ response_type='DeletedResult', # noqa: E501
563
667
  auth_settings=auth_settings,
564
668
  async_=params.get('async_'),
565
669
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -959,7 +1063,7 @@ class AnalysesApi(object):
959
1063
  Get Output File
960
1064
  This method makes a synchronous HTTP request by default.
961
1065
 
962
- :param str analysis_id: 24-character hex ID (required)
1066
+ :param str analysis_id: Container ID (required)
963
1067
  :param str filename: output file name (required)
964
1068
  :param bool info: get file info only
965
1069
  :param str member: get zipfile member
@@ -991,7 +1095,7 @@ class AnalysesApi(object):
991
1095
  Get Output File
992
1096
  This method makes a synchronous HTTP request by default.
993
1097
 
994
- :param str analysis_id: 24-character hex ID (required)
1098
+ :param str analysis_id: Container ID (required)
995
1099
  :param str filename: output file name (required)
996
1100
  :param bool info: get file info only
997
1101
  :param str member: get zipfile member
@@ -1084,7 +1188,7 @@ class AnalysesApi(object):
1084
1188
  Get Output File
1085
1189
  This method makes a synchronous HTTP request by default.
1086
1190
 
1087
- :param str analysis_id: 24-character hex ID (required)
1191
+ :param str analysis_id: Container ID (required)
1088
1192
  :param str filename: output file name (required)
1089
1193
  :param str ticket: 24-char hex ticket id
1090
1194
  :param bool info: get file info only
@@ -1117,7 +1221,7 @@ class AnalysesApi(object):
1117
1221
  Get Output File
1118
1222
  This method makes a synchronous HTTP request by default.
1119
1223
 
1120
- :param str analysis_id: 24-character hex ID (required)
1224
+ :param str analysis_id: Container ID (required)
1121
1225
  :param str filename: output file name (required)
1122
1226
  :param str ticket: 24-char hex ticket id
1123
1227
  :param bool info: get file info only
@@ -1215,7 +1319,7 @@ class AnalysesApi(object):
1215
1319
  Get Output File
1216
1320
  This method makes a synchronous HTTP request by default.
1217
1321
 
1218
- :param str analysis_id: 24-character hex ID (required)
1322
+ :param str analysis_id: Container ID (required)
1219
1323
  :param str filename: output file name (required)
1220
1324
  :param str ticket: 24-char hex ticket id
1221
1325
  :param bool info: get file info only
@@ -1248,7 +1352,7 @@ class AnalysesApi(object):
1248
1352
  Get Output File
1249
1353
  This method makes a synchronous HTTP request by default.
1250
1354
 
1251
- :param str analysis_id: 24-character hex ID (required)
1355
+ :param str analysis_id: Container ID (required)
1252
1356
  :param str filename: output file name (required)
1253
1357
  :param str ticket: 24-char hex ticket id
1254
1358
  :param bool info: get file info only
@@ -1687,8 +1791,8 @@ class AnalysesApi(object):
1687
1791
  Get info for a particular file.
1688
1792
  This method makes a synchronous HTTP request by default.
1689
1793
 
1690
- :param str container_id: Container id (required)
1691
- :param str filename: The name of the file (required)
1794
+ :param str container_id: Container Id (required)
1795
+ :param str filename: (required)
1692
1796
  :param bool async_: Perform the request asynchronously
1693
1797
  :return: FileOutput
1694
1798
  """
@@ -1714,8 +1818,8 @@ class AnalysesApi(object):
1714
1818
  Get info for a particular file.
1715
1819
  This method makes a synchronous HTTP request by default.
1716
1820
 
1717
- :param str container_id: Container id (required)
1718
- :param str filename: The name of the file (required)
1821
+ :param str container_id: Container Id (required)
1822
+ :param str filename: (required)
1719
1823
  :param bool async_: Perform the request asynchronously
1720
1824
  :return: FileOutput
1721
1825
  """
@@ -1786,13 +1890,13 @@ class AnalysesApi(object):
1786
1890
  collection_formats=collection_formats)
1787
1891
 
1788
1892
  def get_analysis_note(self, container_id, note_id, **kwargs): # noqa: E501
1789
- """Get a note on analysis.
1893
+ """Get a note of a(n) analysis.
1790
1894
 
1791
- Get a note on analysis
1895
+ Get a note of a(n) analysis
1792
1896
  This method makes a synchronous HTTP request by default.
1793
1897
 
1794
- :param str container_id: Container id (required)
1795
- :param str note_id: 24-char hex note id (required)
1898
+ :param str container_id: (required)
1899
+ :param str note_id: (required)
1796
1900
  :param bool async_: Perform the request asynchronously
1797
1901
  :return: Note
1798
1902
  """
@@ -1813,13 +1917,13 @@ class AnalysesApi(object):
1813
1917
 
1814
1918
 
1815
1919
  def get_analysis_note_with_http_info(self, container_id, note_id, **kwargs): # noqa: E501
1816
- """Get a note on analysis.
1920
+ """Get a note of a(n) analysis.
1817
1921
 
1818
- Get a note on analysis
1922
+ Get a note of a(n) analysis
1819
1923
  This method makes a synchronous HTTP request by default.
1820
1924
 
1821
- :param str container_id: Container id (required)
1822
- :param str note_id: 24-char hex note id (required)
1925
+ :param str container_id: (required)
1926
+ :param str note_id: (required)
1823
1927
  :param bool async_: Perform the request asynchronously
1824
1928
  :return: Note
1825
1929
  """
@@ -2109,9 +2213,9 @@ class AnalysesApi(object):
2109
2213
  collection_formats=collection_formats)
2110
2214
 
2111
2215
  def modify_analysis_info(self, container_id, body, **kwargs): # noqa: E501
2112
- """Update or replace info for a analysis.
2216
+ """Update or replace info for a(n) analysis.
2113
2217
 
2114
- Update or replace info for a analysis.
2218
+ Update or replace info for a(n) analysis.
2115
2219
  This method makes a synchronous HTTP request by default.
2116
2220
 
2117
2221
  :param str container_id: (required)
@@ -2136,9 +2240,9 @@ class AnalysesApi(object):
2136
2240
 
2137
2241
 
2138
2242
  def modify_analysis_info_with_http_info(self, container_id, body, **kwargs): # noqa: E501
2139
- """Update or replace info for a analysis.
2243
+ """Update or replace info for a(n) analysis.
2140
2244
 
2141
- Update or replace info for a analysis.
2245
+ Update or replace info for a(n) analysis.
2142
2246
  This method makes a synchronous HTTP request by default.
2143
2247
 
2144
2248
  :param str container_id: (required)
@@ -2224,14 +2328,14 @@ class AnalysesApi(object):
2224
2328
  collection_formats=collection_formats)
2225
2329
 
2226
2330
  def modify_analysis_note(self, container_id, note_id, body, **kwargs): # noqa: E501
2227
- """Update a note on analysis.
2331
+ """Update a note of a(n) analysis.
2228
2332
 
2229
- Update a note on analysis
2333
+ Update a note of a(n) analysis
2230
2334
  This method makes a synchronous HTTP request by default.
2231
2335
 
2232
- :param str container_id: Container id (required)
2233
- :param str note_id: 24-char hex note id (required)
2234
- :param NoteInput body: note content (required)
2336
+ :param str container_id: (required)
2337
+ :param str note_id: (required)
2338
+ :param NoteInput body: (required)
2235
2339
  :param bool async_: Perform the request asynchronously
2236
2340
  :return: int
2237
2341
  """
@@ -2252,14 +2356,14 @@ class AnalysesApi(object):
2252
2356
 
2253
2357
 
2254
2358
  def modify_analysis_note_with_http_info(self, container_id, note_id, body, **kwargs): # noqa: E501
2255
- """Update a note on analysis.
2359
+ """Update a note of a(n) analysis.
2256
2360
 
2257
- Update a note on analysis
2361
+ Update a note of a(n) analysis
2258
2362
  This method makes a synchronous HTTP request by default.
2259
2363
 
2260
- :param str container_id: Container id (required)
2261
- :param str note_id: 24-char hex note id (required)
2262
- :param NoteInput body: note content (required)
2364
+ :param str container_id: (required)
2365
+ :param str note_id: (required)
2366
+ :param NoteInput body: (required)
2263
2367
  :param bool async_: Perform the request asynchronously
2264
2368
  :return: int
2265
2369
  """
@@ -2470,9 +2574,9 @@ class AnalysesApi(object):
2470
2574
  collection_formats=collection_formats)
2471
2575
 
2472
2576
  def upload_output_to_analysis(self, container_id, file, **kwargs): # noqa: E501
2473
- """Upload an output file to analysis.
2577
+ """Upload an output file to an analysis.
2474
2578
 
2475
- Upload an output file to analysis
2579
+ Upload an output file to an analysis
2476
2580
  This method makes a synchronous HTTP request by default.
2477
2581
 
2478
2582
  :param str container_id: (required)
@@ -2504,9 +2608,9 @@ class AnalysesApi(object):
2504
2608
 
2505
2609
 
2506
2610
  def upload_output_to_analysis_with_http_info(self, container_id, file, **kwargs): # noqa: E501
2507
- """Upload an output file to analysis.
2611
+ """Upload an output file to an analysis.
2508
2612
 
2509
- Upload an output file to analysis
2613
+ Upload an output file to an analysis
2510
2614
  This method makes a synchronous HTTP request by default.
2511
2615
 
2512
2616
  :param str container_id: (required)