sdk.lusid.models.data_definition.DataDefinition

class DataDefinition(**data)[source]

When importing data from an external data source, in order for it to be reliable queryable, LUSID needs to know something about it. A data definition tells LUSID, what a given external data item is, what type it is and whether it in some way identifies items of data. Consider presenting LUSID with a list of dictionaries where each dictionary contains the same set of keys (names). Each data item pointed to by a key would be expected to be of the same type (integer, string, decimal etc.). To identify a particular dictionary from the list, a tuple of one or more of the items in the dictionary would make it unique. If only a single item is required then the # noqa: E501

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Attributes

This is a Pydantic class. For now, click on the green [source] link in the class signature above to see descriptions/allowed values for these attributes.

address

name

data_type

key_type

allow_null

allow_missing

class Config[source]

Pydantic configuration

classmethod from_dict(obj)[source]

Create an instance of DataDefinition from a dict

Return type:

DataDefinition

classmethod from_json(json_str)[source]

Create an instance of DataDefinition from a JSON string

Return type:

DataDefinition

classmethod name_validate_regular_expression(value)[source]

Validates the regular expression

to_dict()[source]

Returns the dictionary representation of the model using alias

to_json()[source]

Returns the JSON representation of the model using alias

Return type:

str

to_str()[source]

Returns the string representation of the model using alias

Return type:

str