1 def getConnect(self
) -> 'virConnect':
2 """Get the connection that owns the domain that a snapshot was created for"""
5 def getDomain(self
) -> 'virDomain':
6 """Get the domain that a snapshot was created for"""
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
)
13 raise libvirtError("virDomainSnapshotListAllChildren() failed")
15 return [virDomainSnapshot(self
.domain(), _obj
=snapptr
) for snapptr
in ret
]