code: def update(self, resource, id_or_uri=None, timeout=-1):
          
          uri = resource.pop('uri', None)
          if not uri:
              if not id_or_uri:
                  raise ValueError("URI was not provided")
              uri = self._client.build_uri(id_or_uri)
          return self._client.update(resource=resource, uri=uri, timeout=timeout)
docs: Updates the specified alert resource.
  
          Args:
              resource (dict): Object to update.
              timeout: Timeout in seconds. Wait for task completion by default. The timeout does not abort the operation
                  in OneView; it just stops waiting for its completion.
  
          Returns:
              dict: Updated alert.