Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.17 KB

Context.md

File metadata and controls

32 lines (23 loc) · 1.17 KB

Context

Context encapsulates the information related to a single operation, including the tuples involved and the associated attributes.

Properties

Name Type Description Notes
tuples List[Tuple] A repeated field of tuples involved in the operation. [optional]
attributes List[Attribute] A repeated field of attributes associated with the operation. [optional]
data object Additional data associated with the context. [optional]

Example

from permify.models.context import Context

# TODO update the JSON string below
json = "{}"
# create an instance of Context from a JSON string
context_instance = Context.from_json(json)
# print the JSON string representation of the object
print(Context.to_json())

# convert the object into a dict
context_dict = context_instance.to_dict()
# create an instance of Context from a dict
context_from_dict = Context.from_dict(context_dict)

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