def api_dataset_from_dataset_and_node(dataset, node_uuid):
 result = dict(dataset_id=dataset.dataset_id, deleted=dataset.deleted, primary=unicode(node_uuid), metadata=thaw(dataset.metadata))
 if (dataset.maximum_size is not None):
  result[u'maximum_size'] = dataset.maximum_size
 return result

def api_dataset_from_dataset_and_node ( dataset , node_uuid ) : result = dict ( dataset_id = dataset . dataset_id , deleted = dataset . deleted , primary = unicode ( node_uuid ) , metadata = thaw ( dataset . metadata ) ) if ( dataset . maximum_size is not None ) : result [ u'maximum_size' ] = dataset . maximum_size return result
return a dataset dict which conforms to /v1/endpoints .