ai_api_client_sdk.resource_clients.base_client module

class ai_api_client_sdk.resource_clients.base_client.BaseClient(rest_client: RestClient)

Bases: object

BaseClient defines the interface for the resource clients.

Parameters:

rest_client (class:ai_api_client_sdk.helpers.rest_client.RestClient) – the client used to make calls to the server

__init__(rest_client: RestClient)
create(*args, **kwargs)

Creates the relevant resource. Will be implemented by the respective resource clients

delete(*args, **kwargs)

Deletes the relevant resource. Will be implemented by the respective resource clients

get(*args, **kwargs)

Retrieves the relevant resource. Will be implemented by the respective resource clients

modify(*args, **kwargs)

Modifies the relevant resource. Will be implemented by the respective resource clients

bulk_modify(*args, **kwargs)

Modifies multiple instances of the relevant resource. Will be implemented by the respective resource clients

query(*args, **kwargs)

Queries the relevant resources. Will be implemented by the respective resource clients

count(*args, **kwargs)

Counts the relevant resources. Will be implemented by the respective resource clients

query_logs(*args, **kwargs)

Queries the relevant logs. Will be implemented by the respective resource clients