dell_storagecenter_driver/dell_storagecenter_api.py
def expand_volume(self, scvolume, newsize):
        """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.
        """
        payload = {}
        payload['NewSize'] = '%d GB' % newsize
        r = self.client.post('StorageCenter/ScVolume/%s/ExpandToSize'
                             % self._get_id(scvolume),
                             payload)
        vol = None
        if self._check_result(r):
            vol = self._get_json(r)
        else:
            LOG.error('Error expanding volume '
                      '%(name)s: %(code)d %(reason)s',
                      {'name': scvolume['name'],
                       'code': r.status_code,
                       'reason': r.reason})
        if vol is not None:
            LOG.debug('Volume expanded: %(name)s %(size)s',
                      {'name': vol['name'],
                       'size': vol['configuredSize']})
        return vol
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.
        
Expands scvolume to newsize GBs.
Expands scvolume to newsize GBs .
def expand_volume(self, scvolume, newsize):
        payload = {}
        payload['NewSize'] = '%d GB' % newsize
        r = self.client.post('StorageCenter/ScVolume/%s/ExpandToSize'
                             % self._get_id(scvolume),
                             payload)
        vol = None
        if self._check_result(r):
            vol = self._get_json(r)
        else:
            LOG.error('Error expanding volume '
                      '%(name)s: %(code)d %(reason)s',
                      {'name': scvolume['name'],
                       'code': r.status_code,
                       'reason': r.reason})
        if vol is not None:
            LOG.debug('Volume expanded: %(name)s %(size)s',
                      {'name': vol['name'],
                       'size': vol['configuredSize']})
        return vol
def expand_volume ( self , scvolume , newsize ) : payload = { } payload [ 'NewSize' ] = '%d GB' % newsize r = self . client . post ( 'StorageCenter/ScVolume/%s/ExpandToSize' % self . _get_id ( scvolume ) , payload ) vol = None if self . _check_result ( r ) : vol = self . _get_json ( r ) else : LOG . error ( 'Error expanding volume ' '%(name)s: %(code)d %(reason)s' , { 'name' : scvolume [ 'name' ] , 'code' : r . status_code , 'reason' : r . reason } ) if vol is not None : LOG . debug ( 'Volume expanded: %(name)s %(size)s' , { 'name' : vol [ 'name' ] , 'size' : vol [ 'configuredSize' ] } ) return vol
Expands scvolume to newsize GBs.
Expands scvolume to newsize GBs .
"""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.
        """
The updated Dell volume object on success or None on failure.
The updated Dell volume object on success or None on failure .
self
scvolume
Dell volume object to be expanded.
Dell volume object to be expanded .
newsize
The new size of the volume object.
The new size of the volume object .