code: def _update_from_api_repr(self, resource):
          
          self.destination = resource["destination"]
          self.filter_ = resource.get("filter")
          self._writer_identity = resource.get("writerIdentity")
docs: Helper for API methods returning sink resources.