code: def update_nic(self, datacenter_id, server_id,
                     nic_id, **kwargs):
          
          data = {}
  
          for attr, value in kwargs.items():
              data[self._underscore_to_camelcase(attr)] = value
  
          response = self._perform_request(
              url='/datacenters/%s/servers/%s/nics/%s' % (
                  datacenter_id,
                  server_id,
                  nic_id),
              method='PATCH',
              data=json.dumps(data))
  
          return response
docs: Updates a NIC with the parameters provided.
  
          :param      datacenter_id: The unique ID of the data center.
          :type       datacenter_id: ``str``
  
          :param      server_id: The unique ID of the server.
          :type       server_id: ``str``
  
          :param      nic_id: The unique ID of the NIC.
          :type       nic_id: ``str``