| 1 | def getConnect(self) -> 'virConnect': |
| 2 | """Get the connection that owns the domain that a snapshot was created for""" |
| 3 | return self.connect() |
| 4 | |
| 5 | def getDomain(self) -> 'virDomain': |
| 6 | """Get the domain that a snapshot was created for""" |
| 7 | return self.domain() |
| 8 | |
| 9 | def listAllChildren(self, flags: Optional[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") |
| 14 | |
| 15 | return [virDomainSnapshot(self.domain(), _obj=snapptr) for snapptr in ret] |