flip_api.file_services.retrieve_model_files_list

Attributes

router

Functions

retrieve_model_files_list(, user_id)

Retrieve a list of model files from S3.

Module Contents

flip_api.file_services.retrieve_model_files_list.router
flip_api.file_services.retrieve_model_files_list.retrieve_model_files_list(model_id: uuid.UUID, db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) flip_api.domain.schemas.file.ModelFilesList

Retrieve a list of model files from S3.

Parameters:
  • model_id (UUID) – The ID of the model to retrieve files for.

  • db (Session) – Database session.

  • user_id (UUID) – User ID from authentication.

Returns:

A list of model files categorized by type (algo, opener, model).

Return type:

ModelFilesList

Raises:

HTTPException – If the user does not have access to the model, if the S3 bucket is not defined, or if there are no objects found for the specified model ID.