upload_portal_api module

UploadPortalApi

class edgeimpulse_api.api.upload_portal_api.UploadPortalApi(
		api_client=None
)

Parameters

  • api_client=None

Methods

edgeimpulse_api.api.upload_portal_api.create_signed_upload_link(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		create_signed_upload_link_request: edgeimpulse_api.models.create_signed_upload_link_request.CreateSignedUploadLinkRequest,
		**kwargs
)> edgeimpulse_api.models.create_signed_upload_link_response.CreateSignedUploadLinkResponse

Create pre-signed S3 upload link

Creates a signed link to securely upload data to s3 bucket directly from the client.

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • create_signed_upload_link_request: edgeimpulse_api.models.create_signed_upload_link_request.CreateSignedUploadLinkRequest

  • **kwargs

Return

edgeimpulse_api.models.create_signed_upload_link_response.CreateSignedUploadLinkResponse

delete_portal_file

edgeimpulse_api.api.upload_portal_api.delete_portal_file(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		delete_portal_file_request: edgeimpulse_api.models.delete_portal_file_request.DeletePortalFileRequest,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Delete file from portal

Delete a file from an upload portal (requires JWT auth).

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • delete_portal_file_request: edgeimpulse_api.models.delete_portal_file_request.DeletePortalFileRequest

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

download_portal_file

edgeimpulse_api.api.upload_portal_api.download_portal_file(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		download_portal_file_request: edgeimpulse_api.models.download_portal_file_request.DownloadPortalFileRequest,
		**kwargs
)> edgeimpulse_api.models.download_portal_file_response.DownloadPortalFileResponse

Download file from portal

Download a file from an upload portal (requires JWT auth). Will return a signed URL to the bucket.

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • download_portal_file_request: edgeimpulse_api.models.download_portal_file_request.DownloadPortalFileRequest

  • **kwargs

Return

edgeimpulse_api.models.download_portal_file_response.DownloadPortalFileResponse

get_portal_info

edgeimpulse_api.api.upload_portal_api.get_portal_info(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.portal_info_response.PortalInfoResponse

Portal info

Get information about a portal

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.portal_info_response.PortalInfoResponse

list_portal_files_in_folder

edgeimpulse_api.api.upload_portal_api.list_portal_files_in_folder(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		list_portal_files_in_folder_request: edgeimpulse_api.models.list_portal_files_in_folder_request.ListPortalFilesInFolderRequest,
		**kwargs
)> edgeimpulse_api.models.list_portal_files_in_folder_response.ListPortalFilesInFolderResponse

List files in portal

List all files and directories in specified prefix.

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • list_portal_files_in_folder_request: edgeimpulse_api.models.list_portal_files_in_folder_request.ListPortalFilesInFolderRequest

  • **kwargs

Return

edgeimpulse_api.models.list_portal_files_in_folder_response.ListPortalFilesInFolderResponse

rename_portal_file

edgeimpulse_api.api.upload_portal_api.rename_portal_file(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		rename_portal_file_request: edgeimpulse_api.models.rename_portal_file_request.RenamePortalFileRequest,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Rename file from portal

Rename a file on an upload portal (requires JWT auth).

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • rename_portal_file_request: edgeimpulse_api.models.rename_portal_file_request.RenamePortalFileRequest

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

view_portal_file

edgeimpulse_api.api.upload_portal_api.view_portal_file(
		self,
		portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})],
		path: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='Path to file in portal', extra={})],
		**kwargs
)> str

View file from portal

View a file that's located in an upload portal (requires JWT auth). File might be converted (e.g. Parquet) or truncated (e.g. CSV).

Parameters

  • self

  • portal_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Portal ID', extra={})]

  • path: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='Path to file in portal', extra={})]

  • **kwargs

Return

str

Last updated