def __init__(self, xml=None):
        """
        :arg xml: the XMLElement instance of the <cron> tag that holds the
          request settings for the repo.
        """
        self.frequency = None
        """Specifies the frequency (in minutes) at which to test for new pull
        requests on the repo."""
        self.emails = None
        """A list of email addresses to notify when the cron performs any of
        the automated tasks.
        """
        self.notify = None
        """A list of events to notify the email addresses of during the
        automation. Possible values: ['start', 'error', 'success', 'timeout', 'failure'].
        """

        if xml is not None:
            self._parse_xml(xml)
        else:
            self.frequency = 5
            self.emails = []
            self.notify = []
def __init__ ( self , xml = None ) : self . frequency = None self . emails = None self . notify = None if xml is not None : self . _parse_xml ( xml ) else : self . frequency = 5 self . emails = [ ] self . notify = [ ]
:arg xml: the XMLElement instance of the <cron> tag that holds the
          request settings for the repo.