Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.5 KB

CheckedExpr.md

File metadata and controls

34 lines (25 loc) · 2.5 KB

CheckedExpr

A CEL expression which has been successfully type checked.

Properties

Name Type Description Notes
reference_map Dict[str, V1alpha1Reference] A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message. [optional]
type_map Dict[str, V1alpha1Type] A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space. [optional]
source_info SourceInfo [optional]
expr_version str The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation. [optional]
expr Expr [optional]

Example

from permify.models.checked_expr import CheckedExpr

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

# convert the object into a dict
checked_expr_dict = checked_expr_instance.to_dict()
# create an instance of CheckedExpr from a dict
checked_expr_from_dict = CheckedExpr.from_dict(checked_expr_dict)

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