'Add/remove public internet access to an interface.
:param network_interface: The NIC you wish to update.
:type network_interface: :class:`ProfitBricksNetworkInterface`
:return:    Instance of class ``ProfitBricksNetworkInterface``
:rtype:     :class:`ProfitBricksNetworkInterface`'

def ex_set_inet_access(self, network_interface, internet_access=True):

    action = network_interface.href
    body = {'nat': internet_access}
    response = self.connection.request(action=action, headers={'Content-Type': 'application/json'}, data=body, method='PATCH', with_full_url=True)
    return self._to_interface(response.object, response.headers)
