def _get_update_method(self):
        """Return the HTTP method to use.

        Returns:
            object: http_put (default) or http_post
        """
        if getattr(self, '_update_uses_post', False):
            http_method = self.gitlab.http_post
        else:
            http_method = self.gitlab.http_put
        return http_method