'Resize a server\'s resources.
:param server: The :class:`Server` (or its ID) to share onto.
:param flavor: the :class:`Flavor` (or its ID) to resize to.
:param disk_config: partitioning mode to use on the rebuilt server.
Valid values are \'AUTO\' or \'MANUAL\'
:returns: An instance of novaclient.base.TupleWithMeta
Until a resize event is confirmed with :meth:`confirm_resize`, the old
server will be kept around and you\'ll be able to roll back to the old
flavor quickly with :meth:`revert_resize`. All resizes are
automatically confirmed after 24 hours.'

def resize(self, server, flavor, disk_config=None, **kwargs):

    info = {'flavorRef': base.getid(flavor)}
    if (disk_config is not None):
        info['OS-DCF:diskConfig'] = disk_config
    return self._action('resize', server, info=info, **kwargs)
