def PackagesSelection(self, data: Structure): """Set the packages selection. :param: a structure of the type PackagesSelectionData """ self.implementation.set_packages_selection( PackagesSelectionData.from_structure(data))
def get_packages_data() -> PackagesSelectionData: """Get the DBus data with the packages configuration. :return: a packages configuration """ payload_proxy = get_payload_proxy() if payload_proxy.Type != PAYLOAD_TYPE_DNF: return PackagesSelectionData() return PackagesSelectionData.from_structure( payload_proxy.PackagesSelection)
def get_packages_selection(self) -> PackagesSelectionData: """Get the DBus data with the packages selection.""" return PackagesSelectionData.from_structure( self.proxy.PackagesSelection )