示例#1
0
    def SetConfiguration(self, data: Structure):
        """Set the source configuration.

        :param data: a structure of the type RPMOSTreeConfigurationData
        """
        self.implementation.set_configuration(
            RPMOSTreeConfigurationData.from_structure(data))
示例#2
0
    def _get_source_configuration(self):
        """Get the configuration of the RPM OSTree source.

        :return: an instance of RPMOSTreeConfigurationData
        """
        source_proxy = self.get_source_proxy()

        return RPMOSTreeConfigurationData.from_structure(
            source_proxy.Configuration)