DataWriteRequest defines the structure of a request for writing data. It contains the necessary information such as tenant_id, metadata, tuples and attributes for the write operation.
Name | Type | Description | Notes |
---|---|---|---|
metadata | DataWriteRequestMetadata | [optional] | |
tuples | List[Tuple] | tuples contains the list of tuples (entity-relation-entity triples) that need to be written. | [optional] |
attributes | List[Attribute] | attributes contains the list of attributes (entity-attribute-value triples) that need to be written. | [optional] |
from permify.models.data_write_body import DataWriteBody
# TODO update the JSON string below
json = "{}"
# create an instance of DataWriteBody from a JSON string
data_write_body_instance = DataWriteBody.from_json(json)
# print the JSON string representation of the object
print(DataWriteBody.to_json())
# convert the object into a dict
data_write_body_dict = data_write_body_instance.to_dict()
# create an instance of DataWriteBody from a dict
data_write_body_from_dict = DataWriteBody.from_dict(data_write_body_dict)