def resize(self, package):
if isinstance(package, dict):<EOL><INDENT>package = package['<STR_LIT:name>']<EOL><DEDENT>action = {'<STR_LIT:action>': '<STR_LIT>',<EOL>'<STR_LIT>': package}<EOL>j, r = self.datacenter.request('<STR_LIT:POST>', self.path, params=action)<EOL>r.raise_for_status()<EOL>
::

    POST /:login/machines/:id?action=resize

Initiate resizing of the remote machine to a new package.