flywheel-sdk 19.2.0__py2.py3-none-any.whl → 19.3.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.
@@ -138,8 +138,9 @@ class CollectionsApi(object):
138
138
  collection_formats=collection_formats)
139
139
 
140
140
  def add_collection_note(self, container_id, body, **kwargs): # noqa: E501
141
- """Add a note to collection.
141
+ """Add a note to a(n) collection.
142
142
 
143
+ Add a note to a(n) collection.
143
144
  This method makes a synchronous HTTP request by default.
144
145
 
145
146
  :param str container_id: (required)
@@ -164,8 +165,9 @@ class CollectionsApi(object):
164
165
 
165
166
 
166
167
  def add_collection_note_with_http_info(self, container_id, body, **kwargs): # noqa: E501
167
- """Add a note to collection.
168
+ """Add a note to a(n) collection.
168
169
 
170
+ Add a note to a(n) collection.
169
171
  This method makes a synchronous HTTP request by default.
170
172
 
171
173
  :param str container_id: (required)
@@ -366,7 +368,7 @@ class CollectionsApi(object):
366
368
  collection_formats=collection_formats)
367
369
 
368
370
  def add_collection_tag(self, cid, body, **kwargs): # noqa: E501
369
- """Add a tag to collection.
371
+ """Add a tag to a(n) collection.
370
372
 
371
373
  Propagates changes to projects, sessions and acquisitions
372
374
  This method makes a synchronous HTTP request by default.
@@ -393,7 +395,7 @@ class CollectionsApi(object):
393
395
 
394
396
 
395
397
  def add_collection_tag_with_http_info(self, cid, body, **kwargs): # noqa: E501
396
- """Add a tag to collection.
398
+ """Add a tag to a(n) collection.
397
399
 
398
400
  Propagates changes to projects, sessions and acquisitions
399
401
  This method makes a synchronous HTTP request by default.
@@ -481,9 +483,9 @@ class CollectionsApi(object):
481
483
  collection_formats=collection_formats)
482
484
 
483
485
  def add_collection_tags(self, cid, body, **kwargs): # noqa: E501
484
- """Add multiple tags to collection
486
+ """Add multiple tags to a(n) collection
485
487
 
486
- Add multiple tags to collection
488
+ Add multiple tags to a(n) collection
487
489
  This method makes a synchronous HTTP request by default.
488
490
 
489
491
  :param str cid: (required)
@@ -508,9 +510,9 @@ class CollectionsApi(object):
508
510
 
509
511
 
510
512
  def add_collection_tags_with_http_info(self, cid, body, **kwargs): # noqa: E501
511
- """Add multiple tags to collection
513
+ """Add multiple tags to a(n) collection
512
514
 
513
- Add multiple tags to collection
515
+ Add multiple tags to a(n) collection
514
516
  This method makes a synchronous HTTP request by default.
515
517
 
516
518
  :param str cid: (required)
@@ -797,9 +799,9 @@ class CollectionsApi(object):
797
799
  collection_formats=collection_formats)
798
800
 
799
801
  def delete_collection_note(self, cid, note_id, **kwargs): # noqa: E501
800
- """Remove a note from collection
802
+ """Remove a note from a(n) collection
801
803
 
802
- Remove a note from collection
804
+ Remove a note from a(n) collection
803
805
  This method makes a synchronous HTTP request by default.
804
806
 
805
807
  :param str cid: (required)
@@ -824,9 +826,9 @@ class CollectionsApi(object):
824
826
 
825
827
 
826
828
  def delete_collection_note_with_http_info(self, cid, note_id, **kwargs): # noqa: E501
827
- """Remove a note from collection
829
+ """Remove a note from a(n) collection
828
830
 
829
- Remove a note from collection
831
+ Remove a note from a(n) collection
830
832
  This method makes a synchronous HTTP request by default.
831
833
 
832
834
  :param str cid: (required)
@@ -1005,9 +1007,9 @@ class CollectionsApi(object):
1005
1007
  collection_formats=collection_formats)
1006
1008
 
1007
1009
  def delete_collection_tags(self, cid, body, **kwargs): # noqa: E501
1008
- """Delete multiple tags from collection
1010
+ """Delete multiple tags from a(n) collection
1009
1011
 
1010
- Delete multiple tags from collection
1012
+ Delete multiple tags from a(n) collection
1011
1013
  This method makes a synchronous HTTP request by default.
1012
1014
 
1013
1015
  :param str cid: (required)
@@ -1032,9 +1034,9 @@ class CollectionsApi(object):
1032
1034
 
1033
1035
 
1034
1036
  def delete_collection_tags_with_http_info(self, cid, body, **kwargs): # noqa: E501
1035
- """Delete multiple tags from collection
1037
+ """Delete multiple tags from a(n) collection
1036
1038
 
1037
- Delete multiple tags from collection
1039
+ Delete multiple tags from a(n) collection
1038
1040
  This method makes a synchronous HTTP request by default.
1039
1041
 
1040
1042
  :param str cid: (required)
@@ -1216,13 +1218,117 @@ class CollectionsApi(object):
1216
1218
  _request_out=params.get('_request_out'),
1217
1219
  collection_formats=collection_formats)
1218
1220
 
1221
+ def delete_collections_by_ids(self, body, **kwargs): # noqa: E501
1222
+ """Delete multiple collections by ID list
1223
+
1224
+ Delete multiple collections by ID list
1225
+ This method makes a synchronous HTTP request by default.
1226
+
1227
+ :param list[str] body: List of IDs to delete (required)
1228
+ :param ContainerDeleteReason delete_reason:
1229
+ :param bool async_: Perform the request asynchronously
1230
+ :return: DeletedResult
1231
+ """
1232
+ ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
1233
+ kwargs['_return_http_data_only'] = True
1234
+
1235
+ if kwargs.get('async_'):
1236
+ return self.delete_collections_by_ids_with_http_info(body, **kwargs) # noqa: E501
1237
+ else:
1238
+ (data) = self.delete_collections_by_ids_with_http_info(body, **kwargs) # noqa: E501
1239
+ if (
1240
+ data
1241
+ and hasattr(data, 'return_value')
1242
+ and not ignore_simplified_return_value
1243
+ ):
1244
+ return data.return_value()
1245
+ return data
1246
+
1247
+
1248
+ def delete_collections_by_ids_with_http_info(self, body, **kwargs): # noqa: E501
1249
+ """Delete multiple collections by ID list
1250
+
1251
+ Delete multiple collections by ID list
1252
+ This method makes a synchronous HTTP request by default.
1253
+
1254
+ :param list[str] body: List of IDs to delete (required)
1255
+ :param ContainerDeleteReason delete_reason:
1256
+ :param bool async_: Perform the request asynchronously
1257
+ :return: DeletedResult
1258
+ """
1259
+
1260
+ all_params = ['body','delete_reason',] # noqa: E501
1261
+ all_params.append('async_')
1262
+ all_params.append('_return_http_data_only')
1263
+ all_params.append('_preload_content')
1264
+ all_params.append('_request_timeout')
1265
+ all_params.append('_request_out')
1266
+
1267
+ params = locals()
1268
+ for key, val in six.iteritems(params['kwargs']):
1269
+ if key not in all_params:
1270
+ raise TypeError(
1271
+ "Got an unexpected keyword argument '%s'"
1272
+ " to method delete_collections_by_ids" % key
1273
+ )
1274
+ params[key] = val
1275
+ del params['kwargs']
1276
+ # verify the required parameter 'body' is set
1277
+ if ('body' not in params or
1278
+ params['body'] is None):
1279
+ raise ValueError("Missing the required parameter `body` when calling `delete_collections_by_ids`") # noqa: E501
1280
+
1281
+ collection_formats = {}
1282
+
1283
+ path_params = {}
1284
+
1285
+ query_params = []
1286
+ if 'delete_reason' in params:
1287
+ query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
1288
+
1289
+ header_params = {}
1290
+
1291
+ form_params = []
1292
+ local_var_files = {}
1293
+
1294
+ body_params = None
1295
+ if 'body' in params:
1296
+ body_params = params['body']
1297
+ # HTTP header `Accept`
1298
+ header_params['Accept'] = self.api_client.select_header_accept(
1299
+ ['application/json']) # noqa: E501
1300
+
1301
+ # HTTP header `Content-Type`
1302
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1303
+ ['application/json']) # noqa: E501
1304
+
1305
+ # Authentication setting
1306
+ auth_settings = ['ApiKey'] # noqa: E501
1307
+
1308
+ return self.api_client.call_api(
1309
+ '/collections', 'DELETE',
1310
+ path_params,
1311
+ query_params,
1312
+ header_params,
1313
+ body=body_params,
1314
+ post_params=form_params,
1315
+ files=local_var_files,
1316
+ response_type='DeletedResult', # noqa: E501
1317
+ auth_settings=auth_settings,
1318
+ async_=params.get('async_'),
1319
+ _return_http_data_only=params.get('_return_http_data_only'),
1320
+ _preload_content=params.get('_preload_content', True),
1321
+ _request_timeout=params.get('_request_timeout'),
1322
+ _request_out=params.get('_request_out'),
1323
+ collection_formats=collection_formats)
1324
+
1219
1325
  def download_file_from_collection(self, collection_id, file_name, dest_file, **kwargs): # noqa: E501
1220
1326
  """Download a file.
1221
1327
 
1222
1328
  Files can be downloaded directly from this endpoint with a valid \"Authorization\" header or via a ticket id. To generate a ticket: - Make a request with an empty \"ticket\" parameter and a valid \"Authorization\" header. The server will respond with a generated ticket id. - Make another request with the received ticket id in the \"ticket\" parameter. A valid \"Authorization\" header is no longer required. When \"view\" is true, [RFC7233](https://tools.ietf.org/html/rfc7233) range request headers are supported. When virus_scan feature is enabled the quarantined files only can be downloaded using signed urls otherwise it will return with a HTTP 400 response.
1223
1329
  This method makes a synchronous HTTP request by default.
1224
1330
 
1225
- :param str collection_id: 24-char hex id (required)
1331
+ :param str collection_id: 24-character hex ID (required)
1226
1332
  :param str file_name: output file name (required)
1227
1333
  :param bool info: If the file is a zipfile, return a json response of zipfile member information
1228
1334
  :param str member: The filename of a zipfile member to download rather than the entire file
@@ -1256,7 +1362,7 @@ class CollectionsApi(object):
1256
1362
  Files can be downloaded directly from this endpoint with a valid \"Authorization\" header or via a ticket id. To generate a ticket: - Make a request with an empty \"ticket\" parameter and a valid \"Authorization\" header. The server will respond with a generated ticket id. - Make another request with the received ticket id in the \"ticket\" parameter. A valid \"Authorization\" header is no longer required. When \"view\" is true, [RFC7233](https://tools.ietf.org/html/rfc7233) range request headers are supported. When virus_scan feature is enabled the quarantined files only can be downloaded using signed urls otherwise it will return with a HTTP 400 response.
1257
1363
  This method makes a synchronous HTTP request by default.
1258
1364
 
1259
- :param str collection_id: 24-char hex id (required)
1365
+ :param str collection_id: 24-character hex ID (required)
1260
1366
  :param str file_name: output file name (required)
1261
1367
  :param bool info: If the file is a zipfile, return a json response of zipfile member information
1262
1368
  :param str member: The filename of a zipfile member to download rather than the entire file
@@ -1355,7 +1461,7 @@ class CollectionsApi(object):
1355
1461
  Files can be downloaded directly from this endpoint with a valid \"Authorization\" header or via a ticket id. To generate a ticket: - Make a request with an empty \"ticket\" parameter and a valid \"Authorization\" header. The server will respond with a generated ticket id. - Make another request with the received ticket id in the \"ticket\" parameter. A valid \"Authorization\" header is no longer required. When \"view\" is true, [RFC7233](https://tools.ietf.org/html/rfc7233) range request headers are supported. When virus_scan feature is enabled the quarantined files only can be downloaded using signed urls otherwise it will return with a HTTP 400 response.
1356
1462
  This method makes a synchronous HTTP request by default.
1357
1463
 
1358
- :param str collection_id: 24-char hex id (required)
1464
+ :param str collection_id: 24-character hex ID (required)
1359
1465
  :param str file_name: output file name (required)
1360
1466
  :param str ticket: The generated ticket id for the download, or present but empty to generate a ticket id
1361
1467
  :param bool info: If the file is a zipfile, return a json response of zipfile member information
@@ -1390,7 +1496,7 @@ class CollectionsApi(object):
1390
1496
  Files can be downloaded directly from this endpoint with a valid \"Authorization\" header or via a ticket id. To generate a ticket: - Make a request with an empty \"ticket\" parameter and a valid \"Authorization\" header. The server will respond with a generated ticket id. - Make another request with the received ticket id in the \"ticket\" parameter. A valid \"Authorization\" header is no longer required. When \"view\" is true, [RFC7233](https://tools.ietf.org/html/rfc7233) range request headers are supported. When virus_scan feature is enabled the quarantined files only can be downloaded using signed urls otherwise it will return with a HTTP 400 response.
1391
1497
  This method makes a synchronous HTTP request by default.
1392
1498
 
1393
- :param str collection_id: 24-char hex id (required)
1499
+ :param str collection_id: 24-character hex ID (required)
1394
1500
  :param str file_name: output file name (required)
1395
1501
  :param str ticket: The generated ticket id for the download, or present but empty to generate a ticket id
1396
1502
  :param bool info: If the file is a zipfile, return a json response of zipfile member information
@@ -1494,7 +1600,7 @@ class CollectionsApi(object):
1494
1600
  Files can be downloaded directly from this endpoint with a valid \"Authorization\" header or via a ticket id. To generate a ticket: - Make a request with an empty \"ticket\" parameter and a valid \"Authorization\" header. The server will respond with a generated ticket id. - Make another request with the received ticket id in the \"ticket\" parameter. A valid \"Authorization\" header is no longer required. When \"view\" is true, [RFC7233](https://tools.ietf.org/html/rfc7233) range request headers are supported. When virus_scan feature is enabled the quarantined files only can be downloaded using signed urls otherwise it will return with a HTTP 400 response.
1495
1601
  This method makes a synchronous HTTP request by default.
1496
1602
 
1497
- :param str collection_id: 24-char hex id (required)
1603
+ :param str collection_id: 24-character hex ID (required)
1498
1604
  :param str file_name: output file name (required)
1499
1605
  :param str ticket: The generated ticket id for the download, or present but empty to generate a ticket id
1500
1606
  :param bool info: If the file is a zipfile, return a json response of zipfile member information
@@ -1529,7 +1635,7 @@ class CollectionsApi(object):
1529
1635
  Files can be downloaded directly from this endpoint with a valid \"Authorization\" header or via a ticket id. To generate a ticket: - Make a request with an empty \"ticket\" parameter and a valid \"Authorization\" header. The server will respond with a generated ticket id. - Make another request with the received ticket id in the \"ticket\" parameter. A valid \"Authorization\" header is no longer required. When \"view\" is true, [RFC7233](https://tools.ietf.org/html/rfc7233) range request headers are supported. When virus_scan feature is enabled the quarantined files only can be downloaded using signed urls otherwise it will return with a HTTP 400 response.
1530
1636
  This method makes a synchronous HTTP request by default.
1531
1637
 
1532
- :param str collection_id: 24-char hex id (required)
1638
+ :param str collection_id: 24-character hex ID (required)
1533
1639
  :param str file_name: output file name (required)
1534
1640
  :param str ticket: The generated ticket id for the download, or present but empty to generate a ticket id
1535
1641
  :param bool info: If the file is a zipfile, return a json response of zipfile member information
@@ -2122,7 +2228,7 @@ class CollectionsApi(object):
2122
2228
  Get info for a particular file.
2123
2229
  This method makes a synchronous HTTP request by default.
2124
2230
 
2125
- :param str cid: (required)
2231
+ :param str cid: Container Id (required)
2126
2232
  :param str filename: (required)
2127
2233
  :param bool async_: Perform the request asynchronously
2128
2234
  :return: FileOutput
@@ -2149,7 +2255,7 @@ class CollectionsApi(object):
2149
2255
  Get info for a particular file.
2150
2256
  This method makes a synchronous HTTP request by default.
2151
2257
 
2152
- :param str cid: (required)
2258
+ :param str cid: Container Id (required)
2153
2259
  :param str filename: (required)
2154
2260
  :param bool async_: Perform the request asynchronously
2155
2261
  :return: FileOutput
@@ -2221,9 +2327,9 @@ class CollectionsApi(object):
2221
2327
  collection_formats=collection_formats)
2222
2328
 
2223
2329
  def get_collection_note(self, cid, note_id, **kwargs): # noqa: E501
2224
- """Get a note on collection.
2330
+ """Get a note of a(n) collection.
2225
2331
 
2226
- Get a note on collection
2332
+ Get a note of a(n) collection
2227
2333
  This method makes a synchronous HTTP request by default.
2228
2334
 
2229
2335
  :param str cid: (required)
@@ -2248,9 +2354,9 @@ class CollectionsApi(object):
2248
2354
 
2249
2355
 
2250
2356
  def get_collection_note_with_http_info(self, cid, note_id, **kwargs): # noqa: E501
2251
- """Get a note on collection.
2357
+ """Get a note of a(n) collection.
2252
2358
 
2253
- Get a note on collection
2359
+ Get a note of a(n) collection
2254
2360
  This method makes a synchronous HTTP request by default.
2255
2361
 
2256
2362
  :param str cid: (required)
@@ -3142,9 +3248,9 @@ class CollectionsApi(object):
3142
3248
  collection_formats=collection_formats)
3143
3249
 
3144
3250
  def modify_collection_info(self, cid, body, **kwargs): # noqa: E501
3145
- """Update or replace info for a collection.
3251
+ """Update or replace info for a(n) collection.
3146
3252
 
3147
- Update or replace info for a collection.
3253
+ Update or replace info for a(n) collection.
3148
3254
  This method makes a synchronous HTTP request by default.
3149
3255
 
3150
3256
  :param str cid: (required)
@@ -3169,9 +3275,9 @@ class CollectionsApi(object):
3169
3275
 
3170
3276
 
3171
3277
  def modify_collection_info_with_http_info(self, cid, body, **kwargs): # noqa: E501
3172
- """Update or replace info for a collection.
3278
+ """Update or replace info for a(n) collection.
3173
3279
 
3174
- Update or replace info for a collection.
3280
+ Update or replace info for a(n) collection.
3175
3281
  This method makes a synchronous HTTP request by default.
3176
3282
 
3177
3283
  :param str cid: (required)
@@ -3257,9 +3363,9 @@ class CollectionsApi(object):
3257
3363
  collection_formats=collection_formats)
3258
3364
 
3259
3365
  def modify_collection_note(self, cid, note_id, body, **kwargs): # noqa: E501
3260
- """Update a note on collection.
3366
+ """Update a note of a(n) collection.
3261
3367
 
3262
- Update a note on collection
3368
+ Update a note of a(n) collection
3263
3369
  This method makes a synchronous HTTP request by default.
3264
3370
 
3265
3371
  :param str cid: (required)
@@ -3285,9 +3391,9 @@ class CollectionsApi(object):
3285
3391
 
3286
3392
 
3287
3393
  def modify_collection_note_with_http_info(self, cid, note_id, body, **kwargs): # noqa: E501
3288
- """Update a note on collection.
3394
+ """Update a note of a(n) collection.
3289
3395
 
3290
- Update a note on collection
3396
+ Update a note of a(n) collection
3291
3397
  This method makes a synchronous HTTP request by default.
3292
3398
 
3293
3399
  :param str cid: (required)
@@ -3626,8 +3732,9 @@ class CollectionsApi(object):
3626
3732
  collection_formats=collection_formats)
3627
3733
 
3628
3734
  def upload_file_to_collection(self, container_id, file, **kwargs): # noqa: E501
3629
- """Upload a file to collection.
3735
+ """Upload a file to a(n) collection.
3630
3736
 
3737
+ Upload a file to a(n) collection.
3631
3738
  This method makes a synchronous HTTP request by default.
3632
3739
 
3633
3740
  :param str container_id: (required)
@@ -3660,8 +3767,9 @@ class CollectionsApi(object):
3660
3767
 
3661
3768
 
3662
3769
  def upload_file_to_collection_with_http_info(self, container_id, file, **kwargs): # noqa: E501
3663
- """Upload a file to collection.
3770
+ """Upload a file to a(n) collection.
3664
3771
 
3772
+ Upload a file to a(n) collection.
3665
3773
  This method makes a synchronous HTTP request by default.
3666
3774
 
3667
3775
  :param str container_id: (required)