'Converts retry parameter fields to a YAML statement list.'

def GetYamlStatementsList(self):

    tag_statements = []
    field_names = (tag.replace('-', '_') for tag in _RETRY_PARAMETER_TAGS)
    for field in field_names:
        field_value = getattr(self, field, None)
        if field_value:
            tag_statements.append(('                %s:    %s' % (field, field_value)))
    if (not tag_statements):
        return ['        retry_parameters:    {}']
    return (['        retry_parameters:'] + tag_statements)
