def _reset(self, server, **kwargs):
if server:<EOL><INDENT>Server._handle_server_subobjs(server, kwargs.get('<STR_LIT>'))<EOL>for key in server:<EOL><INDENT>object.__setattr__(self, key, server[key])<EOL><DEDENT><DEDENT>for key in kwargs:<EOL><INDENT>object.__setattr__(self, key, kwargs[key])<EOL><DEDENT>
Reset the server object with new values given as params.

- server: a dict representing the server. e.g the API response.
- kwargs: any meta fields such as cloud_manager and populated.

Note: storage_devices and ip_addresses may be given in server as dicts or
in kwargs as lists containing Storage and IPAddress objects.