code: def _get_update_method(self):
          
          if getattr(self, '_update_uses_post', False):
              http_method = self.gitlab.http_post
          else:
              http_method = self.gitlab.http_put
          return http_method
docs: Return the HTTP method to use.
  
          Returns:
              object: http_put (default) or http_post