'Set aggregate metadata, replacing the existing metadata.'

def set_metadata(self, aggregate, metadata):

    body = {'set_metadata': {'metadata': metadata}}
    return self._create(('/os-aggregates/%s/action' % base.getid(aggregate)), body, 'aggregate')
