genai.folder.folder_service module#

class genai.folder.folder_service.FolderService[source]#

Bases: BaseService[BaseServiceConfig, BaseServiceServices]

create(name)[source]#
Parameters:

name (str) – The name of the folder to be created.

Raises:
Return type:

FolderCreateResponse

delete(id)[source]#

Deletes a folder with the given ID.

Parameters:

id (str) – The ID of the folder to be deleted.

Raises:
Return type:

None

list(*, limit=None, offset=None)[source]#

List existing folders.

Raises:
Parameters:
  • limit (int | None) –

  • offset (int | None) –

Return type:

FolderRetrieveResponse

retrieve(id)[source]#
Parameters:

id (str) – The ID of the folder to retrieve.

Raises:
Return type:

FolderIdRetrieveResponse