in src/hpc/autoscale/node/node.py [0:0]
def to_dict(self) -> Dict:
return {
"name": self.name,
"hostname": self.hostname,
"private-ip": self.private_ip,
"instance-id": self.instance_id,
"nodearray": self.nodearray,
"placement_group": self.placement_group,
"node-id": self.delayed_node_id.node_id,
"operation-id": self.delayed_node_id.operation_id,
"vm-size": self.vm_size,
"location": self.location,
"job-ids": list(self.assignments),
"resources": dict(self.resources),
"software-configuration": dict(self.software_configuration),
"available": dict(self.available),
"bucket-id": self.bucket_id,
"metadata": dict(self.metadata),
"spot": self.spot,
"state": self.state,
"exists": self.exists,
"managed": self.managed,
}