class_docstr: Remaps UserModelView permissions to new resources and actions.
docstr: Returns appropriate permission name depending on request method name.
docstr_tok: ["Returns","appropriate","permission","name","depending","on","request","method","name","."]
code: def class_permission_name(self):
      """Returns appropriate permission name depending on request method name."""
      if request:
          action_name = request.view_args.get("name")
          _, method_name = request.url_rule.endpoint.rsplit(".", 1)
          if method_name == "action" and action_name:
              return self.class_permission_name_mapping.get(
                  action_name, self._class_permission_name
              )
          if method_name:
              return self.class_permission_name_mapping.get(
                  method_name, self._class_permission_name
              )
      return self._class_permission_name
  
imports: from __future__ import annotations
  from flask import request
  from flask_appbuilder import expose
  from flask_appbuilder.security.decorators import has_access
  from flask_appbuilder.security.views import UserDBModelView, UserLDAPModelView, UserOAuthModelView, UserOIDModelView, UserRemoteUserModelView
  from airflow.security import permissions
label_desc: Use image node_id 1 for calling the MultiResourceUserMixin obj's underlying member method code with example usage: obj.class_permission_name() and returns: self, self, self