code: def _generate_filtered_properties(self, props, filters):
          
          # by default no properties are returned
          if props and filters:
              return (props
                      if '*' in filters
                      else dict(((k, v) for k, v in props.items() if k in filters)))
docs: This method returns Build's properties according to property filters.
  
          :param props: Properties as a dict (from db)
          :param filters: Desired properties keys as a list (from API URI)