summaryrefslogtreecommitdiff
path: root/libvirt-override-virDomainCheckpoint.py
blob: 8b9d212c356b5ef09db113b703826e17ed16d231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
    def getConnect(self) -> 'virConnect':
        """Get the connection that owns the domain that a checkpoint was created for"""
        return self.connect()

    def getDomain(self) -> 'virDomain':
        """Get the domain that a checkpoint was created for"""
        return self.domain()

    def listAllChildren(self, flags: int = 0) -> List['virDomainCheckpoint']:
        """List all child checkpoints and returns a list of checkpoint objects"""
        ret = libvirtmod.virDomainCheckpointListAllChildren(self._o, flags)
        if ret is None:
            raise libvirtError("virDomainCheckpointListAllChildren() failed")

        retlist = list()
        for chkptr in ret:
            retlist.append(virDomainCheckpoint(self.domain(), _obj=chkptr))

        return retlist