public function updateNode(Node $node, ParameterBag $parameters)
{
switch ($parameters->get('action')) {
case 'passwordReset':
return $this->digitalocean->droplet()->passwordReset($node->getId());
case 'enableBackups':
return $this->digitalocean->droplet()->enableBackups($node->getId());
case 'disableBackups':
return $this->digitalocean->droplet()->disableBackups($node->getId());
case 'rename':
return $this->digitalocean->droplet()->rename($node->getId(), $parameters->get('name'));
case 'enableIpv6':
return $this->digitalocean->droplet()->enableIpv6($node->getId());
case 'enablePrivateNetworking':
return $this->digitalocean->droplet()->enablePrivateNetworking($node->getId());
}
}