code: def update_ports(self, ports, id_or_uri):
          
          ports = merge_default_values(ports, {'type': 'port'})
  
          uri = self._client.build_uri(id_or_uri) + "/update-ports"
          return self._client.update(uri=uri, resource=ports)
docs: Updates the switch ports. Only the ports under the management of OneView and those that are unlinked are
          supported for update.
  
          Note:
              This method is available for API version 300 or later.
  
          Args:
              ports: List of Switch Ports.
              id_or_uri: Can be either the switch id or the switch uri.
  
          Returns:
              dict: Switch