NebulaGraph Python Client 5.3.0
Loading...
Searching...
No Matches
NodeModel Class Reference
+ Inheritance diagram for NodeModel:
+ Collaboration diagram for NodeModel:

Public Member Functions

Optional[int] get_element_id (self)
 
str get_type (cls)
 
Sequence[str] get_labels (cls)
 
Mapping[str, Any] get_properties (self)
 
tuple[str, BasicTargetType] get_prop (self, str key)
 
List[str] get_primary_keys (cls)
 
Dict[str, BasicTargetType] get_primary_kv (self)
 
Self from_primitive (cls, NodePrimitive data)
 
NodeType to_type (cls)
 

Static Public Attributes

 model_config = ConfigDict(revalidate_instances="always")
 

Detailed Description

Definition at line 67 of file model.py.

Member Function Documentation

◆ from_primitive()

Self from_primitive (   cls,
NodePrimitive  data 
)

Definition at line 91 of file model.py.

◆ get_element_id()

Optional[int] get_element_id (   self)

Definition at line 70 of file model.py.

◆ get_labels()

Sequence[str] get_labels (   cls)

Definition at line 76 of file model.py.

◆ get_primary_keys()

List[str] get_primary_keys (   cls)

Definition at line 85 of file model.py.

◆ get_primary_kv()

Dict[str, BasicTargetType] get_primary_kv (   self)

Definition at line 87 of file model.py.

◆ get_prop()

tuple[str, BasicTargetType] get_prop (   self,
str  key 
)

Definition at line 81 of file model.py.

+ Here is the caller graph for this function:

◆ get_properties()

Mapping[str, Any] get_properties (   self)

Definition at line 78 of file model.py.

+ Here is the caller graph for this function:

◆ get_type()

str get_type (   cls)

Definition at line 73 of file model.py.

+ Here is the caller graph for this function:

◆ to_type()

NodeType to_type (   cls)

Definition at line 94 of file model.py.

Member Data Documentation

◆ model_config

model_config = ConfigDict(revalidate_instances="always")
static

Definition at line 68 of file model.py.


The documentation for this class was generated from the following file: