code: def update_properties(self, properties):
          
          self.manager.session.post(self.uri, body=properties)
          is_rename = self.manager._name_prop in properties
          if is_rename:
              # Delete the old name from the cache
              self.manager._name_uri_cache.delete(self.name)
          self.properties.update(copy.deepcopy(properties))
          if is_rename:
              # Add the new name to the cache
              self.manager._name_uri_cache.update(self.name, self.uri)
docs: Update writeable properties of this NIC.
  
          Authorization requirements:
  
          * Object-access permission to the Partition containing this NIC.
          * Object-access permission to the backing Adapter for this NIC.
          * Task permission to the "Partition Details" task.
  
          Parameters:
  
            properties (dict): New values for the properties to be updated.
              Properties not to be updated are omitted.
              Allowable properties are the properties with qualifier (w) in
              section 'Data model - NIC Element Object' in the
              :term:`HMC API` book.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`