foundry.https_upload
Private utility methods to upload files and/or folders to Globus using HTTPS instead of Globus Transfer.
upload_to_endpoint
Upload local data to a Globus endpoint using HTTPS PUT requests. Data can be a folder or an individual file.
Args:
auths
(PubAuths): Dataclass of authorizers needed for upload. Includes transfer_client
, auth_client_openid
,
and
endpoint_auth_clients, which is a Dict of
endpoint_id``: AuthClient mappings.
local_data_path
(str): Path to the local dataset to publish to Foundry via HTTPS. Creates an HTTPS PUT request to upload the data specified to a Globus endpoint (default is NCSA endpoint) before it is transferred to MDF.
endpoint_id
(str): Globus endpoint ID to upload the data to. Default is NCSA endpoint. Must match the endpoint_id
auth'd in auths.auth_client_gcs
.
Returns ------- (str) Globus data source URL: URL pointing to the data on the Globus endpoint
This file was automatically generated via lazydocs.