aito.client.requests.schema_api_request.CreateDatabaseSchemaRequest

class aito.client.requests.schema_api_request.CreateDatabaseSchemaRequest(schema: Union[aito.schema.AitoDatabaseSchema, Dict])

Bases: aito.client.requests.aito_request._PutRequest, aito.client.requests.schema_api_request._DatabaseSchemaRequest, aito.client.requests.schema_api_request._SchemaAPIRequest

Request to Create the schema of the database

Parameters

schema (Union[AitoDatabaseSchema, Dict]) – Aito database schema

Methods

make_request(method, endpoint, query)

factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest

Attributes

endpoint

endpoint_prefix

method

classmethod make_request(method: str, endpoint: str, query: Optional[Union[Dict, List]])aito.client.requests.aito_request.AitoRequest

factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest

response_cls

alias of aito.client.responses.schema_api_response.DatabaseSchemaResponse