def update_rbac_role(
    self,
    role: str,
    menu_items: list,
    net_read: bool,
) -> bool:
    """Create or update rbac role

    .. list-table::
        :header-rows: 1

        * - Swagger Section
          - Method
          - Endpoint
        * - rbacRole
          - POST
          - /rbac/role

    .. note::
        Swagger documentation (in 9.0.2.0) shows net_read value of
        ``True`` to be read/write but it is flipped.

    :param role: Name of the role
    :type role: str
    :param menu_items: List of menu items assigned for access from the
        role
    :type menu_items: list
    :param net_read: Permissions for the attributes,
        Read/Write (``False``), Read-Only (``True``)
    :type net_read: bool
    :return: Returns True/False based on successful call
    :rtype: bool
    """
    data = {}
    data[role] = {
        "menuTypeItems": menu_items,
        "net_read": net_read,
    }

    return self._post(
        "/rbac/role",
        data=data,
        expected_status=[204],
        return_type="bool",
    )