'Expands scvolume to newsize GBs.
:param scvolume: Dell volume object to be expanded.
:param newsize: The new size of the volume object.
:returns: The updated Dell volume object on success or None on failure.'

def expand_volume(self, scvolume, newsize):

    vol = None
    payload = {}
    payload['NewSize'] = ('%d    GB' % newsize)
    r = self.client.post(('StorageCenter/ScVolume/%s/ExpandToSize' % self._get_id(scvolume)), payload, True)
    if self._check_result(r):
        vol = self._get_json(r)
    if (vol is not None):
        LOG.debug('Volume    expanded:    %(name)s    %(size)s', {'name': vol['name'], 'size': vol['configuredSize']})
    else:
        LOG.error('Error    expanding    volume    %s.', scvolume['name'])
    return vol
