ci: Drop CentOS 8 Stream and switch F38 to 40, Ubuntu 20.04 to 22.04
[libvirt-python.git] / libvirt-override-virDomainSnapshot.py
blobca12fe4fce6dab7b6619daf73c6acbb6db540a15
1 def getConnect(self) -> 'virConnect':
2 """Get the connection that owns the domain that a snapshot was created for"""
3 return self.connect()
5 def getDomain(self) -> 'virDomain':
6 """Get the domain that a snapshot was created for"""
7 return self.domain()
9 def listAllChildren(self, flags: int = 0) -> List['virDomainSnapshot']:
10 """List all child snapshots and returns a list of snapshot objects"""
11 ret = libvirtmod.virDomainSnapshotListAllChildren(self._o, flags)
12 if ret is None:
13 raise libvirtError("virDomainSnapshotListAllChildren() failed")
15 return [virDomainSnapshot(self.domain(), _obj=snapptr) for snapptr in ret]