<gh_stars>10-100
from leapp.models import Model, fields
from leapp.topics import SystemInfoTopic


class SSSDDomainConfig(Model):
    """
    Facts found about an SSSD domain.
    """
    topic = SystemInfoTopic

    name = fields.String()
    """
    Domain name.
    """

    options = fields.List(fields.String(), default=list())
    """
    List of options related to this domain that affects the upgrade process.
    """


class SSSDConfig(Model):
    """
    List of SSSD domains and their configuration that is related to the
    upgrade process.
    """
    topic = SystemInfoTopic

    domains = fields.List(fields.Model(SSSDDomainConfig), default=list())
    """
    SSSD Domains configuration.
    """

from leapp.models import Model, fields
from leapp.topics import SystemInfoTopic


class SSSDDomainConfig(Model):
    """
    Facts found about an SSSD domain.
    """
    topic = SystemInfoTopic

    name = fields.String()
    """
    Domain name.
    """

    options = fields.List(fields.String(), default=list())
    """
    List of options related to this domain that affects the upgrade process.
    """


class SSSDConfig(Model):
    """
    List of SSSD domains and their configuration that is related to the
    upgrade process.
    """
    topic = SystemInfoTopic

    domains = fields.List(fields.Model(SSSDDomainConfig), default=list())
    """
    SSSD Domains configuration.
    """
Facts found about an SSSD domain. Domain name. List of options related to this domain that affects the upgrade process. List of SSSD domains and their configuration that is related to the     upgrade process. SSSD Domains configuration.