# Define the "IORanObject" interface
class IORanTerminationPoint(IORanObject):
supporter: dict[str, str]
+ network: Any
default_value: IORanTerminationPoint = cast(
{
**ORanObject.default(),
**{
- "supporter": {}
+ "supporter": {},
+ "network": None,
},
},
)
itp: IORanTerminationPoint = self._to_itp_data(data)
super().__init__(cast(dict[str, Any], itp), **kwargs)
self._supporter = cast(dict[str, str], itp["supporter"])
+ self._network: Any = itp["network"]
def _to_itp_data(self, data: dict[str, Any]) -> IORanTerminationPoint:
result: IORanTerminationPoint = default_value
def supporter(self, value: dict[str, str]) -> None:
self._supporter = value
+ @property
+ def network(
+ self,
+ ) -> Any: # expected is ORanNetwork
+ return self._network
+
+ @network.setter
+ def network(self, value: Any) -> None:
+ self._network = value
+
def to_topology(self) -> dict[str, Any]:
result: dict[str, Any] = {
"tp-id": self.name,