@request_user_is_admin()
    @jsexpose(arg_types=[str])
    def get_one(self, resource_type):
        permission_types = RESOURCE_TYPE_TO_PERMISSION_TYPES_MAP.get(resource_type, None)
        if permission_types is None:
            raise ValueError('Invalid resource type: %s' % (resource_type))

        return permission_types
List all the available permission types for a particular resource type.
dataset/ETHPy150Open StackStorm/st2/st2api/st2api/controllers/v1/rbac.py/PermissionTypesController.get_one