Skip to main content

BaseStorageClient

Defines an abstract base for storage clients.

It offers interfaces to get subclients for interacting with storage resources like datasets, key-value stores, and request queues.

Hierarchy

Index

Methods

dataset

  • Gets a subclient for a specific dataset by its ID.


    Parameters

    • optionalkeyword-onlyid: str

    Returns BaseDatasetClient

datasets

key_value_store

  • Gets a subclient for a specific key-value store by its ID.


    Parameters

    • optionalkeyword-onlyid: str

    Returns BaseKeyValueStoreClient

key_value_stores

purge_on_start

  • async purge_on_start(): None
  • Performs a purge of the default storages.

    This method ensures that the purge is executed only once during the lifetime of the instance. It is primarily used to clean up residual data from previous runs to maintain a clean state. If the storage client does not support purging, leave it empty.


    Returns None

request_queue

  • Gets a subclient for a specific request queue by its ID.


    Parameters

    • optionalkeyword-onlyid: str

    Returns BaseRequestQueueClient

request_queues