@@ -36,8 +36,9 @@ async def post_file_multipart(
3636 force_restart: Optional parameter. When True, any upload state for the given
3737 file will be cleared and a new upload will be started.
3838 endpoint: Server endpoint to call to.
39- synapse_client: If not passed in or None this will use the last client from
40- the `.login()` method.
39+ synapse_client: If not passed in and caching was not disabled by
40+ `Synapse.allow_client_caching(False)` this will use the last created
41+ insance from the Synapse class constructor.
4142
4243 Returns:
4344 The requested multipart upload status matching
@@ -87,8 +88,9 @@ async def put_file_multipart_add(
8788 md5_hex: The MD5 of the uploaded part represented as a hexadecimal string. If
8889 the provided MD5 does not match the MD5 of the uploaded part, the add
8990 will fail.
90- synapse_client: If not passed in or None this will use the last client from
91- the `.login()` method.
91+ synapse_client: If not passed in and caching was not disabled by
92+ `Synapse.allow_client_caching(False)` this will use the last created
93+ insance from the Synapse class constructor.
9294
9395 Returns:
9496 Object matching
@@ -126,8 +128,9 @@ async def put_file_multipart_complete(
126128 Arguments:
127129 upload_id: The unique identifier of the file upload.
128130 endpoint: Server endpoint to call to.
129- synapse_client: If not passed in or None this will use the last client from
130- the `.login()` method.
131+ synapse_client: If not passed in and caching was not disabled by
132+ `Synapse.allow_client_caching(False)` this will use the last created
133+ insance from the Synapse class constructor.
131134
132135 Returns:
133136 Object matching
@@ -154,8 +157,9 @@ async def post_file_multipart_presigned_urls(
154157 Arguments:
155158 upload_id: The unique identifier of the file upload.
156159 part_numbers: The part numbers to get pre-signed URLs for.
157- synapse_client: If not passed in or None this will use the last client from
158- the `.login()` method.
160+ synapse_client: If not passed in and caching was not disabled by
161+ `Synapse.allow_client_caching(False)` this will use the last created
162+ insance from the Synapse class constructor.
159163
160164 Returns:
161165 Object matching
@@ -199,8 +203,9 @@ async def post_external_object_store_filehandle(
199203 storage_location_id: The optional storage location descriptor
200204 mimetype: The Mimetype of the file, if known.
201205 md5: The file's content MD5, if known.
202- synapse_client: If not passed in or None this will use the last client from
203- the `.login()` method.
206+ synapse_client: If not passed in and caching was not disabled by
207+ `Synapse.allow_client_caching(False)` this will use the last created
208+ insance from the Synapse class constructor.
204209
205210 Returns:
206211 A FileHandle for objects that are stored externally.
@@ -243,8 +248,9 @@ async def post_external_filehandle(
243248 mimetype: The Mimetype of the file, if known.
244249 md5: The file's content MD5.
245250 file_size: The size of the file in bytes.
246- synapse_client: If not passed in or None this will use the last client from
247- the `.login()` method.
251+ synapse_client: If not passed in and caching was not disabled by
252+ `Synapse.allow_client_caching(False)` this will use the last created
253+ insance from the Synapse class constructor.
248254
249255 Returns:
250256 A FileHandle for objects that are stored externally.
@@ -299,8 +305,9 @@ async def post_external_s3_file_handle(
299305 mutually exclusive with parent
300306 mimetype: Mimetype of the file, if known
301307 md5: MD5 of the file, if known
302- synapse_client: If not passed in or None this will use the last client from
303- the `.login()` method.
308+ synapse_client: If not passed in and caching was not disabled by
309+ `Synapse.allow_client_caching(False)` this will use the last created
310+ insance from the Synapse class constructor.
304311
305312 Returns:
306313 The created file handle.
@@ -360,8 +367,9 @@ async def get_file_handle(
360367
361368 Arguments:
362369 file_handle_id: The ID of the file handle to look up.
363- synapse_client: If not passed in or None this will use the last client from
364- the `.login()` method.
370+ synapse_client: If not passed in and caching was not disabled by
371+ `Synapse.allow_client_caching(False)` this will use the last created
372+ insance from the Synapse class constructor.
365373
366374 Returns:
367375 A file handle retrieved from the file handle service.
@@ -392,8 +400,9 @@ async def get_file_handle_for_download_async(
392400 entity_type: Type of object associated with a file e.g. FileEntity,
393401 TableEntity
394402 <https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/file/FileHandleAssociateType.html>
395- synapse_client: If not passed in or None this will use the last client from
396- the `.login()` method.
403+ synapse_client: If not passed in and caching was not disabled by
404+ `Synapse.allow_client_caching(False)` this will use the last created
405+ insance from the Synapse class constructor.
397406
398407 Raises:
399408 SynapseFileNotFoundError: If the fileHandleId is not found in Synapse.
@@ -452,8 +461,9 @@ def get_file_handle_for_download(
452461 entity_type: Type of object associated with a file e.g. FileEntity,
453462 TableEntity
454463 <https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/file/FileHandleAssociateType.html>
455- synapse_client: If not passed in or None this will use the last client from
456- the `.login()` method.
464+ synapse_client: If not passed in and caching was not disabled by
465+ `Synapse.allow_client_caching(False)` this will use the last created
466+ insance from the Synapse class constructor.
457467
458468 Raises:
459469 SynapseFileNotFoundError: If the fileHandleId is not found in Synapse.
0 commit comments