'Translates <health-check> in appengine-web.xml to yaml.'

def TranslateHealthCheck(self):

    health_check = self.app_engine_web_xml.health_check
    if (not health_check):
        return []
    statements = ['health_check:']
    for attr in ('enable_health_check', 'check_interval_sec', 'timeout_sec', 'unhealthy_threshold', 'healthy_threshold', 'restart_threshold', 'host'):
        value = getattr(health_check, attr, None)
        if (value is not None):
            statements.append(('        %s:    %s' % (attr, value)))
    return statements
