def _properties_from_dict(d, key_name='key'):
 fields = []
 for (key, value) in six.iteritems(d):
  if isinstance(value, dict):
   fields.append({key_name: key, 'refValue': value['ref']})
  else:
   fields.append({key_name: key, 'stringValue': value})
 return fields

def _properties_from_dict ( d , key_name = 'key' ) : fields = [ ] for ( key , value ) in six . iteritems ( d ) : if isinstance ( value , dict ) : fields . append ( { key_name : key , 'refValue' : value [ 'ref' ] } ) else : fields . append ( { key_name : key , 'stringValue' : value } ) return fields
transforms dictionary into pipeline object properties .