Debian Codegraph @

libvirt-override-virDomainCheckpoint.py

raw symbols SCIP
1 def getConnect(self) -> 'virConnect':
2 """Get the connection that owns the domain that a checkpoint was created for"""
3 return self.connect()
4
5 def getDomain(self) -> 'virDomain':
6 """Get the domain that a checkpoint was created for"""
7 return self.domain()
8
9 def listAllChildren(self, flags: Optional[int] = 0) -> list['virDomainCheckpoint']:
10 """List all child checkpoints and returns a list of checkpoint objects"""
11 ret = libvirtmod.virDomainCheckpointListAllChildren(self._o, flags)
12 if ret is None:
13 raise libvirtError("virDomainCheckpointListAllChildren() failed")
14
15 return [virDomainCheckpoint(self.domain(), _obj=chkptr) for chkptr in ret]