We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cde5fca commit c3bde30Copy full SHA for c3bde30
src/structurizr/model/deployment_node.py
@@ -62,3 +62,13 @@ def __init__(
62
self.instances = instances
63
self.children = set(children)
64
self.container_instances = set(container_instances)
65
+
66
+ @classmethod
67
+ def hydrate(cls, deployment_node_io: DeploymentNodeIO) -> "DeploymentNode":
68
+ """"""
69
+ # TODO (midnighter): Initialization requires `parent`.
70
+ return cls(
71
+ # parent=deployment_node_io.parent,
72
+ name=deployment_node_io.name,
73
+ description=deployment_node_io.description,
74
+ )
0 commit comments