public function removeRouterInterface($routerId, $subnetId = null, $portId = null)
{
$result = null;
$options = array();
if (!empty($subnetId)) {
$options['subnet_id'] = $this->escape($subnetId);
}
if (!empty($portId)) {
$options['port_id'] = $this->escape($portId);
}
if (empty($options)) {
throw new \InvalidArgumentException(sprintf('Either a subnet identifier or a port identifier must be passed in the method.'));
}
$response = $this->getClient()->call($this->service, sprintf('/routers/%s/remove_router_interface', $this->escape($routerId)), array('_putData' => json_encode($options)), 'PUT');
if ($response->hasError() === false) {
$result = json_decode($response->getContent());
}
return $result;
}