'Change the flavor of a server.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#resize-server-resize-action
Most parameters except the following are passed to the API without
any changes.
:param disk_config: The name is changed to OS-DCF:diskConfig'

def resize_server(self, server_id, flavor_ref, **kwargs):

    kwargs['flavorRef'] = flavor_ref
    if ('disk_config' in kwargs):
        kwargs['OS-DCF:diskConfig'] = kwargs.pop('disk_config')
    return self.action(server_id, 'resize', **kwargs)
