@@ -23,6 +23,10 @@ class GraphInfo:
2323 created_at (str): Creation timestamp
2424 is_repository (bool | Unset): Whether this is a shared repository (vs user graph) Default: False.
2525 repository_type (None | str | Unset): Repository type if isRepository=true
26+ schema_extensions (list[str] | Unset): List of schema extensions installed on this graph
27+ is_subgraph (bool | Unset): Whether this is a subgraph (vs a main graph) Default: False.
28+ parent_graph_id (None | str | Unset): Parent graph ID if this is a subgraph
29+ graph_type (str | Unset): Type of graph: generic, entity, or repository Default: 'entity'.
2630 """
2731
2832 graph_id : str
@@ -32,6 +36,10 @@ class GraphInfo:
3236 created_at : str
3337 is_repository : bool | Unset = False
3438 repository_type : None | str | Unset = UNSET
39+ schema_extensions : list [str ] | Unset = UNSET
40+ is_subgraph : bool | Unset = False
41+ parent_graph_id : None | str | Unset = UNSET
42+ graph_type : str | Unset = "entity"
3543 additional_properties : dict [str , Any ] = _attrs_field (init = False , factory = dict )
3644
3745 def to_dict (self ) -> dict [str , Any ]:
@@ -53,6 +61,20 @@ def to_dict(self) -> dict[str, Any]:
5361 else :
5462 repository_type = self .repository_type
5563
64+ schema_extensions : list [str ] | Unset = UNSET
65+ if not isinstance (self .schema_extensions , Unset ):
66+ schema_extensions = self .schema_extensions
67+
68+ is_subgraph = self .is_subgraph
69+
70+ parent_graph_id : None | str | Unset
71+ if isinstance (self .parent_graph_id , Unset ):
72+ parent_graph_id = UNSET
73+ else :
74+ parent_graph_id = self .parent_graph_id
75+
76+ graph_type = self .graph_type
77+
5678 field_dict : dict [str , Any ] = {}
5779 field_dict .update (self .additional_properties )
5880 field_dict .update (
@@ -68,6 +90,14 @@ def to_dict(self) -> dict[str, Any]:
6890 field_dict ["isRepository" ] = is_repository
6991 if repository_type is not UNSET :
7092 field_dict ["repositoryType" ] = repository_type
93+ if schema_extensions is not UNSET :
94+ field_dict ["schemaExtensions" ] = schema_extensions
95+ if is_subgraph is not UNSET :
96+ field_dict ["isSubgraph" ] = is_subgraph
97+ if parent_graph_id is not UNSET :
98+ field_dict ["parentGraphId" ] = parent_graph_id
99+ if graph_type is not UNSET :
100+ field_dict ["graphType" ] = graph_type
71101
72102 return field_dict
73103
@@ -95,6 +125,21 @@ def _parse_repository_type(data: object) -> None | str | Unset:
95125
96126 repository_type = _parse_repository_type (d .pop ("repositoryType" , UNSET ))
97127
128+ schema_extensions = cast (list [str ], d .pop ("schemaExtensions" , UNSET ))
129+
130+ is_subgraph = d .pop ("isSubgraph" , UNSET )
131+
132+ def _parse_parent_graph_id (data : object ) -> None | str | Unset :
133+ if data is None :
134+ return data
135+ if isinstance (data , Unset ):
136+ return data
137+ return cast (None | str | Unset , data )
138+
139+ parent_graph_id = _parse_parent_graph_id (d .pop ("parentGraphId" , UNSET ))
140+
141+ graph_type = d .pop ("graphType" , UNSET )
142+
98143 graph_info = cls (
99144 graph_id = graph_id ,
100145 graph_name = graph_name ,
@@ -103,6 +148,10 @@ def _parse_repository_type(data: object) -> None | str | Unset:
103148 created_at = created_at ,
104149 is_repository = is_repository ,
105150 repository_type = repository_type ,
151+ schema_extensions = schema_extensions ,
152+ is_subgraph = is_subgraph ,
153+ parent_graph_id = parent_graph_id ,
154+ graph_type = graph_type ,
106155 )
107156
108157 graph_info .additional_properties = d
0 commit comments