Skip to content

Latest commit

History

History
32 lines (23 loc) · 1.41 KB

File metadata and controls

32 lines (23 loc) · 1.41 KB

DataWriteBody

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.

Properties

NameTypeDescriptionNotes
metadataDataWriteRequestMetadata[optional]
tuplesList[Tuple]tuples contains the list of tuples (entity-relation-entity triples) that need to be written.[optional]
attributesList[Attribute]attributes contains the list of attributes (entity-attribute-value triples) that need to be written.[optional]

Example

frompermify_async.models.data_write_bodyimportDataWriteBody# TODO update the JSON string belowjson="{}"# create an instance of DataWriteBody from a JSON stringdata_write_body_instance=DataWriteBody.from_json(json)
# print the JSON string representation of the objectprint(DataWriteBody.to_json())
# convert the object into a dictdata_write_body_dict=data_write_body_instance.to_dict()
# create an instance of DataWriteBody from a dictdata_write_body_from_dict=DataWriteBody.from_dict(data_write_body_dict)

[Back to Model list][Back to API list][Back to README]