'Resizes a given instance to the flavor size requested.'

@wsgi.response(202)
@extensions.expected_errors((400, 401, 403, 404, 409))
@wsgi.action('resize')
@validation.schema(schema_servers.resize)
def _action_resize(self, req, id, body):

    resize_dict = body['resize']
    flavor_ref = str(resize_dict['flavorRef'])
    kwargs = {}
    helpers.translate_attributes(helpers.RESIZE, resize_dict, kwargs)
    self._resize(req, id, flavor_ref, **kwargs)
