docs: def update_port_monitor(self, resource, timeout=-1):
          """
          Updates the port monitor configuration of a logical interconnect.
  
          Args:
              resource: Port monitor configuration.
  
          Returns:
              dict: Port monitor configuration.
          """
          data = resource.copy()
          if 'type' not in data:
              data['type'] = 'port-monitor'
  
          uri = "{}{}".format(self.data["uri"], self.PORT_MONITOR_PATH)
          return self._helper.update(data, uri=uri, timeout=timeout)