afnio.tellurio.project#
Functions
|
Creates a new project in the specified namespace. |
|
Deletes a project by in the specified namespace. |
|
Retrieves a project by its slug in the specified namespace. |
Classes
|
Represents a Tellurio Project with detailed information. |
- class afnio.tellurio.project.Project(uuid, display_name, slug, date_created, last_run_date, visibility, role, org_uuid, org_display_name, org_slug)[source]#
Bases:
objectRepresents a Tellurio Project with detailed information.
- afnio.tellurio.project.create_project(namespace_slug, display_name, visibility='TEAM', client=None)[source]#
Creates a new project in the specified namespace.
- Parameters:
namespace_slug (str) – The namespace slug where the project resides. It can be either an organization slug or a user slug.
display_name (str) – The display name of the project.
visibility (str) – The visibility of the project (default: “TEAM”).
client (TellurioClient, optional) – An instance of TellurioClient. If not provided, the default client will be used.
- Returns:
A Project object representing the created project.
- Return type:
- afnio.tellurio.project.delete_project(namespace_slug, project_slug, client=None)[source]#
Deletes a project by in the specified namespace.
- Parameters:
namespace_slug (str) – The namespace slug where the project resides. It can be either an organization slug or a user slug.
project_slug (str) – The slug of the project to delete.
client (TellurioClient, optional) – An instance of TellurioClient. If not provided, the default client will be used.
- Returns:
None
- afnio.tellurio.project.get_project(namespace_slug, project_slug, client=None)[source]#
Retrieves a project by its slug in the specified namespace.
- Parameters:
namespace_slug (str) – The namespace slug where the project resides. It can be either an organization slug or a user slug.
project_slug (str) – The slug of the project to retrieve.
client (TellurioClient, optional) – An instance of TellurioClient. If not provided, the default client will be used.
- Returns:
- A Project object representing the retrieved project
or None if not found.
- Return type:
- Raises:
Exception – If an unexpected error occurs during the request.